/* Contenedor de la galería */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Estilo de los elementos de la galería */
.gallery-item {
    width: calc(33.333% - 20px);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Hover effect */
.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Estilos del lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

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

.lightbox .close:hover {
    color: #f1f1f1;
}

/* Responsiveness para tablets */
@media (max-width: 768px) {
    .gallery-item {
        width: calc(50% - 20px);  /* 2 columnas en tablets */
    }
}

/* Responsiveness para móviles */
@media (max-width: 480px) {
    .gallery-item {
        width: 100%;  /* 1 columna en móviles */
    }
}