/* ========================================
   Photos & Videos Page
======================================== */

.media-page {
    --carousel-card-width: clamp(17.5rem, calc((100vw - 8.75rem) / 3.4), 32.5rem);
    --carousel-arrow-top: 55%;

    padding: 5rem 0 6.25rem;
    overflow-x: clip;
}

/* ========================================
   Media Sections
======================================== */

.media-section {
    margin-bottom: 6.25rem;
}

.media-section:last-child {
    margin-bottom: 0;
}

.media-section-title {
    margin: 0 5% 1.875rem;

    font-size: clamp(2rem, 4vw, 3.75rem);
    line-height: 1.1;
}

/* ========================================
   Photo & Video Cards
======================================== */

.photo-card,
.video-card {
    display: block;
}

.photo-card-info,
.video-card-info {
    padding: 0.875rem 1rem;

    background: rgba(255, 255, 255, 0.12);

    text-align: center;
}

.photo-card-info h2,
.photo-card-info h3,
.photo-card-info p,
.video-card-info h2,
.video-card-info h3,
.video-card-info p {
    margin: 0;
}

.photo-card-info h2,
.photo-card-info h3,
.video-card-info h2,
.video-card-info h3 {
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    font-weight: 500;
}

.photo-card-info p,
.video-card-info p {
    margin-top: 0.2rem;

    color: #b5b5b5;
    font-size: clamp(0.875rem, 1vw, 1rem);
}

.photo-card img,
.video-card img {
    width: 100%;

    display: block;
    object-fit: cover;
}

.photo-card > img {
    aspect-ratio: 1 / 1;
}

.video-thumbnail {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-thumbnail img {
    height: 100%;
}

.video-play-button {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 70px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(0, 0, 0, 0.75);
    color: white;

    font-size: 24px;
    line-height: 1;

    pointer-events: none;
}

/* ========================================
   Photos & Videos Responsive Layout
======================================== */

@media (max-width: 40rem) {
    .media-page {
        --carousel-card-width: clamp(15rem, 84vw, 22rem);

        padding-top: 3rem;
        padding-bottom: 4rem;
    }

    .media-section {
        margin-bottom: 3.75rem;
    }

    .media-section-title {
        margin: 0 1rem 1rem;
        font-size: clamp(2.15rem, 10vw, 3rem);
        text-align: center;
    }

    .photo-card-info,
    .video-card-info {
        padding: 0.75rem;
    }

    .photo-card-info h2,
    .photo-card-info h3,
    .video-card-info h2,
    .video-card-info h3 {
        font-size: 1rem;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .photo-card-info p,
    .video-card-info p {
        font-size: 0.9rem;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .video-play-button {
        width: 3.7rem;
        height: 2.7rem;
        border-radius: 0.55rem;
        font-size: 1.15rem;
    }
}
