/* Show complete desktop photos at a generous size; keep arrows over images on every screen. */
 .detail-gallery .gallery-stage .gallery-actions{position:absolute;inset:50% 1.25rem auto;transform:translateY(-50%);display:flex;justify-content:space-between;flex-wrap:nowrap;margin:0;z-index:2;pointer-events:none}
 .detail-gallery .gallery-stage .gallery-actions button{width:52px;height:52px;padding:0;display:grid;place-items:center;border:1px solid #c5cfbdb3;border-radius:50%;background:#fffefaf2;color:#243c2b;box-shadow:0 2px 12px #172a2426;cursor:pointer;pointer-events:auto}
 .detail-gallery .gallery-stage .gallery-actions button:hover{background:#fffefa}
 .detail-gallery .gallery-stage .gallery-actions button:focus-visible{outline:3px solid #243c2b;outline-offset:4px}
 .detail-gallery .gallery-stage .gallery-actions button:disabled{opacity:.4;cursor:default}
@media(min-width:761px){
 .detail-gallery{background:#f3f4ed}
 .detail-gallery .gallery-stage{height:min(720px,calc(100svh - 115px));width:min(100%,1080px);min-height:0;aspect-ratio:auto}
 .detail-gallery .gallery-slide img{object-fit:contain;background:#f3f4ed}
 .detail-gallery .gallery-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.5rem 1rem;padding:.75rem var(--gutter)}
 .detail-gallery .gallery-categories{grid-column:1;grid-row:1;flex-wrap:nowrap;min-width:0;gap:.5rem}
 .detail-gallery .gallery-categories button{white-space:nowrap;min-height:44px}
 .detail-gallery .gallery-categories>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .detail-gallery .gallery-actions button{min-width:44px;min-height:44px}
 .detail-gallery .gallery-thumbs{grid-column:1/-1;grid-row:2;min-width:0;width:100%;margin:0;padding:0 0 4px}
 .detail-gallery .gallery-thumb{height:90px;min-height:90px;padding:4px}
 .detail-gallery .gallery-thumb img{height:50px;min-height:50px}
 .detail-gallery .gallery-thumb span{font-size:.68rem;line-height:1.25;margin:4px 0 0}
}
@media(max-width:760px){
 .detail-gallery .gallery-stage .gallery-actions{left:.75rem;right:.75rem;gap:0}
 .detail-gallery .gallery-stage .gallery-actions button{width:44px;height:44px;min-width:44px;min-height:44px}
}

/* Explicit slide bounds prevent intrinsic image widths from expanding the track. */
.detail-gallery .gallery-stage{isolation:isolate}
.detail-gallery .gallery-stage>.gallery-track{width:100%;height:100%;min-width:0;position:relative;z-index:0}
.detail-gallery .gallery-track>.gallery-slide{box-sizing:border-box;flex:0 0 100%;width:100%;min-width:0;max-width:100%;height:100%;min-height:0}
.detail-gallery .gallery-stage>.gallery-actions{z-index:5;visibility:visible}
.detail-gallery .gallery-stage>.gallery-actions button{flex:0 0 auto;visibility:visible}
@media(min-width:761px){
 .detail-gallery .gallery-track>.gallery-slide{display:flex;align-items:center;justify-content:center}
 .detail-gallery .gallery-track>.gallery-slide>img{display:block;position:static;width:auto;height:auto;max-width:100%;max-height:100%;min-width:0;min-height:0;object-fit:contain;object-position:center;transform:none;margin:auto}
}
