﻿/* ── Hero — dark chronology band with a giant cropped wordmark ── */
.pj-hero {
    position: relative;
    background: var(--red);
    overflow: hidden;
    padding: 4rem 0 4.5rem;
}

.pj-hero__watermark {
    position: absolute;
    right: -2%;
    bottom: -12%;
    font-family: "Gotham Cond Black", sans-serif;
    font-weight: 900;
    font-size: clamp(11rem, 26vw, 22rem);
    line-height: 0.85;
    color: var(--white);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    opacity: .2
}

.pj-hero__inner {
    position: relative;
    z-index: 1;
}

.pj-hero__badge {
    margin-bottom: 1.5rem;
}

.pj-hero__title {
    margin-bottom: 1.25rem;
}

.pj-hero__desc {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--white-80);
    max-width: 520px;
}

@media (min-width: 900px) {
    .pj-hero {
        padding: 5.5rem 0;
    }
}

.media-hero {
    padding: 2rem 0 0;
    background: #EEF8F9;
}

.media-hero__frame {
    position: relative;
    aspect-ratio: 16 / 7;
    min-height: 320px;
    overflow: hidden;
    background: linear-gradient(155deg, #2b2f31, #17191a);
}

@media (max-width: 640px) {
    .media-hero__frame {
        aspect-ratio: 4 / 5;
        min-height: 0;
    }
}

.media-hero__thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(155deg, #2b2f31, #17191a);
    transition: transform 0.6s var(--ease);
}

.media-hero__frame:hover .media-hero__thumb {
    transform: scale(1.05);
}

.media-hero__embed {
    position: absolute;
    inset: 0;
}

.media-hero__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Once the video is playing, the facade steps aside so YouTube's own
   controls are fully clickable underneath. */
.media-hero__frame.is-playing .media-hero__thumb,
.media-hero__frame.is-playing .media-hero__badge,
.media-hero__frame.is-playing .media-hero__play,
.media-hero__frame.is-playing .media-hero__caption {
    display: none;
}

.media-hero__badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 2;
    background: var(--red);
    color: var(--white);
    font-family: 'Roboto', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.55rem 1rem;
    border-radius: 9999px;
}

.media-hero__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--gold);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(9,19,24,0.35);
    transition: transform 0.15s ease;
}

    .media-hero__play:hover {
        transform: translate(-50%, -50%) scale(1.06);
    }

    .media-hero__play svg {
        width: 24px;
        height: 24px;
        fill: var(--navy);
    }

    .media-hero__play .icon-play {
        margin-left: 3px;
    }

.media-hero__seal {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 2;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--red);
    transform: rotate(-8deg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--white);
    box-shadow: 0 10px 24px rgba(225,6,0,0.35);
}

.media-hero__caption {
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.6rem;
    z-index: 2;
}

.media-hero__kicker {
    font-family: 'Roboto', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white-80);
    margin-bottom: 0.5rem;
}

.media-hero__title {
    font-family: 'Gotham', 'Montserrat', Arial, sans-serif;
    font-weight: 800;
    font-size: clamp(1.3rem, 4.5vw, 2.1rem);
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--teal-bright);
    line-height: 1.2;
}

.media-hero__footer {
    background: var(--navy);
    border-radius: 0 0 14px 14px;
    padding: 0.9rem 1.5rem;
}

    .media-hero__footer span {
        font-family: 'Roboto', sans-serif;
        font-size: 0.72rem;
        font-weight: 500;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.5);
    }

/* ── Media gallery — tabs, search, grid, links list ── */
.media-gallery {
    padding: 2.5rem 0 4.5rem;
    background: #EEF8F9;
}

.media-gallery__toolbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}



.media-gallery__tabs {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.media-gallery__tab {
    background: var(--white);
    border: 1px solid rgba(9,19,24,0.12);
    border-radius: 9999px;
    padding: 0.75rem 1.4rem;
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--navy);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

    .media-gallery__tab.is-active {
        background: var(--teal);
        border-color: var(--teal);
        color: var(--white);
    }

.media-gallery__search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}



    .media-gallery__search svg {
        position: absolute;
        left: 1rem;
        width: 17px;
        height: 17px;
        stroke: var(--grey);
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        pointer-events: none;
    }

    .media-gallery__search input {
        width: 100%;
        font-family: 'Roboto', sans-serif;
        font-size: 0.85rem;
        color: var(--navy);
        background: var(--white);
        border: 1px solid rgba(9,19,24,0.12);
        border-radius: 9999px;
        padding: 0.85rem 1.1rem 0.85rem 2.6rem;
        transition: border-color 0.2s;
    }

        .media-gallery__search input:focus {
            outline: none;
            border-color: var(--teal);
        }

        .media-gallery__search input::placeholder {
            color: var(--grey);
        }

.media-gallery__empty {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: var(--grey);
    text-align: center;
    padding: 2.5rem 0;
}

/* ── Photo / video grid ── */
.media-gallery__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .media-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .media-gallery__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

.media-gallery__item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(155deg, #2b2f31, #17191a);
    border: none;
    padding: 0;
    cursor: pointer;
    display: block;
}

    /* Both of these set their own `display` above, which — being an author
   rule — otherwise beats the browser's default [hidden] { display: none },
   even though [hidden] has a "higher specificity" selector on paper. Origin
   wins before specificity does, so without this override, JS setting
   .hidden = true on these had no visible effect: the search filter looked
   broken even though the attribute was toggling correctly. */
    .media-gallery__item[hidden],
    .media-links__section[hidden] {
        display: none !important;
    }

    .media-gallery__item img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.35s var(--ease);
    }

    .media-gallery__item:hover img {
        transform: scale(1.05);
    }

/* .media-gallery__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9,19,24,0.85) 0%, rgba(9,19,24,0) 45%);
    pointer-events: none;
} */

.media-gallery__item-tag {
    position: absolute;
    left: 0;
    bottom: 0.8rem;
    z-index: 2;
    font-family: 'Roboto', sans-serif;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white);
    text-align: left;
    background: #000000CC;
    padding: 10px;
}

/* ── Media links list ── */
.media-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.media-links__section {
    display: flex;
    gap: 1rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(9,19,24,0.08);
}

    .media-links__section:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }

.media-links__number {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: var(--navy);
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-links__heading {
    font-weight: 800;
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 0.4rem;
}

.media-links__desc {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #3E4750;
    margin-bottom: 0.9rem;
}

.media-links__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .media-links__list li {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        font-family: 'Roboto', sans-serif;
        font-size: 0.85rem;
        line-height: 1.5;
    }

.ml-dot {
    flex-shrink: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--grey-dark);
    margin-top: 0.5em;
}

.media-links__label {
    font-weight: 700;
    color: var(--grey-dark);
}

.media-links__list a {
    color: var(--teal);
    word-break: break-all;
    transition: color 0.2s;
}

    .media-links__list a:hover {
        color: var(--teal-dark);
    }

/* ── Lightbox ── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 1rem;
}

    .lightbox.is-open {
        opacity: 1;
        visibility: visible;
    }

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9,19,24,0.92);
}

.lightbox__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 450px;
    max-width: 900px;
    max-height: 88vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    background-color: var(--navy);
    padding: 40px;
    box-shadow: 0 40px 90px rgba(0,0,0,0.5);
    transform: scale(0.96);
    transition: transform 0.25s ease;
}

.lightbox.is-open .lightbox__panel {
    transform: scale(1);
}

@media (min-width: 720px) {
    .lightbox__panel {
        padding: 60px;
        height: 100%
    }
}

.lightbox__image-wrapper {
    background: var(--white);
    padding: 0rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .lightbox__image-wrapper .lightbox__image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.lightbox__caption {
    width: 100%;
    margin-top: 1.1rem;
    font-family: 'Gotham Cond Black', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: white;
    text-align: left;
}

.lightbox__close {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    z-index: 2;
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    background: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

    .lightbox__close svg {
        width: 12px;
        height: 12px;
        stroke: var(--navy);
        fill: none;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.lightbox__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

    .lightbox__arrow:hover {
        background: rgba(255,255,255,0.22);
        border-color: rgba(255,255,255,0.55);
    }

.lightbox__arrow--prev {
    left: 0.4rem;
}

.lightbox__arrow--next {
    right: 0.4rem;
}

.lightbox__arrow svg {
    width: 12px;
    height: 12px;
    stroke: var(--white);
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (min-width: 720px) {
    .lightbox__image-wrapper {
        padding: 1rem;
    }

    .lightbox__close {
        top: 1rem;
        right: 1rem;
        width: 32px;
        height: 32px;
    }

        .lightbox__close svg {
            width: 14px;
            height: 14px;
        }

    .lightbox__arrow {
        width: 40px;
        height: 40px;
    }

    .lightbox__arrow--prev {
        left: 0.75rem;
    }

    .lightbox__arrow--next {
        right: 0.75rem;
    }

    .lightbox__arrow svg {
        width: 18px;
        height: 18px;
    }
}
