/* Explicit selectors override WooCommerce's older fixed image heights. */
.woocommerce .wp-single div.product div.images .woocommerce-product-gallery__image,
.woocommerce .wp-single div.product div.images .woocommerce-product-gallery__image--placeholder {
 height:auto;min-height:0;align-self:start;
}
.woocommerce .wp-single div.product div.images .woocommerce-product-gallery__image > .pg-gallery-open,
.woocommerce .wp-single div.product div.images .woocommerce-product-gallery__image > a,
.woocommerce .wp-single div.product div.images .woocommerce-product-gallery__image--placeholder {
 position:relative;display:block;width:100%;height:auto;min-height:0;aspect-ratio:auto;
 overflow:visible;padding:0;border:0;background:#fff;cursor:zoom-in;
}
.woocommerce .wp-single div.product div.images .woocommerce-product-gallery__image > .pg-gallery-open > img,
.woocommerce .wp-single div.product div.images .woocommerce-product-gallery__image > a > img,
.woocommerce .wp-single div.product div.images .woocommerce-product-gallery__image--placeholder > img {
 position:static;inset:auto;display:block;width:auto;max-width:100%;height:auto;min-height:0;max-height:none;margin-inline:auto;
 aspect-ratio:auto;object-fit:scale-down;object-position:center;background:#fff;
}
html.pg-product-lightbox-open,html.pg-product-lightbox-open body {overflow:hidden;overscroll-behavior:none}
.pg-product-lightbox {
 position:fixed;inset:16px;width:min(1080px,calc(100vw - 32px));height:calc(100vh - 32px);height:calc(100dvh - 32px);
 max-width:none;max-height:none;margin:auto;padding:0;border:1px solid #e6e9e3;border-radius:3px;
 background:#fff;color:#1d291f;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;
}
.pg-product-lightbox::backdrop {background:#fff}
.pg-product-lightbox__header {
 position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:16px;padding:12px 20px;
 border-bottom:0;background:#fff;
}
.pg-product-lightbox__header h2 {font:16px/1.4 var(--sans);font-weight:500;margin:0}
.pg-product-lightbox__counter {margin-left:auto;font-size:12px;color:#5c685e}
.pg-product-lightbox__control {
 display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;
 padding:10px;border:1px solid #dce3d9;border-radius:50%;background:#fff;color:#1d291f;cursor:pointer;
}
.pg-product-lightbox__control:hover {background:#e5ede2}
.pg-product-lightbox__control:focus-visible {outline:2px solid #486851;outline-offset:3px}
.pg-product-lightbox__list {display:flex;flex-direction:column;gap:16px;width:min(100%,900px);margin:0 auto;padding:16px 20px 24px;background:#fff}
.pg-product-lightbox__item {position:relative;display:block;width:100%;margin:0;padding:0;background:#fff;scroll-margin-top:84px}
.pg-product-lightbox__image {display:block;width:auto;max-width:80%;height:auto;max-height:none;margin-inline:auto;object-fit:contain;background:#fff;user-select:none}
.pg-product-lightbox__caption {margin:8px 0 0;font-size:12px;color:#5c685e;text-align:center}
.pg-product-lightbox__status {margin:8px 0 0;font-size:12px;color:#5c685e;text-align:center}
@media(max-width:600px) {
 .pg-product-lightbox {inset:0;width:100%;height:100vh;height:100dvh;border:0;border-radius:0}
 .pg-product-lightbox__header {gap:8px;padding:8px 10px}
 .pg-product-lightbox__header h2 {font-size:14px}
 .pg-product-lightbox__list {gap:12px;padding:12px 10px 20px}
}
