.flyer-trigger {
  position: relative;
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: zoom-in;
  text-align: inherit;
}
.flyer-trigger:focus-visible { outline: 4px solid #f2b544; outline-offset: 4px; }
.flyer-expand-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(12, 47, 44, .92);
  color: #fff;
  font-size: .92rem;
  font-weight: 900;
  line-height: 1.2;
  box-shadow: 0 5px 18px rgba(0,0,0,.22);
}
.flyer-lightbox {
  width: min(1180px, calc(100vw - 24px));
  height: min(940px, calc(100dvh - 24px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #111;
  color: #fff;
  box-shadow: 0 30px 90px rgba(0,0,0,.52);
}
.flyer-lightbox::backdrop { background: rgba(0,0,0,.82); }
.flyer-lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.flyer-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px 12px 18px;
  background: #102f2d;
}
.flyer-lightbox-title { margin: 0; font-size: clamp(1rem, 2.5vw, 1.25rem); font-weight: 900; }
.flyer-lightbox-actions { display: flex; gap: 8px; }
.flyer-lightbox-action {
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 10px;
  background: #fff;
  color: #102f2d;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.flyer-lightbox-stage {
  min-height: 0;
  overflow: auto;
  display: grid;
  place-items: start center;
  padding: 18px;
  background: #161616;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y pinch-zoom;
}
.flyer-lightbox-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 110px);
  display: block;
  object-fit: contain;
  background: #fff;
}
.flyer-lightbox.is-original-size .flyer-lightbox-stage { place-items: start center; }
.flyer-lightbox.is-original-size .flyer-lightbox-image { width: auto; max-width: none; max-height: none; }
body.has-flyer-lightbox { overflow: hidden; }

@media (max-width: 640px) {
  .flyer-expand-hint { right: 10px; bottom: 10px; padding: 8px 11px; font-size: .88rem; }
  .flyer-lightbox { width: 100vw; height: 100dvh; border-radius: 0; }
  .flyer-lightbox-header { align-items: flex-start; padding: 10px 10px 10px 14px; }
  .flyer-lightbox-title { padding-top: 10px; }
  .flyer-lightbox-actions { flex-shrink: 0; }
  .flyer-lightbox-action { min-height: 46px; padding-inline: 11px; }
  .flyer-lightbox-stage { padding: 10px; }
  .flyer-lightbox-image { max-height: calc(100dvh - 84px); }
}
