/* Portfolio page — five sections on the 12-column photo grid; the page title rules live in base.css. */
/* SECTIONS */
.editorial-spread {
    padding: 0 0 8rem;
}

.editorial-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 72px 3rem 0;
}

.editorial-section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 48px;
    letter-spacing: -0.02em;
    color: var(--text-tagline);
    padding-bottom: 16px;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--border-color);
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    row-gap: 48px;
    align-items: start;
}

.editorial-item {
    position: relative;
}

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }

.editorial-index {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4.5vw, 5rem);
    font-weight: 400;
    line-height: 1;
    color: var(--text-body);
    display: block;
    margin-bottom: 0.5rem;
}

.editorial-media {
    width: 100%;
}

.editorial-media img {
    width: 100%;
    height: auto;
    display: block;
}

/* Video items: a 16:9 box; the still is the poster until the iframe has loaded. */
.editorial-media--video {
    position: relative;
    aspect-ratio: 16 / 9;
}

.editorial-media--video img,
.editorial-media--video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.editorial-media--video img {
    object-fit: cover;
}

.editorial-media--video iframe {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.editorial-media--video.is-live iframe {
    opacity: 1;
}

.editorial-caption {
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-body);
    opacity: 0.6;
    margin-top: 8px;
    line-height: 16px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .editorial-section {
        padding: 48px 1.5rem 0;
    }

    .editorial-section-title {
        font-size: 2rem;
        line-height: 40px;
        margin-bottom: 32px;
    }

    .editorial-grid {
        display: flex;
        flex-direction: column;
        gap: 48px;
    }

    .editorial-index { font-size: 2.5rem; }
}
