
body {
    background-color: #4a90e2;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    font-family: 'Dancing Script', cursive;
    background-image: url(fondo.jpg);
    background-attachment: fixed;
}

h1{
    text-align: center;
    height: auto;
}

.contenedor {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

.fotos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    opacity: 0.9;
}

.fotos img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.fotos img:hover {
    transform: scale(1.1);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;

    transition: opacity 0.3s ease-in-out;
}

.lightbox.show {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lightbox img.show {
    opacity: 1;
}

.arrow {
    font-size: 30px;
    color: white;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 1001;
}

.arrow-left {
    left: 20px;
}

.arrow-right {
    right: 20px;
}

.no-scroll {
    overflow: hidden;
}

.carrusel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.carrusel.activo {
    opacity: 1;
    visibility: visible;
}

.carrusel .image-wrapper {
    position: relative;
    width: 60%;
    height: auto;
    max-height: 80%;
}

.carrusel img {
    width: auto;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    border-radius: 8px;
    box-shadow: 0px 0px 15px 5px rgba(0, 0, 255, 0.7);
}

.carrusel img.activo {
    box-shadow: 0px 0px 15px 5px rgba(0, 0, 255, 0.7);
}

.transition-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.center {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1);
}

.fade-out {
    opacity: 0;
}

.boton-cerrar, .boton-anterior, .boton-siguiente {
    position: absolute;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 64px;
    color: aliceblue;
    background: none;
    font-family: 'Dancing Script', cursive;
}

.boton-cerrar {
    top: 20px;
    right: 20px;
}

.boton-anterior {
    left: 15%;
}

.boton-siguiente {
    right: 15%;
}

.boton-cerrar:hover, .boton-anterior:hover, .boton-siguiente:hover {
    color: mediumslateblue;
    transition: 0.4s ease;
}

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script&display=swap');