.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Columnas automáticas con un mínimo de 200px */
    gap: 10px; /* Espacio entre las imágenes */
}

.gallery-item {
    margin: 10px;
    cursor: pointer;
}

.gallery-item img {
    max-width: 100%;
    height: auto;
    transition: transform 0.2s;
}

/* Estilo del modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    overflow: auto;
}

.modal-content {
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.close {
    color: white;
    font-size: 30px;
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
}

/* Estilo para las animaciones */
.gallery-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .video-thumbnail {
        width: 100%;
    }
}