@charset "UTF-8";

.gallery-section {
    padding: 5px 20px 30px 20px;
    background: linear-gradient(180deg, #f2f4f8, #ffffff);
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-header h2 {
    font-size: 2.2rem;
    color: #0a2a66;
}

.gallery-header p {
    color: #555;
    margin-top: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: auto;
}

.gallery-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0,0,0,.1);
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform .6s ease;
}

.gallery-item:hover img {
    transform: scale(1.12);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,42,102,.65);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 500;
    opacity: 0;
    transition: opacity .4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay.video span {
    font-size: 1.1rem;
}

/* BOTÃO */
.gallery-footer {
    text-align: center;
    margin-top: 50px;
}

.gallery-button {
    display: inline-block; /* ESSENCIAL */
    padding: 14px 32px;
    border-radius: 30px;
    background: #0a2a66;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: transform .3s ease, background .3s ease;
}

.gallery-button:hover {
    background: #123a8c;
    transform: translateY(-3px);
}

/* LIGHTBOX */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-content img,
.gallery-content video {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 16px;
    background: #000;
}

/* CONTROLES */
.gallery-close,
.gallery-prev,
.gallery-next {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
}

.gallery-close {
    top: 20px;
    right: 30px;
}

.gallery-prev {
    left: 30px;
}

.gallery-next {
    right: 30px;
}
