/**
 * Tribute to Jet — Grid Layout (Peach-inspired)
 * 50/50 color-blocked panels with full-bleed images.
 */

/* Split nav: left seashellpink, right orange with black divider */
.page-template-page-tribute-grid .nav {
    background: linear-gradient(
        to right,
        var(--color-seashellpink) calc(50% - 1px),
        var(--color-black) calc(50% - 1px),
        var(--color-black) calc(50% + 1px),
        var(--color-orange) calc(50% + 1px)
    );
}

.tribute-grid-page {
    background-color: var(--color-black);
}

/* ───────────────────────────────
   Grid Rows
   ─────────────────────────────── */

.tg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    border-bottom: 2px solid var(--color-black);
}

.tg-hero {
    min-height: 100vh;
}

.tg-row:last-child {
    border-bottom: none;
}

/* ───────────────────────────────
   Grid Cells
   ─────────────────────────────── */

.tg-cell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tg-cell--seashellpink {
    background-color: var(--color-seashellpink);
}

.tg-cell--orange {
    background-color: var(--color-orange);
}

/* Vertical divider between columns */
.tg-row > .tg-cell:first-child {
    border-right: 1px solid var(--color-black);
}

.tg-row > .tg-cell:last-child {
    border-left: 1px solid var(--color-black);
}

/* ───────────────────────────────
   Image Cells
   ─────────────────────────────── */

.tg-cell--image {
    padding: 0;
}

.tg-cell--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ───────────────────────────────
   Typography — Heading
   ─────────────────────────────── */

.tg-heading {
    font-family: 'Ano', sans-serif;
    font-size: clamp(40px, 7vw, 86px);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: -2px;
    color: var(--color-black);
    margin: 0;
    padding: 60px;
}

/* ───────────────────────────────
   Typography — Paragraph
   ─────────────────────────────── */

.tg-cell--text {
    padding: 60px;
}

.tg-paragraph {
    max-width: 500px;
}

.tg-paragraph p {
    font-family: 'Ano', sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-black);
    margin: 0 0 24px;
}

.tg-paragraph p:last-child {
    margin-bottom: 0;
}

/* ───────────────────────────────
   Tribute story — one readable column
   ─────────────────────────────── */

.tg-story {
    background-color: var(--color-seashellpink);
    border-bottom: 2px solid var(--color-black);
    padding: 80px 40px;
}

.tg-story-inner {
    max-width: 42rem;
    margin: 0 auto;
}

.tg-story-inner p {
    font-family: 'Ano', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--color-black);
    margin: 0 0 1.25em;
}

.tg-story-inner p:last-child {
    margin-bottom: 0;
}

.tg-story-close,
.tg-story-inner p:nth-last-child(2) {
    font-weight: 700;
    margin-top: 2em;
}

.tg-story-meta,
.tg-story-inner p:last-child {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.tg-story-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--color-black);
}

.tg-story-photos img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    display: block;
}

.tg-story-photos img:first-child {
    border-right: 2px solid var(--color-black);
}

/* ───────────────────────────────
   Responsive — 1024px
   ─────────────────────────────── */

@media (max-width: 1024px) {
    .tg-row {
        min-height: 60vh;
    }

    .tg-hero {
        min-height: 80vh;
    }

    .tg-heading {
        padding: 40px;
    }

    .tg-cell--text {
        padding: 40px;
    }

    .tg-paragraph p {
        font-size: 20px;
    }
}

/* ───────────────────────────────
   Responsive — 768px (mobile)
   ─────────────────────────────── */

@media (max-width: 768px) {
    .tg-row {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .tg-hero {
        min-height: auto;
    }

    /* Remove vertical divider on mobile */
    .tg-row > .tg-cell:first-child {
        border-right: none;
        border-bottom: 2px solid var(--color-black);
    }

    .tg-row > .tg-cell:last-child {
        border-left: none;
    }

    .tg-cell {
        min-height: 50vh;
    }

    .tg-cell--image,
    .tg-cell--image.tg-cell--wide {
        display: block;
        min-height: 0;
        height: auto;
        aspect-ratio: auto;
    }

    .tg-cell--image img,
    .tg-cell--image.tg-cell--wide img {
        position: static;
        inset: auto;
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .tg-heading {
        padding: 40px 20px;
    }

    .tg-cell--text {
        padding: 40px 20px;
    }

    .tg-paragraph p {
        font-size: 18px;
    }

    .tg-story {
        padding: 48px 20px;
    }

    .tg-story-inner p {
        font-size: 18px;
    }

    .tg-story-photos {
        grid-template-columns: 1fr;
    }

    .tg-story-photos img {
        height: 50vh;
    }

    .tg-story-photos img:first-child {
        border-right: none;
        border-bottom: 2px solid var(--color-black);
    }
}
