body {
    font-family: 'Dancing Script', cursive;
    background-color: #fef0f7;
    color: #3b3b3b;
    margin: 0;
    padding: 0;
    background-image: url(fondo.jpg);
}

body.no-scroll {
    overflow: hidden;
}

.volver {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: pink;
    border-radius: 9px;
    padding: 10px;
    font-weight: bold;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
}
.volver:hover {
    background-color: rgb(255, 182, 193);
}

.volver a {
    color: black;
    text-decoration: none;
    display: block;
    text-align: center;
}



h2{
    text-align: center;
    font-weight: bold;
    font-size: 32px;
}

.imagenes{
    display: grid;
    grid-template-columns: repeat(4, auto);
    position: relative;
    gap: 15px;
    overflow: hidden;
}

a img {
    width: 100%;
    height: 290px;
    object-fit: contain;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    justify-items: center;
}

a img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.5);
}

.lightbox {
    display: none;
    top: 0;
    left: 0;
    width: 100vh;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lightbox.show {
    display: flex;
    opacity: 1;
    width: 100%;
    height: 100%;
}

.lightbox img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.7);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    transform: scale(0.8);
}

.lightbox img.show {
    opacity: 1;
    transform: scale(1);
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 200px;
    color: #ff69b4;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
}

.arrow:hover {
    color: #ff1493;
}

.arrow-left {
    left: 15%;
}

.arrow-right {
    right: 15%;
}