/* Weissenhaus promotional popup — matches XD split modal */

.wh-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.wh-popup[hidden] {
  display: none !important;
}

.wh-popup.is-open {
  display: flex;
}

.wh-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 30, 30, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.wh-popup__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  width: 1144px;
  max-width: 100%;
  min-height: 511px;
  height: auto;
  max-height: calc(100vh - 32px);
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.wh-popup__media {
  position: relative;
  flex: 0 0 60%;
  width: 60%;
  align-self: stretch;
  min-height: 511px;
  background: #1a1a1a;
  overflow: hidden;
}

.wh-popup__image,
.wh-popup__video,
.wh-popup__iframe {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none; /* overrides global img { max-width: 100% } */
  max-height: none;
  object-fit: cover;
  object-position: center;
  border: 0;
  pointer-events: auto; /* overrides global img { pointer-events: none } */
}

/* Hide native video chrome; media is decorative/autoplay */
.wh-popup__video::-webkit-media-controls {
  display: none !important;
}

.wh-popup__video::-webkit-media-controls-enclosure {
  display: none !important;
}

.wh-popup__vimeo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.wh-popup__vimeo-splash {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background-color: #1a1a1a;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.wh-popup__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  margin: -18px 0 0 -10px;
  border-style: solid;
  border-width: 18px 0 18px 28px;
  border-color: transparent transparent transparent #fff;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.wh-popup__content {
  position: relative;
  flex: 0 0 40%;
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 77px 24px 67px 24px;
  box-sizing: border-box;
  background: #fff;
  overflow: hidden;
}

.wh-popup__content .close-badge {
  width: 25px;
  height: 25px;
  background: #FAF6EF url(/files/weissenhaus/img/icon-schliessen.svg) center no-repeat;
  background-size: 30px;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 200;
  cursor: pointer;
}

.wh-popup__title {
  margin: 0 40px 0 0;
  color: #4B4B4B;
  font-family: "rama-gothic-e", sans-serif;
  font-size: 40px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0;
  line-height: 40px;
  text-align: left;
  padding-bottom: 0;
  text-transform: uppercase;
}

/* Disable global site h2::after underline inside the popup */
.wh-popup__title::after,
.wh-popup h2::after {
  display: none !important;
  content: none !important;
}

.wh-popup__rule {
  width: 236px;
  height: 2px;
  margin: 20px 0 20px;
  background: #D2B48C;
}

.wh-popup__text {
  margin: 0 0 28px;
  color: #3a3a3a;
  font-family: "adobe-devanagari", sans-serif;
  font-size: 18px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  line-height: 24px;
  text-align: left;
}

.wh-popup__text p {
  margin: 0 0 0.75em;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: left;
}

.wh-popup__text p:last-child {
  margin-bottom: 0;
}

.wh-popup__cta {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  padding: 12px 28px;
  border: 1px solid #969696;
  color: #2a2a2a;
  background: transparent;
  font-family: "adobe-devanagari", sans-serif;
  font-size: 20px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.wh-popup__cta:hover,
.wh-popup__cta:focus {
  background: #2a2a2a;
  color: #fff;
  outline: none;
}

.wh-popup .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html.wh-popup-open,
html.wh-popup-open body {
  overflow: hidden;
}

@media (max-width: 1399px) and (min-width: 1200px) {
  .wh-popup__dialog {
    width: 850px;
  }

  .wh-popup__image,
  .wh-popup__video,
  .wh-popup__iframe {
    max-height: none;
  }
}

@media (max-width: 1199px) and (min-width: 992px) {
  .wh-popup__dialog {
    width: calc(80vw - 32px);
    height: auto;
    max-height: calc(100vh - 32px);
  }

  .wh-popup__content {
    padding: 40px 36px;
  }

  .wh-popup__image,
  .wh-popup__video,
  .wh-popup__iframe {
    max-height: none;
  }
}

@media (max-width: 991px) {
  .wh-popup {
    padding: 16px;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }

  .wh-popup::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .wh-popup__dialog {
    flex-direction: column;
    width: 100%;
    max-width: calc(100vw - 32px);
    min-height: 0;
    height: auto;
    max-height: none;
    margin: auto;
  }

  .wh-popup__media {
    flex: none;
    position: relative;
    width: 100%;
    min-height: 220px;
    height: 42vw;
    max-height: 320px;
    background: #1a1a1a;
    overflow: hidden;
  }

  .wh-popup__image,
  .wh-popup__video,
  .wh-popup__iframe {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
  }

  .wh-popup__vimeo {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
  }

  .wh-popup__vimeo .wh-popup__iframe,
  .wh-popup__vimeo-splash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .wh-popup__content {
    position: static;
    flex: none;
    width: 100%;
    padding: 28px 20px 32px;
    overflow: visible;
  }

  .wh-popup__content .close-badge {
    /* keep top-right of the dialog when content is no longer relative */
    position: absolute;
    right: 0;
    top: 0;
  }

  .wh-popup__title {
    font-size: 28px;
    line-height: 28px;
    margin-right: 28px;
  }

  .wh-popup__text {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 24px;
  }
}
