/* Gallery Grid Layout - Per shortcode [gallerie_pagina] */

.galleria-blocchi {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.galleria-blocchi .blocco {
    width: 33.3%;
    height: 300px;
}

.galleria-blocchi .blocco img {
    width: 100.3%;
    height: 300px;
    object-fit: cover;
    cursor: pointer;
}

.vbox-overlay>.vbox-container {
    overflow-y: hidden;
}

.vbox-overlay .vbox-next>span,
.vbox-overlay .vbox-prev>span {
    width: 25px;
    height: 25px;
    border: 5px solid transparent;
    border-top-color: var(--vbox-tools-color);
    border-right-color: var(--vbox-tools-color);
}

.vbox-content .vbox-child>iframe {
    border: 5px solid black !important;
    background: black !important;
}

.vbox-overlay .vbox-close {
    font-size: 25px;
    opacity: 1;
}

.vbox-overlay .vbox-num {
    font-family: "Louvette Display Regular", Sans-serif;
    font-size: 16px;
}

.blocco.video a {
    position: relative;
    display: inline-block;
}

.blocco.video a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90px;
    height: 90px;
    border: 3px solid #ffffffb6;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.blocco.video a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-35%, -50%);
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent white;
}

@media screen and (max-width: 1024px) {
    .galleria-blocchi .blocco {
        width: 50%;
    }
}

@media screen and (max-width: 600px) {
    .galleria-blocchi .blocco {
        width: 100%;
    }

    .galleria-blocchi .blocco img {
        height: 330px;
    }
}