body {
    background-image: url(images/Fondo.jpg);
    background-repeat: repeat;
}

/* Agrupamos estilos comunes de texto */
.Estilo1, .Estilo2, .Estilo3 {
    font-weight: bold;
    text-decoration: underline;
}
.Estilo1 { font-size: 25px; }
.Estilo2 { font-size: 20px; }
.Estilo3 { font-size: 15px; }

/* Galería */
.gallery-container { margin: 20px 0; text-align: center; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    height: 150px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    overflow: hidden;
}

.modal-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.modal-content img {
    width: 100%;
    max-width: 70vw;
	max-height: 85vh; /* Controlas el tamaño aquí */
    height: auto;
    display: block;
}

/* Botón cerrar y enlaces */
.close {
    position: absolute;
    top: 15px; right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover { color: #bbb; }

@media screen and (max-width: 768px) { .close { font-size: 30px; top: 10px; right: 20px; } }
@media screen and (max-width: 480px) { .close { font-size: 25px; top: 5px; right: 15px; } }

a:link, a:visited { color: #000000; }