.film-pair,.film-library{display:grid;gap:clamp(20px,3vw,48px)}
.film-pair{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;column-gap:clamp(15px,1.65vw,28px)}
.film-card,.photo-card{display:block;min-width:0;width:100%;padding:0;text-align:left}
.film-cover,.photo-frame{display:block;position:relative;overflow:hidden;background:#0d0e0d}
.film-cover{aspect-ratio:16/9;border:1px solid #d9c9a536}
.film-cover img,.photo-frame img{width:100%;height:100%;object-fit:contain}
.film-cover,.photo-frame{transition:box-shadow .3s ease}
@media(hover:hover){.film-card:hover .film-cover,.photo-card:hover .photo-frame{box-shadow:0 0 0 1px #e8c49a96}}
.film-card strong{display:block;margin:13px 0 5px;font:525 clamp(1.04rem,1.6vw,1.55rem)/1.5 var(--text-font);letter-spacing:.025em}
html[lang=en] .film-card strong{font:540 clamp(1.38rem,2.2vw,2.25rem)/1.1 var(--latin-font);letter-spacing:-.015em}
.film-card small,.photo-number,.film-duration,.archive-count,.viewer-index{font:400 .77rem/1.6 var(--mono-font);letter-spacing:.032em;font-variant-numeric:tabular-nums;color:#d1cabe}
.film-card small{line-height:1.65;font-family:var(--text-font)}
.film-play,.film-duration{position:absolute;bottom:13px}
.film-play{left:13px;display:grid;place-items:center;width:39px;height:39px;border-radius:50%;border:1px solid #f5ead59c;background:#090a0985;color:#fff4dc}
.film-play svg{width:16px;height:16px}
.film-duration{right:12px;font-size:.77rem;color:#fff6e5;background:#060705c7;padding:2px 7px}
.home-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(15px,1.65vw,28px);align-items:start}
.home-photos .photo-frame{aspect-ratio:3/2}
.home-photos .photo-frame img{object-fit:cover}
.home-photos [data-photo-id="photo-004"] img{object-position:50% 22%}
.photo-number{display:block;margin-top:7px}
.photo-title{display:block;font-size:.92rem;line-height:1.5;color:var(--paper);overflow-wrap:anywhere}
.archive-tools{align-items:center;border-block:1px solid var(--line);padding-block:11px;min-height:54px;margin-bottom:clamp(25px,3vw,48px)}
.archive-tools .section-link{border:0;min-height:38px;padding:3px 0}
.filters{display:flex;gap:clamp(14px,2.1vw,34px);flex-wrap:wrap;align-items:center}
.filters button{min-height:38px;color:#bcbcb0;padding:4px 0;font-size:.89rem;line-height:1.4}
.filters button[aria-pressed=true]{text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:1px;color:#f5d09a}
.archive-count{color:var(--muted);white-space:nowrap}
.film-library{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:clamp(30px,4vw,63px)}
.film-library .film-card{align-self:start}
.film-library .film-card strong{font-size:clamp(1.03rem,1.5vw,1.4rem)}
html[lang=en] .film-library .film-card strong{font-size:clamp(1.38rem,1.9vw,2rem)}
.photo-library{display:grid;gap:clamp(18px,2.3vw,32px);align-content:start}
.gallery-count{padding-bottom:15px;margin-bottom:clamp(20px,2.5vw,38px);border-bottom:1px solid var(--line)}
body[data-page=photos] .media-wrap{max-width:1740px}
body[data-page=photos] .photo-library{margin-inline:calc(var(--edge)*-.34)}
.contact-row{display:flex;gap:var(--row-gap);align-items:start;min-width:0}
.contact-cell{min-width:0;flex:0 1 auto}
.contact-row .photo-frame{height:var(--image-h)}
.media-viewer{
  color:var(--paper);width:min(1130px,95vw);max-width:97vw;max-height:94vh;max-height:94dvh;
  padding:0;border:1px solid #5f594d;background:#10120f;overflow:auto;
}
.media-viewer::backdrop{background:#030504e8}
.viewer-bar,.viewer-details{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:9px 19px}
.viewer-bar{height:53px}.viewer-index{color:var(--amber)}
.viewer-close,.viewer-steps .icon-btn{width:38px;height:38px;border:1px solid #c8bca35c}
#viewer-stage{background:#060706;touch-action:pan-y pinch-zoom}
#viewer-stage img,#viewer-stage video{display:block;width:100%;max-height:68vh;max-height:68dvh;object-fit:contain;margin:auto}
.media-viewer:not(.is-film){width:100%;max-width:none;height:100vh;height:100dvh;max-height:100dvh;margin:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);border:0;background:#090b09}
.media-viewer:not(.is-film)[open]{display:flex;flex-direction:column}
.media-viewer:not(.is-film) #viewer-stage{position:relative;flex:1;min-height:100px;overflow:hidden;isolation:isolate;background:#050605}
.media-viewer:not(.is-film) #viewer-stage img{position:absolute;inset:0;height:100%;width:100%;max-height:none;object-fit:contain;user-select:none;-webkit-user-drag:none}
.media-viewer:not(.is-film) .viewer-bar{height:48px;flex:none}
.media-viewer:not(.is-film) .viewer-steps .icon-btn,.media-viewer:not(.is-film) .viewer-close{width:44px;height:44px}
.media-viewer:not(.is-film) .viewer-steps{gap:10px}
.media-viewer:not(.is-film) .viewer-details{align-items:center;min-height:64px;max-height:30dvh;flex:none;overflow:auto}
.media-viewer:not(.is-film) #viewer-index{font-variant-numeric:tabular-nums}
.viewer-details{min-height:62px;padding-block:12px;align-items:start}
.viewer-details h2{font:480 1rem/1.5 var(--text-font);overflow-wrap:anywhere}
.viewer-details p{color:var(--muted);font-size:.88rem;line-height:1.65;white-space:pre-line;overflow-wrap:anywhere}
.viewer-details p:not([hidden]){margin-top:4px}
.viewer-steps{display:flex;gap:7px;flex:none}
.photo-zoom{display:none}
.media-error{display:block;padding:10px 18px;font-size:.86rem;color:#e9c897;text-decoration:underline}
@media(max-width:900px){
  .film-library{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:680px){
  .film-pair{display:grid;grid-template-columns:1fr;gap:26px}
  .home-photos{grid-template-columns:1fr;gap:16px}
  .film-library{gap:27px 12px}
  .film-card strong{margin-top:9px}
  .filters{gap:14px;row-gap:4px}
  .archive-tools{align-items:center;gap:12px}
  .archive-tools:has(.filters){display:grid;grid-template-columns:1fr;row-gap:3px}
  .archive-tools:has(.filters) .archive-count{font-size:.75rem}
  .film-play{width:33px;height:33px;left:9px;bottom:9px}
  .film-duration{right:8px;bottom:9px}
  .viewer-bar,.viewer-details{padding-inline:12px}
  body[data-page=photos] .photo-library{gap:26px}
  body[data-page=photos] .photo-number{padding-left:2px;font-size:.79rem;margin-top:5px}
  .media-viewer:not(.is-film) .viewer-details{max-height:32dvh;overflow:auto}
  .viewer-details h2{font-size:.93rem}
  .photo-number,.film-card small{font-size:.75rem}
}
@media(max-width:500px){
  .film-library{grid-template-columns:1fr}
  .film-library .film-card strong{font-size:1.12rem}
}

@media (max-width:1024px), (hover:none) and (pointer:coarse) and (max-width:1400px){
  .media-main .media-wrap,.area-live>.wrap,.area-photos>.wrap{
    padding-inline:clamp(32px,8.8vw,90px);
  }
  body[data-page=photos] .photo-library{margin-inline:0}
  .home-photos{display:flex}
  .home-photos .photo-card{flex:var(--image-aspect) 1 0}
  .home-photos .photo-frame{aspect-ratio:auto;background:transparent}
  .home-photos .photo-frame img{height:auto}
  .media-viewer:not(.is-film),.media-viewer.is-film{
    position:fixed;inset:0;margin:0;width:100%;max-width:none;
    height:100vh;height:100dvh;max-height:none;padding:0;border:0;background:#050605;
  }
  .media-viewer:not(.is-film) #viewer-stage{height:100%;min-height:0}
  .media-viewer:not(.is-film) .viewer-bar,.media-viewer:not(.is-film) .viewer-details{
    position:absolute;left:0;right:0;z-index:1;
    padding-inline:max(14px,env(safe-area-inset-left)) max(14px,env(safe-area-inset-right));
    transition:opacity .2s ease,visibility .2s;
  }
  .media-viewer:not(.is-film) .viewer-bar{
    top:0;gap:8px;height:auto;padding-top:max(8px,env(safe-area-inset-top));padding-bottom:18px;
    background:linear-gradient(#080907ce,transparent);
  }
  .media-viewer:not(.is-film) .viewer-index{margin-inline-end:auto;color:#ece1c8;text-shadow:0 1px 4px #000}
  .media-viewer:not(.is-film) .viewer-details{
    bottom:0;padding-top:20px;padding-bottom:max(8px,env(safe-area-inset-bottom));
    background:linear-gradient(transparent,#080907e3);text-shadow:0 1px 4px #000;
  }
  .media-viewer:not(.is-film) .icon-btn,.media-viewer .photo-zoom{
    background:#11120fd9;border-color:#b8af995c;border-radius:50%;
  }
  .media-viewer:not(.is-film) .photo-zoom{
    display:grid;place-items:center;width:44px;height:44px;border:1px solid #b8af995c;
    color:var(--paper);font:500 .87rem/1 var(--mono-font);letter-spacing:.01em;
  }
  .media-viewer.photo-clean .viewer-bar,.media-viewer.photo-clean .viewer-details{
    opacity:0;visibility:hidden;pointer-events:none;
  }
  .media-viewer.photo-magnified:not(.is-film) #viewer-stage{
    overflow:auto;touch-action:pan-x pan-y pinch-zoom;overscroll-behavior:contain;
  }
  .media-viewer.photo-magnified:not(.is-film) #viewer-stage .viewer-current{
    position:relative;inset:auto;margin:0;
    width:max(100%,var(--detail-width));height:max(100%,var(--detail-height));
    min-width:var(--detail-width);min-height:var(--detail-height);max-width:none;
  }
  .media-viewer.is-film[open]{display:flex;flex-direction:column;justify-content:center}
  .is-film .viewer-bar,.is-film .viewer-details{
    flex:none;height:auto;padding-inline:max(16px,env(safe-area-inset-left)) max(16px,env(safe-area-inset-right));
  }
  .is-film .viewer-bar{
    position:absolute;inset:0 0 auto;z-index:1;pointer-events:none;
    padding-top:max(8px,env(safe-area-inset-top));padding-bottom:10px;
    background:linear-gradient(#080907c2,transparent);
  }
  .is-film .viewer-close{width:44px;height:44px;pointer-events:auto;background:#11120fd9}
  .is-film .viewer-details{padding-bottom:max(10px,env(safe-area-inset-bottom));max-height:24dvh;overflow:auto}
  .is-film #viewer-stage{min-height:0;display:grid;place-items:center}
  .is-film #viewer-stage video{max-height:65vh;max-height:65dvh}
}
@media(max-width:680px){
  .home-photos{display:grid;gap:24px}
}
@media (orientation:landscape) and (max-height:680px) and (max-width:1024px){
  .media-viewer.is-film #viewer-stage{flex:1;position:relative}
  .is-film #viewer-stage video{position:absolute;inset:0;height:100%;max-height:none}
  .is-film #viewer-stage .media-error{z-index:1;background:#10120f}
  .is-film .viewer-details{min-height:0;padding-block:5px max(5px,env(safe-area-inset-bottom))}
  .is-film .viewer-details>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:12px;width:100%}
  .is-film .viewer-details p:not([hidden]){margin-top:0}
}
@media(prefers-reduced-motion:reduce){
  .media-viewer .viewer-bar,.media-viewer .viewer-details{transition:none!important}
}
