.photo-gallery{background:#edf4f8;padding-top:85px;padding-bottom:85px;scroll-margin-top:140px}
.gallery-heading{display:grid;grid-template-columns:1fr .8fr;align-items:end;gap:50px;margin-bottom:40px}
.gallery-heading h2{font-size:clamp(38px,4.4vw,65px);line-height:1.08;margin:18px 0 0}
.gallery-heading>p{font-size:16px;line-height:1.85;color:#557086;margin:0}
.gallery-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(245px,.85fr);gap:25px}
.gallery-stage{min-width:0}
.gallery-main{position:relative;display:block;width:100%;height:clamp(320px,40vw,510px);border:1px solid #d3e2eb;background:#fff;overflow:hidden;cursor:zoom-in;padding:22px}
.gallery-main img{width:100%;height:100%;object-fit:contain;transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.gallery-main:hover img{transform:scale(1.025)}
.gallery-open-badge{position:absolute;bottom:18px;right:18px;display:flex;gap:9px;align-items:center;padding:12px 17px;background:#082b45;color:#fff;font:600 14px var(--sans,'DM Sans',sans-serif);border-radius:2px}
.gallery-open-badge svg,.lightbox-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6}
.gallery-current-caption{display:flex;gap:25px;justify-content:space-between;align-items:start;padding:19px 0}
.gallery-current-caption p{font-size:16px;line-height:1.6;color:#284c66;margin:0}
.gallery-current-caption>span{white-space:nowrap;font:600 13px var(--sans,'DM Sans',sans-serif);letter-spacing:.12em;color:#006c84;line-height:1.9}
.gallery-photo-list{display:flex;flex-direction:column;gap:12px}
.gallery-photo-option{display:grid;grid-template-columns:90px 1fr;gap:16px;align-items:center;min-height:98px;background:#f7fafc;padding:10px;border:1px solid #d2e2ec;text-align:left;color:#34576f;cursor:pointer;transition:border-color .25s,background .25s,transform .25s;font:500 15px/1.5 var(--sans,'DM Sans',sans-serif)}
.gallery-photo-option img{width:90px;height:78px;object-fit:contain;background:white}
.gallery-photo-option small{display:block;color:#4a879c;font-size:11px;font-weight:700;letter-spacing:.15em;margin-bottom:5px}
.gallery-photo-option:hover{transform:translateX(-3px);border-color:#55b5c6}
.gallery-photo-option.is-active{background:#d9eef4;border-color:#00a4bb}
.gallery-main:focus-visible,.gallery-photo-option:focus-visible,.lightbox-shell button:focus-visible{outline:3px solid #00b9cb;outline-offset:3px}
.gallery-attributions{border-top:1px solid #cbdce7;padding-top:20px;margin-top:15px;max-width:1000px}
.gallery-attributions summary{cursor:pointer;font-size:14px;color:#446a80;line-height:1.7}
.gallery-attributions ol{padding-left:20px;font-size:13px;line-height:1.8;color:#55758a}
.gallery-attributions li{padding:8px 0}
.gallery-attributions strong,.gallery-attributions li>span{display:block}
.gallery-attributions a{color:#00788f;text-underline-offset:3px}
.photo-detail{display:flex;flex-direction:column;min-width:0;align-items:stretch}
.photo-detail-button{width:100%;position:relative;min-height:380px;padding:30px;background:#fff;border:1px solid #d9e6ed;cursor:zoom-in;overflow:hidden}
.photo-detail-button img{width:100%;max-height:470px;height:100%;object-fit:contain}
.photo-detail-label{position:absolute;bottom:15px;right:15px;background:#082b45;color:white;padding:9px 12px;font-size:11px;font-weight:600;letter-spacing:.08em}
.photo-detail>p{font-size:14px;color:#557086;line-height:1.7;margin:14px 0 0}
.cardtop-photo{padding:0!important;background:#f5f8fa!important;position:relative;overflow:hidden}
.cardtop-photo>img{display:block;width:100%;height:100%;object-fit:contain;padding:16px;transition:transform .6s}
.productcard:hover .cardtop-photo img{transform:scale(1.05)}
.card-photo-label{position:absolute;left:15px;bottom:12px;background:#082b45eb;color:#fff;padding:7px 10px;font-size:10px;font-weight:600;letter-spacing:.06em}
.ttm-gallery-open{overflow:hidden}
.photo-lightbox{border:0;padding:0;color:#fff;background:#061b2b;width:min(1220px,96vw);max-width:96vw;height:min(920px,94dvh);max-height:94dvh;margin:auto;overflow:auto;border-radius:5px;box-shadow:0 25px 100px #0008}
.photo-lightbox::backdrop{background:#03111ae8;backdrop-filter:blur(12px)}
.photo-lightbox[open]{animation:lightbox-in .3s cubic-bezier(.2,.8,.2,1) both}
.photo-lightbox.is-closing{animation:lightbox-out .17s ease both}
@keyframes lightbox-in{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
@keyframes lightbox-out{to{opacity:0;transform:translateY(8px) scale(.99)}}
.lightbox-shell{display:flex;flex-direction:column;height:100%;padding:22px 28px;min-height:440px}
.lightbox-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:18px}
.lightbox-toolbar .eyebrow{color:#81dae6;font-size:12px}
.lightbox-close{display:grid;place-items:center;background:transparent;border:1px solid #7893a7;color:#fff;width:43px;height:43px;cursor:pointer}
.lightbox-view{position:relative;display:flex;justify-content:center;align-items:center;flex:1;min-height:0;overflow:auto;background:#f4f7f9;touch-action:pan-y}
.lightbox-image-button{display:flex;align-items:center;justify-content:center;height:100%;width:100%;min-height:0;padding:20px 65px;cursor:zoom-in;background:transparent;border:0}
.lightbox-image{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.lightbox-prev,.lightbox-next{position:absolute;z-index:2;top:50%;transform:translateY(-50%);border:0;background:#082b45ed;color:#fff;font:400 38px/1 sans-serif;width:45px;height:54px;cursor:pointer}
.lightbox-prev{left:12px}.lightbox-next{right:12px}
.lightbox-caption{display:flex;justify-content:space-between;gap:25px;padding-top:18px;align-items:start}
.lightbox-caption p{font-size:17px;line-height:1.6;color:white;margin:0}
.lightbox-counter{font-size:13px;letter-spacing:.12em;white-space:nowrap;line-height:2;color:#7fdbe4}
.lightbox-footer{display:flex;justify-content:space-between;gap:20px;align-items:start;padding-top:10px;font-size:12px;line-height:1.8;color:#a7bccb}
.lightbox-footer a{color:#a7dfe7;text-underline-offset:3px}
.lightbox-tip{max-width:340px;text-align:right}
.photo-lightbox.is-zoomed .lightbox-image-button{width:180%;height:180%;min-width:180%;min-height:180%;cursor:zoom-out;padding:0}
.photo-lightbox.is-zoomed .lightbox-view{display:block;touch-action:pan-x pan-y}
.photo-lightbox.is-zoomed .lightbox-prev,.photo-lightbox.is-zoomed .lightbox-next{display:none}
.lightbox-loading{display:none;position:absolute;left:50%;top:50%;width:28px;height:28px;margin:-14px;border:2px solid #bed7df;border-top-color:#007f99;border-radius:50%;animation:photo-spin .8s linear infinite;pointer-events:none}
.photo-lightbox.is-loading .lightbox-loading{display:block}
@keyframes photo-spin{to{transform:rotate(360deg)}}
@media(max-width:900px){.gallery-heading{grid-template-columns:1fr;gap:25px}.gallery-layout{grid-template-columns:1fr}.gallery-photo-list{flex-direction:row;overflow-x:auto;padding:4px 2px 12px;scroll-snap-type:x mandatory;overscroll-behavior-x:contain}.gallery-photo-option{min-width:225px;max-width:300px;scroll-snap-align:start}.gallery-photo-option:hover{transform:none}.gallery-main{height:430px}.lightbox-footer{flex-direction:column;gap:5px}.lightbox-tip{text-align:left}}
@media(max-width:600px){.photo-gallery{padding:50px 6%;scroll-margin-top:130px}.gallery-heading h2{font-size:42px}.gallery-heading>p{font-size:15px}.gallery-main{height:340px;padding:14px}.gallery-open-badge{font-size:12px;padding:9px 12px;right:10px;bottom:10px}.gallery-current-caption p{font-size:15px}.gallery-photo-option{min-width:220px;font-size:14px}.photo-detail-button{min-height:310px;padding:20px}.photo-detail-button img{max-height:350px}.photo-lightbox{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.lightbox-shell{padding:16px 12px}.lightbox-image-button{padding:14px 40px}.lightbox-prev,.lightbox-next{width:34px;height:47px;font-size:30px}.lightbox-prev{left:3px}.lightbox-next{right:3px}.lightbox-caption p{font-size:15px}.lightbox-caption{gap:15px}.lightbox-toolbar .eyebrow{font-size:10px}.lightbox-credit{font-size:11px}.lightbox-tip{font-size:11px}}
@media(prefers-reduced-motion:reduce){.photo-lightbox[open],.photo-lightbox.is-closing{animation:none}.gallery-main img,.gallery-photo-option,.cardtop-photo>img{transition:none}}
