/* Art Antalya v2.0.11 — frame-fit hotfix.
   The decorative frame must always wrap the complete artwork; the image may never protrude below it. */
.story-popup .series-lightbox-art {
  min-width: 0 !important;
  min-height: 0 !important;
}

/* v2.0.10 could clamp the outer frame to the grid cell while its image remained taller.
   Let the frame follow the fitted image instead; JS below calculates the exact safe image box. */
.story-popup .series-lightbox-frame {
  width: fit-content !important;
  height: fit-content !important;
  max-height: none !important;
}

.story-popup .series-lightbox-frame img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  /* Safe first-paint fallback for desktop before the precise JS measurement runs. */
  max-height: min(calc(96svh - 304px), 636px) !important;
}

@media (max-width: 1120px) {
  .story-popup .series-lightbox-frame img {
    max-height: min(48svh, 520px) !important;
  }
}

@media (max-width: 760px) {
  .story-popup .series-lightbox-frame img {
    max-width: calc(100vw - 118px) !important;
    max-height: 44svh !important;
  }
}
