/* ROSKROV-06B: controlled initial display size for product images.
   Prevent tall product photos from occupying the entire screen.
   All selectors are scoped to GLightbox and do not change product card images. */
.glightbox-container { z-index: 60000 !important; }
.glightbox-container .gslide-image img {
  box-sizing: border-box;
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: min(88vw, 900px) !important;
  max-height: 78vh !important;
  object-fit: contain !important;
  margin: auto !important;
}
@media (max-width: 640px) {
  .glightbox-container .gslide-image img {
    max-width: 92vw !important;
    max-height: 72vh !important;
  }
}

/* ROSKROV-06: Video modal; independent of third-party video player/CDN */
.roskrov-video-modal { position: fixed; inset: 0; z-index: 20000; background: rgba(0,0,0,.91); display: flex; justify-content: center; align-items: center; padding: 18px; box-sizing: border-box; }
.roskrov-video-modal__inner { position: relative; width: min(1100px, 100%); max-height: 95vh; aspect-ratio: 16/9; }
.roskrov-video-modal__media { width: 100%; height: 100%; display: block; background: #000; border: 0; }
.roskrov-video-modal__close { position: absolute; top: -15px; right: -13px; width: 37px; height: 37px; border: 0; border-radius: 50%; background: #e21c2a; color: white; font: 30px/35px Arial,sans-serif; cursor: pointer; z-index: 2; }
.roskrov-video-modal__close:focus-visible { outline: 3px solid white; outline-offset: 2px; }
@media (max-width: 640px) { .roskrov-video-modal { padding: 12px; } .roskrov-video-modal__close { right: -5px; top: -33px; } }
