.detail-gallery{min-width:0;background:#f5f1e8;padding:18px;display:flex;flex-direction:column;gap:12px}.gallery-stage{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;min-height:320px}.gallery-stage>img{width:100%;height:min(52vw,470px);max-height:470px;object-fit:contain;border-radius:15px;background:#fff}.gallery-arrow{width:38px;height:48px;border-radius:12px;background:#fff;color:#193d34;font-size:34px;line-height:1;box-shadow:0 4px 16px #193d3420;z-index:1}.gallery-arrow:hover,.gallery-arrow:focus-visible{background:#d8e9df;transform:translateY(-2px)}.gallery-thumbnails{display:flex;gap:9px;justify-content:center;flex-wrap:wrap}.gallery-thumb{width:68px;height:68px;border:2px solid transparent;border-radius:12px;background:#fff;padding:3px;overflow:hidden}.gallery-thumb[aria-pressed=true]{border-color:#20775d;box-shadow:0 0 0 2px #20775d30}.gallery-thumb img{width:100%;height:100%;object-fit:contain}.gallery-count{text-align:center;font-size:14px;font-weight:800;color:#315947;margin:0}@media(max-width:750px){.detail-gallery{padding:12px}.gallery-stage{grid-template-columns:36px minmax(0,1fr) 36px;min-height:260px}.gallery-stage>img{height:270px}.gallery-arrow{width:35px;height:44px}.gallery-thumb{width:58px;height:58px}}@media(prefers-reduced-motion:reduce){.gallery-arrow{transition:none}}

/* Product photos use the available image area while retaining a square frame. */
.product-open img{object-fit:cover;transform:scale(1.04)}
.product-card:hover .product-open img{transform:scale(1.09)}
.category-photo img{object-fit:contain;padding:0;transform:scale(1.1)}
.category:hover img{transform:scale(1.16)}
.editorial-image img{object-fit:cover}
.hero-photo{width:67%}
.detail-gallery{padding:10px;overflow:hidden}
.gallery-stage{display:block;min-height:0}
.gallery-stage>img{width:100%;height:auto;max-height:none;aspect-ratio:1;object-fit:cover}
.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%)}
.gallery-arrow:hover,.gallery-arrow:focus-visible{transform:translateY(-50%);background:#d8e9df}
#galleryPrev{left:8px}#galleryNext{right:8px}
@media(max-width:750px){.hero-photo{width:66%}.gallery-stage{min-height:0}.gallery-stage>img{height:auto;max-height:none}.detail-gallery{padding:8px}}

/* Let the five newest photos occupy the full square above their thumbnails. */
.recent-gallery{padding:0}
.recent-gallery .gallery-stage{overflow:hidden;border-radius:15px}
.recent-gallery .gallery-stage>img{display:block;border-radius:0}
.recent-gallery .gallery-thumbnails{padding-inline:8px}
.recent-gallery .gallery-count{padding-bottom:8px}
@media(max-width:750px){.recent-gallery{padding:0}}
