/*
Theme Name: FRI—TECH
Author: FRI—TECH
Description: Minimal custom theme for the FRI—TECH portfolio.
Version: 0.3.0
Text Domain: fri-tech
*/

/* ==========================================================================
   01. Variables / base
   ========================================================================== */

:root {
    --bg: #f1f0eb;
    --text: #111;
    --muted: #6f6e69;
    --line: #c9c8c3;
    --accent: #d92d20;
    --panel: #e8e7e2;

    --content-width: 1400px;
    --text-width: 720px;
    --pad-x: clamp(22px, 4vw, 56px);

    --mono: ui-monospace, "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", monospace;
    --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.page {
    width: min(100%, var(--content-width));
    margin: 0 auto;
    padding: 0 var(--pad-x);
}


/* ==========================================================================
   02. Header / navigation
   ========================================================================== */

.site-header {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    border-bottom: 1px solid var(--line);
}

.brand {
    flex: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .1em;
    white-space: nowrap;
}

.brand-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-left: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 38px);
    min-width: 0;
}

.header-nav-menu ul {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.5vw, 32px);
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .69rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.header-nav-menu a:hover,
.header-nav-menu .current-menu-item > a,
.header-nav-menu .current_page_item > a {
    color: var(--text);
}

.header-account {
    display: flex;
    align-items: center;
    padding-left: clamp(14px, 2vw, 24px);
    border-left: 1px solid var(--line);
}

.header-auth-link {
    color: var(--text);
    font-family: var(--mono);
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.header-auth-link:hover {
    color: var(--accent);
}


/* ==========================================================================
   03. Shared typography / heroes
   ========================================================================== */

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .69rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--accent);
}

.project-hero {
    padding: clamp(64px, 10vw, 140px) 0 clamp(60px, 8vw, 110px);
    border-bottom: 1px solid var(--line);
}

.project-title {
    max-width: 1050px;
    margin: 0;
    font-size: clamp(3.7rem, 9vw, 9rem);
    font-weight: 600;
    line-height: .86;
    letter-spacing: -.065em;
}

.project-lead {
    max-width: 760px;
    margin: 42px 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.55vw, 1.35rem);
    line-height: 1.55;
}

.archive-hero {
    padding-top: clamp(48px, 7vw, 90px);
    padding-bottom: clamp(44px, 6vw, 72px);
}

.archive-hero .project-title {
    font-size: clamp(3.5rem, 8vw, 7rem);
}

.archive-hero .project-lead {
    margin-top: 28px;
}


/* ==========================================================================
   04. Home — cover / index layout
   ========================================================================== */

.home .page {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.home-cover {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
    gap: clamp(70px, 10vw, 180px);
    align-items: center;
    padding: clamp(54px, 7vh, 100px) 0;
}

.home-cover-main {
    align-self: center;
}

.home-cover-main .eyebrow {
    margin-bottom: 28px;
}

.home-cover-title {
    margin: 0;
    font-size: clamp(5rem, 9.2vw, 10.5rem);
    font-weight: 600;
    line-height: .82;
    letter-spacing: -.07em;
}

.home-cover-lead {
    max-width: 700px;
    margin: clamp(34px, 4vh, 54px) 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.35vw, 1.25rem);
    line-height: 1.5;
}

.home-cover-index {
    align-self: center;
    border-top: 1px solid var(--line);
}

.home-index-item {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    transition: padding-left .15s ease;
}

.home-index-item:hover {
    padding-left: 7px;
}

.home-index-number {
    padding-top: 3px;
    color: var(--accent);
    font-family: var(--mono);
    font-size: .61rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.home-index-content h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.home-index-content p {
    max-width: 330px;
    margin: 5px 0 0;
    color: var(--muted);
    font-size: .79rem;
    line-height: 1.45;
}

.home-index-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--text);
    font-family: var(--mono);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}


/* ==========================================================================
   05. Shared archive grids
   ========================================================================== */

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 340px));
    justify-content: start;
    gap: clamp(28px, 3.5vw, 48px);
    padding: clamp(44px, 6vw, 80px) 0;
    border-bottom: 1px solid var(--line);
}

.content-card {
    min-width: 0;
}

.content-card-link {
    display: block;
    height: 100%;
}

.content-card-disabled {
    cursor: default;
}

.content-card-image {
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: var(--panel);
}

.content-card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform .22s ease,
        filter .22s ease;
}

.content-card-link:hover .content-card-img {
    transform: scale(1.015);
}

.content-card-disabled:hover .content-card-img {
    transform: none;
}

.content-card-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .64rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    border: 1px solid var(--line);
}

.content-card-info {
    padding-top: 15px;
}

.content-card-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .61rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.content-card-info h2 {
    margin: 8px 0 0;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    line-height: 1.02;
    letter-spacing: -.04em;
}

.content-card-type {
    margin-top: 9px;
    color: #292826;
    font-size: .82rem;
}

.content-card-tags {
    margin-top: 9px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .065em;
    line-height: 1.55;
    text-transform: uppercase;
}

.content-card-excerpt {
    margin-top: 14px;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.55;
}

.content-card-excerpt p {
    margin: 0;
}

.project-card .project-status {
    color: var(--muted);
    font-family: var(--mono);
    font-size: .61rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.project-card .project-status.active {
    color: var(--accent);
}

.project-card .content-card-disabled .content-card-img {
    filter: saturate(.55) contrast(.92);
}

.project-card .content-card-disabled .content-card-info h2 {
    color: #3e3d39;
}

.empty-state {
    padding: 80px 0;
    color: var(--muted);
}


/* ==========================================================================
   06. Single project / generic content
   ========================================================================== */

.project-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: clamp(54px, 8vw, 96px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.meta-item {
    min-height: 92px;
    padding: 18px 18px 18px 0;
    border-right: 1px solid var(--line);
}

.meta-item:not(:first-child) {
    padding-left: 18px;
}

.meta-item:last-child {
    border-right: 0;
}

.meta-label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.meta-value {
    font-size: .92rem;
    font-weight: 600;
}

.content-section {
    display: grid;
    grid-template-columns: minmax(130px, .35fr) minmax(0, 1.65fr);
    gap: clamp(34px, 7vw, 110px);
    padding: clamp(64px, 9vw, 120px) 0;
    border-bottom: 1px solid var(--line);
}

.section-index {
    color: var(--accent);
    font-family: var(--mono);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.section-body {
    max-width: 980px;
}

.section-body h1,
.section-body h2 {
    max-width: 850px;
    margin: 0 0 28px;
    font-size: clamp(2rem, 4vw, 4.6rem);
    font-weight: 600;
    line-height: .98;
    letter-spacing: -.04em;
}

.entry-content p,
.entry-content li {
    max-width: var(--text-width);
    color: #292826;
    font-size: 1rem;
    line-height: 1.75;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

.entry-content figure {
    margin: 48px 0;
}

.entry-content figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .68rem;
}


/* ==========================================================================
   07. Buttons
   ========================================================================== */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--text);
    font-family: var(--mono);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.btn.primary {
    background: var(--text);
    color: var(--bg);
}

.btn.ghost {
    border-color: var(--line);
}


/* ==========================================================================
   08. Album metadata / photography content
   ========================================================================== */

.album-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: clamp(54px, 8vw, 96px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.album-meta-item {
    min-height: 92px;
    padding: 18px;
    border-right: 1px solid var(--line);
}

.album-meta-item:first-child {
    padding-left: 0;
}

.album-meta-item:last-child {
    border-right: 0;
}

.term-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: .92rem;
    font-weight: 600;
}

.term-list a {
    border-bottom: 1px solid var(--line);
}

.term-list a:hover {
    border-color: var(--accent);
}

.album-content {
    max-width: none;
}

.album-content .wp-block-gallery.has-nested-images {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 10px !important;
    width: 100%;
}

.album-content .wp-block-gallery.has-nested-images figure.wp-block-image {
    width: 100% !important;
    margin: 0 !important;
}

.album-content .wp-block-gallery.has-nested-images figure.wp-block-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Optional regular 4:3 contact-sheet layout. */
.album-content .wp-block-gallery.gallery-contact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px !important;
}

.album-content .wp-block-gallery.gallery-contact figure.wp-block-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.ft-lightbox-target {
    cursor: zoom-in;
}


/* ==========================================================================
   09. Lightbox
   ========================================================================== */

body.ft-lightbox-open {
    overflow: hidden;
}

.ft-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    grid-template-columns: minmax(54px, 8vw) 1fr minmax(54px, 8vw);
    align-items: center;
    padding: clamp(14px, 2vw, 28px);
    background: rgba(8, 8, 8, .96);
    color: #f4f4f0;
}

.ft-lightbox[hidden] {
    display: none;
}

.ft-lightbox-stage {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ft-lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 110px);
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.ft-lightbox-info {
    width: min(100%, 1100px);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    margin-top: 14px;
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .07em;
}

.ft-lightbox-counter {
    color: #aaa;
    white-space: nowrap;
}

.ft-lightbox-caption {
    color: #ddd;
}

.ft-lightbox-close,
.ft-lightbox-nav {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-family: var(--mono);
}

.ft-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 2;
    width: 44px;
    height: 44px;
    font-size: 2rem;
    line-height: 1;
}

.ft-lightbox-nav {
    min-width: 48px;
    min-height: 80px;
    font-size: 1.35rem;
    opacity: .72;
}

.ft-lightbox-nav:hover,
.ft-lightbox-close:hover {
    opacity: 1;
}

.ft-lightbox-prev {
    justify-self: start;
}

.ft-lightbox-next {
    justify-self: end;
}

.ft-lightbox button:focus-visible {
    outline: 1px solid #fff;
    outline-offset: 4px;
}


/* ==========================================================================
   10. Restricted / private content
   ========================================================================== */

.members-only-notice {
    max-width: var(--text-width);
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid var(--line);
    background: var(--panel);
}

.members-only-label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--accent);
    font-family: var(--mono);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.members-only-notice p {
    color: var(--muted);
}

.members-only-notice > a {
    display: inline-block;
    margin-top: 10px;
}


/* ==========================================================================
   11. Login page
   ========================================================================== */

.login-page {
    min-height: calc(100vh - 200px);
    display: grid;
    place-items: center;
    padding: clamp(60px, 10vh, 120px) 0;
    border-bottom: 1px solid var(--line);
}

.login-panel {
    width: min(100%, 520px);
}

.login-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.login-kicker::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--accent);
}

.login-title {
    margin: 0;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 600;
    line-height: .9;
    letter-spacing: -.055em;
}

.login-intro {
    max-width: 430px;
    margin: 24px 0 50px;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.6;
}

.fritech-login-form {
    border-top: 1px solid var(--line);
}

.login-field {
    padding: 22px 0 18px;
    border-bottom: 1px solid var(--line);
}

.login-field label {
    display: block;
    margin-bottom: 9px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.login-field input {
    display: block;
    width: 100%;
    padding: 4px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--sans);
    font-size: 1.2rem;
}

.login-field:focus-within {
    border-bottom-color: var(--text);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    cursor: pointer;
    font-size: .8rem;
}

.login-remember input {
    accent-color: var(--accent);
}

.login-actions {
    margin-top: 20px;
}

.login-submit {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border: 1px solid var(--text);
    background: var(--text);
    color: var(--bg);
    cursor: pointer;
    font-family: var(--mono);
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.login-submit:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.login-error {
    margin-bottom: 26px;
    padding: 14px 16px;
    border-left: 3px solid var(--accent);
    background: var(--panel);
    font-size: .86rem;
}

.login-footnote {
    margin-top: 24px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}


/* ==========================================================================
   12. Footer
   ========================================================================== */

.site-footer {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .66rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}


/* ==========================================================================
   13. Responsive
   ========================================================================== */

@media (max-width: 900px) {
    .home .page {
        min-height: 100vh;
        display: block;
    }

    .home-cover {
        display: block;
        padding: 70px 0;
    }

    .home-cover-title {
        font-size: clamp(4.5rem, 18vw, 8rem);
    }

    .home-cover-index {
        margin-top: 80px;
    }

    .album-content .wp-block-gallery.has-nested-images {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .album-content .wp-block-gallery.gallery-contact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ft-lightbox {
        grid-template-columns: 44px 1fr 44px;
        padding: 10px;
    }

    .ft-lightbox-image {
        max-height: calc(100vh - 95px);
    }
}

@media (max-width: 820px) {
    .content-section {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .project-meta,
    .album-meta {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 14px;
    }
}

@media (max-width: 700px) {
    .header-nav {
        gap: 12px;
    }

    .header-account {
        padding-left: 12px;
    }
}

@media (max-width: 600px) {
    .login-page {
        min-height: 0;
        place-items: start;
        padding: 60px 0 80px;
    }

    .login-title {
        font-size: clamp(3.2rem, 16vw, 5rem);
    }
}

@media (max-width: 520px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .project-meta,
    .album-meta {
        grid-template-columns: 1fr;
    }

    .meta-item,
    .meta-item:not(:first-child),
    .album-meta-item,
    .album-meta-item:first-child {
        padding: 16px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .album-content .wp-block-gallery.has-nested-images {
        gap: 5px !important;
    }

    .album-content .wp-block-gallery.gallery-contact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ft-lightbox {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .ft-lightbox-nav {
        display: none;
    }

    .ft-lightbox-image {
        max-height: calc(100vh - 105px);
    }

    .ft-lightbox-info {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
/* ==========================================================================
   ALBUM V2 - compact editorial layout
   Append to the end of style.css.
   ========================================================================== */

.album-v2-header {
    padding:
        clamp(38px, 5vw, 72px)
        0
        clamp(20px, 2.4vw, 34px);
}

.album-v2-eyebrow {
    margin-bottom: clamp(16px, 2vw, 24px);
}

.album-v2-title {
    max-width: 1100px;
    margin: 0;

    font-size: clamp(3.6rem, 7.4vw, 7.8rem);
    font-weight: 600;
    line-height: .88;
    letter-spacing: -.065em;
}

.album-v2-lead {
    max-width: 680px;
    margin-top: clamp(20px, 2.5vw, 30px);

    color: var(--muted);
    font-size: clamp(.98rem, 1.25vw, 1.18rem);
    line-height: 1.55;
}

.album-v2-lead p {
    margin: 0;
}


/* Main album area -------------------------------------------------------- */

.album-v2-body {
    display: grid;
    grid-template-columns:
        minmax(150px, 190px)
        minmax(0, 1fr);

    gap: clamp(30px, 4vw, 58px);

    padding:
        clamp(24px, 3vw, 38px)
        0
        clamp(64px, 7vw, 100px);

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);

    align-items: start;
}


/* Editorial rail -------------------------------------------------------- */

.album-v2-rail {
    position: sticky;
    top: 110px;

    min-width: 0;
}

.album-v2-rail-label {
    margin-bottom: 24px;

    color: var(--accent);
    font-family: var(--mono);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.album-v2-meta {
    display: grid;
    gap: 5px;

    padding: 13px 0;

    border-top: 1px solid var(--line);
}

.album-v2-meta:last-child {
    border-bottom: 1px solid var(--line);
}

.album-v2-meta-label {
    color: var(--muted);

    font-family: var(--mono);
    font-size: .56rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.album-v2-meta-value,
.album-v2-terms {
    color: var(--text);

    font-size: .78rem;
    line-height: 1.4;
}

.album-v2-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 8px;
}

.album-v2-terms a {
    border-bottom: 1px solid transparent;
}

.album-v2-terms a:hover {
    border-bottom-color: var(--accent);
}


/* Photography area ------------------------------------------------------ */

.album-v2-series {
    min-width: 0;
}

.album-v2-series .album-content {
    max-width: none;
}

/*
 * Remove generic content spacing from the first album block so the first
 * photographs start immediately next to the editorial rail.
 */
.album-v2-series .album-content > :first-child {
    margin-top: 0;
}

.album-v2-series .album-content > .wp-block-gallery:first-child,
.album-v2-series .album-content > .wp-block-image:first-child {
    margin-top: 0;
}


/*
 * Keep the existing natural-ratio gallery behavior, but allow the gallery
 * to use the full right-hand column.
 */
.album-v2-series .wp-block-gallery.has-nested-images {
    width: 100%;
}



.album-v2-access-footer {
    margin-top: clamp(28px, 4vw, 56px);
    padding-top: 12px;
    border-top: 1px solid var(--line);

    color: var(--muted);
    font-family: var(--mono);
    font-size: .56rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .7;
}

/* Responsive ------------------------------------------------------------ */

@media (max-width: 900px) {

    .album-v2-header {
        padding-top: 42px;
        padding-bottom: 28px;
    }

    .album-v2-title {
        font-size: clamp(3.4rem, 12vw, 6.5rem);
    }

    .album-v2-body {
        grid-template-columns:
            minmax(130px, 160px)
            minmax(0, 1fr);

        gap: 26px;
    }

}


@media (max-width: 700px) {

    .album-v2-body {
        display: block;

        padding-top: 20px;
    }

    .album-v2-rail {
        position: static;

        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 18px;

        margin-bottom: 28px;
    }

    .album-v2-rail-label {
        grid-column: 1 / -1;
        margin-bottom: 8px;
    }

    .album-v2-meta-access {
        margin-top: 0;
    }

}


@media (max-width: 480px) {

    .album-v2-title {
        font-size: clamp(3rem, 15vw, 4.8rem);
    }

    .album-v2-rail {
        grid-template-columns: 1fr;
    }

}
