.laux-popup {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: transparent;
}

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

.laux-popup--dim {
  background: rgba(0, 0, 0, 0.55);
}

.laux-popup--blur {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.laux-popup--none {
  background: transparent;
  pointer-events: none;
}

.laux-popup--none .laux-popup__dialog {
  pointer-events: auto;
}

.laux-popup__dialog {
  position: relative;
  max-width: min(600px, 94vw);
  max-height: 92vh;
  overflow: auto;
  background: transparent;
}

.laux-popup__close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.laux-popup__media {
  position: relative;
}

.laux-popup__img {
  display: block;
  width: 100%;
  height: auto;
}

.laux-popup__link {
  display: block;
}

.laux-popup__texts {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Tight stacked “text river” — multiple lines read as one poster block */
.laux-popup__texts--river {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 2%;
  box-sizing: border-box;
}

.laux-popup__texts--river-top {
  justify-content: flex-start;
  padding-top: 8%;
}

.laux-popup__texts--river-center {
  justify-content: center;
}

.laux-popup__texts--river-bottom {
  justify-content: flex-end;
  padding-bottom: 8%;
}

.laux-popup__texts--river .laux-popup__text:not(.laux-popup__text--creative-footer) {
  position: relative;
  left: auto;
  top: auto;
  bottom: auto;
  transform: none;
  padding: 0;
  margin: 0;
  line-height: 0.82;
}

/* 4th creative line: sit low with clear air under the river stack */
.laux-popup__texts--has-creative-footer.laux-popup__texts--river {
  padding-bottom: 22%;
  box-sizing: border-box;
}

.laux-popup__text--creative-footer {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: 4% !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  line-height: 1.05 !important;
}

.laux-popup__text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  /* No max-width — JS auto-fit sets font-size to ~98% image width */
  max-width: none;
  white-space: nowrap;
  padding: 0.25rem 0;
  color: #fff;
  text-align: center;
  line-height: 1.05;
  font-size: 64px;
}

.laux-popup__text--font-bebas {
  font-family: "Bebas Neue", var(--laux-font-headline, sans-serif), sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  /* letter-spacing from Admin inline / data-letter-spacing */
}

.laux-popup__text--font-open-sans {
  font-family: "Open Sans", var(--laux-font-body, sans-serif), sans-serif;
  font-weight: 700;
  text-transform: none;
}

.laux-popup__text--font-roboto-slab {
  font-family: "Roboto Slab", var(--laux-font-product, serif), serif;
  font-weight: 700;
  text-transform: none;
}

.laux-popup__text--shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 0, 0, 0.4);
}

.laux-popup__text--no-shadow {
  text-shadow: none;
}

.laux-popup__text--top { top: 8%; }
.laux-popup__text--center { top: 50%; transform: translate(-50%, -50%); }
.laux-popup__text--bottom { bottom: 8%; }
