body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-image: url(fondo.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
}


.fotos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 900px;
    margin: auto;
}

.fotos img {
    height: auto;
    width: 350px;
    height: 350px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.fotos img:hover {
    transform: scale(1.05);
}


.carousel-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.carousel-container.show {
    visibility: visible;
    opacity: 1;
}

.mySwiper {
    width: 80%;
    height: 70vh;
}

.swiper {
    padding-bottom: 40px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
}

.swiper-slide img {
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 15px;
}


.swiper-slide-active {
    transform: rotateY(0deg);
}
.swiper-slide-prev {
    transform: rotateY(-45deg);
}
.swiper-slide-next {
    transform: rotateY(45deg);
}


@media (min-width: 1024px) {
    .fotos {
        grid-template-columns: repeat(3, 1fr);
    }
}

.swiper-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
}