.home-gallery{--gallery-height:clamp(250px,27vw,340px);background:#ff6b00;color:#121212;padding:64px 0 48px;overflow:hidden}
.home-gallery .home-gallery-head{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:30px}
.home-gallery .eyebrow{color:#121212;margin-bottom:15px}
.home-gallery h2{font-size:clamp(36px,4.4vw,66px);line-height:1.04;letter-spacing:-.055em;margin:0}
.home-gallery-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.home-gallery button,.home-gallery-dialog button{min-width:46px;min-height:46px;border:1px solid currentColor;border-radius:0;background:transparent;color:inherit;cursor:pointer;font:inherit;font-size:15px;padding:10px 16px}
.home-gallery button:hover{background:#121212;color:#fff}
.home-gallery button:disabled{opacity:.6;cursor:default}
.home-gallery button:focus-visible,.home-gallery a:focus-visible,.home-gallery-dialog button:focus-visible,.home-gallery-track:focus-visible{outline:3px solid #fff;outline-offset:4px}
.home-gallery-track{display:flex;gap:18px;overflow-x:auto;overscroll-behavior-x:contain;padding:8px max(24px,calc((100vw - 1440px)/2)) 20px;scrollbar-width:thin;scrollbar-color:#151515 #ff6b00;touch-action:pan-x pan-y;position:relative}
.home-gallery-card{display:block;flex:0 0 auto;width:clamp(190px,calc(var(--gallery-height) * var(--photo-ratio)),560px);background:#121212;color:#fff;text-decoration:none;border:3px solid #121212;position:relative}
.home-gallery-picture{display:block;width:100%;height:var(--gallery-height);object-fit:contain;background:#121212}
.home-gallery-label{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;min-height:56px;font-size:13px;color:#d4d4cf}
.home-gallery-logo{display:block;width:68px;height:auto;flex:none}
.home-gallery-label .home-gallery-open{font-size:22px;line-height:1;color:#ff6b00}
.home-gallery-note{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-top:14px;font-size:14px;line-height:1.5}
.home-gallery-note p{margin:0}.home-gallery-position{font-variant-numeric:tabular-nums;font-weight:600}
.home-gallery-dialog{color:#fff;background:#121212;border:1px solid #555;padding:0;width:min(1100px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;overflow:auto}
.home-gallery-dialog::backdrop{background:#000d;backdrop-filter:blur(5px)}
.home-gallery-dialog[open]{display:flex;flex-direction:column}
.home-gallery-dialog-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;flex:none}
.home-gallery-dialog-top p{font-size:14px;margin:0;font-variant-numeric:tabular-nums}
.home-gallery-dialog-image{width:100%;height:calc(100dvh - 230px);min-height:120px;object-fit:contain;display:block;background:#090909}
.home-gallery-dialog-bottom{display:flex;align-items:center;gap:20px;padding:12px 20px;flex:none}
.home-gallery-dialog-bottom p{margin:0;flex:1;font-size:14px;line-height:1.4}
.home-gallery-dialog-controls{display:flex;gap:8px;flex:none}
.home-gallery-dialog button:hover{background:#ff6b00;color:#121212}
body.home-gallery-open{overflow:hidden}
@media(max-width:650px){.home-gallery{--gallery-height:270px;padding:38px 0 30px}.home-gallery .home-gallery-head{display:block;margin-bottom:20px}.home-gallery-tools{margin-top:22px}.home-gallery h2{font-size:clamp(33px,8vw,48px)}.home-gallery-track{gap:12px;padding-inline:20px}.home-gallery-card{max-width:calc(100vw - 64px)}.home-gallery-note{gap:6px}.home-gallery-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.home-gallery-dialog-top{padding:10px 12px}.home-gallery-dialog-bottom{padding:10px 12px;gap:12px;flex-wrap:wrap}.home-gallery-dialog-bottom p{flex-basis:calc(100% - 84px)}.home-gallery-dialog-controls{width:100%;justify-content:space-between}.home-gallery-dialog-image{height:calc(100dvh - 255px)}.home-gallery-dialog-controls button{flex:1}}

/* Complete overview and optional full-size slideshow. */
.home-gallery button[hidden]{display:none}
.home-gallery-all .home-gallery-track{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 18px;overflow:visible;max-width:1440px;margin-inline:auto;padding-inline:24px;align-items:start}
.home-gallery-all .home-gallery-card{width:100%;max-width:none;min-width:0}
.home-gallery-all .home-gallery-picture{height:auto;aspect-ratio:var(--photo-ratio);object-fit:contain}
.home-gallery-all .home-gallery-note{margin-top:24px}
.home-gallery-dialog-controls{flex-wrap:wrap}
.home-gallery-dialog-controls [data-gallery-slideshow][aria-pressed="true"]{background:#ff6b00;color:#121212;border-color:#ff6b00}
@media(max-width:1000px){.home-gallery-all .home-gallery-track{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.home-gallery-all .home-gallery-track{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px;padding-inline:20px}.home-gallery-all .home-gallery-label{gap:6px;padding:8px;flex-wrap:wrap}.home-gallery-all .home-gallery-label>span:not(.home-gallery-open){display:none}.home-gallery-all .home-gallery-logo{width:62px}.home-gallery-dialog-controls [data-gallery-slideshow]{flex-basis:100%}.home-gallery-dialog-image{height:calc(100dvh - 315px)}}

/* Individual original R!CK wordmarks on the visible photograph, never in the footer. */
.home-gallery-media,.home-gallery-dialog-media{display:block;position:relative;min-width:0}
.home-gallery-watermark{position:absolute;z-index:1;display:block;pointer-events:none;object-fit:contain;width:40px;height:auto;max-width:none;top:calc(var(--image-top,0px) + var(--image-height,300px)*.025);left:calc(var(--image-left,0px) + var(--image-width,300px)*.025);filter:drop-shadow(0 1px 2px #0009)}
.home-gallery-watermark[data-position$="right"]{left:auto;right:calc(var(--image-left,0px) + var(--image-width,300px)*.025)}
.home-gallery-watermark[data-position^="bottom"]{top:auto;bottom:calc(var(--image-top,0px) + var(--image-height,300px)*.025)}
.home-gallery-watermark[hidden]{display:none}
.home-gallery-dialog-media .home-gallery-watermark{width:48px}
.home-gallery-card{border-width:1px}
.home-gallery-label{padding:8px 12px;min-height:36px;font-size:13px}
.home-gallery-label .home-gallery-open{font-size:14px;line-height:1.2;color:#fff}
.home-gallery-label .home-gallery-open::after{content:' +';color:#ff6b00}
.home-gallery-dialog-bottom p{min-width:0}
@media(max-width:650px){.home-gallery-dialog-bottom p{flex-basis:100%}.home-gallery-all .home-gallery-label{min-height:34px;padding:8px}.home-gallery-all .home-gallery-watermark{width:24px}}

/* Ordered overview: equal frames, complete photographs, fixed logo widths. */
.home-gallery-all .home-gallery-track{align-items:stretch}
.home-gallery-all .home-gallery-media{aspect-ratio:4 / 5}
.home-gallery-all .home-gallery-picture{height:100%;aspect-ratio:auto;object-fit:contain}
.home-gallery-all .home-gallery-label{min-height:40px}

/* Only edited logo corners cover the original photo; subject pixels remain original. */
.gallery-retouch{display:block;position:absolute;pointer-events:none;background-repeat:no-repeat;z-index:0}
.home-gallery-media{overflow:hidden}
.home-gallery-picture{position:relative}
