﻿/* ===== Layout base ===== */
.gallery {
    padding: 32px 0 56px;
}

.gallery__container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.gallery__title {
    text-align: center;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    color: #a96312; /* dourado/bronze */
    font-size: clamp(26px, 3.5vw, 44px);
    margin: 0 0 16px;
}

/* ===== Filtros ===== */
.gallery__filters {
    display: grid;
    grid-auto-flow: column;
    gap: 18px;
    justify-content: center;
    align-items: end;
    margin: 10px 0 22px;
}

    .gallery__filters label {
        display: grid;
        gap: 6px;
        font-weight: 600;
        color: #333;
    }

    .gallery__filters select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        padding: 10px 12px;
        font-size: 0.98rem;
        border-radius: 10px;
        border: 1.5px solid #d9d9d9;
        background: #fff;
        min-width: 210px;
        outline: none;
        box-shadow: 0 1px 0 rgba(0,0,0,.02);
        transition: border-color .2s, box-shadow .2s;
    }

        .gallery__filters select:focus {
            border-color: #b8741b;
            box-shadow: 0 0 0 3px rgba(184,116,27,.15);
        }

    .gallery__filters span {
        font-size: .95rem;
    }

/* ===== Grade ===== */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2vw, 24px);
}

@media (max-width: 920px) {
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .gallery__filters {
        grid-auto-flow: row;
        justify-content: stretch;
    }

    .gallery__grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Card ===== */
.gallery__card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    margin: 0;
    background: #f6f6f6;
    aspect-ratio: 4/3; /* mantém proporção */
    display: grid;
    cursor: pointer !important;
}

    .gallery__card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .35s ease;
        display: block;
    }

    .gallery__card:hover img {
        transform: scale(1.03);
    }
    .img-hover {
        cursor: pointer !important;
    }
.gallery__caption {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: flex;
    gap: 8px;
}

    .gallery__caption .tag,
    .gallery__caption .year {
        background: rgba(15, 23, 55, .85);
        color: #fff;
        font-size: .82rem;
        padding: 6px 10px;
        border-radius: 999px;
        backdrop-filter: blur(4px);
    }

    .gallery__caption .tag {
        background: rgba(185, 112, 15, .9);
    }

.gallery__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 28px 10px;
    color: #555;
    border: 1px dashed #ddd;
    border-radius: 12px;
}

.gallery__card.clickable {
    cursor: zoom-in;
    cursor: pointer;
}


.gallery__subtitle {
    margin: 16px 0 8px;
    font-weight: 600;
}

.gallery__featured .featured__player {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.gallery__featured iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.gallery__grid {
    display: grid;
    gap: 16px;
}

.gallery__grid--videos {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.video-card {
    margin: 0;
}

.video-card__thumb {
    position: relative;
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
}

    .video-card__thumb img {
        display: block;
        width: 100%;
        height: auto;
    }

.video-card__play {
    position: absolute;
    inset: auto 8px 8px auto;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
}

.gallery__caption {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    font-size: .875rem;
    opacity: .9;
}

    .gallery__caption .tag, .gallery__caption .year {
        background: var(--mud-palette-background-grey, rgba(0,0,0,.05));
        padding: 2px 8px;
        border-radius: 999px;
    }
