/* A quiet, full-width photo strip directly below the main portfolio. */
.auto-gallery {padding:35px 0 24px;background:#f3ede5;border-top:1px solid var(--line);overflow:hidden}
.auto-gallery-heading {padding:0 var(--gutter);margin-bottom:30px;text-align:center}
.auto-gallery-heading h2 {font-size:clamp(34px,3.4vw,49px);line-height:1.12;letter-spacing:-1px}
.auto-gallery-carousel {position:relative}
.auto-gallery-viewport {width:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:none;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scroll-behavior:auto}
.auto-gallery-viewport::-webkit-scrollbar {display:none}
.auto-gallery-viewport:focus-visible {outline-offset:-3px}
.auto-gallery-track {display:flex;gap:clamp(16px,1.7vw,28px);width:max-content;position:relative}
.auto-gallery-card {flex:0 0 auto;width:clamp(170px,14vw,235px);margin:0;scroll-snap-align:start}
.auto-gallery-card .image-open {height:clamp(248px,20.6vw,335px);border-radius:clamp(22px,2.4vw,36px);isolation:isolate}
.auto-gallery-card img {object-fit:cover;object-position:50% 30%;user-select:none;-webkit-user-drag:none;transition:transform .6s}
.auto-gallery-card .image-open:hover img {transform:scale(1.03)}
.auto-gallery-card .image-open:focus-visible {outline-offset:-5px;outline-color:white}
.auto-gallery-arrow {position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;padding:11px;background:#22211f;color:#fff;border:1px solid #fff5;border-radius:50%;box-shadow:0 2px 12px #211a1420;z-index:2;transition:background .2s}
.auto-gallery-arrow:hover {background:var(--gold-dark)}
.auto-gallery-arrow svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.auto-gallery-prev {left:clamp(14px,2.2vw,42px)}
.auto-gallery-next {right:clamp(14px,2.2vw,42px)}
.auto-gallery-footer {padding:14px var(--gutter) 0;display:flex;align-items:center;justify-content:space-between;gap:22px;color:var(--muted)}
.auto-gallery-footer>p {font-size:9px;line-height:1.6}
.auto-gallery-playback {display:flex;align-items:center;gap:23px;flex:none}
.auto-gallery-count {font-size:9px;letter-spacing:1px;font-variant-numeric:tabular-nums}
#auto-gallery-toggle {display:inline-flex;align-items:center;gap:9px;min-height:36px;padding:5px 0;font-size:10px;text-align:left}
.auto-gallery-toggle-icon {display:block;width:10px;height:11px;border-left:2px solid currentColor;border-right:2px solid currentColor}
#auto-gallery-toggle[aria-pressed=true] .auto-gallery-toggle-icon {width:0;height:0;border-left:8px solid currentColor;border-right:0;border-top:5px solid transparent;border-bottom:5px solid transparent}
#auto-gallery-toggle:hover {color:var(--gold-dark)}
.visually-hidden {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:850px) {
 .auto-gallery {padding-top:29px;padding-bottom:20px}
 .auto-gallery-heading {margin-bottom:24px}
 .auto-gallery-heading h2 {font-size:39px}
 .auto-gallery-card {width:185px}
 .auto-gallery-card .image-open {height:270px}
}
@media(max-width:600px) {
 .auto-gallery {padding-top:28px;padding-bottom:18px}
 .auto-gallery-heading {padding-inline:var(--gutter);margin-bottom:23px}
 .auto-gallery-heading h2 {font-size:37px;line-height:1.04;max-width:340px;margin:auto}
 .auto-gallery-track {gap:15px}
 .auto-gallery-card {width:170px}
 .auto-gallery-card .image-open {height:250px;border-radius:25px}
 .auto-gallery-arrow {width:40px;height:40px;padding:9px}
 .auto-gallery-prev {left:10px}
 .auto-gallery-next {right:10px}
 .auto-gallery-footer {align-items:center;padding-top:10px;gap:15px}
 .auto-gallery-footer>p {font-size:8px;max-width:215px;line-height:1.6}
 .auto-gallery-playback {gap:10px}
 .auto-gallery-count {display:none}
 #auto-gallery-toggle {min-height:44px;font-size:9px;gap:8px}
}
@media(max-width:365px) {
 .auto-gallery-heading h2 {font-size:33px}
 .auto-gallery-card {width:155px}
 .auto-gallery-card .image-open {height:230px;border-radius:23px}
 .auto-gallery-footer>p {max-width:175px}
}
@media(prefers-reduced-motion:reduce) {
 .auto-gallery * {transition:none!important;scroll-behavior:auto}
}
