#project-hero
{
    padding: 0;
}

#project-hero > .content
{
    max-width: none;
}

#project-detail > .content
{
    max-width: 1200px;
}

#project-hero .hero
{
    display: grid;
    height: 76vh;
    min-height: 560px;
}

#project-detail
{
    padding-bottom: 8rem;
    overflow: clip;
}

#project-hero .media
{
    position: relative;
    grid-row: 1;
    grid-column: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#project-hero .media:after
{
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(to top, #FF0000FF, #F1E07811 38%, transparent 72%);
    pointer-events: none;
}

#project-hero .media > iframe,
#project-hero .media > img
{
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: max(100%, 135.11vh);
    height: max(100%, 56.25vw);
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    border: 0;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

#project-hero .heading
{
    position: relative;
    z-index: 2;
    grid-row: 1;
    grid-column: 1;
    align-self: end;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 54px;
}

#project-hero h1
{
    color: var(--white);
    font-size: clamp(72px, 10vw, 150px);
}

#project-detail .copy h2,
#project-detail .gallery h2
{
    margin-bottom: 24px;
    color: var(--yellow-2);
    font-size: 34px;
    text-transform: uppercase;
}

#project-detail .copy p
{
    max-width: 720px;
    color: var(--trans-white2);
    font-size: 17px;
    line-height: 1.75;
}

#project-detail .copy p:first-of-type
{
    color: var(--trans-white1);
    font-size: 20px;
}

#project-detail .meta
{
    position: relative;
}

#project-detail .facts
{
    width: 14rem;
    margin-left: auto;
}

#project-detail .facts div
{
    position: relative;
    padding: 15px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--trans-white3);
}

#project-detail .facts dt
{
    margin-bottom: 4px;
    color: var(--grey-1);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#project-detail .facts dd
{
    color: var(--white);
    font-family: 'HeadlineTwoCondensed';
    font-size: 24px;
}

#project-detail .tags
{
    place-content: flex-end;
    place-items: center;
    margin: 0.9rem 0 0;
}

#project-detail .meta > .button
{
    float: right;
}

#project-detail .gallery
{
    position: relative;
}

#project-detail .gallery > .heading
{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
}

#project-detail .gallery > .heading h2
{
    margin: 0;
}

#project-detail .gallery > .heading span
{
    color: var(--grey-1);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

#project-detail .images
{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

#project-detail .images button
{
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    background: var(--section-bg);
    border: 0;
    mask-image: url("../images/box.svg"), linear-gradient(black, black), url("../images/box.svg");
    mask-position: top center, center, bottom center;
    mask-size: 1008px 30px, 100% calc(100% - 18px), 1008px 30px;
    mask-repeat: no-repeat;
}

#project-detail .images img
{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all ease 0.5s;
}

#project-detail .images button:nth-child(odd):hover img,
#project-detail .images button:nth-child(odd):focus-visible img
{
    scale: 105%;
    rotate: 2deg;
}

#project-detail .images button:nth-child(even):hover img,
#project-detail .images button:nth-child(even):focus-visible img
{
    scale: 105%;
    rotate: -2deg;
}

#project-detail .back
{
    align-self: center;
}

.project-lightbox
{
    position: fixed;
    z-index: 1000;
    display: none;
    inset: 0;
    place-items: center;
    padding: 32px;
    background: rgba(0, 0, 0, 0.88);
}

.project-lightbox.active
{
    display: grid;
}

.project-lightbox img
{
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.project-lightbox button
{
    position: fixed;
    top: 22px;
    right: 22px;
    width: 46px;
    height: 46px;
    cursor: pointer;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    font-size: 22px;
}

@media screen and (max-width: 900px)
{
    #project-hero .hero
    {
        height: 68vh;
        min-height: 500px;
        max-height: none;
    }

    #project-detail .images
    {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media screen and (max-width: 700px)
{
    #project-hero .hero
    {
        height: 62vh;
        min-height: 440px;
    }

    #project-hero .heading,
    #project-detail > .content
    {
        width: calc(100% - 40px);
    }

    #project-hero .heading
    {
        margin-bottom: 34px;
    }

    #project-hero .heading h1
    {
        font-size: 64px;
    }

    #project-detail .copy,
    #project-detail .meta
    {
        padding: 44px 0;
    }

    #project-detail .images
    {
        grid-template-columns: 1fr;
    }

}
