.gallery-section{border-top:1px solid var(--line)}
.gallery-section .section-heading{grid-template-columns:1.1fr .9fr;align-items:end}
.gallery-section h2{max-width:620px}
.gallery-filters{display:flex;gap:28px;overflow-x:auto;border-bottom:1px solid var(--line);scrollbar-width:thin;padding-bottom:0;margin-bottom:22px}
.gallery-filters button{flex-shrink:0;background:none;border:0;border-bottom:2px solid transparent;padding:14px 0;font-size:13px;display:flex;align-items:center;gap:8px;white-space:nowrap}
.gallery-filters button[aria-pressed=true]{border-color:var(--teal);font-weight:650}
.gallery-filters button>span{font-size:10px;color:var(--muted);background:var(--soft);padding:0 5px;border-radius:3px;min-width:19px;text-align:center}
.gallery-toolbar{display:flex;justify-content:space-between;gap:25px;align-items:center;margin-bottom:25px;font-size:12px}
.gallery-toolbar>span:last-child{color:var(--muted);font-size:11px}
.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:34px 24px}
.case-card{min-width:0;border-bottom:1px solid var(--line);padding-bottom:24px}
.case-photo{position:relative;display:grid;padding:0;border:0;width:100%;aspect-ratio:1.35;background:#edf1ef;border-radius:6px;overflow:hidden;isolation:isolate}
.case-photo.pair{grid-template-columns:1fr 1fr;gap:2px}
.case-photo>span:not(.case-expand){min-width:0;min-height:0;position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center}
.case-photo img{width:100%;height:100%;object-fit:contain}
.case-photo b{position:absolute;left:10px;bottom:10px;background:rgba(255,255,255,.94);padding:3px 8px;font-size:10px;font-weight:600;border-radius:3px}
.case-expand{position:absolute;right:12px;top:12px;display:grid;place-items:center;width:34px;height:34px;border-radius:4px;background:#ffffffed;transition:background .2s,color .2s}
.case-expand svg{width:16px;height:16px}.case-photo:hover .case-expand{background:var(--teal);color:white}
.case-meta{display:flex;gap:18px;justify-content:space-between;padding-top:18px}
.case-meta>div{min-width:0}.case-meta p{font-size:10px;margin:0 0 7px;color:var(--blue)}
.case-meta h3{font-size:20px;line-height:1.3;overflow-wrap:anywhere}.case-meta h3 button{font:inherit;background:none;border:0;padding:0;text-align:left}
.case-meta small{display:block;font-size:11px;color:var(--muted);margin-top:8px}.case-featured svg{width:16px;height:16px;color:var(--coral)}
.gallery-bottom{display:flex;flex-direction:column;align-items:center;gap:28px;margin-top:36px}
.gallery-bottom>p{max-width:700px;text-align:center;margin:0;font-size:11px}
.gallery-empty{padding:48px 0;display:grid;grid-template-columns:64px 1fr auto;align-items:center;gap:28px;border-block:1px solid var(--line);background:transparent}
.gallery-empty>svg{width:42px;height:42px;color:var(--coral);stroke-width:1}
.gallery-empty h3{font-size:24px;margin-bottom:10px}.gallery-empty p{font-size:13px;max-width:620px;margin:0}.gallery-empty .text-link{white-space:nowrap;font-size:12px}
.gallery-feedback{padding:50px 20px;text-align:center;background:var(--soft);font-size:13px}.gallery-feedback>p{margin:0 0 16px}
.gallery-loading{min-height:280px;display:grid;align-content:center;justify-items:center;gap:15px;background:#f5f7f5;color:var(--muted);font-size:12px}
.gallery-loading svg{animation:gallery-spin 2s linear infinite}
#galleryDialog{width:min(1200px,calc(100% - 48px));max-height:calc(100svh - 32px);border-radius:7px;overflow:auto}
.gallery-dialog-top{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 24px;border-bottom:1px solid var(--line);font-size:11px;position:sticky;top:0;background:white;z-index:5}
.gallery-dialog-brand{display:flex;align-items:center;gap:16px}.gallery-dialog-brand b{color:var(--blue);font-size:17px}.gallery-dialog-brand>span{color:var(--muted)}
.gallery-dialog-actions{display:flex;align-items:center;gap:18px}.gallery-dialog-actions>.icon-button{width:36px;height:36px;border:0}
.gallery-dialog-body{padding:24px;display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:28px}
.gallery-viewer{min-width:0}.gallery-viewer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px;min-height:39px}
.gallery-viewer-toolbar>span{font-size:11px;color:var(--muted)}
.gallery-modes{display:flex;gap:3px;padding:3px;background:var(--soft);border:1px solid var(--line);border-radius:5px}
.gallery-modes button{display:flex;align-items:center;justify-content:center;gap:7px;border:0;background:transparent;padding:6px 9px;min-height:30px;font-size:11px;border-radius:3px}
.gallery-modes button[aria-pressed=true]{background:white;box-shadow:0 1px 3px #163e3a1a;color:var(--teal)}.gallery-modes svg{width:15px;height:15px}
.gallery-stage{position:relative;height:min(60svh,560px);min-height:280px;background:#edf1ef;overflow:hidden;border-radius:4px;isolation:isolate}
.gallery-stage.side{display:grid;grid-template-columns:1fr 1fr;gap:2px;background:var(--line)}
.gallery-stage>div:not(.comparison-line){min-width:0;min-height:0;background:#edf1ef;position:relative}
.gallery-stage img{width:100%;height:100%;object-fit:contain}
.stage-label{position:absolute;bottom:16px;left:16px;background:#fffffff0;padding:5px 11px;font-size:11px;border-radius:3px}
.gallery-stage.compare>.gallery-before,.gallery-stage.compare>.gallery-after{position:absolute;inset:0}
.gallery-stage.compare>.gallery-before{z-index:2;clip-path:inset(0 50% 0 0)}
.gallery-stage.compare>.gallery-after .stage-label{left:auto;right:16px}
.comparison-line{position:absolute;top:0;bottom:0;left:50%;width:2px;background:white;z-index:3;pointer-events:none;box-shadow:0 0 4px #0004}
.comparison-line>span{display:grid;place-items:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:44px;height:44px;border-radius:50%;background:white;color:var(--teal);box-shadow:0 2px 12px #0002}
.gallery-stage input[type=range]{position:absolute;inset:0;z-index:4;width:100%;height:100%;margin:0;padding:0;cursor:ew-resize;opacity:0;touch-action:pan-y}
.gallery-stage:has(input:focus-visible){outline:3px solid #369fc4;outline-offset:3px}
.gallery-case-info{padding-top:54px;display:flex;align-items:start;flex-direction:column;gap:18px}
.gallery-case-info .eyebrow{margin:0;font-size:10px}.gallery-case-info h2{font-size:27px;line-height:1.2;overflow-wrap:anywhere}
.gallery-case-info p{font-size:12px;margin:0;white-space:pre-line;overflow-wrap:anywhere}
.gallery-case-info .gallery-time{display:flex;gap:9px;align-items:center;border-block:1px solid var(--line);padding-block:16px;width:100%}.gallery-time svg{width:17px;height:17px;color:var(--coral)}
.gallery-case-info .gallery-disclaimer{font-size:11px;margin-top:auto;padding-top:8px}.gallery-case-info .button{width:100%;font-size:12px;gap:10px;padding:13px}
.gallery-dialog-bottom{padding:0 24px 22px;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:11px;color:var(--muted)}
.gallery-dialog-bottom>div{display:flex;gap:8px}.gallery-dialog-bottom .icon-button{width:42px;height:42px}.gallery-dialog-bottom button:disabled{opacity:.3}
@keyframes gallery-spin{to{transform:rotate(360deg)}}
@media(max-width:1000px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-dialog-body{grid-template-columns:minmax(0,1fr) 220px;gap:20px}.gallery-case-info h2{font-size:24px}.gallery-empty{grid-template-columns:48px 1fr}.gallery-empty .text-link{grid-column:2;justify-self:start}}
@media(max-width:760px){.gallery-section .section-heading{grid-template-columns:1fr;gap:20px}.gallery-dialog-body{grid-template-columns:1fr;padding:16px;gap:20px}.gallery-case-info{padding:0;gap:12px}.gallery-case-info h2{font-size:25px}.gallery-stage{height:47svh;min-height:250px}.gallery-case-info .gallery-time{padding-block:12px}.gallery-case-info .gallery-disclaimer{margin:0;padding-top:0}.gallery-dialog-top{padding:12px 16px}.gallery-dialog-bottom{padding:0 16px 16px}.gallery-dialog-brand>span{display:none}.gallery-empty h3{font-size:21px}}
@media(max-width:540px){.gallery-grid{grid-template-columns:1fr;gap:28px}.case-photo{aspect-ratio:1.3}.gallery-filters{gap:22px}.gallery-filters button{font-size:12px}.gallery-toolbar>span:last-child{display:none}.gallery-empty{gap:16px;grid-template-columns:35px 1fr;padding-block:30px}.gallery-empty>svg{width:30px;height:30px}.gallery-empty h3{font-size:20px}.gallery-empty p{font-size:12px}#galleryDialog{width:calc(100% - 16px);max-height:calc(100svh - 16px)}.gallery-dialog-actions{gap:10px}.gallery-viewer-toolbar{flex-wrap:wrap}.gallery-stage{height:41svh;min-height:245px}.stage-label{left:8px;bottom:8px;font-size:10px;padding:3px 8px}.gallery-stage.compare>.gallery-after .stage-label{right:8px}.gallery-modes button{font-size:11px}.gallery-case-info h2{font-size:23px}}
