/* HERO GALERÍA */
.galeria-hero {
    height: 50vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(13,71,161,0.8)),
    url("../static/hero.jpg") center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding-top: 100px;
}

.galeria-hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.galeria-hero p {
    font-size: 18px;
}

/* GRID */
.galeria-grid {
    padding: 120px 100px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    background: #ffffff;
}

.galeria-item img {
    width: 100%;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.galeria-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 30px 70px rgba(0,0,0,0.15);
}

/* LIGHTBOX */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

#lightbox img {
    max-width: 85%;
    max-height: 85%;
    border-radius: 20px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.galeria-item img,
.galeria-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.4s ease;
}

.galeria-item img:hover,
.galeria-item video:hover {
    transform: scale(1.05);
}

.galeria-item img,
.galeria-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.4s ease;
}

.galeria-item img:hover,
.galeria-item video:hover {
    transform: scale(1.05);
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img,
.lightbox video {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 15px;
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

