/* ==========================================================================
   GALERIA.HTML - Mosaico de Fotos e Eventos Institucionais
   ========================================================================== */

.gallery-hero {
    background: linear-gradient(135deg, #0b5c9e 0%, #1f8ed8 100%);
    border-radius: 24px;
    padding: 2rem;
    color: #fff;
    box-shadow: 0 12px 30px rgba(11, 92, 158, 0.2);
}

.gallery-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.2);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.gallery-card {
    border: 0;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

.gallery-card img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-illustration-frame {
    position: relative;
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fbff;
    border: 1px solid rgba(11, 92, 158, 0.12);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(11, 92, 158, 0.06);
    margin: 0 auto 1rem;
}

.gallery-illustration-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 20%, rgba(11, 92, 158, 0.12), transparent 55%);
    pointer-events: none;
}

.gallery-illustration {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.gallery-card .card-body {
    background: #fff;
}

.gallery-card .card-title {
    color: #0b5c9e;
    font-weight: 700;
}

.gallery-card .card-text {
    color: #5f6b7a;
}

.gallery-section {
    padding: 1.5rem;
    border-radius: 18px;
    background: #f8fbff;
    box-shadow: inset 0 0 0 1px rgba(11, 92, 158, 0.08);
}

.gallery-section h3 {
    font-weight: 700;
}

/* Lightbox / Modal styles */
.gl-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}
.gl-content {
    position: relative;
    max-width: 95%;
    max-height: 90%;
}
.gl-content img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
}
.gl-close {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #fff;
    color: #333;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.gl-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    background: rgba(0,0,0,0.4);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.gl-arrow--prev { left: -64px; }
.gl-arrow--next { right: -64px; }
.gl-caption {
    margin-top: 0.75rem;
    text-align: center;
    color: #ddd;
    font-size: 0.95rem;
}

@media (max-width: 767px) {
    .gallery-card img { height: auto; }
    .gl-arrow--prev { left: 8px; }
    .gl-arrow--next { right: 8px; }
}
/* variantes removidas — revertendo ao formato padrão */
