/* r244: fixed insets follow the visible viewport even when html uses zoom. */
.agroProductDetail .productDetails-images.opened-gallery {
position: fixed;
inset: 0;
width: auto;
height: auto;
min-width: 0;
min-height: 0;
max-width: none;
max-height: none;
margin: 0;
padding: 68px 16px 16px;
box-sizing: border-box;
overflow: hidden;
background: #fff;
z-index: 10000;
}
.agroProductDetail .opened-gallery .main-gallery-js {
width: 100%;
height: 100%;
min-width: 0;
min-height: 0;
margin: 0;
}
.agroProductDetail .opened-gallery .main-gallery-js > .swiper-wrapper,
.agroProductDetail .opened-gallery .main-gallery-js .swiper-slide {
height: 100% !important;
}
.agroProductDetail .opened-gallery .main-gallery-js .swiper-slide {
width: 100% !important;
}
.agroProductDetail .opened-gallery .main-gallery-js .swiper-slide img {
max-width: 100%;
max-height: 100% !important;
object-fit: contain;
}
.agroProductDetail .agroGalleryClose { display: none; }
.agroProductDetail .productDetails-images.opened-gallery .agroGalleryClose {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
position: absolute;
top: max(12px, env(safe-area-inset-top));
right: max(16px, env(safe-area-inset-right));
z-index: 10001;
width: auto;
height: auto;
min-height: 44px;
padding: 8px 16px;
border: 1px solid #cbd9d0;
border-radius: 8px;
background: #fff;
color: #123c24;
font-family: inherit;
font-size: 16px;
font-weight: 600;
line-height: 1.4;
cursor: pointer;
}
.agroProductDetail .agroGalleryClose svg {
display: block;
flex: 0 0 18px;
width: 18px;
height: 18px;
fill: currentColor;
}
.agroProductDetail .agroGalleryClose span {
display: block;
white-space: nowrap;
}
/* r247: enlarged product photos retain their original color and opacity. */
.agroProductDetail .productDetails-images.opened-gallery .main-gallery-js .swiper-slide img {
filter: none !important;
opacity: 1 !important;
transition: none !important;
}
.agroProductDetail .agroGalleryClose:focus-visible { outline: 3px solid #087640; outline-offset: 2px; }