.galleryfont {
    background-image: url("../img/gal_fon.jpg");
    background-size: cover;
    background-position: center;
    padding: 60px;
    margin-top: 40px;
    }
    
    /* Estilo general del slider */
    .slider {
    position: relative;
    width: 80%;
    margin: 80px auto 0 auto;
    overflow: hidden;
    text-align: center;
    /* Centrado */
    }
    
    /* Estilo del contenedor de las imágenes */
    .slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    }
    
    /* Estilo de cada imagen */
    .slider-item {
    min-width: 100%;
    transition: transform 0.5s ease;
    }
    
    /* Imágenes laterales */
    .slider-item img {
    width: 100%;
    height: 500px;
    /* Fijar una altura para todas las imágenes */
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
    }
    
    /* Imágenes principales y laterales */
    .slider-item.active img {
    transform: scale(1);
    filter: grayscale(0%);
    }
    
    .slider-item.prev img,
    .slider-item.next img {
    transform: scale(0.8);
    filter: grayscale(100%);
    }
    
    /* Estilo de las flechas */
    .prev,
    .next {
    position: absolute;
    top: 50%;
    width: 40px;
    /* Ajusta el tamaño del botón según sea necesario */
    height: 40px;
    padding: 0;
    margin-top: -20px;
    /* Centrar verticalmente */
    color: white;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    user-select: none;
    background-color: black;
    /* Color de fondo negro */
    border: none;
    border-radius: 8px;
    /* Bordes redondeados */
    display: flex;
    align-items: center;
    justify-content: center;
    }
    
    .prev {
    left: 10px;
    }
    
    .next {
    right: 10px;
    }
    
    /* Responsividad */
    @media (max-width: 768px) {
    .slider {
    width: 100%;
    }
    
    .galleryfont {
    padding: 20px;
    }
    }
    
    /* Galería Horizontal */
    .horizontal-gallery {
    display: flex;
    margin-top: 50px;
    justify-content: space-between;
    width: 100%;
    overflow: hidden;
    }
    
    .gallery-item {
    flex: 1;
    margin: 0 5px;
    }
    
    .gallery-item img {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    cursor: pointer;
    }
    
    .gallery-item img:hover {
    filter: grayscale(0%);
    }
    
    /* Lightbox */
    .lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Evita el desplazamiento de la página */
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.5s ease-out;
    }
    
    .lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    }
    
    .lightbox.show .lightbox-content {
    opacity: 1;
    }
    
    .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    }
    
    .close:hover,
    .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
    }
    
    /* Responsividad */
    @media (max-width: 768px) {
    .horizontal-gallery {
    flex-direction: column;
    }
    
    .gallery-item {
    margin: 10px 0;
    }
    
    .lightbox-content {
    width: 90%;
    margin-top: 0;
    /* Ajusta el margen superior para mantener la misma altura */
    }
    }
    
    /* Animación de fade-in */
    @keyframes fadeIn {
    from {
    opacity: 0;
    }
    
    to {
    opacity: 1;
    }
    }
    
    .fondofam {
    background-image: url("../img/fondofam.jpg");
    background-size: cover;
    background-position: center;
    padding: 60px;
    }
    
    .photo-section {
    margin-bottom: 40px;
    /* Espacio entre secciones */
    text-align: center;
    /* Centra los títulos */
    }
    
    .photo-title {
    margin-bottom: 20px;
    /* Espacio debajo del título */
    font-size: 50px;
    /* Tamaño de fuente del título */
    font-weight: bold;
    }
    
    .photo-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    /* Espacio entre las fotos */
    }
    
    .photo-item {
    width: 30%;
    /* Ajustar al 45% del contenedor */
    display: flex;
    flex-direction: column;
    align-items: center;
    }
    
    .circle-photo {
    width: 100%;
    /* Ocupa el 100% del contenedor del elemento */
    height: auto;
    /* Mantiene la proporción de la imagen */
    aspect-ratio: 1/1;
    /* Hace que la imagen sea cuadrada */
    border-radius: 50%;
    /* Hace que la imagen sea circular */
    object-fit: cover;
    /* Asegura que la imagen cubra el área del contenedor */
    }
    
    .photo-name {
    margin-top: 10px;
    /* Espacio entre la imagen y el nombre */
    font-size: 30px;
    /* Tamaño de fuente del nombre */
    font-weight: bold;
    }
    
    /* Estilos responsivos */
    @media (max-width: 768px) {
    .photo-item {
    width: 90%;
    /* Ocupa el 90% del contenedor en pantallas pequeñas */
    }
    
    .fondofam {
    padding: 20px;
    }
    }
    