/* Product lightbox — builds on the theme's own .swiper styles in main.min.css
   (85% white overlay, close.svg button); this file only makes it a fixed,
   full-window overlay and lays out the caption and photos. */
.swiper.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    z-index: 1000;
}
.swiper.lightbox.is-open {
    display: block;
}
html.lightbox-open {
    overflow: hidden;
}
.lightbox-caption {
    left: 0;
    padding: 15px 80px 0 20px;
    position: absolute;
    top: 0;
    z-index: 2;
}
.lightbox-caption h2 {
    margin: 0;
}
.lightbox-caption p {
    margin: .25em 0 0;
}
.lightbox .swiper-wrapper {
    height: 100%;
}
.lightbox .swiper-slide {
    align-items: center;
    display: flex;
    justify-content: center;
    height: 100%;
    padding: 100px 60px 50px;
}
.lightbox .swiper-slide img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.lightbox .swiper-button-close {
    z-index: 2;
}
/* Swiper gives disabled arrows pointer-events:none, so a click falls through to the
   slide behind and would close the lightbox. Let the disabled arrow catch it instead. */
.lightbox .swiper-button-disabled {
    cursor: default;
    pointer-events: auto;
}
