/* Consistent multi-image product galleries, including native full-screen detail. */
.product-gallery{width:100%;min-width:0;max-width:760px;align-self:start}
.gallery-figure{margin:0}.gallery-stage{position:relative;width:100%;aspect-ratio:4/3;display:grid;place-items:center;overflow:hidden;border:1px solid #e0e7ec;background:#fff;padding:16px;cursor:zoom-in;border-radius:4px}
.gallery-stage picture{position:absolute;inset:16px;width:auto;height:auto;display:block;min-width:0;min-height:0}
.gallery-stage .gallery-main-image,.product-detail .product-gallery .gallery-main-image.detail-photo{position:absolute;inset:0;display:block;width:100%;height:100%;min-height:0;max-height:none;object-fit:contain;background:#fff;margin:0}
.gallery-enlarge{position:absolute;right:14px;bottom:14px;display:inline-flex;align-items:center;gap:7px;padding:9px 12px;min-height:40px;border:1px solid #d7e4ed;border-radius:3px;background:#fffffff2;color:#22516e;font-size:14px;line-height:1.4;font-weight:700;box-shadow:0 2px 10px #17344707}
.gallery-enlarge svg,.gallery-close svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.gallery-stage:hover .gallery-enlarge{border-color:#88bfdc;background:#edf8fe}
.gallery-caption{display:flex;flex-direction:column;gap:4px;padding:13px 0 0;font-size:14px;line-height:1.6;color:#526775;min-height:42px}
.gallery-kind{display:inline-block;font-size:13px;line-height:1.5;color:#6b7c88;font-weight:500}
.gallery-strip{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin;padding:14px 3px 9px;margin:0 -3px;overscroll-behavior-inline:contain}
.gallery-thumb{position:relative;flex:0 0 92px;aspect-ratio:1/1;min-height:72px;border:1px solid #d8e2e9;background:#fff;padding:6px;border-radius:3px;cursor:pointer;scroll-snap-align:start;transition:border-color .18s,box-shadow .18s}
.gallery-thumb img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.gallery-thumb:hover{border-color:#7bb7d6}.gallery-thumb[aria-pressed="true"]{border:2px solid #0086c5;padding:5px;box-shadow:0 0 0 2px #00a0ea13}
.gallery-position{font-size:14px!important;line-height:1.5;color:#5f7584!important;margin:0!important;padding:1px 0 0;min-height:23px}
.gallery-image-error{position:absolute;inset:24px;display:grid;place-items:center;background:#f4f8fb;color:#526b7c;font-size:16px;line-height:1.6;padding:30px;cursor:pointer}
.product-gallery [hidden]{display:none!important}.product-gallery button:focus-visible,.product-gallery [tabindex]:focus-visible{outline:3px solid #00a0ea;outline-offset:4px}
.gallery-dialog{border:0;border-radius:4px;padding:0;width:calc(100% - 48px);max-width:1440px;max-height:94dvh;overflow:auto;overscroll-behavior:contain;background:#fff;color:#18212b;box-shadow:0 24px 100px #0005}
.gallery-dialog::backdrop{background:#0b1a2bd4;backdrop-filter:blur(6px)}
.gallery-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:30px;padding:24px 28px 18px;border-bottom:1px solid #e0e8ee}
.gallery-dialog-eyebrow{font-size:12px;line-height:1.5;letter-spacing:.08em;text-transform:uppercase;font-weight:800;color:#0078b1;margin:0 0 8px}
.gallery-dialog-head h2{font-size:clamp(21px,2.1vw,30px);font-weight:600;line-height:1.3;letter-spacing:-.025em;max-width:1100px;margin:0}
.gallery-close{width:44px;height:44px;display:grid;place-items:center;flex-shrink:0;border:1px solid #d5e0e8;border-radius:3px;background:#f4f7f9;color:#263e4f;cursor:pointer;padding:0}
.gallery-close:hover{background:#e8f5fc}.gallery-close svg{width:23px;height:23px}
.gallery-dialog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 28px;border-bottom:1px solid #e0e8ee;flex-wrap:wrap;background:#fbfcfd}
.gallery-browse{display:flex;align-items:center;gap:18px}.gallery-browse>span{font-size:14px;line-height:1.5;color:#607787;white-space:nowrap;min-width:40px;text-align:center}
.gallery-dialog-toolbar button{font:700 14px/1.5 Mulish,Arial,sans-serif;min-height:44px;padding:10px 15px;border:1px solid #c6d9e5;border-radius:3px;background:#fff;color:#13638e;cursor:pointer}
.gallery-dialog-toolbar button:hover:not(:disabled){background:#edf8fe;border-color:#82b9d8}.gallery-dialog-toolbar button:disabled{opacity:.45;cursor:default}
.gallery-dialog-toolbar [data-gallery-zoom][aria-pressed="true"]{background:#e7f4fc;border-color:#7fb9d8;color:#005d8d}
.gallery-dialog-viewport{display:grid;align-items:center;min-height:240px;max-height:64dvh;overflow:auto;background:#f1f4f6;padding:18px;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom}
.gallery-dialog-image{display:block;margin:auto;max-width:100%;max-height:60dvh;width:auto;height:auto;object-fit:contain;background:#fff}
.gallery-dialog-viewport.is-zoomed{display:block}.gallery-dialog-viewport.is-zoomed .gallery-dialog-image{max-width:none;max-height:none;width:var(--gallery-native-width);height:auto;margin:0 auto}
.gallery-dialog-error{font-size:16px;line-height:1.6;color:#526b7c;max-width:600px;padding:30px;margin:auto;text-align:center}
.gallery-dialog-caption{padding:17px 28px 22px;border-top:1px solid #e0e8ee}
.gallery-dialog-caption>[data-gallery-full-caption]{font-size:16px;line-height:1.6;margin:0 0 3px;color:#415d70;max-width:none}
.gallery-dialog-caption .gallery-key-hint{font-size:13px;line-height:1.55;color:#748793;margin:12px 0 0;max-width:none}
@media(max-width:900px){.gallery-thumb{flex-basis:80px}.gallery-stage{padding:12px}}
@media(max-width:600px){.product-gallery{max-width:none}.gallery-stage{padding:10px;border-radius:3px}.gallery-enlarge{right:9px;bottom:9px;padding:8px 10px;font-size:14px}.gallery-thumb{flex-basis:76px;min-height:76px}.gallery-caption{padding-top:11px;font-size:14px}.gallery-strip{gap:8px;padding-top:12px}.gallery-dialog{width:calc(100% - 16px);max-height:96dvh}.gallery-dialog-head{padding:18px;gap:15px}.gallery-dialog-head h2{font-size:21px}.gallery-dialog-eyebrow{font-size:11px}.gallery-dialog-toolbar{padding:12px 18px;gap:10px}.gallery-browse{gap:10px;width:100%;justify-content:space-between}.gallery-dialog-toolbar button{padding:9px 12px}.gallery-dialog-toolbar>[data-gallery-zoom]{margin-left:auto}.gallery-dialog-viewport{padding:10px;min-height:200px;max-height:56dvh}.gallery-dialog-image{max-height:52dvh}.gallery-dialog-caption{padding:15px 18px 19px}.gallery-dialog-caption>[data-gallery-full-caption]{font-size:16px}.gallery-image-error{inset:12px;padding:20px}}
@media(prefers-reduced-motion:reduce){.gallery-thumb{transition:none}.gallery-strip{scroll-behavior:auto}}

.solar-product-grid .gallery-stage{aspect-ratio:16/11}

@media(max-width:900px){.gallery-stage picture{inset:12px}}
@media(max-width:600px){.gallery-stage picture{inset:10px}}
