/* 🎨 Galería centrada en el medio */
.gallery-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* 📸 Galería de 3 columnas fijas */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    justify-items: center;
}

/* 🖼️ Imagenes */
.gallery img {
    width: 100%;
    max-width: 300px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    border-radius: 5px;
    border: 3px solid #ffffff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    padding: 5px;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* 🔍 Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1000;
}

.lightbox-content {
    position: relative;
    text-align: center;
}

.lightbox-image {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    border: 5px solid #ffffff;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
    padding: 10px;
}

.lightbox-description {
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    border: 2px solid white;
    margin-top: 10px;
    display: inline-block;
}

/* 📄 Paginación */
.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination button {
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
}

.pagination button:hover {
    background-color: #555;
}

#pageIndicator {
    padding: 8px 16px;
    background-color: #eee;
    border-radius: 4px;
    font-weight: bold;
}

/* 📱 Responsive */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}
