body {
    padding-top: 70px; /* Ajuste para el navbar fijo */    
}

h1 {    
    color: #2c3e50 !important;
    margin-bottom: 50px !important;
}

h1 span {
    color: #e74c3c !important;
}

.title-block {
    text-align: center;
    margin-bottom: 2rem;
}

.title-block h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1;
}

@media (max-width: 990px) {
    .title-block h1 {
        font-size: 3rem;
        font-weight: 600;
    }
}

@media (max-width: 760px) {
    .title-block h1 {
        margin-top: 20px;
    }
}

@media (max-width: 450px) {
    .title-block h1 {
        font-size: 2.5rem;
        font-weight: 600;
    }
}

.gallery-container {
    max-width: 1200px;
    width: 100%;
    background-color: #F5F5F5;
    padding: 30px;
    box-sizing: border-box;
}

/* Estilos de la galería de fotos */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    grid-auto-rows: 1px; /* Clave para el efecto masonry con grid */
}

.photo-item {            
    align-self: start; /* Clave para que el item se alinee al inicio de su celda */
    width: 100%;
    background: #fff;            
    padding: 10px;            
    box-sizing: border-box; /* Clave para que el padding no afecte al ancho total */
    margin-bottom: 15px;            
    position: relative; /* Necesario para posicionar el icono de ampliar */
}

.photo-item img {
    width: 100%;
    height: auto;
    aspect-ratio: attr(width) / attr(height); /* Usa las dimensiones del atributo para reservar espacio */
    display: block;            
}
.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Para que el contenido no se solape con el navbar fijo */
.fh5co-nav-toggle {
    top: 15px;
    right: 15px;
    z-index: 1040;
}

@media (max-width: 768px) {
    .photo-gallery {
        grid-template-columns: 1fr;                
    }
    .gallery-container {
        box-shadow: none !important;
        padding: 10px !important;
        border-radius: 0px !important;
    } 
    .footer {
        padding-top: 20px;
        padding-bottom: 0px;
    }
}
@media (min-width: 769px) and (max-width: 992px) {
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);                
    }
}
@media (min-width: 993px) and (max-width: 1200px) {
    .photo-gallery {
        grid-template-columns: repeat(3, 1fr);                
    }
}