/* Galería Masonry con Zoom */

#masonryGallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 10px;
    gap: 15px;
}

.masonry-item {
    grid-row-end: span 20;
}

.gallery-card {
    position: relative;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Modal de Zoom */
.modal-fullscreen .modal-body {
    overflow-y: auto;
}

/* Animación de aparición */
@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal.show .modal-body img {
    animation: zoomIn 0.3s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    #masonryGallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}
