/*
Theme Name: Tommysy Portfolio
Theme URI: https://tommysy.com/
Author: Tommysy
Description: Egyedi, minimalista fotós és filmes portfóliótéma.
Version: 1.9.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: tommysy
*/

:root {
  --black: #080808;
  --soft-black: #151515;
  --white: #fff;
  --ink: #111;
  --muted: #777;
  --line: #343434;
  --red: #e02020;
  --frame: min(1180px, calc(100vw - 80px));
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--black); color: var(--white); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { display: block; max-width: 100%; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 9999; top: 8px; left: 8px; width: auto; height: auto; padding: 12px 16px; clip: auto; background: #fff; color: #111; }

.site-shell { width: var(--frame); min-height: 100svh; margin: 0 auto; padding: clamp(28px, 7vh, 76px) 0; display: flex; flex-direction: column; justify-content: center; }
.site-header { position: relative; z-index: 20; height: 54px; padding: 0 42px; border: 1px solid var(--line); border-bottom: 0; display: flex; align-items: center; }
.site-nav ul { display: flex; align-items: center; gap: clamp(26px, 3vw, 48px); margin: 0; padding: 0; list-style: none; }
.site-nav a { position: relative; display: block; padding: 20px 0 17px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a::after { content: ""; position: absolute; right: 0; bottom: 10px; left: 0; height: 1px; background: var(--red); transform: scaleX(0); transition: transform .25s var(--ease); }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav .current-menu-item a::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav .current-menu-item a, .site-nav a[aria-current="page"] { color: var(--red); }
.mobile-brand { display: none; }
.mobile-gallery-back { display: none; }
.mobile-portfolio { display: none; }

.site-main { border: 1px solid var(--line); border-top: 0; min-height: min(650px, calc(100svh - 154px)); overflow: hidden; }
.split-layout { display: grid; grid-template-columns: 42% 58%; min-height: inherit; }
.copy-panel { position: relative; z-index: 2; min-height: 100%; padding: clamp(58px, 8vw, 118px) clamp(38px, 5vw, 76px) 52px; background: var(--white); color: var(--ink); display: flex; flex-direction: column; justify-content: center; }
.page-index { display: flex; align-items: center; gap: 12px; margin: 0 0 25px; color: #666; font-size: 9px; line-height: 1; letter-spacing: .13em; }
.page-index span { width: 31px; height: 1px; flex: 0 0 31px; background: var(--red); }
.copy-panel h1 { margin: 0; font-size: clamp(28px, 3vw, 43px); font-weight: 400; line-height: .98; letter-spacing: -.035em; text-transform: uppercase; }
.copy-panel .subtitle { margin: 10px 0 0; font-size: 15px; letter-spacing: .015em; }
.red-rule { width: 32px; height: 2px; margin: 30px 0 27px; border: 0; background: var(--red); }
.lead { max-width: 350px; margin: 0; color: #4d4d4d; font-size: 14px; line-height: 1.55; white-space: pre-line; }
.body-copy { max-width: 390px; margin-top: 25px; color: #4d4d4d; font-size: 14px; line-height: 1.55; }
.body-copy p:first-child { margin-top: 0; }
.outline-button { align-self: flex-start; margin-top: 32px; padding: 14px 18px; border: 1px solid #777; color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transition: color .25s, background .25s, border-color .25s; }
.outline-button span { margin-left: 12px; font-size: 16px; line-height: 0; }
.outline-button:hover, .outline-button:focus-visible { border-color: var(--red); background: var(--red); color: #fff; }
.image-panel { position: relative; min-height: 560px; background: var(--soft-black); overflow: hidden; }
.image-panel img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: transform 1.1s var(--ease), filter .5s; }
.split-layout:hover .image-panel img { transform: scale(1.015); }
.image-panel--placeholder::after { content: "IMAGE"; position: absolute; top: 50%; left: 50%; color: #555; font-size: 11px; letter-spacing: .3em; transform: translate(-50%,-50%); }

.home-layout .copy-panel { justify-content: center; }
.home-overline { margin: 0 0 15px; color: #7a7a7a; font-size: 9px; font-weight: 600; line-height: 1.2; letter-spacing: .23em; text-transform: uppercase; }
.home-editorial-cta { position: relative; width: 208px; min-height: 45px; display: inline-flex; align-items: center; justify-content: space-between; padding: 0 17px 0 18px; border: 1px solid #222; background: transparent; color: #111; box-shadow: none; overflow: hidden; }
.home-editorial-cta::after { content: ""; position: absolute; right: 17px; bottom: 8px; left: 18px; height: 1px; background: var(--red); transform: scaleX(.16); transform-origin: left; transition: transform .2s var(--ease), opacity .2s; opacity: .72; }
.home-editorial-cta .cta-label { margin: 0; font-size: 9px; font-weight: 700; line-height: 1; letter-spacing: .11em; }
.home-editorial-cta svg { width: 15px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform .2s var(--ease); }
.home-editorial-cta:hover, .home-editorial-cta:focus-visible { border-color: #444; background: #f5f5f3; color: #111; }
.home-editorial-cta:hover::after, .home-editorial-cta:focus-visible::after { transform: scaleX(1); opacity: .9; }
.home-editorial-cta:hover svg, .home-editorial-cta:focus-visible svg { transform: translateX(3px); }
.home-image-rail { position: absolute; z-index: 2; top: 0; right: 0; bottom: 0; width: 43px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; border-left: 1px solid rgba(255,255,255,.11); background: rgba(7,7,7,.94); color: rgba(255,255,255,.78); }
.home-image-rail span { font-size: 7px; font-style: normal; line-height: 1; letter-spacing: .18em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.home-image-rail i { width: 1px; height: 39px; margin-top: 5px; background: linear-gradient(to bottom, rgba(255,255,255,.55), rgba(255,255,255,.08)); }
.home-nav-note { margin-left: auto; display: flex; align-items: center; gap: 15px; color: #696969; font-size: 8px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.home-nav-note i { width: 36px; height: 1px; background: #383838; }
.about-layout .copy-panel, .contact-layout .copy-panel { justify-content: flex-start; }
.about-layout .image-panel img { object-position: center top; }
.contact-list { display: grid; gap: 18px; margin: 34px 0 0; padding: 0; list-style: none; }
.contact-list a, .contact-list span { display: flex; align-items: center; gap: 14px; color: #252525; font-size: 13px; }
.icon { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.socials { width: min(100%, 326px); display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 34px; }
.social-link { --social-accent: #111; --social-active-border: #aaa; --social-active-surface: #fafafa; position: relative; isolation: isolate; min-width: 0; height: 43px; display: flex; align-items: center; justify-content: center; gap: 7px; overflow: hidden; padding: 0 8px; border: 1px solid #c9c9c9; background: #fff; color: #151515; transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s, opacity .2s; }
.social-link::after { content: ""; position: absolute; z-index: -1; right: -1px; bottom: -1px; left: -1px; height: 2px; background: var(--social-accent); opacity: .72; transition: height .2s, opacity .2s; }
.social-link--instagram { --social-accent: linear-gradient(90deg, #F58529, #DD2A7B 38%, #8134AF 70%, #515BD4); --social-active-border: #d39abb; --social-active-surface: linear-gradient(135deg, rgba(245,133,41,.055), rgba(221,42,123,.055) 42%, rgba(81,91,212,.06)); }
.social-link--tiktok { --social-accent: linear-gradient(90deg, #25F4EE 0 46%, #111 46% 54%, #FE2C55 54%); --social-active-border: #85cbc9; --social-active-surface: linear-gradient(135deg, rgba(37,244,238,.065), rgba(17,17,17,.025) 50%, rgba(254,44,85,.06)); }
.social-link--youtube { --social-accent: #FF0033; --social-active-border: #ef8ca0; --social-active-surface: rgba(255,0,51,.045); }
a.social-link:focus-visible { border-color: var(--social-active-border); background: var(--social-active-surface); box-shadow: 0 0 0 2px rgba(17,17,17,.08), 0 3px 8px rgba(17,17,17,.07); color: #111; outline: 0; transform: translateY(-1px); }
a.social-link:focus-visible::after { height: 3px; opacity: 1; }
a.social-link:active { border-color: var(--social-active-border); background: var(--social-active-surface); box-shadow: 0 1px 3px rgba(17,17,17,.08); transform: translateY(0); transition-duration: .08s; }
.social-link.is-disabled { opacity: .35; cursor: not-allowed; }
.socials svg { width: 21px; height: 21px; flex: 0 0 21px; fill: currentColor; }
.social-icon { transition: filter .2s, transform .2s; }
.social-icon--tiktok .tiktok-cyan { fill: #25F4EE; }
.social-icon--tiktok .tiktok-pink { fill: #FE2C55; }
.social-icon--tiktok .tiktok-core { fill: #111; }
.social-icon--youtube .youtube-shape { fill: #FF0033; }
.social-icon--youtube .youtube-play { fill: #fff; }
.social-name { overflow: hidden; font-size: 7px; font-weight: 700; line-height: 1; letter-spacing: .07em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  a.social-link:hover { border-color: var(--social-active-border); background: var(--social-active-surface); box-shadow: 0 3px 8px rgba(17,17,17,.07); color: #111; transform: translateY(-1px); }
  a.social-link:hover::after { height: 3px; opacity: 1; }
  a.social-link:hover .social-icon { filter: saturate(1.08); transform: translateY(-1px); }
}
.about-imdb-button { position: relative; width: 202px; height: 46px; display: inline-flex; align-items: center; justify-content: space-between; padding: 0 2px; border: 0; border-top: 1px solid #222; border-bottom: 1px solid #222; background: transparent; color: #111; overflow: hidden; transition: color .18s, border-color .18s; }
.about-imdb-button::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--red); transform: translateX(-102%); transition: transform .2s var(--ease); }
.about-imdb-button > span:first-child { margin: 0; font-size: 9px; letter-spacing: .11em; }
.about-imdb-button .imdb-action { display: flex; align-items: center; gap: 8px; margin: 0; font-size: inherit; line-height: normal; }
.imdb-action small { padding: 3px 4px 2px; border: 1px solid #aaa; font-size: 6px; font-weight: 700; letter-spacing: .06em; }
.about-imdb-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .18s var(--ease); }
.about-imdb-button:hover, .about-imdb-button:focus-visible { border-color: #555; background: transparent; color: #111; }
.about-imdb-button:hover::after, .about-imdb-button:focus-visible::after { transform: translateX(0); }
.about-imdb-button:hover svg, .about-imdb-button:focus-visible svg { transform: translate(2px,-2px); }
.about-credits { margin: 10px 0 0; color: #999; font-size: 8px; letter-spacing: .17em; text-transform: uppercase; }

.gallery-page { min-height: inherit; padding: 34px 42px 42px; background: #050505; }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; gap: 6px; }
.gallery-item { grid-column: span 4; position: relative; min-height: 245px; margin: 0; overflow: hidden; background: #151515; cursor: zoom-in; }
.gallery-item:nth-child(5n+2), .gallery-item:nth-child(5n+4) { grid-column: span 5; }
.gallery-item:nth-child(5n+3), .gallery-item:nth-child(5n+5) { grid-column: span 3; }
.gallery-item button { width: 100%; height: 100%; min-height: inherit; padding: 0; border: 0; background: transparent; cursor: inherit; }
.gallery-item img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; transition: transform .55s var(--ease); }
.gallery-item:hover img, .gallery-item:focus-within img { transform: scale(1.035); }
.gallery-empty { grid-column: 1 / -1; min-height: 430px; display: grid; place-items: center; border: 1px solid #242424; color: #777; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

.lightbox { position: fixed; z-index: 1000; inset: 0; display: flex; align-items: center; justify-content: center; padding: 70px 86px 76px; overflow: hidden; visibility: hidden; opacity: 0; background: rgba(8,8,8,.97); backdrop-filter: blur(3px) brightness(.35); -webkit-backdrop-filter: blur(3px) brightness(.35); overscroll-behavior: contain; touch-action: none; transition: opacity .22s var(--ease), visibility 0s linear .22s; }
.lightbox.is-open { visibility: visible; opacity: 1; transition: opacity .22s var(--ease); }
.lightbox-media { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; pointer-events: auto; }
.lightbox img { max-width: min(1280px, 100%); max-height: 100%; width: auto; height: auto; object-fit: contain; filter: none; opacity: 1; transform: none; transition: opacity .14s ease; }
.lightbox img.is-arriving { opacity: .72; }
.lightbox-loading { position: absolute; top: 50%; left: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 1px solid rgba(255,255,255,.28); border-top-color: rgba(255,255,255,.9); border-radius: 50%; opacity: 0; visibility: hidden; pointer-events: none; animation: lightbox-spin .8s linear infinite; transition: opacity .16s ease, visibility 0s linear .16s; }
.lightbox-media.is-loading .lightbox-loading { opacity: 1; visibility: visible; transition-delay: .18s, .18s; }
@keyframes lightbox-spin { to { transform: rotate(360deg); } }
.lightbox-control { position: absolute; z-index: 2; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(18,18,18,.72); color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.lightbox-control svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.lightbox-control:hover, .lightbox-control:focus-visible { border-color: rgba(224,32,32,.72); background: rgba(38,38,38,.9); color: #fff; outline: none; }
.lightbox-control:focus-visible { box-shadow: 0 0 0 2px rgba(224,32,32,.22); }
.lightbox-close { top: 22px; right: 24px; width: 42px; height: 42px; }
.lightbox-prev { top: 50%; left: 24px; transform: translateY(-50%); }
.lightbox-next { top: 50%; right: 24px; transform: translateY(-50%); }
.lightbox-counter { position: absolute; bottom: 27px; left: 50%; display: inline-flex; align-items: center; gap: 10px; color: #777; font-size: 9px; font-variant-numeric: tabular-nums; letter-spacing: .24em; transform: translateX(-50%); }
.lightbox-counter-current { color: #fff; }
.lightbox-counter-divider { width: 14px; overflow: hidden; color: rgba(224,32,32,.78); letter-spacing: 0; text-align: center; }
.lightbox-open .gallery-scroll { overflow: hidden; }

.site-footer { display: flex; justify-content: space-between; padding-top: 28px; color: #777; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.site-footer .accent { display: inline-block; width: 28px; height: 1px; margin-left: 18px; background: var(--red); vertical-align: middle; }

/* Cinematic desktop composition: one viewport, genuinely fitted content. */
@media (min-width: 768px) and (min-height: 650px) {
  body:not(.gallery-public) { height: 100dvh; overflow: hidden; }
  .site-shell { height: 100dvh; min-height: 0; padding: clamp(22px, 5vh, 54px) 0 clamp(16px, 3vh, 30px); display: grid; grid-template-rows: 50px minmax(0, 1fr) 22px; justify-content: initial; }
  .site-header { height: 50px; padding-inline: clamp(30px, 3.6vw, 46px); }
  .site-main { min-height: 0; height: 100%; }
  .split-layout { height: 100%; min-height: 0; grid-template-columns: 41% 59%; }
  .copy-panel { min-height: 0; overflow: hidden; padding: clamp(34px, 6vh, 66px) clamp(36px, 4.6vw, 64px) clamp(42px, 5vh, 58px); }
  .image-panel { min-height: 0; height: 100%; }
  .copy-panel .page-index { margin-bottom: clamp(18px, 3.5vh, 32px); }
  .copy-panel h1 { font-size: clamp(28px, min(3vw, 5vh), 41px); letter-spacing: -.025em; }
  .copy-panel .subtitle { margin-top: 9px; font-size: clamp(12px, 1vw, 14px); letter-spacing: .04em; }
  .red-rule { margin: clamp(19px, 3.5vh, 29px) 0 clamp(18px, 3vh, 26px); }
  .lead { font-size: clamp(12px, min(1vw, 1.85vh), 14px); }
  .body-copy { margin-top: clamp(17px, 2.8vh, 25px); font-size: clamp(11px, min(.94vw, 1.72vh), 13.5px); line-height: 1.48; }
  .body-copy p { margin: 0 0 clamp(7px, 1.25vh, 13px); }
  .outline-button { margin-top: clamp(17px, 2.8vh, 29px); padding: clamp(10px, 1.5vh, 13px) 17px; }
  .home-layout .copy-panel { padding-bottom: clamp(42px, 5vh, 58px); }
  .home-layout .page-index { margin-bottom: clamp(16px, 2.6vh, 24px); }
  .home-overline { margin-bottom: clamp(10px, 1.8vh, 15px); }
  .home-layout .copy-panel h1 { font-size: clamp(42px, min(4.2vw, 7vh), 61px); font-weight: 400; line-height: .92; letter-spacing: -.045em; }
  .home-layout .copy-panel .subtitle { margin-top: 13px; letter-spacing: .09em; }
  .home-layout .red-rule { margin-top: clamp(18px, 2.8vh, 25px); }
  .home-layout .outline-button { margin-top: clamp(22px, 3.3vh, 31px); padding: 0 17px; }
  .home-layout .image-panel img { width: calc(100% - 43px); }
  .about-layout .copy-panel, .contact-layout .copy-panel { justify-content: center; }
  .contact-list { gap: clamp(9px, 1.7vh, 16px); margin-top: clamp(18px, 3vh, 30px); }
  .contact-list a, .contact-list span { font-size: clamp(11px, .9vw, 13px); }
  .socials { margin-top: clamp(18px, 3vh, 30px); }
  .site-footer { height: 22px; align-items: flex-end; padding-top: 0; }
  .gallery-public .site-shell { height: auto; min-height: 100dvh; grid-template-rows: 50px auto 38px; }
  .gallery-public .site-main { min-height: calc(100dvh - clamp(22px, 5vh, 54px) - 110px); }
}

.home-layout .image-panel img { object-position: 52% 45%; }
.contact-layout .image-panel img { object-position: center 42%; }

/* Desktop HOME: preserve the complete portrait inside the cinematic frame. */
@media (min-width: 768px) {
  .home-layout .image-panel { background: #080808; }
  .home-layout .image-panel img { width: calc(100% - 43px); height: 100%; object-fit: contain; object-position: center center; background: #080808; }
  .home-layout:hover .image-panel img { transform: none; }
}

@media (max-width: 767px) {
  :root { --frame: calc(100vw - 24px); --mobile-frame-bar-height: 12px; }
  .site-shell { min-height: 100dvh; padding: var(--mobile-frame-bar-height) 0; display: block; }
  body.home .site-header { display: none; }
  .site-header { height: 52px; padding: 0 18px; }
  .mobile-brand { display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
  .mobile-gallery-back { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; color: #aaa; font-size: 7px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; transition: color .2s var(--ease); }
  .mobile-gallery-back svg { width: 16px; height: 10px; flex: 0 0 16px; fill: none; stroke: var(--red); stroke-width: 1.1; transition: transform .2s var(--ease); }
  .mobile-gallery-back:hover, .mobile-gallery-back:focus-visible { color: #fff; outline: 0; }
  .mobile-gallery-back:hover svg, .mobile-gallery-back:focus-visible svg { transform: translateX(-2px); }
  .home-nav-note { display: none; }
  .site-nav { display: none; }
  .site-main { min-height: 0; overflow: visible; }
  .desktop-home-layout { display: none; }
  .mobile-portfolio { display: block; background: #050505; }
  .mobile-portfolio-section { position: relative; scroll-margin-top: 12px; border-bottom: 1px solid #292929; }
  .mobile-section-copy { padding: 34px 30px 40px; background: var(--white); color: var(--ink); }
  .mobile-section-copy .page-index { margin-bottom: 19px; }
  .mobile-section-copy h2, .mobile-bts-heading h2 { margin: 0; font-size: clamp(31px, 9vw, 42px); font-weight: 400; line-height: .96; letter-spacing: -.035em; text-transform: uppercase; }
  .mobile-home-section .mobile-section-copy h2 { font-size: clamp(40px, 11vw, 52px); line-height: .92; }
  .mobile-section-copy .subtitle { margin: 8px 0 0; font-size: 13px; letter-spacing: .015em; }
  .mobile-section-copy .lead { max-width: 420px; font-size: 13px; line-height: 1.5; }
  .mobile-section-copy .body-copy { max-width: 520px; margin-top: 18px; font-size: 13px; line-height: 1.5; }
  .mobile-section-copy .body-copy p { margin: 0 0 10px; }
  .mobile-section-copy .red-rule { margin: 20px 0 18px; }
  .mobile-section-copy .outline-button { margin-top: 22px; }
  .mobile-section-image { width: 100%; height: auto; margin: 0; overflow: visible; aspect-ratio: auto; background: var(--soft-black); }
  .mobile-section-image img { width: 100%; height: auto; object-fit: contain; filter: grayscale(1); }
  .mobile-contact-lead { margin-top: 18px; white-space: pre-line; }
  .mobile-section-copy .contact-list { gap: 12px; margin-top: 22px; }
  .mobile-section-copy .contact-list a, .mobile-section-copy .contact-list span { font-size: 12px; }
  .mobile-section-copy .socials { gap: 6px; margin-top: 23px; }
  .mobile-section-copy .social-link { height: 44px; gap: 5px; padding: 0 5px; }
  .mobile-section-copy .socials svg { width: 19px; height: 19px; flex-basis: 19px; }
  .mobile-section-copy .social-name { font-size: 8px; }
  .mobile-section-copy .about-imdb-button { margin-top: 20px; }
  .mobile-section-copy .about-credits { margin-top: 7px; }
  .mobile-bts-section { min-height: 0; background: #f4f2ee; color: var(--ink); }
  .mobile-bts-heading { padding: 36px 30px 20px; }
  .mobile-bts-heading .page-index { margin-bottom: 20px; }
  .mobile-bts-heading .bts-intro { margin: 17px 0 0; color: #65635f; font-size: 12px; line-height: 1.55; }
  .bts-overline { margin: 0 0 13px; color: #81807d; font-size: 8px; font-weight: 700; line-height: 1; letter-spacing: .23em; text-transform: uppercase; }
  .mobile-bts-content { padding: 0 30px 34px; }
  .mobile-open-collection { width: 100%; height: 45px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; border: 1px solid #111; background: #111; color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
  .legacy-anchor { position: absolute; top: 0; }
  .split-layout { min-height: 0; grid-template-columns: 1fr; }
  .copy-panel { min-height: 0; padding: 36px 30px 40px; }
  .page-index { margin-bottom: 19px; }
  .copy-panel h1 { font-size: clamp(31px, 7vw, 40px); }
  .copy-panel .subtitle { margin-top: 8px; font-size: 13px; }
  .red-rule { margin: 22px 0 20px; }
  .lead, .body-copy { max-width: 420px; font-size: 13px; line-height: 1.5; }
  .body-copy { margin-top: 18px; }
  .body-copy p { margin: 0 0 10px; }
  .outline-button { margin-top: 22px; }
  .home-layout .copy-panel { min-height: 0; padding: 34px 30px 40px; }
  .home-layout .copy-panel h1 { font-size: clamp(40px, 10vw, 56px); line-height: .92; }
  .home-layout .page-index { margin-bottom: 18px; }
  .home-overline { margin-bottom: 11px; }
  .home-layout .red-rule { margin: 20px 0 18px; }
  .home-layout .outline-button { margin-top: 23px; }
  .home-image-rail { display: none; }
  .home-layout .image-panel img { width: 100%; }
  .image-panel { min-height: 0; height: auto; overflow: visible; aspect-ratio: auto; }
  .image-panel img, .home-layout .image-panel img { width: 100%; height: auto; object-fit: contain; }
  .about-credits { margin-top: 7px; }
  .about-imdb-button { margin-top: 20px; }
  .contact-layout .lead { margin-top: 18px !important; }
  .contact-list { gap: 12px; margin-top: 22px; }
  .contact-list a, .contact-list span { font-size: 12px; }
  .socials { gap: 6px; margin-top: 23px; }
  .social-link { height: 44px; gap: 5px; padding: 0 5px; }
  .socials svg { width: 19px; height: 19px; flex-basis: 19px; }
  .social-name { font-size: 8px; }
  .gallery-page { padding: 16px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .gallery-item, .gallery-item:nth-child(n) { grid-column: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .gallery-item button, .gallery-item img { min-height: 0; }
  .gallery-empty { min-height: 150px; padding: 30px 16px; text-align: center; font-size: 9px; }
  .site-footer { display: none; }
}

@media (min-width: 768px) and (max-width: 900px) {
  :root { --frame: calc(100vw - 36px); }
  .site-header { padding-inline: 24px; }
  .site-nav ul { gap: 22px; }
  .split-layout { grid-template-columns: 44% 56%; }
  .copy-panel { padding-right: 24px; padding-left: 24px; }
  .home-layout .copy-panel h1 { font-size: 38px; }
  .home-layout .image-panel img { width: calc(100% - 34px); }
  .home-image-rail { width: 34px; }
  .social-link { gap: 4px; padding-inline: 4px; }
  .social-name { font-size: 6px; letter-spacing: .03em; }
}

@media (max-width: 560px) {
  :root { --frame: calc(100vw - 20px); }
  .site-shell { padding: var(--mobile-frame-bar-height) 0; }
  .site-header { height: 50px; padding: 0 16px; }
  .mobile-section-copy { padding: 31px 28px 35px; }
  .mobile-home-section .mobile-section-copy { padding-top: 30px; }
  .mobile-bts-heading { padding: 32px 28px 18px; }
  .mobile-bts-content { padding: 0 28px 30px; }
  .copy-panel { padding: 31px 28px 35px; }
  .home-layout .copy-panel { padding: 30px 28px 35px; }
  .copy-panel h1 { font-size: 31px; }
  .home-layout .copy-panel h1 { font-size: clamp(38px, 11.5vw, 48px); }
  .home-overline { font-size: 8px; }
  .gallery-page { padding: 10px; }
  .lightbox { padding: 68px 12px 72px; background: rgba(8,8,8,.985); }
  .lightbox-control { width: 44px; height: 44px; background: rgba(18,18,18,.78); }
  .lightbox-close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-counter { bottom: max(24px, env(safe-area-inset-bottom)); }
}

@media (max-width: 340px) {
  .copy-panel, .home-layout .copy-panel { padding-right: 22px; padding-left: 22px; }
  .mobile-section-copy { padding-right: 22px; padding-left: 22px; }
  .mobile-bts-heading, .mobile-bts-content { padding-right: 22px; padding-left: 22px; }
  .social-link { gap: 4px; padding: 0 3px; }
  .social-name { font-size: 7px; letter-spacing: .03em; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item, .gallery-item:nth-child(n) { aspect-ratio: 4 / 3; }
}

/* BTS gallery: the established site frame with an independently scrolling canvas. */
.fullscreen-gallery { padding: 0; background: #050505; }
.gallery-scroll { min-height: 100%; outline: 0; }
.gallery-intro { min-height: 180px; display: grid; grid-template-columns: minmax(220px, 1.2fr) minmax(210px, .9fr) auto; align-items: end; gap: clamp(30px, 5vw, 78px); padding: clamp(30px, 5vh, 54px) clamp(28px, 4vw, 54px) clamp(27px, 4vh, 42px); border-bottom: 1px solid #242424; }
.gallery-title-block .page-index { margin-bottom: 16px; color: #777; }
.gallery-title-block h1 { margin: 0; font-size: clamp(34px, min(4vw, 6vh), 52px); font-weight: 400; line-height: .88; letter-spacing: -.035em; text-transform: uppercase; }
.gallery-intro-copy { align-self: end; padding-bottom: 2px; }
.gallery-overline { margin: 0 0 10px; color: #ddd; font-size: 8px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.gallery-intro-copy > p:last-child { margin: 0; color: #777; font-size: 11px; line-height: 1.5; }
.gallery-meta-actions { align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 18px; }
.gallery-archive { margin: 0; color: #555; font-size: 7px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.gallery-canvas { padding: clamp(14px, 2.4vw, 28px); }
.fullscreen-gallery .gallery-grid.has-photographs { display: block; columns: 3; column-gap: 10px; }
.fullscreen-gallery .gallery-item, .fullscreen-gallery .gallery-item:nth-child(n) { width: 100%; min-height: 0; margin: 0 0 10px; display: inline-block; break-inside: avoid; grid-column: auto; aspect-ratio: auto; overflow: hidden; vertical-align: top; background: #151515; }
.fullscreen-gallery .gallery-item button { position: relative; width: 100%; height: auto; min-height: 0; display: block; }
.fullscreen-gallery .gallery-item button::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.34); background: rgba(255,255,255,.035); opacity: 0; transition: opacity .2s var(--ease); pointer-events: none; }
.fullscreen-gallery .gallery-item img { width: 100%; height: auto; min-height: 0; object-fit: contain; transform: none; }
.gallery-item-view { position: absolute; z-index: 2; right: 13px; bottom: 12px; padding: 6px 8px; background: rgba(5,5,5,.76); color: #fff; font-size: 7px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; opacity: 0; transform: translateY(3px); transition: opacity .2s var(--ease), transform .2s var(--ease); pointer-events: none; }
.fullscreen-gallery .gallery-item:hover img, .fullscreen-gallery .gallery-item:focus-within img { transform: none; }
.fullscreen-gallery .gallery-item:hover button::after, .fullscreen-gallery .gallery-item:focus-within button::after, .fullscreen-gallery .gallery-item:hover .gallery-item-view, .fullscreen-gallery .gallery-item:focus-within .gallery-item-view { opacity: 1; }
.fullscreen-gallery .gallery-item:hover .gallery-item-view, .fullscreen-gallery .gallery-item:focus-within .gallery-item-view { transform: translateY(0); }
.fullscreen-gallery .gallery-grid.is-empty { min-height: 150px; display: grid; place-items: center; }
.fullscreen-gallery .gallery-empty { min-height: 0; padding: 38px 20px; border: 0; text-align: center; }
.gallery-reveal .gallery-intro > *, .gallery-reveal .gallery-empty { opacity: 0; transform: translateY(8px); }
.gallery-reveal .gallery-item { opacity: 0; transform: translateY(10px); }
.gallery-reveal.is-revealed .gallery-intro > * { opacity: 1; transform: translateY(0); transition: opacity .42s var(--ease), transform .42s var(--ease); }
.gallery-reveal.is-revealed .gallery-intro > *:nth-child(2) { transition-delay: 70ms; }
.gallery-reveal.is-revealed .gallery-intro > *:nth-child(3) { transition-delay: 120ms; }
.gallery-reveal.is-revealed .gallery-item { opacity: 1; transform: translateY(0); transition: opacity .42s var(--ease) var(--reveal-delay, 0ms), transform .42s var(--ease) var(--reveal-delay, 0ms); }
.gallery-reveal.is-revealed .gallery-empty { opacity: 1; transform: translateY(0); transition: opacity .45s var(--ease) 100ms, transform .45s var(--ease) 100ms; }

@media (min-width: 768px) {
  .gallery-public { height: 100dvh; overflow: hidden; }
  .gallery-public .site-shell { width: var(--frame); height: 100dvh; min-height: 0; margin: 0 auto; padding: clamp(22px, 5vh, 54px) 0 clamp(16px, 3vh, 30px); display: grid; grid-template-rows: 50px minmax(0, 1fr) 22px; }
  .gallery-public .site-main { min-height: 0; height: 100%; overflow: hidden; }
  .gallery-scroll { height: 100%; min-height: 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #444 #0b0b0b; }
  .gallery-scroll::-webkit-scrollbar { width: 7px; }
  .gallery-scroll::-webkit-scrollbar-track { background: #0b0b0b; }
  .gallery-scroll::-webkit-scrollbar-thumb { background: #444; }
  .gallery-public .site-footer { display: flex; }
}

@media (max-width: 767px) {
  .gallery-public .site-shell { display: block; }
  .gallery-public .site-main { overflow: visible; }
  .gallery-scroll { min-height: 0; overflow: visible; }
  .gallery-intro { min-height: 0; grid-template-columns: 1fr; align-items: start; gap: 22px; padding: 34px 24px 29px; }
  .gallery-title-block h1 { font-size: clamp(34px, 10vw, 44px); }
  .gallery-intro-copy { padding: 0; }
  .gallery-meta-actions { align-items: flex-start; }
  .gallery-archive { display: none; }
  .gallery-canvas { padding: 8px; }
  .fullscreen-gallery .gallery-grid.has-photographs { columns: 2; column-gap: 8px; }
  .fullscreen-gallery .gallery-item, .fullscreen-gallery .gallery-item:nth-child(n) { margin-bottom: 8px; }
  .gallery-item-view { display: none; }
}

@media (max-width: 340px) {
  .fullscreen-gallery .gallery-grid.has-photographs { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
