/* =========================================
   MEDIA PAGE
========================================= */

.media-hero {
    min-height: 55vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.65),
            rgba(0, 0, 0, 0.85)
        ),
        url("img/events/events-hero.jpg");

    background-size: cover;
    background-position: center;

    padding: 100px 20px 60px;
}


.media-hero-content span {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 5px;
    color: #aaa;
}


.media-hero-content h1 {
    margin: 15px 0;

    font-size: clamp(55px, 10vw, 120px);
    font-weight: 900;

    letter-spacing: 8px;

    color: #fff;

    text-transform: uppercase;
}


.media-hero-content p {
    font-size: 18px;
    color: #ccc;
}


/* =========================================
   SECTIONS
========================================= */

.media-section {
    width: 90%;
    max-width: 1500px;

    margin: 100px auto;
}


.section-title {
    text-align: center;

    margin-bottom: 50px;
}


.section-title span {
    display: block;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 5px;

    color: #888;
}


.section-title h2 {
    margin-top: 10px;

    font-size: 45px;
    font-weight: 900;

    letter-spacing: 3px;

    color: #fff;
}


/* =========================================
   IMAGE GRID
========================================= */

.media-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}


.media-item {
    position: relative;

    overflow: hidden;

    aspect-ratio: 16 / 10;

    background: #111;

    cursor: pointer;
}


.media-item img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.4s ease,
        filter 0.4s ease;
}


.media-item:hover img {
    transform: scale(1.08);

    filter: brightness(0.65);
}


/* =========================================
   VIDEOS
========================================= */

.video-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 35px;
}


.video-card {
    background: #111;

    border: 1px solid #222;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}


.video-card:hover {
    transform: translateY(-5px);

    border-color: #444;
}


.video-container {
    width: 100%;

    aspect-ratio: 16 / 9;

    background: #000;
}


.video-container video {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    background: #000;
}


.video-info {
    padding: 20px 22px;
}


.video-info span {
    font-size: 11px;

    font-weight: 700;

    letter-spacing: 3px;

    color: #777;
}


.video-info h3 {
    margin-top: 8px;

    font-size: 20px;

    color: #fff;

    text-transform: uppercase;
}


/* =========================================
   NO MEDIA
========================================= */

.no-media {
    width: 100%;

    text-align: center;

    padding: 50px 20px;

    color: #777;

    font-size: 18px;
}


/* =========================================
   LIGHTBOX
========================================= */

.lightbox {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(0, 0, 0, 0.96);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


.lightbox.active {
    opacity: 1;

    visibility: visible;
}


.lightbox-content {
    position: relative;

    max-width: 90vw;
    max-height: 90vh;

    display: flex;

    align-items: center;
    justify-content: center;
}


.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;

    width: auto;
    height: auto;

    object-fit: contain;

    display: block;
}


.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;

    z-index: 10;

    border: none;

    background: rgba(0, 0, 0, 0.5);

    color: #fff;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.15);
}


/* CLOSE */

.lightbox-close {
    top: 25px;
    right: 30px;

    width: 50px;
    height: 50px;

    border-radius: 50%;

    font-size: 35px;

    line-height: 1;
}


/* PREVIOUS */

.lightbox-prev {
    left: 25px;

    top: 50%;

    transform: translateY(-50%);

    width: 55px;
    height: 75px;

    font-size: 55px;

    line-height: 1;
}


.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.05);
}


/* NEXT */

.lightbox-next {
    right: 25px;

    top: 50%;

    transform: translateY(-50%);

    width: 55px;
    height: 75px;

    font-size: 55px;

    line-height: 1;
}


.lightbox-next:hover {
    transform: translateY(-50%) scale(1.05);
}


/* COUNTER */

.lightbox-counter {
    position: absolute;

    bottom: -35px;

    left: 50%;

    transform: translateX(-50%);

    color: #aaa;

    font-size: 14px;

    white-space: nowrap;
}


/* =========================================
   BODY LOCK
========================================= */

body.lightbox-open {
    overflow: hidden;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {

    .media-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

}


@media (max-width: 800px) {

    .media-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .media-section {
        width: 92%;
    }

}


@media (max-width: 550px) {

    .media-grid {
        grid-template-columns: 1fr;
    }

    .media-hero {
        min-height: 45vh;
    }

    .media-hero-content h1 {
        font-size: 55px;

        letter-spacing: 4px;
    }

    .section-title h2 {
        font-size: 35px;
    }

    .lightbox {
        padding: 15px;
    }

    .lightbox-prev {
        left: 10px;

        width: 45px;
        height: 60px;

        font-size: 40px;
    }

    .lightbox-next {
        right: 10px;

        width: 45px;
        height: 60px;

        font-size: 40px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
    }

}