/* Portraits: a photographic pattern over a fading, stationary title. */
.photography_page{--portrait-radius:20px;--portrait-opening-offset:0px;--portrait-title-ink:var(--warm-50)}
html[data-theme=light] .photography_page{--portrait-title-ink:var(--color-paper)}
.photography_page .site_content{overflow:clip;background:var(--color-ink)}
.photography_main{position:relative;isolation:isolate}
.portrait_exhibition{position:relative;padding-bottom:90px}
.portrait_backdrop{position:sticky;top:0;height:100svh;margin-bottom:-100svh;display:grid;place-items:center;pointer-events:none;z-index:0;overflow:hidden}
.portrait_backdrop h1{position:relative;top:calc(-1 * var(--portrait-opening-offset));margin:0!important;width:100%;text-align:center;font:400 29vw/.8 var(--font-heading,'Instrument Serif',serif)!important;letter-spacing:-.035em;color:var(--portrait-title-ink);opacity:var(--portrait-title-opacity,1);white-space:nowrap;transform:none!important;filter:none!important}
.portrait_pattern{position:relative;z-index:1;padding:calc(50svh + 8vw - var(--portrait-opening-offset)) var(--site-gutter,48px) 0}
.portrait_row{position:relative;height:48vw}
.portrait_photo{position:absolute;display:block;border-radius:var(--portrait-radius);overflow:hidden;line-height:0;background:var(--warm-900);outline-offset:7px;isolation:isolate;translate:0 var(--portrait-card-shift,0px)}
.portrait_photo img{display:block;width:100%;height:100%;border-radius:inherit;object-fit:cover;transform:translate3d(0,var(--portrait-image-shift,0px),0) scale(1.09);transition:scale .8s cubic-bezier(.22,1,.36,1)}
.portrait_photo:hover img{scale:1.015}
.portrait_photo:focus-visible{outline:2px solid var(--warm-50)}
/* Open spacing is the default. Only the centre/right pair in rows 1 and 2 overlap. */
.portrait_row_0 .portrait_photo:nth-child(1){left:0;top:12vw;width:16%}
.portrait_row_0 .portrait_photo:nth-child(2){left:20%;top:0;width:19%}
.portrait_row_0 .portrait_photo:nth-child(3){left:43%;top:9vw;width:22%}
.portrait_row_0 .portrait_photo:nth-child(4){left:69%;top:18vw;width:15%}
.portrait_row_0 .portrait_photo:nth-child(5){right:0;top:3vw;width:13%}
.portrait_row_1 .portrait_photo:nth-child(1){left:2%;top:5vw;width:18%}
.portrait_row_1 .portrait_photo:nth-child(2){left:25%;top:22vw;width:16%}
.portrait_row_1 .portrait_photo:nth-child(3){left:45%;top:-3vw;width:23%}
.portrait_row_1 .portrait_photo:nth-child(4){left:65%;top:17vw;width:17%}
.portrait_row_1 .portrait_photo:nth-child(5){right:0;top:4vw;width:14%}
.portrait_row_2 .portrait_photo:nth-child(1){left:0;top:2vw;width:17%}
.portrait_row_2 .portrait_photo:nth-child(2){left:22%;top:17vw;width:19%}
.portrait_row_2 .portrait_photo:nth-child(3){left:46%;top:0;width:23%}
.portrait_row_2 .portrait_photo:nth-child(4){left:67%;top:24vw;width:16%}
.portrait_row_2 .portrait_photo:nth-child(5){right:0;top:8vw;width:14%}
.portrait_lightbox{border:0;padding:0;margin:0;width:100vw;height:100svh;max-width:none;max-height:none;background:transparent;color:#eeeae3;overflow:hidden;overscroll-behavior:contain}
.portrait_lightbox::backdrop{background:rgb(10 10 10 / .96)}
.portrait_lightbox[open]{display:grid;place-items:center}
.portrait_viewer{position:relative;max-width:calc(100vw - 120px);max-height:calc(100svh - 140px)}
.portrait_viewer_frame{position:relative;margin:0;border-radius:20px;line-height:0}
.portrait_large{display:block;width:auto;height:auto;max-width:calc(100vw - 120px);max-height:calc(100svh - 140px);border-radius:20px;object-fit:contain;user-select:none;-webkit-user-drag:none}
.portrait_close{position:fixed;top:var(--site-gutter,32px);right:var(--site-gutter,32px);z-index:5;border:0;display:grid;place-items:center;width:76px;height:76px;border-radius:50%;background:#3b3b3a;color:#eeeae3;cursor:pointer;transition:background .2s,scale .2s}
.portrait_close:hover{background:#55534f;scale:1.04}.portrait_close:focus-visible{outline:none}.portrait_lightbox:not(.is-pointer-open) .portrait_close:focus-visible{background:#55534f}
.portrait_close svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.portrait_nav{position:absolute;top:-96px;bottom:-96px;width:calc(50% + 96px);z-index:2;background:none;border:0;border-radius:20px;padding:0;color:#eeeae3;touch-action:pan-y}
.portrait_previous{left:-96px}.portrait_next{right:-96px}
.portrait_nav svg{position:absolute;top:calc(50% - 28px);width:56px;height:56px;padding:16px;background:#141312;border-radius:50%;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.portrait_previous svg{left:20px;transform:rotate(180deg)}.portrait_next svg{right:20px}
.portrait_nav:focus-visible{outline:2px solid #eeeae3;outline-offset:-5px}.portrait_nav:focus-visible svg{opacity:1}
.photography_page .portrait_counter{position:absolute;top:100%;left:0;right:0;text-align:center;margin:22px 0 0;font:400 13px/1.4 var(--font-body,'Inter',sans-serif);color:rgb(238 234 227 / .35);font-variant-numeric:tabular-nums}
.portrait_error{font:400 14px/1.5 var(--font-body);text-align:center}.portrait_error[hidden]{display:none}
.portrait_arrow_cursor{position:fixed;left:0;top:0;pointer-events:none;z-index:6;opacity:0}
.portrait_arrow_cursor>span{display:grid;place-items:center;width:var(--portrait-cursor-size,20px);height:var(--portrait-cursor-size,20px);border-radius:50%;background:var(--portrait-cursor-bg,#eeeae3);color:#eeeae3;transform:translate(-50%,-50%) scale(.85);transition:width .35s cubic-bezier(.22,1,.36,1),height .35s cubic-bezier(.22,1,.36,1),background-color .35s,transform .25s,opacity .25s}
.portrait_arrow_cursor.is-visible{opacity:1}.portrait_arrow_cursor.is-visible>span{transform:translate(-50%,-50%) scale(1)}
.portrait_arrow_cursor svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;opacity:var(--portrait-arrow-opacity,0);transition:transform .22s cubic-bezier(.22,1,.36,1),opacity .3s}
.portrait_arrow_cursor.is-previous svg{transform:rotate(-180deg)}
html.portrait-modal-open{overflow:hidden}html.portrait-modal-open .site_cursor{visibility:hidden}
@media(hover:hover) and (pointer:fine){.portrait_nav{cursor:none!important}}
@media(max-width:767px){
 .portrait_pattern{padding-top:calc(50svh + 6vw - var(--portrait-opening-offset));padding-inline:20px}.portrait_backdrop h1{font-size:29vw!important}
 .portrait_row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));height:auto;gap:24px 20px;margin-bottom:46px;align-items:start}
 .portrait_row .portrait_photo:nth-child(n){position:relative;left:auto;right:auto;top:auto;width:100%}
 .portrait_row .portrait_photo:nth-child(even){margin-top:66px}.portrait_row .portrait_photo:nth-child(5){grid-column:1/-1;width:68%;justify-self:center;margin-top:10px}
  .portrait_viewer,.portrait_large{max-width:calc(100vw - 2 * var(--site-gutter,20px));max-height:calc(100svh - 176px)}
 .portrait_close{width:58px;height:58px;right:20px;top:20px}.portrait_close svg{width:26px;height:26px}
 .portrait_nav{top:0;bottom:0;width:50%}.portrait_previous{left:0}.portrait_next{right:0}
 .portrait_arrow_cursor{display:none}.portrait_nav svg{opacity:1;width:44px;height:44px;padding:12px}.portrait_previous svg{left:10px}.portrait_next svg{right:10px}
}
@media(hover:none),(pointer:coarse){.portrait_arrow_cursor{display:none}.portrait_nav svg{opacity:1}}
@media(prefers-reduced-motion:reduce){.portrait_photo img,.portrait_close,.portrait_arrow_cursor svg,.portrait_arrow_cursor>span{transition:none}.portrait_arrow_cursor{display:none}.portrait_nav svg{opacity:1}}

/* Just two portraits skim the title; the rest enter after the opening. */
@media(min-width:768px){
 .portrait_row:first-child{height:60vw}
 .portrait_row:first-child .portrait_photo:nth-child(1){top:22vw}
 .portrait_row:first-child .portrait_photo:nth-child(2){top:-1vw}
 .portrait_row:first-child .portrait_photo:nth-child(3){top:24vw}
 .portrait_row:first-child .portrait_photo:nth-child(4){top:-2vw;width:16%}
 .portrait_row:first-child .portrait_photo:nth-child(5){top:30vw;width:15%}
}
.portrait_photo.is-in-view img{will-change:transform}
@media(prefers-reduced-motion:reduce){.portrait_photo{translate:none!important}.portrait_photo img{transform:none!important;scale:1!important}}

/* Continue into the same related-work module used on the other cases. */
.photography_page .unico_related{position:relative;background:var(--color-ink)}
.photography_page .unico_related h2{margin:0;font-size:clamp(56px,7vw,112px);font-weight:400;line-height:1.05;letter-spacing:-.025em}
.photography_page .unico_related .custom_cursor_grid{gap:var(--site-gutter)}

@media(min-width:768px){.photography_page{--portrait-opening-offset:100px}}

/* Move the mobile composition up by up to 450px, retaining a 120px title inset.
   The centred title line box is 23.2vw high (29vw type at .8 line-height). */
@media(max-width:767px){.photography_page{--portrait-opening-offset:clamp(0px,calc(50svh - 11.6vw - 120px),450px)}}

/* Compact mobile gallery controls, gathered in a fixed bottom row. */
@media(max-width:767px){
 .portrait_nav,.portrait_close{position:fixed;top:auto;bottom:calc(24px + env(safe-area-inset-bottom,0px));width:48px;height:48px;box-sizing:border-box;border-radius:50%;display:grid;place-items:center;padding:0}
 .portrait_nav{background:#141312}
 .portrait_previous{left:calc(50% - 88px);right:auto}
 .portrait_next{right:calc(50% - 88px);left:auto}
 .portrait_close{left:calc(50% - 24px);right:auto;background:#3b3b3a}
 .portrait_nav svg{position:static;width:24px;height:24px;padding:0;background:none;box-sizing:border-box;opacity:1}
 .portrait_close svg{width:24px;height:24px}
 .portrait_viewer,.portrait_large{max-height:calc(100svh - 224px)}
 .photography_page .portrait_counter{margin-top:16px}
}

/* Pointer-opened mobile galleries do not need the keyboard focus ring. */
@media(max-width:767px){.portrait_lightbox.is-pointer-open .portrait_close:focus-visible{outline:none}}

/* Shared-image opening and closing: the photo remains the focal element. */
.portrait_large{transform-origin:0 0}
.portrait_photo.is-modal-source{visibility:hidden}
.portrait_lightbox[open]::backdrop{animation:portrait-backdrop-in .52s cubic-bezier(.16,1,.3,1) both}
.portrait_lightbox.is-closing::backdrop{animation:portrait-backdrop-out .3s ease both}
@keyframes portrait-backdrop-in{from{background:rgb(10 10 10 / 0)}to{background:rgb(10 10 10 / .96)}}
@keyframes portrait-backdrop-out{from{background:rgb(10 10 10 / .96)}to{background:rgb(10 10 10 / 0)}}
@media(prefers-reduced-motion:reduce){.portrait_lightbox[open]::backdrop,.portrait_lightbox.is-closing::backdrop{animation-duration:.12s}}
