/* ─── Release Galeria de Imagens ─── */

.release-galeria-wrap {
    margin: 30px 0;
    padding: 30px;
    border-radius: 8px;
}

.release-galeria-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.release-galeria-titulo {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.release-galeria-zip-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #27ae60;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .25s ease;
}

.release-galeria-zip-btn:hover {
    background: #219a52;
    color: #fff;
    text-decoration: none;
}

.release-galeria-zip-btn i {
    font-size: 16px;
}

/* Grid */
.release-galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

/* Item — sem fundo branco, sem card */
.release-galeria-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    line-height: 0;
    transition: transform .25s ease;
}

.release-galeria-item:hover {
    transform: translateY(-2px);
}

/* Link com imagem — preenche todo o item */
.release-galeria-item > a:first-child {
    display: inline-flex;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    line-height: 0;
}

.release-galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.release-galeria-item:hover img {
    transform: scale(1.05);
}

/* Overlay zoom icon */
.release-galeria-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .35);
    opacity: 0;
    transition: opacity .25s ease;
}

.release-galeria-item:hover .release-galeria-overlay {
    opacity: 1;
}

.release-galeria-overlay i {
    color: #fff;
    font-size: 28px;
}

/* Download individual — posicionado sobre a imagem */
.release-galeria-download {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .92);
    border-radius: 50%;
    color: #333;
    font-size: 16px;
    text-decoration: none;
    opacity: 0;
    transition: opacity .25s ease, background .2s ease;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
    line-height: 0;
}

.release-galeria-item:hover .release-galeria-download {
    opacity: 1;
}

.release-galeria-download:hover {
    background: #27ae60;
    color: #fff;
}

/* Responsive */
@media (max-width: 767px) {
    .release-galeria-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }

    .release-galeria-wrap {
        padding: 20px 15px;
    }

    .release-galeria-zip-btn {
        width: 100%;
        justify-content: center;
    }
}
