.bath-references {padding:clamp(56px,6vw,88px) 0;background:var(--ivory)}
.bath-references .section-title em {color:var(--blue);}
.bath-references > .wrap {width:calc(100% - 2 * var(--header-x));max-width:1120px}
.bath-gallery {position:relative;margin-top:32px}
.bath-gallery-stage {min-width:0}
.is-enhanced.bath-gallery {display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:stretch}
.bath-project {min-width:0;margin-bottom:36px;scroll-margin-top:96px}
.bath-gallery.is-enhanced .bath-project {margin:0}
.bath-project-frame {position:relative;height:clamp(380px,58svh,560px);isolation:isolate;overflow:hidden;overflow:clip;border-radius:18px;background:#d8d3ca}
.bath-gallery-backdrop {position:absolute;inset:-30px;z-index:-1;width:calc(100% + 60px);max-width:none;height:calc(100% + 60px);object-fit:cover;filter:blur(24px) brightness(.7)}
.bath-project-frame::after {content:"";position:absolute;inset:45% 0 0;z-index:0;pointer-events:none;background:linear-gradient(transparent,rgba(4,17,28,.72))}
.bath-gallery-image {position:absolute;inset:0;display:block;height:100%;touch-action:pan-y;cursor:zoom-in}
.bath-gallery-image > img {display:block;width:100%;height:100%;object-fit:contain}
.bath-gallery-zoom {position:absolute;top:16px;right:16px;display:grid;place-items:center;width:40px;height:40px;border:1px solid #ffffff60;border-radius:50%;background:#071a2c70;color:white;transition:opacity .2s,background .2s}
.bath-gallery-zoom svg {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.bath-project-info {position:absolute;bottom:100px;left:22px;z-index:2;max-width:calc(100% - 44px);color:white}
.bath-project-info summary {list-style:none;cursor:pointer}
.bath-project-info summary::-webkit-details-marker {display:none}
.bath-project-client {display:block;font-size:11px;color:#ffffffcc;margin-bottom:5px}
.bath-project-info h3 {display:inline;text-wrap:balance}
.bath-info-arrow {display:inline-block;font-size:15px;margin-left:5px;transition:transform .2s}
.bath-project-info summary:hover h3 {text-decoration:underline;text-underline-offset:4px}
.bath-project-info[open] {padding:16px;left:6px;bottom:84px;max-width:min(440px,calc(100% - 12px));border:1px solid #ffffff33;border-radius:12px;background:#071a2cf2;box-shadow:0 8px 32px #0003}
.bath-project-info > p {font-size:13px;line-height:1.65;color:#ffffffd9;margin-top:12px;max-height:150px;overflow-y:auto}
.is-single-image .bath-project-info {bottom:24px}
.bath-gallery-controls {position:relative;display:flex;align-items:center;flex-shrink:0;gap:2px;height:54px;padding-right:7px;color:white}
.bath-gallery button {display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:white;color:var(--blue);font:inherit;cursor:pointer}
.bath-gallery-controls button {width:32px;height:40px;border:0;border-radius:7px;background:transparent;color:white;font-size:18px}
.bath-gallery-controls [data-bath-count] {min-width:38px;text-align:center;font-size:10px;font-variant-numeric:tabular-nums}
.bath-gallery button:disabled {opacity:.3;cursor:default}
.bath-gallery button:hover:not(:disabled) {background:var(--blue);color:white}
.bath-gallery-toolbar {position:absolute;left:14px;bottom:12px;z-index:3;display:flex;align-items:end;width:max-content;max-width:calc(100% - 28px)}
.bath-gallery-toolbar::before {content:"";position:absolute;inset:auto 0 0;height:54px;border:1px solid #ffffff40;border-radius:14px;background:#071a2c70;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.bath-gallery-thumbs {min-width:0;max-width:480px}
.bath-thumb-viewport {position:relative;max-width:100%;padding:42px 34px 5px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;mask-image:linear-gradient(90deg,transparent,#000 16px,#000 calc(100% - 16px),transparent)}
.bath-thumb-viewport::-webkit-scrollbar {display:none}
.bath-thumb-track {position:relative;display:flex;width:max-content;gap:0}
.bath-gallery-thumbs a {position:relative;display:grid;place-items:center;flex:0 0 42px;width:42px;height:44px;border-radius:6px}
.bath-gallery-thumbs img {display:block;width:30px;height:34px;border:1px solid #ffffff99;border-radius:5px;object-fit:cover;filter:grayscale(1);opacity:.8;transform-origin:center bottom;box-shadow:0 2px 5px #0003}
.bath-gallery-thumbs [aria-current]::after {content:"";position:absolute;left:calc(50% - 2px);bottom:0;width:4px;height:4px;border-radius:50%;background:var(--accent)}
.bath-gallery-thumbs [aria-current] img {border-color:var(--accent);opacity:1}
.bath-project-selection {min-width:0;margin-top:24px}
.bath-gallery.is-enhanced .bath-project-selection {margin:0}
.bath-selection-heading {display:flex;justify-content:space-between;gap:16px;margin:0 0 12px;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.bath-project-list {display:grid;gap:5px}
.bath-project-list > a {display:grid;grid-template-columns:58px minmax(0,1fr);gap:12px;align-items:center;padding:7px;border:1px solid transparent;border-radius:12px;transition:background .2s,border-color .2s}
.bath-project-list > a:hover {background:#ffffff80}
.bath-project-list > [aria-current] {background:white;border-color:#0b5b9d40}
.bath-project-list img {width:58px;height:58px;object-fit:cover;border-radius:7px}
.bath-project-list strong {display:block;margin:2px 0;font-size:12px;line-height:1.35;font-weight:650;color:var(--blue-ink)}
.bath-selection-client {display:block;font-size:10px;line-height:1.4;color:var(--blue)}
.bath-selection-count {display:block;font-size:10px;color:var(--muted)}
.bath-gallery :is(a,button,summary):focus-visible {outline:3px solid var(--accent);outline-offset:3px}
.bath-lightbox {position:fixed;inset:0;width:min(1440px,calc(100vw - 40px));height:calc(100dvh - 40px);max-width:none;max-height:none;margin:auto;padding:0;border:0;border-radius:16px;background:#071a2c;color:white}
.bath-lightbox[open] {display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.bath-lightbox::backdrop {background:#020d17eb;backdrop-filter:blur(10px)}
.bath-lightbox-top,.bath-lightbox-bottom {display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 24px}
.bath-lightbox button {flex-shrink:0;background:#ffffff12;border-color:#ffffff40;color:white;font-size:22px}
.bath-lightbox-image {min-height:0;padding:0 24px;touch-action:pan-y}
.bath-lightbox-image img {display:block;width:100%;height:100%;object-fit:contain}
.bath-lightbox-bottom {justify-content:center;font-size:13px}
@media(min-width:901px){
 .bath-gallery.is-enhanced .bath-gallery-stage {position:relative;min-height:520px}
 .bath-gallery.is-enhanced .bath-project {position:absolute;inset:0}
 .bath-gallery.is-enhanced .bath-project-frame {height:100%}
 .bath-gallery.is-enhanced .bath-project-selection {max-height:760px;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#0b5b9d40 transparent}
}
@media(hover:hover) and (pointer:fine){
 .bath-gallery-zoom {opacity:0}
 .bath-project-frame:hover .bath-gallery-zoom,.bath-gallery-image:focus-visible .bath-gallery-zoom {opacity:1}
}
@media(max-width:900px){
 .is-enhanced.bath-gallery {grid-template-columns:minmax(0,1fr);gap:24px}
 .bath-project-list {grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px}
}
@media(max-width:760px){
 .bath-gallery {margin-top:24px}
 .bath-project-frame {height:clamp(360px,60svh,440px)}
 .bath-gallery-zoom {top:12px;right:12px;width:44px;height:44px}
 .bath-gallery-controls button {width:44px;height:44px}
 .bath-gallery-thumbs a {flex-basis:44px;width:44px}
 .bath-project-list strong {font-size:14px}
 .bath-selection-client,.bath-selection-count {font-size:12px}
 .bath-project-info {left:18px;bottom:100px;max-width:calc(100% - 36px)}
 .bath-project-info[open] {left:6px;bottom:84px;max-width:calc(100% - 12px)}
 .bath-gallery-toolbar {left:12px;max-width:calc(100% - 24px)}
 .bath-thumb-viewport {padding-right:24px;padding-left:24px}
 .bath-lightbox {width:100vw;height:100dvh;border-radius:0}
 .bath-lightbox-top,.bath-lightbox-bottom {padding:12px 16px}
 .bath-lightbox-image {padding:0}
}
@media(max-width:480px){.bath-project-list {grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.bath-project-list > a,.bath-info-arrow,.bath-gallery-zoom {transition:none}.bath-gallery-thumbs a:is(:hover,:focus-visible) img {filter:grayscale(0)}}
