/* Separated photographs drift at 13px/s, matching the reference's calm pace. */
.home-gallery{position:relative;z-index:2;padding:36px 0 28px;overflow:hidden}
.gallery-heading{text-align:center;margin:0 auto 18px}
.gallery-heading .eyebrow{font-size:14px;letter-spacing:.16em;margin-bottom:8px}
.gallery-heading h2,.gallery-heading h1{font:500 clamp(24px,2.7vw,35px)/1.6 var(--serif);color:var(--ink);margin:0 0 8px;letter-spacing:.055em;text-wrap:balance}
.home-gallery .gallery-heading h2{font-weight:700}
.gallery-heading>p:not(.eyebrow){font:500 16px/1.9 var(--sans);color:var(--muted);margin:0}
.gallery-belt{overflow-x:auto;scrollbar-width:thin;padding:22px 0 30px}
.gallery-track{display:flex;width:max-content;will-change:transform}
.gallery-set{display:flex;gap:24px;padding-right:24px;flex-shrink:0}
.gallery-frame{position:relative;display:block;flex:none;width:clamp(238px,28vw,360px);aspect-ratio:3/2;border:3px solid #fff;border-radius:22px;overflow:hidden;box-shadow:0 10px 24px #78609420;color:#fff;transition:transform .6s cubic-bezier(.2,.7,.2,1),box-shadow .6s;isolation:isolate}
.gallery-frame img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .8s cubic-bezier(.2,.7,.2,1)}
.gallery-frame>span{position:absolute;inset:auto 0 0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:28px 18px 13px;background:linear-gradient(transparent,#49355b8a);font:14px/1.5 var(--sans);opacity:0;transition:opacity .35s}
.gallery-frame b{font-size:21px;font-weight:400}
.gallery-frame:focus-visible{outline:3px solid #9472b3;outline-offset:4px}
.gallery-ready .gallery-belt{overflow-x:auto;scrollbar-width:none;scroll-behavior:auto;overscroll-behavior-x:contain}
.gallery-ready .gallery-belt::-webkit-scrollbar{display:none}
@media(hover:hover){.gallery-frame:hover{transform:translateY(-4px) scale(1.025);box-shadow:0 16px 29px #78609438;z-index:1}.gallery-frame:hover img{transform:scale(1.085)}.gallery-frame:hover>span{opacity:1}}
.gallery-frame:focus>span{opacity:1}
.gallery-footer{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center}
.gallery-footer>p{font:14px/1.8 var(--sans);color:var(--muted);margin:0}
.gallery-actions{display:flex;align-items:center;justify-content:center;gap:20px;width:100%}
.gallery-actions .gallery-view-button{min-height:54px;min-width:248px;max-width:100%;font-size:15px;gap:22px}
.gallery-static .gallery-clone,html.motion-paused .gallery-clone{display:none}
.gallery-page-main{padding-top:150px;padding-bottom:70px}
.gallery-breadcrumb{display:flex;gap:12px;color:var(--muted);font:14px var(--sans);margin-bottom:35px}
.gallery-page .gallery-heading{max-width:780px;margin-bottom:34px}
.gallery-heading>.gallery-sample-note{font-size:14px;margin-top:16px}
.gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.gallery-grid figure{margin:0;scroll-margin-top:150px;padding:10px;border:1px solid #fff;border-radius:24px;background:linear-gradient(135deg,#ffffffa3,#f8edf6b0);box-shadow:0 12px 30px #78609412}
.gallery-grid img{width:100%;aspect-ratio:3/2;height:auto;object-fit:cover;display:block;border-radius:17px}
.gallery-grid figcaption{display:flex;gap:15px;padding:15px 10px 8px;color:var(--ink);font:16px/1.6 var(--sans)}
.gallery-grid figcaption span{color:var(--text-accent);letter-spacing:.1em}
.gallery-grid figure:last-child{grid-column:1/-1;max-width:760px;width:100%;justify-self:center}
.gallery-page-actions{display:flex;align-items:center;justify-content:center;gap:24px;margin-top:44px}
@media(max-width:600px){.home-gallery{padding:24px 0 12px}.gallery-heading h2{font-size:23px}.gallery-heading>p:not(.eyebrow){font-size:16px}.gallery-set{gap:16px;padding-right:16px}.gallery-frame{width:72vw;min-width:230px;border-radius:18px}.gallery-footer{flex-direction:column;gap:9px;text-align:center}.gallery-actions{gap:24px}.gallery-belt{padding:16px 0 22px}.gallery-page-main{padding-top:150px}.gallery-grid{grid-template-columns:1fr;gap:20px}.gallery-grid figure:last-child{grid-column:auto}.gallery-page-actions{flex-direction:column}}
@media(prefers-reduced-motion:reduce){.gallery-track{animation:none!important;transform:none!important}.gallery-clone{display:none}.gallery-ready .gallery-belt{overflow-x:auto}.gallery-frame,.gallery-frame img{transition:none}}
@media print{.gallery-track{animation:none!important;transform:none!important}.gallery-clone,.gallery-arrow{display:none}.gallery-belt{overflow:visible}.gallery-set{flex-wrap:wrap}.gallery-frame{width:28%}}

.gallery-heading .gallery-title-part{display:inline-block}

/* Manual navigation stays close to the photographs on touch and desktop. */
/* Keep the homepage track separate from the modal gallery aspect ratio. */
.home-gallery-stage{position:relative}
.gallery-arrow{position:absolute;z-index:3;top:calc(50% - 4px);transform:translateY(-50%);display:grid;place-items:center;width:48px;height:48px;padding:0;border:1px solid #fff;border-radius:50%;background:linear-gradient(135deg,#f5eafcec,#ffeff8f5);box-shadow:0 5px 18px #78609430;color:#78558e;font:25px/1 var(--sans);cursor:pointer;transition:background .2s,box-shadow .2s}
.gallery-prev{left:clamp(8px,2vw,30px)}.gallery-next{right:clamp(8px,2vw,30px)}
.gallery-arrow[hidden]{display:none}
.gallery-arrow:focus-visible{outline:3px solid #9472b3;outline-offset:3px}
@media(hover:hover){.gallery-arrow:hover{background:linear-gradient(135deg,#e9d5f8,#f9e0f0);box-shadow:0 6px 22px #78609446}}
@media(max-width:600px){.gallery-arrow{width:44px;height:44px;font-size:23px;top:calc(50% - 3px)}}

/* A quieter second ribbon: each photograph is 60% of the main gallery size. */
.home-gallery-compact{padding:10px 0 28px}
.home-gallery-compact .gallery-heading{margin-bottom:2px}
.home-gallery-compact .gallery-heading h2{font-size:clamp(18px,1.7vw,23px);letter-spacing:.04em}
.home-gallery-compact .gallery-frame{width:clamp(142.8px,16.8vw,216px);border-width:2px;border-radius:16px}
.home-gallery-compact .gallery-set{gap:16px;padding-right:16px}
.home-gallery-compact .gallery-belt{padding:16px 0 22px}
.home-gallery-compact .gallery-arrow{width:40px;height:40px;font-size:21px}
@media(max-width:600px){.home-gallery-compact{padding:8px 0 22px}.home-gallery-compact .gallery-frame{width:43.2vw;min-width:138px;border-radius:13px}.home-gallery-compact .gallery-set{gap:12px;padding-right:12px}.home-gallery-compact .gallery-arrow{width:38px;height:38px}}
