﻿/* ===== Gallery Refresh ===== */

.gallery-page {
    padding-top: 2rem;
}

.gallery-hero-card {
    padding: 1.3rem 1.4rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 1.75rem;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07), 0 2px 4px rgba(15, 23, 42, 0.05);
}

.gallery-carousel {
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 1.75rem;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07), 0 2px 4px rgba(15, 23, 42, 0.05);
}

.gallery-carousel__frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34rem;
    padding: 1.25rem;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

.gallery-carousel__image {
    width: 100%;
    max-height: 32rem;
    object-fit: contain;
    border-radius: 1rem;
    background: #ffffff;
}

.gallery-carousel__caption {
    right: 1.5rem;
    left: 1.5rem;
    bottom: 1.25rem;
    padding: 0;
}

.gallery-carousel__caption p {
    display: inline-block;
    margin: 0;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(20, 41, 31, 0.74);
    color: #ffffff;
    font-size: 0.95rem;
}

.gallery-section-title {
    margin-bottom: 0.35rem;
    color: #0f172a;
    font-size: 2rem;
}

.gallery-section-subtitle {
    margin-bottom: 1.25rem;
    color: #4a5f54;
}

.gallery-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.gallery-card {
    height: 100%;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 38px rgba(20, 41, 31, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 46px rgba(20, 41, 31, 0.12);
}

.gallery-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(180deg, #edf4eb, #f7f2e8);
}

.gallery-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-card__body {
    padding: 1.1rem 1.1rem 1.2rem;
}

.gallery-card__eyebrow {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gallery-card__title {
    margin-bottom: 0.45rem;
    color: #0f172a;
    font-size: 1.12rem;
    line-height: 1.35;
}

.gallery-card__caption {
    margin: 0;
    color: #4a5f54;
    font-size: 0.9rem;
}

.gallery-card--video .play-icon {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 3rem;
    background: linear-gradient(180deg, rgba(20, 41, 31, 0.08), rgba(20, 41, 31, 0.38));
    pointer-events: none;
}

.gallery-modal-image,
.gallery-modal-video {
    width: 100%;
    max-height: 75vh;
    border-radius: 1rem;
    background: #0d1913;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .gallery-page {
        padding-top: 1.25rem;
    }

    .gallery-hero-card {
        padding: 1.2rem;
    }

    .gallery-section-title {
        font-size: 1.6rem;
    }

    .gallery-carousel__frame {
        min-height: 22rem;
        padding: 0.85rem;
    }

    .gallery-carousel__image {
        max-height: 20rem;
    }
}
