
/* =========================================================
   INIZIO CODICE GALLERYZOOM
   ========================================================= */


.extra-gallery,
.extra-gallery *,
.extra-gallery *::before,
.extra-gallery *::after {
    box-sizing: border-box;
}

.extra-gallery {
    display: flow-root;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
}

/* PERCORSO */

.extra-gallery-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35em;
    width: 100%;
    margin: 0 0 2.3em;
    padding: 0;
    font-size: inherit;
    line-height: 1.6;
    overflow-wrap: anywhere;
    font-weight: bold;
    color: inherit;
}

.extra-gallery-breadcrumb a {
    font-weight: bold;
    text-decoration: none;
}

.extra-gallery-breadcrumb a:hover {
    text-decoration: underline;
}

.extra-gallery-breadcrumb-current {
    font-weight: bold;
    color: inherit;
}

.extra-gallery-breadcrumb-separator {
    font-weight: normal;
    color: inherit;
}

/* SOTTOCARTELLE */

.extra-gallery-folders {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 3%;
    row-gap: 1em;
    align-items: start;
    width: 100%;
    margin: 0 0 3em;
    padding: 0;
    font-size: inherit;
}

.extra-gallery-folder {
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-width: 0;
    min-height: 3em;
    margin: 0;
    padding: 0;
    border: none;
    background-image: var(--extra-gallery-box-background, none);
    background-repeat: repeat;
    background-position: left top;
    text-align: center;
    overflow-wrap: anywhere;
}

.extra-gallery-folder a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3em;
    padding: 0.8em;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

/* COLORE LINK SOTTOCARTELLE */

.extra-gallery .extra-gallery-folder a,
.extra-gallery .extra-gallery-folder a:link,
.extra-gallery .extra-gallery-folder a:visited,
.extra-gallery .extra-gallery-folder a:hover,
.extra-gallery .extra-gallery-folder a:active {
    color: var(--extra-gallery-box-link-color) !important;
}

.extra-gallery .extra-gallery-folder a:hover {
    text-decoration: underline;
}

/* GRIGLIA FOTO */

.extra-gallery-photos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
    column-gap: 3%;
    row-gap: 2em;
    align-items: start;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* SINGOLA FOTO */

.extra-gallery-photo {
    min-width: 0;
    margin: 0;
    padding: 0;
    align-self: start;
}

/* ANTEPRIME */

.extra-gallery-image-link {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.extra-gallery-image-link img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: cover;
    object-position: center;
}

/* DIDASCALIE */

.extra-gallery-photo figcaption {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.5em 0 0.3em;
    color: inherit;
    text-align: center;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* CONTINUA */

.extra-gallery-continue-box {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    margin: 3em 0 0;
    padding: 0;
    border: none;
    background: none;
}

.extra-gallery .extra-gallery-continue,
.extra-gallery .extra-gallery-continue:link,
.extra-gallery .extra-gallery-continue:visited,
.extra-gallery .extra-gallery-continue:hover,
.extra-gallery .extra-gallery-continue:active {
    color: var(--extra-gallery-box-link-color) !important;
}

.extra-gallery-continue {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc((100% - 6%) / 3);
    min-width: 0;
    min-height: 3em;
    margin: 0;
    padding: 0.8em;
    background-image: var(--extra-gallery-box-background, none);
    background-repeat: repeat;
    background-position: left top;
    font: inherit;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.extra-gallery .extra-gallery-continue:hover {
    text-decoration: underline;
}

/* GALLERIA VUOTA */

.extra-gallery-empty {
    margin: 1em 0;
    padding: 0;
    color: inherit;
}

/* ACCESSIBILITÀ */

.extra-gallery a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}



/* =========================================================
   FINE CODICE GALLERYZOOM
   ========================================================= */





/* =========================================================
   =========================================================
   MOBILE - INIZIO CODICE PER MOBILE
   =========================================================
   ========================================================= */





@media screen and (max-width: 767px) {


/* =========================================================
   INIZIO CODICE GALLERYZOOM
   ========================================================= */


    .extra-gallery {
        font-size: 18px;
    }

    .extra-gallery-folders,
    .extra-gallery-photos {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 0.75em;
    }

    .extra-gallery-folders {
        margin-bottom: 3em;
    }

    .extra-gallery-folder {
        min-height: 3em;
    }

    .extra-gallery-continue-box {
        margin-top: 3em;
    }

    .extra-gallery-continue {
        width: 100%;
    }


/* =========================================================
   FINE CODICE GALLERYZOOM
   ========================================================= */

}


