/* * {
    margin: 0;
    padding: 0;
}

body {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
} */

.carousel2 {
    height: 500px;
    width: 98%;
    position: relative;
}

.carousel2 .bSwitchLeft,
.carousel2 .bSwitchRight {
    z-index: 5;
    opacity: 60%;
    cursor: pointer;
    position: absolute;
    bottom: 13em;
    transition: 0.3s ease;
}
.carousel2 .bSwitchLeft{
    left: 2em;
}
.carousel2 .bSwitchRight{
    right: 2em;
}
.carousel2 .bSwitchLeft:hover,
.carousel2 .bSwitchRight:hover {
    transform: scale(1.2);
    opacity: 100%;
}

.carouselbox {
    height: 500px;
    width: auto;
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
    padding-bottom: 10px !important;
    display: flex;
    align-items: center;
}

.carouselbox img {
    min-width: 300px;
    max-width: 300px;
    height: 510px;
    background-size: cover;
    /* background-color: lightgreen; */
    margin: 5px 10px;
    cursor: pointer;
    transition: 0.3s ease;
    z-index: 2;
}

.carouselbox img:hover {
    transform: scale(1.1);
    z-index: 5;
}

.modal2 {
    visibility: hidden;
    opacity: 0;
    height: 0;
}

.modal2:target {
    transition: opacity 0.3s ease, height 0.0s ease;
    visibility: visible;
    opacity: 1;

    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
}

.imagen {
    width: 100%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1%;
}

.imagen a {
    color: white;
    font-size: 40px;
    text-decoration: none;
    margin: 0 10px;
}

.imagen a:nth-child(2) {
    margin: 0;
    height: 100%;
    flex-shrink: 2;
}

.imagen img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    border: 7px solid #fff;
    box-sizing: border-box;
}

.cerrar {
    display: block;
    background: #fff;
    width: 30px;
    height: 30px;
    margin: 15px auto;
    text-align: center;
    text-decoration: none !important;
    font-size: 25px;
    font-family: Arial, Helvetica, sans-serif !important;
    color: #000;
    padding: 7px;
    border-radius: 50%;
    line-height: 15px;
    cursor: pointer;
}

.cerrado {
    visibility: hidden; 
    opacity: 0;
}