.photo-gallery{padding:80px 0;background:#f7f6f2;color:#101010;scroll-margin-top:110px}
.gallery-course{padding:80px 0;border-top:1px solid #d8d7d3}
.gallery-heading{display:flex;align-items:end;justify-content:space-between;gap:25px;margin-bottom:30px}
.gallery-heading h2{font:700 clamp(34px,4vw,62px)/1 var(--narrow);margin:14px 0 0}
.gallery-heading p{font-size:13px;color:#555;margin:0;flex-shrink:0}
.gallery-heading .gallery-description{font-size:17px;line-height:1.5;margin:18px 0 0;max-width:520px}
.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.gallery-item{margin:0;min-width:0}.gallery-item a{display:block;position:relative;background:#e0dfda;overflow:hidden}
.gallery-item img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;transition:transform .3s}
.gallery-item a:hover img{transform:scale(1.025)}.gallery-zoom{position:absolute;bottom:10px;right:10px;width:36px;height:36px;display:grid;place-items:center;background:#101010;color:#fff;font-size:25px}
.gallery-zoom svg{width:20px;height:20px}
.gallery-item figcaption{font:400 13px/1.5 var(--body);padding-top:10px;overflow-wrap:anywhere}
.gallery-more{display:block;margin:28px auto 0;padding:14px 24px;min-height:48px;border:1px solid #101010;background:transparent;color:#101010;font:600 14px var(--body);cursor:pointer}
.gallery-more:hover{background:#101010;color:#fff}.gallery-more span{margin-left:30px}
.gallery-editor-note{font-size:14px;border-left:3px solid #d52b25;padding-left:14px}
.gallery-editor-note a{display:inline-flex;align-items:center;min-height:44px;margin-left:12px;text-decoration:underline;font-weight:600;color:#a91e23}
.gallery-lightbox{width:96vw;max-width:1440px;max-height:96dvh;padding:0;border:0;background:#101010;color:#fff;overflow:auto}
.gallery-lightbox::backdrop{background:#000e}.gallery-viewer{position:relative;padding:60px 20px 18px}
.gallery-viewer>img{display:block;width:100%;height:calc(90dvh - 160px);object-fit:contain}
.gallery-lightbox button{min-width:48px;min-height:48px;border:1px solid #666;background:#171717;color:#fff;font:400 26px var(--body);cursor:pointer}
.gallery-close{position:absolute;right:12px;top:8px}.gallery-viewer-bottom{display:grid;grid-template-columns:48px 1fr 48px;gap:16px;align-items:center;margin-top:14px;text-align:center}
.gallery-viewer-bottom p{margin:0 0 5px;font:400 14px/1.5 var(--body);overflow-wrap:anywhere}.gallery-viewer-bottom span{color:#bdbdbd;font-size:12px}
.photo-gallery :is(a,button):focus-visible{outline:3px solid #d52b25;outline-offset:4px}.photo-gallery [hidden]{display:none!important}
@media(max-width:760px){.photo-gallery{padding:45px 0}.gallery-heading{display:block}.gallery-heading p{margin-top:16px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gallery-course .gallery-item img{aspect-ratio:1;max-height:300px}.gallery-course .gallery-item:first-child{grid-column:1/-1}.gallery-course .gallery-item:first-child img{aspect-ratio:3/2;max-height:none}.gallery-editor-note a{margin-left:0}.gallery-lightbox{width:100vw;max-width:100vw;max-height:100dvh}.gallery-viewer{padding:64px 12px 20px}.gallery-viewer>img{height:calc(85dvh - 150px)}}
@media(prefers-reduced-motion:reduce){.gallery-item img{transition:none}}
