/* Editorial photography, with native blocks underneath the viewer enhancement. */
.gallery-hero{display:grid;grid-template-columns:1.15fr 1fr;gap:clamp(32px,6vw,96px);align-items:center;padding-block:var(--s48);border-bottom:1px solid var(--line)}
.gallery-hero h1{font-size:clamp(64px,8.8vw,132px);line-height:.9;letter-spacing:-.025em;margin-bottom:var(--s32)}
.gallery-hero-copy>p:last-child{max-width:390px;color:var(--muted);font-size:20px}
.gallery-film-teaser{position:relative;--rmc-flow:var(--s16)}
.gallery-film-teaser .wp-block-image a{display:block;position:relative;overflow:hidden}
.gallery-film-teaser img{display:block;width:100%;height:clamp(220px,24vw,300px);object-fit:cover;object-position:center 40%}
.gallery-film-teaser .wp-block-image a:after{content:'▶';position:absolute;left:24px;bottom:24px;display:grid;place-items:center;width:56px;height:56px;background:var(--orange);color:var(--ink);font-size:18px;border-radius:50%}
.gallery-film-teaser .wp-block-button{width:100%}.gallery-film-teaser .wp-block-button__link{display:flex;justify-content:space-between;align-items:center;width:100%;border:0;border-bottom:1px solid var(--ink);background:transparent;color:var(--ink);padding:16px 0;font-size:22px;text-align:left}
.gallery-film-teaser>p{font-size:13px;color:var(--muted)}
.gallery-collection{padding-block:var(--s32) var(--s96)}
.gallery-collection>h2{font-size:clamp(36px,4vw,56px)}
.gallery-collection>p{color:var(--muted)}
.gallery-collection .wp-block-gallery.rmc-photo-grid{display:block;columns:3;column-gap:var(--s32);margin-top:var(--s48)}
.gallery-collection .wp-block-gallery.rmc-photo-grid>.wp-block-image{display:block!important;break-inside:avoid;width:100%!important;min-height:0;background:transparent;padding:0;margin:0 0 var(--s32)!important;overflow:visible}
.gallery-collection .wp-block-gallery.rmc-photo-grid>.wp-block-image[hidden]{display:none!important}
.gallery-collection .wp-block-gallery.rmc-photo-grid .wp-block-image a{display:block;position:relative;overflow:hidden;height:auto;background:var(--line)}
.gallery-collection .wp-block-gallery.rmc-photo-grid .wp-block-image img{width:100%!important;height:auto!important;max-height:none;transition:transform .4s var(--ease)}
.gallery-collection .wp-block-gallery.rmc-photo-grid .wp-block-image figcaption{position:static!important;background:none!important;color:var(--ink)!important;padding:12px 0 0!important;margin:0!important;text-align:left!important;font-size:16px;line-height:1.4;max-height:none!important}
.gallery-collection .wp-block-image a:after{content:'↗';position:absolute;right:12px;bottom:12px;background:var(--white);color:var(--ink);width:32px;height:32px;display:grid;place-items:center;font-size:18px}
.rmc-gallery-progress{text-align:center;font-size:14px;margin-top:var(--s48)!important}
.rmc-gallery-more{display:block;margin:var(--s24) auto 0;padding:16px 28px;border:1px solid var(--ink);background:transparent;color:var(--ink);font:500 17px Barlow,sans-serif;min-height:56px;cursor:pointer}
.rmc-viewer-open{overflow:hidden}
.rmc-media-viewer{position:fixed;inset:0;margin:auto;width:min(1320px,calc(100% - 48px));height:min(950px,calc(100dvh - 48px));max-width:none;max-height:none;border:0;padding:24px 32px;background:var(--ink);color:var(--white)}
.rmc-media-viewer[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:16px}
.rmc-media-viewer::backdrop{background:#000d;backdrop-filter:blur(8px)}
.rmc-viewer-top,.rmc-viewer-bottom{display:flex;align-items:center;justify-content:space-between;gap:24px}
.rmc-viewer-top>span{font-size:12px;letter-spacing:.16em;color:#d4d4cf}
.rmc-media-viewer button{border:1px solid #ffffff60;color:var(--white);background:transparent;font:400 16px Barlow,sans-serif;cursor:pointer;min-height:48px;min-width:48px;padding:10px 16px}
.rmc-media-viewer button:focus-visible{outline:2px solid var(--orange);outline-offset:4px}
.rmc-viewer-stage{min-height:0;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.rmc-viewer-stage>img,.rmc-viewer-stage>video{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.rmc-viewer-stage>video{height:100%;aspect-ratio:9/16}
.rmc-viewer-bottom{border-top:1px solid #ffffff30;padding-top:16px}
.rmc-viewer-bottom h2{font-size:clamp(24px,3vw,36px);line-height:1.1;margin:0}
.rmc-viewer-count{font-size:13px;color:#d4d4cf;margin:8px 0 0}
.rmc-viewer-nav{display:flex;gap:8px}.rmc-viewer-nav[hidden]{display:none}
.rmc-viewer-status{position:absolute;bottom:16px;background:var(--ink);padding:8px}
.rmc-viewer-status:empty{display:none}
.footer-diver{width:160px;aspect-ratio:5/7}.footer-diver img{display:block;width:100%;height:auto;mix-blend-mode:screen}
/* Project collections sit beneath the introduction and use the available width. */
.single-post main>.client-media{width:100%;margin-inline:0;padding-block:var(--s32)}
.single-post .rmc-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.single-post .rmc-photo-grid>.wp-block-image{aspect-ratio:4/3;min-height:0;padding:0}
.single-post .rmc-photo-grid .wp-block-image img{max-height:100%;max-width:100%;object-fit:contain}
.single-post .rmc-photo-grid a{position:relative}
.single-post .rmc-photo-grid a:after{content:'↗';position:absolute;right:8px;bottom:8px;background:var(--white);color:var(--ink);width:32px;height:32px;display:grid;place-items:center}
@media(max-width:900px){.single-post .rmc-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}
@media(min-width:360px) and (max-width:600px){.gallery-collection .wp-block-gallery.rmc-photo-grid{columns:2;column-gap:16px}.gallery-collection .wp-block-gallery.rmc-photo-grid .wp-block-image figcaption{font-size:14px}.single-post .rmc-photo-grid>.wp-block-image{min-height:0}}
@media(max-width:359px){.single-post .rmc-photo-grid{grid-template-columns:1fr}}
@media(hover:hover) and (pointer:fine){.gallery-collection .wp-block-image a:hover img{transform:scale(1.025)}.rmc-media-viewer button:hover{background:#ffffff20}.rmc-gallery-more:hover{background:var(--ink);color:var(--white)}}
@media(max-width:900px){.gallery-hero{gap:32px}.gallery-collection .wp-block-gallery.rmc-photo-grid{columns:2;column-gap:24px}}
@media(max-width:600px){.gallery-hero{grid-template-columns:1fr;padding-block:40px}.gallery-hero h1{font-size:clamp(64px,16vw,96px)}.gallery-hero-copy>p:last-child{font-size:18px}.gallery-film-teaser img{height:220px}.gallery-collection .wp-block-gallery.rmc-photo-grid{columns:2}.rmc-media-viewer{width:100%;height:100dvh;padding:16px;gap:12px}.rmc-viewer-bottom{align-items:flex-start;gap:12px}.rmc-viewer-bottom h2{font-size:26px}.rmc-viewer-top>span{font-size:11px}.rmc-viewer-count{font-size:12px}.footer-diver{width:144px}}
@media(prefers-reduced-motion:reduce){.gallery-collection .wp-block-gallery.rmc-photo-grid .wp-block-image img{transition:none}}

@media(max-width:359px){.gallery-collection .wp-block-gallery.rmc-photo-grid{columns:1}}
