@charset "utf-8";
/* CSS Document */
:root {
    --gap: 20px;
    --hover-scale: 1.03;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    padding: var(--gap);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: var(--gap);
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 9/16;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover {
    transform: scale(var(--hover-scale));
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    z-index: 1;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    min-width: 100%;
    min-height: 100%;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.8rem;
    font-size: small;
    text-align: left;
    color: white;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
    opacity: 1;
}

.lightbox {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 90%;
    max-height: 90%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
    transition: all 0.3s ease-in-out 0.1s;
}

.lightbox.active .lightbox-content {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: opacity 0.3s;
    z-index: 10;
}

.lightbox-close:hover {
    opacity: 0.8;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 0px;
    user-select: none;
    z-index: 10;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .nav-arrow {
        position: absolute;
        top: 95%;
        color: rgb(245, 255, 242);
        font-size: 30px;
        cursor: pointer;
        padding: 0px;
        user-select: none;
        z-index: 10;
        transform: translateY(-50%);
    }
    .lightbox-close {
        position: absolute;
        top: 10px;
        right: 10px;
        color: rgb(255, 135, 239);
        font-size: 40px;
        cursor: pointer;
        transition: opacity 0.3s;
        z-index: 10;
    }
    
}

.prev { left: 30px; }
.next { right: 30px; }

.lightbox-image {
    transition: opacity 0.3s ease;
}


.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.featured-image-container {
    position: relative;
    margin-bottom: 40px;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.featured-image-container:hover {
    transform: scale(1.02);
}



.featured-image {
    width: 60%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 0 10px black, 
                0 0 20px black,
                0 0 30px black;
    transition: transform 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}


.evento {
    position: relative;
    display: inline-block;
    z-index: 10;
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    margin-bottom: 10px;


}

.evento img {
    display: block;
    width: 250px; /* Ajusta el tamaño de la imagen */
    height: auto;
    transition: filter 0.3s ease;
    
}


/* Ajustes para el grid normal */
.gallery {
    grid-template-columns: repeat(3, 1fr);
}
