/*
 * C@rlberg Productions: Material 3 in hand-written CSS, built like the dflag.se front page (Nunito, quiet tinted
 * surfaces instead of outlines, rounded shapes, light and dark after the device). The top bar and the start page's
 * band stay dark in both, like the old site's black header, and its glow colour (#9bd8ef) is the default tone.
 * Every text colour pair is at least 4.5:1 (WCAG AA). The tones: himmel (default), bio and rosa (?ton= locally).
 */

@font-face {
    font-family: "Nunito";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Nunito";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Nunito";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/nunito-latin-800-normal.woff2") format("woff2");
}

:root {
    color-scheme: light dark;
    --font: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius-card: 24px;
    --radius-small: 16px;
    --max: 1080px;
    --gutter: max(16px, env(safe-area-inset-left));
    --gutter-r: max(16px, env(safe-area-inset-right));
    /* the dark band (top bar and the start page's marquee), the same in light and dark */
    --dark-bg: #05090d;
    --dark-surface: #121a21;
    --dark-text: #dbe6ee;
    --dark-text-2: #a9b7c2;
    --nav-h: 80px;
}

:root,
:root[data-tone="himmel"] {
    --primary: #00658a;
    --on-primary: #ffffff;
    --container: #c4e7ff;
    --on-container: #001e2c;
    --bg: #f6fafe;
    --surface: #e9f1f7;
    --surface-high: #dce7ef;
    --text: #161c20;
    --text-2: #41484d;
    --accent: #8bd1f0;
    --on-accent: #00344a;
}

:root[data-tone="bio"] {
    --primary: #a3303a;
    --on-primary: #ffffff;
    --container: #ffdad8;
    --on-container: #410007;
    --bg: #fff8f7;
    --surface: #fbeeec;
    --surface-high: #f4e0de;
    --text: #231919;
    --text-2: #534342;
    --accent: #ffb3ae;
    --on-accent: #68000f;
}

:root[data-tone="rosa"] {
    --primary: #c2185b;
    --on-primary: #ffffff;
    --container: #ffd9e2;
    --on-container: #6b0d32;
    --bg: #fff8f9;
    --surface: #fff0f3;
    --surface-high: #ffe3ea;
    --text: #22191c;
    --text-2: #6c5a61;
    --accent: #ffb1c8;
    --on-accent: #5e1133;
}

@media (prefers-color-scheme: dark) {
    :root,
    :root[data-tone="himmel"] {
        --primary: #8bd1f0;
        --on-primary: #00344a;
        --container: #004c69;
        --on-container: #c4e7ff;
        --bg: #0f1418;
        --surface: #1a2125;
        --surface-high: #252c31;
        --text: #dee3e8;
        --text-2: #c0c7cd;
    }

    :root[data-tone="bio"] {
        --primary: #ffb3ae;
        --on-primary: #68000f;
        --container: #86202a;
        --on-container: #ffdad8;
        --bg: #1a1111;
        --surface: #271d1d;
        --surface-high: #332827;
        --text: #f1dedd;
        --text-2: #d8c2c0;
    }

    :root[data-tone="rosa"] {
        --primary: #ffb1c8;
        --on-primary: #5e1133;
        --container: #76153b;
        --on-container: #ffd9e2;
        --bg: #181114;
        --surface: #2b1f23;
        --surface-high: #3b2a30;
        --text: #f3e8eb;
        --text-2: #cbb7be;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    min-height: 100vh;
    padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--primary);
}

.icon {
    display: block;
    flex: none;
    width: 24px;
    height: 24px;
    fill: currentColor;
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

.app-bar :focus-visible,
.marquee :focus-visible,
.lightbox :focus-visible {
    outline-color: var(--accent);
}

.skip {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 30;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-200%);
}

.skip:focus {
    transform: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* top app bar: dark, like the old site's black header */

.app-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: env(safe-area-inset-top) var(--gutter-r) 0 var(--gutter);
    background: var(--dark-bg);
    color: var(--dark-text);
}

.app-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: var(--max);
    height: 64px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    border-radius: 14px;
    color: var(--dark-text);
    text-decoration: none;
}

.brand__mark {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent);
    color: var(--on-accent);
}

.brand__name {
    overflow: hidden;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand__at {
    color: var(--accent);
}

.brand__rest {
    color: var(--dark-text-2);
    font-weight: 700;
}

.tabs {
    display: none;
    gap: 4px;
}

.tabs__link {
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--dark-text);
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.tabs__link:hover {
    background: rgba(255, 255, 255, 0.08);
}

.tabs__link[aria-current="page"] {
    background: var(--accent);
    color: var(--on-accent);
}

/* the start page's band under the top bar */

.marquee {
    padding: 8px var(--gutter-r) 36px var(--gutter);
    background:
        radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
        var(--dark-bg);
    color: var(--dark-text);
    text-align: center;
}

.marquee__inner {
    max-width: 760px;
    margin: 0 auto;
}

.marquee__logo img {
    width: 100%;
    max-width: 640px;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
}

.marquee__tag {
    max-width: 34em;
    margin: 18px auto 0;
    color: var(--dark-text-2);
    font-size: 1.05rem;
}

.marquee .actions {
    justify-content: center;
    margin-top: 22px;
}

/* buttons */

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 22px 10px 18px;
    border-radius: 999px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.btn .icon {
    width: 20px;
    height: 20px;
}

.btn:hover {
    filter: brightness(1.08);
}

.btn:active {
    transform: scale(0.98);
}

.btn--filled {
    background: var(--primary);
    color: var(--on-primary);
}

.marquee .btn--filled {
    background: var(--accent);
    color: var(--on-accent);
}

.btn--tonal {
    background: var(--container);
    color: var(--on-container);
}

.btn--on-dark {
    background: rgba(255, 255, 255, 0.1);
    color: var(--dark-text);
}

/* page */

.page {
    max-width: calc(var(--max) + 32px);
    margin: 0 auto;
    padding: 8px var(--gutter-r) 8px var(--gutter);
}

.page--narrow {
    max-width: calc(760px + 32px);
}

.page-head {
    padding: 24px 0 4px;
}

.page-head h1,
.film-title {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.page-head p {
    max-width: 42em;
    margin-top: 8px;
    color: var(--text-2);
    font-size: 1.05rem;
}

.section {
    margin-top: 32px;
}

.section h2 {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.25;
}

.section > h2 {
    margin-bottom: 12px;
}

.section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 12px;
}

.section__sub {
    margin-top: 2px;
    color: var(--text-2);
}

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 6px 4px 6px 12px;
    border-radius: 999px;
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.link-more:hover {
    background: var(--surface);
}

.link-more .icon {
    width: 20px;
    height: 20px;
}

/* film cards and thumbnails */

.film-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.film-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.film-card:hover {
    background: var(--surface-high);
}

.film-card:active {
    transform: scale(0.985);
}

.thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--dark-bg);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.film-card:hover .thumb img,
.film-row__thumb:hover img {
    transform: scale(1.03);
}

.thumb__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(5, 9, 13, 0.72);
    color: #ffffff;
    transform: translate(-50%, -50%);
}

.thumb__play .icon {
    width: 30px;
    height: 30px;
}

.thumb__len {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 1px 8px;
    border-radius: 8px;
    background: rgba(5, 9, 13, 0.8);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
}

.film-card__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 18px 18px;
}

.film-card__title {
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.3;
}

.film-card__meta,
.film-row__meta {
    color: var(--text-2);
    font-size: 0.95rem;
}

/* the start page's latest film */

.feature {
    display: grid;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.feature:hover {
    background: var(--surface-high);
}

.feature:hover .thumb img {
    transform: scale(1.03);
}

.feature__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 18px 20px;
}

.feature__title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
}

.feature__text {
    margin-top: 6px;
}

.feature__btn {
    margin-top: 14px;
}

/* the Filmer page: one row per film */

.film-list {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.film-row {
    display: grid;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--surface);
}

.film-row__thumb {
    display: block;
}

.film-row__body {
    padding: 14px 18px 18px;
}

.film-row__title {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
}

.film-row__title a {
    color: var(--text);
    text-decoration: none;
}

.film-row__title a:hover {
    color: var(--primary);
}

.film-row__text {
    margin-top: 8px;
}

/* one film */

.page--film {
    max-width: calc(880px + 32px);
}

.back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 16px 0 8px -8px;
    padding: 6px 14px 6px 8px;
    border-radius: 999px;
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.back:hover {
    background: var(--surface);
}

.back .icon {
    width: 20px;
    height: 20px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 16px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 4px 14px 4px 10px;
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 700;
}

.chip .icon {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.chip--link {
    padding-left: 14px;
    text-decoration: none;
}

.chip--link:hover {
    background: var(--surface-high);
}

.chip__count {
    color: var(--text-2);
    font-weight: 400;
}

.player {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-card);
    background: #000000;
}

.player iframe,
.player__start,
.player__start img {
    width: 100%;
    height: 100%;
    border: 0;
}

.player__start {
    position: relative;
    display: block;
    color: #ffffff;
    text-decoration: none;
}

.player__start img {
    object-fit: cover;
    opacity: 0.85;
}

.player__button {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--on-accent);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease;
}

.player__start:hover .player__button {
    transform: translate(-50%, -50%) scale(1.06);
}

.player__button .icon {
    width: 44px;
    height: 44px;
}

.player__label {
    position: absolute;
    left: 50%;
    bottom: 14px;
    padding: 2px 12px;
    border-radius: 999px;
    background: rgba(5, 9, 13, 0.75);
    font-weight: 800;
    transform: translateX(-50%);
}

.player__note {
    margin-top: 8px;
    color: var(--text-2);
    font-size: 0.85rem;
}

.lead {
    margin-top: 16px;
    font-size: 1.1rem;
}

.people {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.person {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px 10px 10px;
    border-radius: 20px;
    background: var(--surface);
}

.avatar {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-high);
}

.person__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.person__name {
    font-weight: 800;
    line-height: 1.3;
}

.person__role {
    color: var(--text-2);
    font-size: 0.95rem;
    line-height: 1.35;
}

.crew {
    display: grid;
    gap: 2px;
    overflow: hidden;
    border-radius: 20px;
}

.crew__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 10px 16px;
    background: var(--surface);
}

.crew__row dt {
    color: var(--text-2);
    font-size: 0.9rem;
    font-weight: 700;
}

.stills {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 8px;
}

.stills a,
.mosaic a {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-small);
    background: var(--surface);
}

.stills img,
.mosaic img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.stills a:hover img,
.mosaic a:hover img {
    transform: scale(1.05);
}

.pager {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    margin-top: 40px;
}

.pager__link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 18px;
    border-radius: 20px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
}

.pager__link:hover {
    background: var(--surface-high);
}

.pager__link--next {
    grid-column: 2;
    align-items: flex-end;
    text-align: right;
}

.pager__dir {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 800;
}

.pager__dir .icon {
    width: 18px;
    height: 18px;
}

.pager__title {
    font-weight: 700;
    line-height: 1.3;
}

/* start page: stills and quotes */

.mosaic {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.quotes {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.quote {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    padding: 20px;
    border-radius: var(--radius-card);
    background: var(--surface);
}

.quote__text {
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

.quote__text::before {
    content: "\201D";
    display: block;
    height: 0.9em;
    color: var(--primary);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
}

.quote__by {
    color: var(--text-2);
    font-size: 0.9rem;
    font-weight: 700;
}

/* guestbook */

.year-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.entries {
    display: grid;
    gap: 10px;
}

.entry {
    padding: 16px 18px;
    border-radius: 20px;
    background: var(--surface);
}

.entry__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.entry__head > span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.entry__letter {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--container);
    color: var(--on-container);
    font-weight: 800;
}

.entry__name {
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.entry__meta {
    color: var(--text-2);
    font-size: 0.88rem;
}

.entry__text {
    overflow-wrap: anywhere;
}

/* about */

.prose p {
    max-width: 40em;
}

.card-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-card);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
}

.card-link:hover {
    background: var(--surface-high);
}

.card-link__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--container);
    color: var(--on-container);
}

.card-link__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.card-link__title {
    font-weight: 800;
}

.card-link__text {
    color: var(--text-2);
    font-size: 0.95rem;
}

.card-link__go {
    width: 20px;
    height: 20px;
    color: var(--text-2);
}

.news {
    display: grid;
    gap: 10px;
}

.news__item {
    padding: 16px 18px;
    border-radius: 20px;
    background: var(--surface);
}

.news__date {
    color: var(--text-2);
    font-size: 0.88rem;
    font-weight: 700;
}

.news__title {
    margin-bottom: 4px;
    font-size: 1.08rem;
    font-weight: 800;
}

.news__item .link-more {
    margin: 6px 0 0 -12px;
}

.links {
    display: grid;
    gap: 4px;
}

.links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    font-weight: 700;
}

.links .icon {
    width: 18px;
    height: 18px;
}

/* footer and the bottom navigation bar (phones) */

.footer {
    padding: 40px 16px 28px;
    color: var(--text-2);
    font-size: 0.875rem;
    text-align: center;
}

.footer a {
    color: var(--text-2);
}

.nav-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    height: calc(var(--nav-h) + env(safe-area-inset-bottom));
    padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    background: var(--surface);
    box-shadow: 0 -1px 0 color-mix(in srgb, var(--text) 8%, transparent);
}

.nav-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    color: var(--text-2);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.nav-bar__pill {
    display: grid;
    place-items: center;
    width: 56px;
    height: 32px;
    border-radius: 999px;
    transition: background-color 0.15s ease;
}

.nav-bar__label {
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.nav-bar__item[aria-current="page"] {
    color: var(--text);
}

.nav-bar__item[aria-current="page"] .nav-bar__pill {
    background: var(--container);
    color: var(--on-container);
}

.nav-bar__item[aria-current="page"] .nav-bar__label {
    font-weight: 800;
}

/* the lightbox (js/site.js); without JavaScript a still opens as a picture */

.lightbox {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(5, 9, 13, 0.94);
    color: #ffffff;
}

.lightbox::backdrop {
    background: rgba(5, 9, 13, 0.6);
}

.lightbox[open] {
    display: grid;
    place-items: center;
}

.lightbox__img {
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 120px);
    border-radius: 12px;
    object-fit: contain;
}

.lightbox__count {
    position: absolute;
    left: 50%;
    bottom: max(20px, env(safe-area-inset-bottom));
    font-weight: 800;
    transform: translateX(-50%);
}

.lightbox__btn {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    cursor: pointer;
}

.lightbox__btn:hover {
    background: rgba(255, 255, 255, 0.24);
}

.lightbox__close {
    top: max(16px, env(safe-area-inset-top));
    right: 16px;
}

.lightbox__prev,
.lightbox__next {
    bottom: max(10px, env(safe-area-inset-bottom));
}

.lightbox__prev {
    left: 16px;
}

.lightbox__next {
    right: 16px;
}

/* wider screens */

@media (min-width: 560px) {
    .film-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .people {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stills {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .crew__row {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 16px;
        align-items: baseline;
    }

    .page-head h1,
    .film-title {
        font-size: 2.3rem;
    }
}

@media (min-width: 760px) {
    .film-row {
        grid-template-columns: 300px minmax(0, 1fr);
        align-items: start;
    }

    .film-row__thumb {
        height: 100%;
        aspect-ratio: auto;
        min-height: 169px;
    }

    .film-row__body {
        padding: 18px 22px;
    }

    .feature {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
        align-items: center;
    }

    .feature .thumb {
        height: 100%;
    }

    .feature__body {
        padding: 24px 28px;
    }

    .mosaic {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .quotes {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lightbox__prev,
    .lightbox__next {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }

    .lightbox__img {
        max-width: calc(100vw - 160px);
        max-height: calc(100dvh - 96px);
    }
}

@media (min-width: 840px) {
    :root {
        --nav-h: 0px;
    }

    .nav-bar {
        display: none;
    }

    .tabs {
        display: flex;
    }

    .marquee {
        padding-top: 20px;
        padding-bottom: 48px;
    }
}

@media (min-width: 1000px) {
    .film-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .people {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .section {
        margin-top: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
