/* ESTILOS GERAIS */
.gallery {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.section-header {
    position: relative;
    padding-bottom: 15px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #00bfff);
}

/* CONTAINERS DE IMAGEM */
.image-container {
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background-color: #fff;
}

.image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

/* IMAGENS */
.gallery-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.image-container:hover .gallery-item {
    transform: scale(1.05);
}

/* MODAL LIGHTBOX */
#gallery-modal .modal-content {
    background-color: rgba(0,0,0,0.85);
    color: white;
    border: none;
}

#gallery-modal .modal-header {
    border-bottom: none;
}

#gallery-modal .btn-close {
    filter: invert(1);
    opacity: 0.8;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 10;
}

#gallery-modal .btn-close:hover {
    opacity: 1;
}

.modal-img {
    max-height: 80vh;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    border-radius: 4px;
}

.image-caption {
    font-size: 0.9rem;
    padding: 10px 0;
    color: #ccc !important;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }

    .image-container {
        max-width: 100%;
    }

    #gallery-modal .modal-dialog {
        margin: 0.5rem auto;
    }
}