/*
Theme Name: Lunardi
Theme URI: https://mattialunardi.com
Author: Mattia Lunardi
Description: Portfolio theme for a commercial director and street photographer. Films open in a lightbox, photos in a full-screen viewer. Dark, mono lettering, red marker details.
Version: 1.6.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: lunardi
*/

/* ---------- Tokens ---------- */
:root {
  --bg: #0F0F0D;
  --surface: #1C1C1A;
  --surface-2: #161614;
  --line: #2A2926;
  --line-2: #3A3935;
  --text: #ECEAE4;
  --body: #CFCCC4;
  --soft: #B8B5AD;
  --muted: #9A978F;
  --faint: #6F6C66;
  --marker: #FF4A2E;
  --mono: 'Space Mono', ui-monospace, Menlo, monospace;
  --serif: 'Instrument Serif', Georgia, serif;
  --hand: 'Caveat', 'Bradley Hand', cursive;
  --gutter: 64px;
  --max: 1440px;
}
@media (max-width: 900px) { :root { --gutter: 20px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; } /* WordPress prints width/height attributes: let CSS aspect-ratio decide */
a { color: var(--text); text-decoration: none; }
a:hover, a:focus-visible { color: var(--marker); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--marker); outline-offset: 3px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; clip: auto;
  background: var(--text); color: var(--bg); padding: 10px 14px;
}
.ml-wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.ml-eyebrow { font-size: 13px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.ml-link-under { border-bottom: 1px solid var(--text); padding-bottom: 4px; font-size: 14px; }
body.ml-lock { overflow: hidden; }

/* ---------- Header ---------- */
.ml-header {
  height: 96px; display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 20;
}
.ml-header--overlay { position: absolute; top: 0; left: 0; right: 0; }
.admin-bar .ml-header--overlay { top: 32px; }
@media (max-width: 782px) { .admin-bar .ml-header--overlay { top: 46px; } }
.ml-header--overlay .ml-header__inner { width: 100%; }
.ml-header__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.ml-brand { font-size: 14px; line-height: 1.5; }
.ml-brand__name { display: block; font-size: 22px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.15; }
.ml-brand__role { display: block; color: var(--soft); }
.ml-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 40px; }
.ml-nav a { font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; }
.ml-nav .current-menu-item > a, .ml-nav .is-current > a { color: var(--marker); }
.ml-menu-toggle {
  display: none; width: 44px; height: 44px; background: transparent; border: 0; padding: 0;
  align-items: center; justify-content: center; cursor: pointer;
}
@media (max-width: 900px) {
  .ml-header { height: 68px; }
  .ml-header--overlay { position: relative; background: var(--bg); }
  .ml-brand { font-size: 11px; line-height: 1.4; }
  .ml-brand__name { font-size: 16px; }
  .ml-menu-toggle { display: flex; }
  .ml-nav {
    position: fixed; inset: 0; background: var(--bg); z-index: 50;
    display: none; align-items: center; justify-content: center;
  }
  .ml-nav.is-open { display: flex; }
  .ml-nav ul { flex-direction: column; gap: 28px; text-align: center; }
  .ml-nav a { font-size: 22px; }
  .ml-nav__close { position: absolute; top: 12px; right: 12px; }
}
@media (min-width: 901px) { .ml-nav__close { display: none; } }

/* ---------- Hero ---------- */
.ml-hero { position: relative; height: min(810px, 90vh); min-height: 520px; background: #1A1A18; overflow: hidden; }
.ml-hero__media, .ml-hero__media iframe, .ml-hero__media video, .ml-hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0;
}
.ml-hero { container-type: size; }
.ml-hero__media iframe {
  /* Cover the hero box (not the window) with a 16:9 video, whatever its proportions. */
  width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw);
  min-width: 0; min-height: 0; max-width: none;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  pointer-events: none;
}
.ml-hero__shade { position: absolute; inset: 0; background: rgba(0,0,0,0.28); }
.ml-hero__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 88px; height: 88px; border-radius: 50%; border: 1.5px solid var(--text);
  background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background 200ms, border-color 200ms;
}
.ml-hero__play:hover { background: rgba(255,74,46,0.18); border-color: var(--marker); }
.ml-hero__bottom {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 56px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.ml-hero__title { font-size: 88px; line-height: 0.95; font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; margin: 0; }
.ml-hero__sub { font-size: 14px; color: var(--soft); letter-spacing: 0.04em; margin-top: 6px; }
.ml-hero__now { font-size: 13px; line-height: 1.7; color: var(--soft); text-align: right; }
.ml-hero__now b { color: var(--marker); font-weight: 400; }
@media (max-width: 900px) {
  .ml-hero { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .ml-hero__bottom, .ml-hero__play { display: none; }
  .ml-hero-mobile { padding: 14px var(--gutter) 0; }
  .ml-hero-mobile .ml-hero__now { text-align: left; font-size: 11px; }
  .ml-hero-mobile__title { padding: 36px var(--gutter) 40px; }
  .ml-hero-mobile__title .ml-hero__title { font-size: 56px; letter-spacing: -0.02em; }
  .ml-hero-mobile__title .ml-hero__sub { font-size: 12px; }
  .ml-hero__tap { position: absolute; inset: 0; background: transparent; border: 0; cursor: pointer; }
}
@media (min-width: 901px) { .ml-hero-mobile, .ml-hero-mobile__title, .ml-hero__tap { display: none; } }

/* ---------- Section heads ---------- */
.ml-section { padding-top: 128px; padding-bottom: 120px; }
.ml-section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 48px;
}
.ml-section__head h2, .ml-section__head h1 { margin: 0; font-size: 15px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; }
@media (max-width: 900px) { .ml-section { padding-top: 24px; padding-bottom: 48px; } .ml-section__head { margin-bottom: 32px; } }

/* ---------- Film cards ---------- */
.ml-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; row-gap: 64px; }
@media (max-width: 1100px) { .ml-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ml-grid { grid-template-columns: minmax(0, 1fr); row-gap: 36px; } }
.ml-card {
  display: flex; flex-direction: column; gap: 16px; padding: 0; border: 0; background: transparent;
  text-align: left; cursor: pointer; width: 100%;
}
.ml-card__media { position: relative; display: block; }
.ml-card__title, .ml-card__meta { display: block; }
.ml-card__frame { display: block; position: relative; aspect-ratio: 16 / 9; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.ml-card__frame img, .ml-card__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ml-card__frame video { opacity: 0; transition: opacity 250ms; }
.ml-card.is-previewing .ml-card__frame video { opacity: 1; }
.ml-card__media::after {
  content: ""; position: absolute; left: -18px; right: -18px; top: -16px; bottom: -16px;
  border: 3px solid var(--marker); border-radius: 50%; transform: rotate(-2deg) scale(0.96);
  opacity: 0; transition: opacity 200ms, transform 200ms; pointer-events: none;
}
.ml-card:hover .ml-card__media::after, .ml-card:focus-visible .ml-card__media::after { opacity: 1; transform: rotate(-2deg) scale(1); }
.ml-card:focus-visible { outline: none; }
.ml-card__title { font-size: 14px; line-height: 1.5; text-transform: uppercase; }
.ml-card__meta { font-size: 13px; color: var(--muted); margin-top: 6px; }
@media (max-width: 900px) { .ml-card__media::after { display: none; } .ml-card__title { font-size: 12px; } .ml-card__meta { font-size: 11px; } }

/* ---------- Clients ---------- */
.ml-clients { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 72px; padding-bottom: 72px; }
.ml-clients__list { font-size: 30px; line-height: 1.45; text-transform: uppercase; margin: 28px 0; }
.ml-clients__agencies { font-size: 14px; color: var(--soft); }
@media (max-width: 900px) { .ml-clients { padding-top: 36px; padding-bottom: 36px; } .ml-clients__list { font-size: 17px; margin: 14px 0 0; } .ml-clients__agencies { display: none; } }

/* ---------- Aphorism ---------- */
.ml-aphorism { padding-top: 160px; padding-bottom: 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.ml-aphorism h2 {
  margin: 0; font-size: 160px; line-height: 0.92; font-weight: 700; letter-spacing: -0.03em;
  text-transform: uppercase; white-space: nowrap;
}
.ml-circled { position: relative; display: inline-block; }
.ml-circled::after {
  content: ""; position: absolute; left: -26px; right: -26px; top: -14px; bottom: -8px;
  border: 4px solid var(--marker); border-radius: 50%; transform: rotate(-4deg); pointer-events: none;
}
.ml-hand { font-family: var(--hand); font-weight: 600; color: var(--marker); }
.ml-aphorism__note { width: 340px; padding-bottom: 16px; font-size: 36px; line-height: 1.1; transform: rotate(-3deg); }
@media (max-width: 1200px) { .ml-aphorism h2 { font-size: 120px; } }
@media (max-width: 900px) {
  .ml-aphorism { flex-direction: column; align-items: flex-start; padding-top: 72px; padding-bottom: 24px; gap: 28px; }
  .ml-aphorism h2 { font-size: 19.5vw; }
  .ml-circled::after { left: -14px; right: -14px; top: -8px; bottom: -4px; border-width: 3px; }
  .ml-aphorism__note { align-self: flex-end; width: 240px; font-size: 28px; }
}

/* ---------- Unscripted teaser (home) ---------- */
.ml-teaser { padding-top: 120px; padding-bottom: 120px; }
.ml-teaser__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.ml-serif-title { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 128px; line-height: 0.9; }
.ml-teaser__intro { margin: 0; width: 420px; font-size: 16px; line-height: 1.6; color: var(--soft); }
.ml-teaser__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 88px; }
.ml-teaser__item { position: relative; }
.ml-teaser__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ml-bw img { filter: grayscale(1); transition: filter 400ms ease; }
.ml-bw:hover img, .ml-bw:focus-within img { filter: none; }
@media (hover: none) { .ml-bw img { filter: none; } }
.ml-keeper::after {
  content: ""; position: absolute; left: -16px; right: -16px; top: -16px; bottom: -16px;
  border: 3px solid var(--marker); border-radius: 50%; transform: rotate(3deg); pointer-events: none;
}
.ml-keeper__note { position: absolute; left: 24px; bottom: -58px; font-size: 30px; transform: rotate(-3deg); }
@media (max-width: 900px) {
  .ml-teaser { padding-top: 56px; padding-bottom: 64px; }
  .ml-teaser__head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 24px; }
  .ml-serif-title { font-size: min(72px, 18vw); }
  .ml-teaser__intro { width: auto; font-size: 13px; }
  .ml-teaser__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ml-teaser__grid .ml-teaser__item:nth-child(n+3) { display: none; }
  .ml-keeper::after { left: -10px; right: -10px; top: -12px; bottom: -12px; }
  .ml-keeper__note { display: none; }
}

/* ---------- Footer ---------- */
.ml-footer { background: var(--surface-2); padding-top: 72px; padding-bottom: 56px; }
.ml-footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.ml-footer__col { display: flex; flex-direction: column; gap: 10px; }
.ml-footer__label { font-size: 12px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.ml-footer__name { font-size: 15px; font-weight: 700; text-transform: uppercase; }
.ml-footer__detail { font-size: 13px; color: var(--soft); }
.ml-footer__detail a { color: var(--soft); }
.ml-footer__detail a:hover { color: var(--marker); }
@media (max-width: 900px) {
  .ml-footer { padding-top: 36px; padding-bottom: 36px; }
  .ml-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* ---------- Film single ---------- */
.ml-back { display: inline-flex; min-height: 44px; align-items: center; font-size: 13px; color: var(--muted); }
.ml-player { position: relative; aspect-ratio: 16 / 9; background: #1A1A18; border: 1px solid var(--line); }
.ml-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ml-film__info { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; padding-top: 56px; }
.ml-film__text { grid-column: span 7; display: flex; flex-direction: column; gap: 24px; }
.ml-film__title { margin: 0; font-size: 56px; line-height: 1.02; font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; }
.ml-film__note { max-width: 620px; font-size: 16px; line-height: 1.7; color: var(--body); }
.ml-film__note p { margin: 0 0 1em; }
.ml-credits {
  grid-column: 9 / span 4; margin: 0; display: grid; grid-template-columns: 120px 1fr; row-gap: 12px; column-gap: 16px;
  font-size: 13px; line-height: 1.5; align-content: start; border-top: 1px solid var(--line); padding-top: 20px;
}
.ml-credits dt { color: var(--muted); text-transform: uppercase; }
.ml-credits dd { margin: 0; }
.ml-frames { padding-top: 96px; }
.ml-frames__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
.ml-frames__grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ml-pager { margin-top: 120px; padding-top: 48px; padding-bottom: 48px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 14px; text-transform: uppercase; }
.ml-pager__next { display: flex; align-items: center; gap: 24px; }
.ml-pager__thumb { width: 240px; aspect-ratio: 16 / 9; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.ml-pager__thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .ml-film__info { display: flex; flex-direction: column; gap: 18px; padding-top: 32px; }
  .ml-film__title { font-size: 30px; }
  .ml-film__note { font-size: 13px; }
  .ml-credits { grid-template-columns: 110px 1fr; font-size: 12px; margin-top: 8px; }
  .ml-frames { padding-top: 48px; }
  .ml-frames__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ml-pager { flex-direction: column; align-items: stretch; margin-top: 48px; font-size: 12px; }
  .ml-pager__next { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .ml-pager__thumb { width: 100%; }
}

/* ---------- Photography page ---------- */
.ml-photos__intro { padding-top: 96px; padding-bottom: 112px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.ml-photos__intro .ml-serif-title { font-size: 200px; line-height: 0.85; }
.ml-photos__intro p { margin: 0 0 12px; width: 460px; font-size: 15px; line-height: 1.75; color: var(--soft); }
.ml-photos__intro .ml-eyebrow { margin-bottom: 16px; }
.ml-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; row-gap: 72px; padding-bottom: 120px; }
.ml-photo-btn { padding: 0; border: 0; background: transparent; cursor: zoom-in; display: block; width: 100%; }
.ml-photo-btn img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
.ml-photos__end { border-top: 1px solid var(--line); padding-top: 72px; padding-bottom: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ml-photos__end .ml-serif { font-family: var(--serif); font-style: italic; font-size: 40px; }
@media (max-width: 900px) {
  .ml-photos__intro { flex-direction: column; align-items: flex-start; padding-top: 40px; padding-bottom: 48px; gap: 18px; }
  .ml-photos__intro .ml-serif-title { font-size: min(96px, 21vw); }
  .ml-photos__intro p { width: auto; font-size: 13px; }
  .ml-photo-grid { grid-template-columns: minmax(0, 1fr); row-gap: 14px; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding-bottom: 48px; }
  .ml-photo-btn img { object-fit: cover; }
  .ml-photos__end { flex-direction: column; align-items: flex-start; padding-top: 40px; padding-bottom: 40px; }
  .ml-photos__end .ml-serif { font-size: 28px; }
}

/* ---------- About ---------- */
.ml-about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; padding-top: 80px; padding-bottom: 120px; }
.ml-about__portrait { grid-column: span 5; aspect-ratio: 4 / 5; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.ml-about__portrait img { width: 100%; height: 100%; object-fit: cover; }
.ml-about__text { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 36px; padding-top: 4px; }
.ml-about__text h1 { margin: 0; font-size: 48px; line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; }
.ml-about__bio { max-width: 600px; font-size: 15px; line-height: 1.8; color: var(--body); }
.ml-about__bio p { margin: 0 0 20px; }
.ml-about__also { font-size: 12px; line-height: 1.8; color: var(--muted); text-transform: uppercase; }
.ml-contact { background: var(--surface-2); padding-top: 80px; padding-bottom: 72px; }
.ml-contact h2 { margin: 0 0 48px; font-size: 72px; line-height: 0.9; font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; }
.ml-contact__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.ml-contact__col { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line-2); padding-top: 20px; }
.ml-contact__name { font-size: 20px; font-weight: 700; text-transform: uppercase; }
.ml-contact__detail { font-size: 14px; color: var(--soft); }
.ml-contact__detail a { color: var(--soft); }
.ml-contact__social { display: flex; gap: 32px; margin-top: 48px; font-size: 13px; text-transform: uppercase; }
@media (max-width: 900px) {
  .ml-about { display: flex; flex-direction: column; padding-top: 12px; padding-bottom: 56px; gap: 36px; }
  .ml-about__text { gap: 22px; }
  .ml-about__text h1 { font-size: 30px; }
  .ml-about__bio { font-size: 13px; }
  .ml-contact { padding-top: 44px; padding-bottom: 48px; }
  .ml-contact h2 { font-size: 44px; margin-bottom: 26px; }
  .ml-contact__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .ml-contact__name { font-size: 16px; }
  .ml-contact__social { gap: 20px; font-size: 12px; margin-top: 32px; }
}

/* ---------- Generic page / 404 ---------- */
.ml-page { padding-top: 80px; padding-bottom: 120px; max-width: 760px; }
.ml-page h1 { font-size: 48px; line-height: 1.05; text-transform: uppercase; margin: 0 0 32px; }
.ml-page .entry { color: var(--body); line-height: 1.8; }

/* ---------- Lightbox / viewer ---------- */
.ml-lb {
  position: fixed; inset: 0; z-index: 90; background: #080808; display: none; flex-direction: column;
}
.ml-lb.is-open { display: flex; }
.ml-lb__top { height: 72px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; text-transform: uppercase; flex-shrink: 0; }
.ml-lb__count { color: var(--muted); }
.ml-lb__close { min-width: 44px; min-height: 44px; background: transparent; border: 0; text-transform: uppercase; font-size: 13px; cursor: pointer; }
.ml-lb__stage { flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; min-height: 0; }
.ml-lb__arrow { width: 64px; height: 64px; background: transparent; border: 0; font-size: 28px; cursor: pointer; flex-shrink: 0; }
.ml-lb__arrow:hover { color: var(--marker); }
.ml-lb__body { flex: 1 1 auto; height: 100%; display: flex; align-items: center; justify-content: center; min-width: 0; }
.ml-lb__video { width: min(100%, calc((100vh - 200px) * 16 / 9)); aspect-ratio: 16 / 9; background: #1A1A18; position: relative; }
.ml-lb__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ml-lb__img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; }
.ml-lb__bottom { min-height: 96px; padding: 0 128px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 13px; text-transform: uppercase; flex-shrink: 0; }
.ml-lb__bottom .ml-lb__meta { color: var(--muted); }
.ml-lb--photo .ml-lb__bottom { justify-content: center; min-height: 64px; font-family: var(--serif); font-style: italic; font-size: 22px; text-transform: none; color: var(--soft); }
@media (max-width: 900px) {
  .ml-lb__top { padding: 0 16px; }
  .ml-lb__stage { padding: 0; }
  .ml-lb__arrow { display: none; }
  .ml-lb__video { width: 100%; }
  .ml-lb__bottom { padding: 16px; flex-direction: column; align-items: flex-start; font-size: 11px; }
  .ml-lb--photo .ml-lb__bottom { align-items: center; font-size: 18px; }
}

/* ---------- Image protection (deterrent) ---------- */
.ml-protect .ml-photo-btn img, .ml-protect .ml-teaser__item img, .ml-protect .ml-lb__img,
.ml-protect .ml-card__frame img, .ml-protect .ml-frames__grid img, .ml-protect .ml-hero__media img {
  -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}

/* ---------- Copyright + social icons ---------- */
.ml-copy { background: var(--surface-2); padding-bottom: 32px; font-size: 11px; color: var(--muted); letter-spacing: 0.02em; }
.ml-copy__inner { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ml-photos__notice { font-size: 11px; color: var(--muted); margin-top: 12px; }
.ml-social { display: inline-flex; align-items: center; gap: 10px; }
.ml-social img { width: 20px; height: 20px; object-fit: contain; opacity: 0.85; }
.ml-social:hover img { opacity: 1; }
.ml-social--icon .ml-social__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.ml-footer__icons { display: flex; gap: 18px; align-items: center; min-height: 44px; }
@media (max-width: 900px) { .ml-copy { padding-bottom: 24px; } }

/* ---------- Full-width layout (Customizer toggle) ----------
   Like many director sites: the page uses the whole screen, with a side margin
   that grows with the screen (about 4% of its width). Grids stay inside the margin. */
body.ml-bleed { --gutter: clamp(20px, 4vw, 96px); --max: none; }
.ml-bleed .ml-home-films .ml-grid { column-gap: 16px; row-gap: 56px; }
.ml-bleed .ml-teaser__grid { gap: 16px; }

/* ---------- Contact page ---------- */
.ml-contact-page .ml-contact { background: transparent; padding-top: 96px; padding-bottom: 96px; }
.ml-contact-page .ml-contact h1 { margin: 0 0 56px; font-size: 96px; line-height: 0.9; font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; }
.ml-contact-page .ml-contact__name { font-size: 24px; }
.ml-contact-page .ml-contact__detail { font-size: 16px; }
.ml-contact-page__note { padding-bottom: 96px; max-width: 760px; color: var(--body); font-size: 15px; line-height: 1.8; }
@media (max-width: 900px) {
  .ml-contact-page .ml-contact { padding-top: 40px; padding-bottom: 48px; }
  .ml-contact-page .ml-contact h1 { font-size: 48px; margin-bottom: 28px; }
  .ml-contact-page .ml-contact__name { font-size: 18px; }
  .ml-contact-page .ml-contact__detail { font-size: 14px; }
}

/* Keep the footer at the bottom on short pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }

/* ---------- Photo series ---------- */
.ml-series-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 32px; font-size: 13px; text-transform: uppercase; }
.ml-series-nav a { color: var(--muted); }
.ml-series-nav a:hover, .ml-series-nav a.is-current { color: var(--marker); }
.ml-photos__intro--series { padding-bottom: 48px; }
.ml-series-text { max-width: 680px; margin-left: auto; padding-bottom: 96px; font-size: 16px; line-height: 1.8; color: var(--body); }
.ml-series-text p { margin: 0 0 1.1em; }
.ml-series-text p:first-child { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.35; color: var(--text); }
.ml-series-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; row-gap: 72px; padding-bottom: 120px; }
.ml-series-card { display: flex; flex-direction: column; gap: 14px; }
.ml-series-card__img { display: block; aspect-ratio: 3 / 2; background: var(--surface); overflow: hidden; }
.ml-series-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.ml-series-card:hover .ml-series-card__img img { transform: scale(1.02); }
.ml-series-card__title { font-family: var(--serif); font-style: italic; font-size: 48px; line-height: 1; }
.ml-series-card__meta { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 900px) {
  .ml-series-nav { padding-top: 20px; font-size: 12px; }
  .ml-series-text { margin-left: 0; padding-bottom: 48px; font-size: 14px; }
  .ml-series-text p:first-child { font-size: 21px; }
  .ml-series-grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; padding-bottom: 48px; }
  .ml-series-card__title { font-size: 36px; }
}

/* ---------- Narrative (short films) ---------- */
.ml-grid--narrative { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; row-gap: 88px; }
.ml-grid--narrative .ml-card__title { font-size: 18px; }
.ml-card__logline { display: block; margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.3; color: var(--text); text-transform: none; }
.ml-card__laurels { display: block; margin-top: 10px; font-size: 11px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.ml-film__logline { margin: 0; max-width: 620px; font-family: var(--serif); font-style: italic; font-size: 28px; line-height: 1.3; }
.ml-laurels { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); }
.ml-laurels li::before { content: "✱ "; color: var(--marker); }
@media (max-width: 900px) {
  .ml-grid--narrative { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .ml-card__logline { font-size: 18px; }
  .ml-film__logline { font-size: 21px; }
}

/* ---------- Light version (Customizer toggle) ---------- */
body.ml-light {
  --bg: #F2F0EB;
  --surface: #E4E1DA;
  --surface-2: #E9E6DF;
  --line: #D6D2C9;
  --line-2: #C3BFB5;
  --text: #111110;
  --body: #2B2A27;
  --soft: #4A4843;
  --muted: #66635D;
  --faint: #8A877F;
  --marker: #C2361F;
}
/* The opening film, the film player and the viewer stay dark. */
.ml-light .ml-hero, .ml-light .ml-lb, .ml-light .ml-player {
  --bg: #0F0F0D; --surface: #1C1C1A; --line: #2A2926; --line-2: #3A3935;
  --text: #ECEAE4; --body: #CFCCC4; --soft: #B8B5AD; --muted: #9A978F; --faint: #6F6C66; --marker: #FF4A2E;
  color: var(--text);
}
@media (min-width: 901px) {
  .ml-light .ml-header--overlay {
    --text: #ECEAE4; --soft: #B8B5AD; --marker: #FF4A2E;
    color: var(--text);
  }
}
/* Social icons are uploaded light-on-transparent: darken them on paper. */
.ml-light .ml-social img { filter: invert(1); }
.ml-light ::selection { background: #111110; color: #F2F0EB; }
