.wwhomepopup[hidden] {
  display: none !important;
}

.wwhomepopup {
  --wwhp-cream: #f8f1eb;
  --wwhp-notice: #f7f1eb;
  --wwhp-pink: #e3c0bf;
  --wwhp-ink: #12100f;
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: clamp(18px, 4vh, 44px) clamp(18px, 3.7vw, 57px);
  position: fixed;
  z-index: 2147483000;
}

.wwhomepopup *,
.wwhomepopup *::before,
.wwhomepopup *::after {
  box-sizing: border-box;
}

.wwhomepopup__backdrop {
  background: rgba(8, 7, 6, 0.76);
  cursor: pointer;
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 240ms ease;
}

.wwhomepopup__dialog {
  background: var(--wwhp-cream);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
  color: var(--wwhp-ink);
  display: grid;
  grid-template-columns: minmax(0, 54%) minmax(0, 46%);
  grid-template-rows: minmax(0, 1fr);
  margin: 0;
  max-height: min(946px, calc(100vh - clamp(36px, 7.6vh, 78px)));
  max-width: 1422px;
  opacity: 0;
  overflow: hidden;
  position: relative;
  transform: translateY(12px) scale(0.99);
  transition: opacity 240ms ease, transform 240ms ease;
  width: 100%;
}

.wwhomepopup.is-visible .wwhomepopup__backdrop,
.wwhomepopup.is-visible .wwhomepopup__dialog {
  opacity: 1;
}

.wwhomepopup.is-visible .wwhomepopup__dialog {
  transform: translateY(0) scale(1);
}

.wwhomepopup__photo {
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.wwhomepopup__photo svg {
  display: block;
  height: 100%;
  width: 100%;
}

.wwhomepopup__content {
  align-items: flex-start;
  background: var(--wwhp-cream);
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  max-height: min(946px, calc(100vh - clamp(36px, 7.6vh, 78px)));
  min-height: min(946px, calc(100vh - clamp(36px, 7.6vh, 78px)));
  overflow-y: auto;
  padding: clamp(42px, 4.6vw, 74px) clamp(40px, 4.55vw, 70px) clamp(40px, 3.5vw, 56px);
  position: relative;
}

.wwhomepopup__heading {
  position: relative;
  width: 100%;
}

.wwhomepopup__horse {
  height: auto;
  mix-blend-mode: multiply;
  opacity: 0.26;
  pointer-events: none;
  position: absolute;
  right: -25px;
  top: -30px;
  width: min(60%, 250px);
  z-index: 0;
}

.wwhomepopup__content > * {
  flex-shrink: 0;
}

.wwhomepopup__content > *,
.wwhomepopup__heading > :not(.wwhomepopup__horse) {
  position: relative;
  z-index: 1;
}

.wwhomepopup__close {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  height: 48px;
  padding: 12px;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 48px;
  z-index: 4;
}

.wwhomepopup__close::before,
.wwhomepopup__close::after {
  background: var(--wwhp-ink);
  content: "";
  height: 1.5px;
  left: 10px;
  position: absolute;
  top: 23px;
  width: 28px;
}

.wwhomepopup__close::before {
  transform: rotate(45deg);
}

.wwhomepopup__close::after {
  transform: rotate(-45deg);
}

.wwhomepopup__close:focus-visible,
.wwhomepopup__exhibitors:focus-visible,
.wwhomepopup__cta:focus-visible {
  outline: 2px solid var(--wwhp-ink);
  outline-offset: 3px;
}

.wwhomepopup__logo {
  display: block;
  height: auto;
  margin: 0 auto 28px;
  max-height: 82px;
  max-width: min(240px, 58%);
  object-fit: contain;
  width: auto;
}

.wwhomepopup__rule {
  background: var(--wwhp-pink);
  height: 2px;
  margin: 0 0 38px 11%;
  width: 84px;
}

.wwhomepopup__eyebrow,
.wwhomepopup__date,
.wwhomepopup__place {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  letter-spacing: 0.44em;
  margin: 0;
  text-transform: uppercase;
}

.wwhomepopup__eyebrow {
  font-size: min(18px, 1.18vw, 2.03vh);
  line-height: 1.4;
  margin-bottom: 24px;
}

.wwhomepopup__title {
  color: var(--wwhp-ink);
  font-family: Didot, "Bodoni MT", "Times New Roman", serif;
  font-size: clamp(68px, 5.75vw, 88px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.99;
  margin: 0 0 28px;
}

.wwhomepopup__date,
.wwhomepopup__place {
  font-size: min(18px, 1.18vw, 2.03vh);
  line-height: 1.5;
}

.wwhomepopup__date {
  margin-bottom: 3px;
}

.wwhomepopup__rule--lower {
  margin: 24px 0 22px 10px;
  width: 68px;
}

.wwhomepopup__description {
  font-family: Didot, "Bodoni MT", "Times New Roman", serif;
  font-size: min(28px, 1.83vw, 3.15vh);
  line-height: 1.14;
  width: 100%;
}

.wwhomepopup__description p {
  margin: 0;
}

.wwhomepopup__shipping {
  align-items: center;
  display: grid;
  font-size: min(24px, 1.57vw, 2.7vh);
  gap: 22px;
  grid-template-columns: 58px 1fr;
  line-height: 1.24;
  margin-top: 34px !important;
  background: var(--wwhp-notice);
  color: var(--wwhp-ink);
}

.wwhomepopup__truck {
  color: var(--wwhp-ink);
  display: block;
  width: 58px;
}

.wwhomepopup__truck svg {
  display: block;
  fill: none;
  stroke: var(--wwhp-ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  width: 100%;
}

.wwhomepopup__shipping > span:last-child {
  color: var(--wwhp-ink);
}

.wwhomepopup__cta {
  align-items: center;
  background: var(--wwhp-pink);
  color: var(--wwhp-ink) !important;
  display: grid;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(13px, 0.94vw, 16px);
  gap: 16px;
  grid-template-columns: 1fr auto;
  letter-spacing: 0.36em;
  margin-top: 34px;
  min-height: 74px;
  padding: 18px 15%;
  text-align: center;
  text-decoration: none !important;
  transition: background-color 160ms ease;
  width: 100%;
}

.wwhomepopup__cta:hover {
  background: #d5a9ab;
  color: var(--wwhp-ink);
}

.wwhomepopup__exhibitors {
  align-self: center;
  color: var(--wwhp-ink) !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin-top: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wwhomepopup__arrow {
  font-family: Georgia, serif;
  font-size: 28px;
  letter-spacing: 0;
  line-height: 1;
}

@media (min-width: 901px) and (max-height: 1000px) {
  .wwhomepopup__content {
    padding-bottom: 30px;
    padding-top: 32px;
  }

  .wwhomepopup__logo {
    margin-bottom: 16px;
    max-height: 64px;
  }

  .wwhomepopup__rule {
    margin-bottom: 20px;
  }

  .wwhomepopup__eyebrow {
    margin-bottom: 14px;
  }

  .wwhomepopup__title {
    font-size: min(88px, 6vw, 8.6vh);
    margin-bottom: 16px;
  }

  .wwhomepopup__rule--lower {
    margin-bottom: 16px;
    margin-top: 16px;
  }

  .wwhomepopup__shipping {
    font-size: min(24px, 1.5vw, 2.5vh);
    margin-top: 20px !important;
  }

  .wwhomepopup__description {
    font-size: min(28px, 1.83vw, 2.8vh);
  }

  .wwhomepopup__cta {
    margin-top: 20px;
    min-height: 62px;
  }
}

@media (max-width: 900px) {
  .wwhomepopup {
    align-items: flex-start;
    overflow-y: auto;
    padding: 14px;
  }

  .wwhomepopup__dialog {
    display: block;
    margin: auto;
    max-height: none;
    max-width: 620px;
    overflow: visible;
  }

  .wwhomepopup__photo {
    aspect-ratio: 4 / 3;
  }

  .wwhomepopup__content {
    justify-content: flex-start;
    max-height: none;
    min-height: 0;
    overflow: visible;
    padding: 30px 28px 32px;
  }

  .wwhomepopup__close {
    background: rgba(248, 241, 235, 0.94);
    display: block;
    margin: 7px 7px -55px auto;
    position: sticky;
    right: auto;
    top: 7px;
  }

  .wwhomepopup__logo {
    margin-bottom: 18px;
    max-height: 64px;
  }

  .wwhomepopup__rule {
    margin-bottom: 24px;
  }

  .wwhomepopup__eyebrow {
    font-size: 12px;
    letter-spacing: 0.36em;
    margin-bottom: 14px;
  }

  .wwhomepopup__title {
    font-size: clamp(50px, 13.5vw, 68px);
    margin-bottom: 20px;
  }

  .wwhomepopup__date,
  .wwhomepopup__place {
    font-size: 11px;
    letter-spacing: 0.28em;
  }

  .wwhomepopup__description {
    font-size: 22px;
  }

  .wwhomepopup__shipping {
    font-size: 19px;
    gap: 15px;
    grid-template-columns: 48px 1fr;
    margin-top: 24px !important;
  }

  .wwhomepopup__truck {
    width: 48px;
  }

  .wwhomepopup__cta {
    font-size: 12px;
    letter-spacing: 0.25em;
    margin-top: 26px;
    min-height: 62px;
    padding: 14px 12%;
  }
}

@media (max-width: 390px) {
  .wwhomepopup__content {
    padding-left: 22px;
    padding-right: 22px;
  }

  .wwhomepopup__title {
    font-size: 50px;
  }

  .wwhomepopup__horse {
    right: -8px;
    top: -28px;
    width: 205px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wwhomepopup__backdrop,
  .wwhomepopup__dialog,
  .wwhomepopup__cta {
    transition: none;
  }
}
