body.flyer-overlay-open .site-shell,
body.flyer-overlay-open .site-footer {
  filter: blur(10px) saturate(0.92);
  transition: filter 180ms ease, transform 180ms ease;
}

.flyer-lightbox {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.72), rgba(245, 240, 232, 0.92)),
    linear-gradient(180deg, #f6f2ea 0%, #f3eee4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 18px 18px 22px;
  backdrop-filter: blur(16px) saturate(0.9);
  -webkit-backdrop-filter: blur(16px) saturate(0.9);
}

.flyer-lightbox[hidden] {
  display: none;
}

.flyer-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.65), transparent 32%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.45), transparent 28%);
}

.flyer-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
  min-height: min(92vh, 860px);
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  gap: 10px;
  align-items: center;
}

.flyer-lightbox-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.flyer-lightbox-roulette {
  min-width: 0;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #e0211c;
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 700;
  font-family: "Marker Felt", "Bradley Hand", "Comic Sans MS", cursive;
  line-height: 1;
  cursor: pointer;
  text-transform: none;
  transition: transform 120ms, opacity 120ms;
}

.flyer-lightbox-roulette:hover,
.flyer-lightbox-roulette:focus-visible {
  transform: translateY(-1px);
  opacity: 0.88;
}

.flyer-lightbox-stage {
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.flyer-lightbox-img {
  max-width: min(100%, 540px);
  max-height: 68vh;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: 0 20px 40px rgba(40, 32, 22, 0.16);
  display: block;
  object-fit: contain;
  background: #fffdf9;
}

.flyer-lightbox-caption {
  justify-self: center;
  width: min(100%, 360px);
  display: grid;
  gap: 4px;
  padding: 12px 14px 14px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98) 0%, rgba(247, 240, 229, 0.98) 100%);
  border: 1px solid rgba(120, 91, 48, 0.16);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(74, 54, 24, 0.08);
  text-align: center;
}

.flyer-lightbox-caption[hidden] {
  display: none;
}

.flyer-lightbox-caption-city {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.05;
  color: #2f2419;
}

.flyer-lightbox-caption-meta {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(70, 52, 35, 0.8);
}

.flyer-lightbox-close {
  position: absolute;
  top: 4px;
  right: 0;
  min-width: 38px;
  height: 38px;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: rgba(60, 46, 31, 0.7);
  font-size: 24px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  line-height: 1;
  transition: color 120ms, transform 120ms;
}

.flyer-lightbox-close:hover,
.flyer-lightbox-close:focus-visible {
  color: #2f2419;
  transform: scale(1.05);
}

.flyer-lightbox-nav {
  width: 64px;
  height: 64px;
  border: 0;
  background: transparent;
  color: #e0211c;
  font-size: 56px;
  font-weight: 700;
  font-family: "Marker Felt", "Bradley Hand", "Comic Sans MS", cursive;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 120ms, opacity 120ms;
}

.flyer-lightbox-nav:hover,
.flyer-lightbox-nav:focus-visible {
  opacity: 0.85;
  transform: scale(1.04);
}

.flyer-lightbox-nav[hidden] {
  visibility: hidden;
}

.flyer-lightbox-hint {
  justify-self: center;
  font-size: 12px;
  line-height: 1.3;
  color: rgba(85, 65, 44, 0.62);
  letter-spacing: 0.02em;
}

.flyer-lightbox-gallery {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(62px, 82px));
  justify-content: center;
  gap: 10px;
  padding: 6px 2px 2px;
  overflow-x: auto;
}

.flyer-gallery-thumb {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  border: 3px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: transform 120ms, border-color 120ms, opacity 120ms;
  opacity: 0.72;
}

.flyer-gallery-thumb:hover,
.flyer-gallery-thumb:focus-visible {
  transform: translateY(-1px);
  opacity: 0.92;
}

.flyer-gallery-thumb.active {
  border-color: #e0211c;
  opacity: 1;
}

.flyer-gallery-thumb-img {
  width: 100%;
  aspect-ratio: 0.74;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  display: block;
}

.flyer-gallery-thumb-label {
  display: none;
  font-size: 10px;
  line-height: 1.2;
  color: rgba(70, 52, 35, 0.8);
  text-align: left;
}

@media (max-width: 860px) {
  body.flyer-overlay-open .site-shell,
  body.flyer-overlay-open .site-footer {
    filter: blur(7px) saturate(0.94);
  }

  .flyer-lightbox {
    padding: 14px;
  }

  .flyer-lightbox-panel {
    width: min(100%, 680px);
    min-height: auto;
    grid-template-rows: auto 1fr auto auto auto;
  }

  .flyer-lightbox-stage {
    grid-template-columns: 1fr;
  }

  .flyer-lightbox-img {
    max-width: min(100%, 420px);
    max-height: 58vh;
  }

  .flyer-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    font-size: 42px;
    background: rgba(255, 250, 242, 0.88);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(48, 35, 22, 0.1);
  }

  .flyer-lightbox-nav--prev {
    left: 4px;
  }

  .flyer-lightbox-nav--next {
    right: 4px;
  }
}

@media (max-width: 640px) {
  .flyer-lightbox-close {
    top: -4px;
  }

  .flyer-lightbox-caption {
    width: min(100%, 320px);
  }

  .flyer-lightbox-caption-city {
    font-size: 18px;
  }

  .flyer-lightbox-gallery {
    grid-template-columns: repeat(auto-fit, minmax(58px, 70px));
  }
}
