.gallery-section{border-top:1px solid var(--line)}
.gallery-section .section-heading>p{max-width:350px}
.gallery-figure{margin:0}
.gallery-open{display:block;position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;padding:0;background:#211e1a;border-radius:4px;color:var(--paper);touch-action:pan-y pinch-zoom}
.gallery-image{width:100%;height:100%;object-fit:contain;user-select:none}
.gallery-open-label{position:absolute;right:22px;bottom:22px;padding:11px 18px;border:1px solid #fff9;border-radius:3px;background:#25211ee6;color:#fff;font-size:.9rem;font-weight:700;line-height:1.3;transition:background .2s,border-color .2s}
.gallery-open:hover .gallery-open-label{background:var(--red);border-color:var(--red)}
.gallery-open:focus-visible{outline-offset:6px}
.gallery-caption{display:flex;align-items:flex-start;justify-content:space-between;gap:28px;padding:24px 0 0}
.gallery-caption h3{margin:0 0 7px;font-size:1.8rem;letter-spacing:-.04em}
.gallery-caption p{margin:0;max-width:650px;color:#645d54;font-size:1rem;line-height:1.65}
.gallery-count{display:inline-flex;flex-shrink:0;gap:12px;align-items:center;padding-top:2px;white-space:nowrap;font-family:var(--heading);font-size:1.6rem;font-weight:700;letter-spacing:-.04em;line-height:1.3;font-variant-numeric:tabular-nums}
.gallery-count span{font-family:var(--font);font-size:1rem;font-weight:400;color:#8b8277}
.gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:26px 0 20px;padding-top:22px;border-top:1px solid var(--line)}
.gallery-hint{margin:0;color:#645d54;font-size:1rem}
.gallery-controls{display:flex;align-items:center;justify-content:flex-end;flex-shrink:0;gap:9px}
.gallery-control{min-height:44px;min-width:74px;padding:11px 18px;border:1px solid var(--line);border-radius:3px;background:transparent;color:var(--ink);font-size:.9rem;font-weight:700;line-height:1.4;transition:background .2s,color .2s,border-color .2s}
.gallery-control:hover{background:var(--ink);border-color:var(--ink);color:var(--paper)}
.gallery-play{min-width:145px;background:var(--cream);border-color:var(--cream)}
.gallery-play[aria-pressed=true]{background:var(--red);border-color:var(--red);color:#fff}
.gallery-thumbnails{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;overflow-x:auto;padding:5px 3px 8px;scrollbar-width:thin;scrollbar-color:#b3aa9e transparent;overscroll-behavior-x:contain;scroll-padding-inline:4px}
.gallery-thumbnail{position:relative;min-width:0;min-height:44px;padding:0;border:2px solid transparent;border-radius:3px;background:transparent;color:#645d54;text-align:left;transition:border-color .2s,color .2s}
.gallery-thumbnail img{width:100%;height:82px;object-fit:cover;filter:saturate(.7);opacity:.78;user-select:none;transition:opacity .2s,filter .2s}
.gallery-thumbnail span{display:block;padding:8px 6px 6px;font-size:.875rem;font-weight:700;line-height:1.3}
.gallery-thumbnail:hover{color:var(--ink)}
.gallery-thumbnail:hover img,.gallery-thumbnail[aria-current=true] img{filter:none;opacity:1}
.gallery-thumbnail[aria-current=true]{border-color:var(--red);color:var(--red)}
.gallery-thumbnail:focus-visible{outline-offset:1px}
dialog.gallery-lightbox{width:min(1200px,96vw);max-width:none;max-height:94dvh;margin:auto;padding:22px 24px 18px;border:1px solid #fff3;border-radius:5px;background:#211e1a;color:var(--paper);overflow-y:auto;box-shadow:0 25px 100px #0008}
dialog.gallery-lightbox::backdrop{background:#10100fee;backdrop-filter:blur(6px)}
.gallery-lightbox-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-bottom:16px}
.gallery-lightbox-header h2{margin:0;font-family:var(--font);font-size:1rem;font-weight:700;letter-spacing:0;line-height:1.5}
.gallery-lightbox .gallery-control{border-color:#ffffff52;color:var(--paper)}
.gallery-lightbox .gallery-control:hover{border-color:var(--paper);background:var(--paper);color:var(--ink)}
.gallery-lightbox-close{min-width:84px}
.gallery-lightbox-figure{margin:0}
.gallery-lightbox-media{height:min(62dvh,680px);min-height:180px;display:flex;align-items:center;justify-content:center;touch-action:pan-y pinch-zoom;background:#191715}
.gallery-lightbox-media img{height:100%;width:100%;object-fit:contain;user-select:none}
.gallery-lightbox-caption{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding:18px 0 16px}
.gallery-lightbox-caption h3{margin:0 0 6px;font-size:1.5rem;letter-spacing:-.035em}
.gallery-lightbox-caption p{margin:0;max-width:760px;color:#d6cec2;font-size:1rem;line-height:1.5}
.gallery-lightbox .gallery-count{font-size:1.5rem}
.gallery-lightbox .gallery-count span{color:#b7afa3}
.gallery-lightbox-controls{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:15px;border-top:1px solid #fff3}
.gallery-lightbox-controls p{margin:0;color:#d6cec2;font-size:.9rem;text-align:center}
@media(min-width:1400px){.gallery-open{aspect-ratio:1.9}.gallery-thumbnail img{height:100px}}
@media(max-width:800px){.gallery-toolbar{align-items:flex-start;flex-direction:column;gap:16px}.gallery-controls{width:100%;justify-content:space-between}.gallery-thumbnails{grid-template-columns:repeat(7,115px);gap:10px}.gallery-thumbnail img{height:78px}.gallery-caption h3{font-size:1.65rem}.gallery-lightbox-media{height:55dvh}}
@media(max-width:600px){.gallery-open{aspect-ratio:4/3}.gallery-open-label{right:12px;bottom:12px;padding:9px 13px;font-size:.875rem}.gallery-caption{gap:18px;padding-top:19px}.gallery-caption h3{font-size:1.5rem}.gallery-caption p{min-height:4.95em}.gallery-count{font-size:1.3rem;gap:8px}.gallery-toolbar{margin-top:20px;padding-top:18px}.gallery-hint{font-size:1rem}.gallery-control{padding:11px 13px;min-width:70px;font-size:.875rem}.gallery-play{min-width:132px}.gallery-thumbnails{grid-template-columns:repeat(7,96px);gap:9px}.gallery-thumbnail img{height:69px}.gallery-thumbnail span{padding:7px 5px;font-size:.875rem}dialog.gallery-lightbox{width:96vw;max-height:94dvh;padding:14px 14px 16px}.gallery-lightbox-header{gap:12px;padding-bottom:12px}.gallery-lightbox-header h2{font-size:.95rem;max-width:210px}.gallery-lightbox-media{height:50dvh;min-height:150px}.gallery-lightbox-caption{gap:15px;padding:16px 0}.gallery-lightbox-caption h3{font-size:1.4rem}.gallery-lightbox-caption p{font-size:1rem}.gallery-lightbox .gallery-count{font-size:1.25rem}.gallery-lightbox-controls p{display:none}}
@media(max-height:620px) and (orientation:landscape){dialog.gallery-lightbox{max-height:96dvh}.gallery-lightbox-media{height:48dvh;min-height:120px}.gallery-lightbox-caption p{display:none}.gallery-lightbox-header{padding-bottom:10px}.gallery-lightbox-caption{padding:12px 0}.gallery-lightbox-controls{padding-top:10px}}
@media(prefers-reduced-motion:reduce){.gallery-play{display:none}.gallery-open-label,.gallery-control,.gallery-thumbnail,.gallery-thumbnail img{transition:none}}
