/* ==========================================================
   OPTIONAL PHOTOGRAPHY / FILM STUDIES
   Loaded only by pages requiring partials/content-study.php.
   Ordinary site pages keep their current styles and downloads.
   ========================================================== */
:root {
    /* Easy-to-find art direction controls. No external fonts are needed. */
    --lieben_study_paper: #fbfaf7;
    --lieben_study_ink: #20251f;
    --lieben_study_cream: #eee9df;
    --lieben_study_citrus: #d8ff00;
    --lieben_study_blue: #0aa2cb;
    --lieben_study_pink: #f29cc0;
    --lieben_study_grid_gap: 24px;
}

.content-study {
    background: var(--lieben_study_paper);
    color: var(--lieben_study_ink);
    --lieben_frame_text_color: var(--lieben_study_ink);
}

.content-study a {
    color: inherit;
}

.study-page {
    margin-top: 36px;
}

.study-return {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    width: calc(100% - 40px);
    max-width: 980px;
    margin: 22px auto 0;
    font-size: 11px;
    line-height: 1.5;
}

.study-return a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.study-return span {
    align-self: center;
    color: #60645d;
}

.study-intro {
    max-width: 520px;
    margin: 20px auto 60px;
    text-align: center;
}

.study-kicker {
    margin: 0 0 18px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.study-title {
    margin: 0 0 20px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 400;
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.study-deck {
    max-width: 420px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.7;
}

.study-section {
    margin: 80px 0;
}

.study-section-heading {
    max-width: 420px;
    margin: 0 auto 32px;
    text-align: center;
}

.study-section-heading h2 {
    margin: 0 0 12px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -0.03em;
}

.study-section-heading p {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
}

.study-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 11px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.content-study a:focus-visible,
.content-study button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px;
}

.study-layout-note {
    max-width: 520px;
    margin: 72px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--lieben_frame_line_color);
    font-size: 12px;
    line-height: 1.7;
}

/* ==========================================================
   FOUR TO TWO IMAGE GRID
   Never falls to one column, including the 320px phone layout.
   At 960px: four columns. Below 960px: two larger columns.
   At phone widths: the same two columns become naturally smaller.
   ========================================================== */
.content-grid.gallery-grid.gallery-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px var(--lieben_study_grid_gap);
}

.gallery-grid-four .gallery-card {
    max-width: none;
}

.gallery-grid-four .content-meta {
    font-size: 11px;
    line-height: 1.55;
}

@media (max-width: 959px) {
    .content-grid.gallery-grid.gallery-grid-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .content-grid.gallery-grid.gallery-grid-four {
        gap: 28px 12px;
    }
}

/* ==========================================================
   NATIVE VIDEO
   Actual video ratio by default; campaign crops are an opt-in.
   JS only adds sources / playback behavior, never layout heights.
   ========================================================== */
.study-video {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.study-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: var(--lieben_video_ratio, 4 / 3);
    overflow: hidden;
    background: #171c18;
    isolation: isolate;
}

.study-video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.study-video-wide .study-video-frame {
    aspect-ratio: 16 / 9;
}

.study-video-wide video {
    object-fit: cover;
}

.study-video-controls {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
}

.study-video-controls[hidden],
.study-video-status[hidden] {
    display: none;
}

.study-video-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    cursor: pointer;
}

.study-video-button:hover {
    background: #000;
}

.study-video-button svg {
    display: block;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.study-video .icon-pause,
.study-video .icon-sound,
.study-video.is-playing .icon-play,
.study-video.is-unmuted .icon-muted {
    display: none;
}

.study-video.is-playing .icon-pause,
.study-video.is-unmuted .icon-sound {
    display: block;
}

.study-video-status {
    position: absolute;
    z-index: 4;
    bottom: 12px;
    left: 12px;
    right: 12px;
    margin: 0;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
}

.study-media-caption {
    display: block;
    margin: 12px 0 0;
    color: #595e55;
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 0.03em;
}

.study-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.study-pair > * {
    min-width: 0;
}

.study-image {
    display: block;
    width: 100%;
    height: auto;
}

.study-photo {
    min-width: 0;
    margin: 0;
}

.study-photo-portrait .study-image {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.study-photo-square .study-image {
    aspect-ratio: 1;
    object-fit: cover;
}

.study-photo-contain .study-image {
    aspect-ratio: 1;
    object-fit: contain;
}

.study-split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 40px;
    align-items: center;
}

.study-split-copy {
    max-width: 320px;
    margin: 0 auto;
}

.study-split-copy h2 {
    margin: 0 0 22px;
    font: 400 clamp(34px, 4vw, 52px) / 1.05 Georgia, serif;
    letter-spacing: -0.04em;
}

.study-split-copy p {
    font-size: 14px;
    line-height: 1.7;
}

/* ==========================================================
   OPTIONAL CAMPAIGN STAGE
   Full-width media is confined to these demo pages. The shared
   header, footer and reading islands keep their established bounds.
   ========================================================== */
.campaign-page {
    flex: 1 0 auto;
    width: 100%;
    min-width: 0;
    margin: 24px 0 90px;
}

.campaign-island {
    width: calc(100% - 40px);
    max-width: 940px;
    margin-left: auto;
    margin-right: auto;
}

.campaign-hero {
    position: relative;
    margin: 0;
}

.campaign-hero > .study-image {
    height: min(76vw, 760px);
    min-height: 360px;
    object-fit: cover;
    object-position: center 35%;
}

.campaign-hero .study-video-frame {
    aspect-ratio: auto;
    height: min(65vw, 720px);
    min-height: 360px;
}

.campaign-hero .study-video video {
    object-fit: cover;
}

.campaign-hero .study-media-caption {
    padding: 0 20px;
}

.campaign-overlay {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 100px 24px 48px;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.68));
    text-align: center;
    pointer-events: none;
}

.campaign-hero:has(.study-video) .campaign-overlay {
    bottom: 30px;
}

.campaign-overlay h2 {
    margin: 0 0 12px;
    font: 400 clamp(40px, 6vw, 82px) / 0.98 Georgia, serif;
    letter-spacing: -0.045em;
}

.campaign-overlay a {
    pointer-events: auto;
}

.campaign-heading {
    max-width: 640px;
    margin: 80px auto 38px;
    padding: 0 20px;
    text-align: center;
}

.campaign-heading h2 {
    margin: 0 0 16px;
    font: 400 clamp(32px, 4vw, 50px) / 1.05 Georgia, serif;
    letter-spacing: -0.035em;
}

.campaign-heading p {
    font-size: 13px;
    line-height: 1.7;
}

.campaign-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 60px;
}

.campaign-pair .study-media-caption {
    padding: 0 20px 16px;
}

.campaign-pair .study-image {
    height: min(65vw, 780px);
    object-fit: cover;
    object-position: center 25%;
}

.campaign-small-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.campaign-small-grid .study-image {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

/* Keep artwork intact when this card explicitly requests clear framing. */
.campaign-small-grid .study-photo-contain .study-image {
    object-fit: contain;
}

.campaign-small-grid h3 {
    margin: 14px 0 4px;
    font-size: 13px;
    font-weight: 400;
}

.campaign-small-grid p {
    font-size: 11px;
    line-height: 1.6;
}

.campaign-small-grid article {
    min-width: 0;
}

.campaign-interlude {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    margin-top: 110px;
    margin-bottom: 110px;
}

.campaign-interlude .study-photo {
    width: 75%;
    margin-left: auto;
}

.campaign-interlude-copy {
    max-width: 300px;
}

.campaign-interlude-copy h2 {
    font: 400 46px / 1.05 Georgia, serif;
    letter-spacing: -0.04em;
}

.campaign-interlude-copy p {
    font-size: 13px;
    line-height: 1.8;
}

.campaign-endnote {
    max-width: 940px;
    margin: 80px auto 0;
    padding: 0 20px;
    font-size: 11px;
    line-height: 1.7;
    color: #5d6359;
}

/* ==========================================================
   DIRECTION 01 / WILD COUNTRY ATELIER
   Oxblood editorial type, paper, a decisive portrait, field notes.
   ========================================================== */
.study-atelier {
    background: #eee9df;
    color: #392522;
    --lieben_study_ink: #392522;
}

.atelier-masthead {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.atelier-masthead h2 {
    margin: 0;
    font: 400 clamp(60px, 9vw, 132px) / 0.8 Georgia, serif;
    letter-spacing: -0.07em;
}

.atelier-masthead h2 em {
    font-weight: 400;
}

.atelier-masthead p {
    margin: 0;
    max-width: 150px;
    font-size: 10px;
    line-height: 1.7;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.atelier-cover {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 18px;
    align-items: end;
}

.atelier-cover-main {
    position: relative;
}

.atelier-cover-main .study-image {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 30%;
}

.atelier-side {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.atelier-side .study-image {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.atelier-side h3 {
    margin: 0 0 16px;
    font: italic 400 clamp(26px, 3vw, 42px) / 1.05 Georgia, serif;
    letter-spacing: -0.03em;
}

.atelier-side p {
    font-size: 12px;
    line-height: 1.8;
}

.atelier-statement {
    max-width: 720px;
    margin: 100px auto;
    padding: 0 20px;
    text-align: center;
}

.atelier-statement h2 {
    margin: 24px 0;
    font: 400 clamp(36px, 5vw, 66px) / 1.05 Georgia, serif;
    letter-spacing: -0.04em;
}

.atelier-film-band {
    padding: 64px 0;
    background: #4c2c29;
    color: #f4ebdc;
}

.atelier-film-band .study-media-caption {
    color: #e8d9ce;
}

.atelier-film-band .study-split-copy h2 {
    font-style: italic;
}

/* ==========================================================
   DIRECTION 02 / ELECTRIC FIELD
   A blue stage, citrus typography, hard cuts and precise grids.
   ========================================================== */
.study-electric {
    background: var(--lieben_study_blue);
    --lieben_study_ink: #13291b;
}

.electric-title {
    margin: 16px auto 0;
    font-size: clamp(72px, 13.8vw, 194px);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.085em;
    text-transform: uppercase;
}

.electric-title span {
    display: block;
    color: var(--lieben_study_citrus);
}

.electric-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
    gap: 20px;
    margin-top: 30px;
}

.electric-stage > .study-photo .study-image {
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.electric-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.electric-sticker {
    display: grid;
    place-items: center;
    align-self: end;
    width: 124px;
    height: 124px;
    padding: 20px;
    border: 1px solid #13291b;
    border-radius: 50%;
    background: var(--lieben_study_citrus);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
    text-align: center;
    transform: rotate(12deg);
}

.study-electric .study-media-caption {
    color: #163b35;
}

.electric-ribbon {
    margin: 60px 0;
    padding: 18px 20px;
    overflow: hidden;
    background: var(--lieben_study_citrus);
    color: #13291b;
    text-align: center;
    font-size: clamp(16px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.electric-grid {
    gap: 12px;
}

.electric-grid article:nth-child(even) {
    padding-top: 70px;
}

.electric-grid h3 {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.electric-finale {
    margin-top: 80px;
    padding: 70px 0;
    background: var(--lieben_study_pink);
}

.electric-finale h2 {
    margin: 0 0 26px;
    font: 900 clamp(44px, 8vw, 100px) / 0.9 Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.07em;
}

.study-electric .campaign-endnote {
    color: #163b35;
}

/* ==========================================================
   DIRECTION 03 / PRIVATE VIEW
   White walls, archival labels, a living film alongside stills.
   ========================================================== */
.study-private-view {
    background: #fff;
    --lieben_study_ink: #222;
}

.private-view-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0 42px;
}

.private-view-heading h2 {
    margin: 0;
    font: 400 clamp(36px, 6vw, 80px) / 1 Georgia, serif;
    letter-spacing: -0.05em;
}

.private-view-heading p {
    max-width: 180px;
    margin: 0;
    font-size: 10px;
    line-height: 1.7;
}

.private-view-wall {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
    gap: 12%;
    padding: 50px 5% 70px;
    background: #f0efed;
}

.private-view-wall .study-image {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
}

.private-view-wall .study-photo:last-child {
    padding-top: 150px;
}

.private-view-label {
    margin-top: 14px;
    padding-top: 9px;
    border-top: 1px solid #c5c4c1;
    font-size: 10px;
    line-height: 1.8;
}

.private-view-film {
    display: grid;
    grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr);
    gap: 60px;
    align-items: center;
    margin-top: 130px;
    margin-bottom: 130px;
}

.private-view-film h2 {
    font: 400 34px / 1.05 Georgia, serif;
    letter-spacing: -0.04em;
}

.private-view-film p {
    font-size: 12px;
    line-height: 1.8;
}

.private-view-contact-sheet {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding: 36px 0;
    border-top: 1px solid #d4d4d0;
}

.private-view-contact-sheet .study-image {
    height: 240px;
    object-fit: contain;
}

/* ==========================================================
   REVIEW INDEX
   ========================================================== */
.study-index-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 52px 32px;
}

.study-index-card {
    min-width: 0;
}

.study-index-card > a {
    display: block;
}

.study-index-card .study-image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 30%;
}

.study-index-card h3 {
    margin: 18px 0 10px;
    font: 400 30px / 1.05 Georgia, serif;
    letter-spacing: -0.035em;
}

.study-index-card p {
    margin: 0 0 10px;
    max-width: 420px;
    font-size: 13px;
    line-height: 1.7;
}

.study-index-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 32px;
    padding: 0;
    list-style: none;
}

.study-index-links a {
    display: block;
    padding: 22px 0;
    border-bottom: 1px solid var(--lieben_frame_line_color);
    font-size: 15px;
    line-height: 1.5;
}

.study-index-links small {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #5d6359;
}

@media (max-width: 959px) {
    .campaign-small-grid,
    .private-view-contact-sheet {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .study-split,
    .private-view-film {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .study-split-copy {
        max-width: 420px;
    }

    .campaign-interlude {
        gap: 30px;
    }

    .campaign-interlude .study-photo {
        width: 100%;
    }

    .campaign-interlude-copy h2 {
        font-size: 34px;
    }
}

@media (max-width: 600px) {
    .study-return span {
        display: none;
    }

    .study-intro {
        margin-bottom: 40px;
    }

    .study-pair,
    .study-index-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .study-index-links {
        grid-template-columns: minmax(0, 1fr);
    }

    .study-section {
        margin: 56px 0;
    }

    .study-video-controls {
        top: 8px;
        right: 8px;
    }

    .campaign-hero .study-video-frame,
    .campaign-hero > .study-image {
        height: 115vw;
        min-height: 340px;
        max-height: 560px;
    }

    .campaign-overlay {
        padding-bottom: 28px;
    }

    .campaign-pair {
        gap: 5px;
    }

    .campaign-pair .study-image {
        height: 70vw;
    }

    .campaign-pair .study-media-caption {
        padding: 0 10px 12px;
    }

    .campaign-small-grid {
        gap: 28px 12px;
    }

    .campaign-interlude {
        margin-top: 70px;
        margin-bottom: 70px;
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .campaign-interlude .study-photo {
        width: 76%;
        margin: 0 auto;
    }

    .campaign-interlude-copy {
        margin: 0 auto;
        text-align: center;
    }

    .atelier-masthead {
        align-items: start;
        flex-direction: column;
    }

    .atelier-masthead p {
        max-width: none;
    }

    .atelier-cover {
        grid-template-columns: minmax(0, 1fr);
    }

    .atelier-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: center;
        gap: 20px;
    }

    .atelier-statement {
        margin: 70px auto;
    }

    .electric-stage {
        grid-template-columns: minmax(0, 1fr);
    }

    .electric-side {
        display: grid;
        grid-template-columns: 100px minmax(0, 1fr);
        align-items: center;
        gap: 18px;
    }

    .electric-sticker {
        align-self: center;
        width: 96px;
        height: 96px;
        font-size: 10px;
    }

    .electric-grid article:nth-child(even) {
        padding-top: 36px;
    }

    .private-view-heading {
        align-items: start;
        flex-direction: column;
        gap: 18px;
    }

    .private-view-wall {
        gap: 8%;
        padding: 32px 6%;
    }

    .private-view-wall .study-photo:last-child {
        padding-top: 90px;
    }

    .private-view-film {
        margin-top: 70px;
        margin-bottom: 70px;
    }

    .private-view-contact-sheet {
        gap: 28px 12px;
    }

    .private-view-contact-sheet .study-image {
        height: 170px;
    }
}

/* No scroll hijacking or forced motion. Hover changes stay restrained. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .study-index-card > a .study-image {
        transition: opacity 200ms ease;
    }

    .study-index-card > a:hover .study-image {
        opacity: 0.88;
    }
}
