/* Immagini adattate allo schermo e visore per i dettagli */

.mainContent img,
.projectInnerContent img,
.postMedia img,
.wp-caption img {
    max-width: 100%;
    height: auto;
}

.wp-caption {
    max-width: 100% !important;
    height: auto !important;
}

.callbacks_container .rslides img,
#carousel img,
.mainContent img,
.projectInnerContent img,
.postMedia > img {
    cursor: zoom-in;
}

.callbacks_container .rslides {
    background: #f3f3f3;
}

.callbacks_container .rslides img {
    display: block;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 82vh;
    margin-left: auto;
    margin-right: auto;
    float: none !important;
    object-fit: contain;
}

.bucketVertical .imgHolder {
    overflow: hidden;
    background: #111;
}

.bucketVertical .imgHolder img {
    object-fit: cover;
    object-position: center center;
}

.archene-side-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 5;
    width: 32%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.archene-side-nav[hidden] {
    display: none !important;
}

.archene-side-nav.is-prev {
    left: 0;
}

.archene-side-nav.is-next {
    right: 0;
}

.liteBoxShadow > .archene-side-nav {
    top: 76px;
    bottom: 86px;
    z-index: 30;
}

.liteBoxShadow > .archene-side-nav.is-prev:hover,
.liteBoxShadow > .archene-side-nav.is-prev:focus {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}

.liteBoxShadow > .archene-side-nav.is-next:hover,
.liteBoxShadow > .archene-side-nav.is-next:focus {
    background: linear-gradient(to left, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}

.callbacks_container > .archene-side-nav {
    bottom: auto;
}

.callbacks_container > .archene-side-nav.is-prev:hover,
.callbacks_container > .archene-side-nav.is-prev:focus {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0));
}

.callbacks_container > .archene-side-nav.is-next:hover,
.callbacks_container > .archene-side-nav.is-next:focus {
    background: linear-gradient(to left, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0));
}

.callbacks_container .rslides_nav {
    z-index: 6;
}

#slides > .archene-side-nav {
    z-index: 2;
    width: 22%;
}

#slides > .archene-side-nav.is-prev:hover,
#slides > .archene-side-nav.is-prev:focus {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
}

#slides > .archene-side-nav.is-next:hover,
#slides > .archene-side-nav.is-next:focus {
    background: linear-gradient(to left, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
}

.archene-zoom-hint {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 7;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: rgba(8, 8, 8, 0.78);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.archene-zoom-hint .icon-zoom-in {
    font-size: 15px;
    line-height: 1;
}

.archene-zoom-hint:hover,
.archene-zoom-hint:focus {
    color: #fff;
    background: rgba(8, 8, 8, 0.92);
    text-decoration: none;
}

.liteBoxShadow .archene-zoom-hint {
    position: fixed;
    top: 18px;
    left: 260px;
    right: auto;
    z-index: 10001;
}

#archene-zoom {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.94);
    color: #fff;
}

#archene-zoom[hidden] {
    display: none !important;
}

#archene-zoom .az-stage {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    touch-action: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#archene-zoom .az-stage img {
    max-width: calc(100% - 24px);
    max-height: calc(100% - 96px);
    width: auto;
    height: auto;
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
    cursor: grab;
}

#archene-zoom .az-stage img.is-dragging {
    cursor: grabbing;
}

#archene-zoom button {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 26px;
    line-height: 40px;
    text-align: center;
}

#archene-zoom button:hover,
#archene-zoom button:focus {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

#archene-zoom .az-close {
    top: 14px;
    right: 14px;
    font-size: 30px;
}

#archene-zoom .az-prev,
#archene-zoom .az-next {
    top: 50%;
    margin-top: -22px;
}

#archene-zoom .az-prev {
    left: 10px;
}

#archene-zoom .az-next {
    right: 10px;
}

#archene-zoom .az-tools {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 12px;
    pointer-events: none;
}

#archene-zoom .az-tools button {
    position: static;
    pointer-events: auto;
}

#archene-zoom .az-count,
#archene-zoom .az-hint {
    font-size: 13px;
    letter-spacing: 0.02em;
}

#archene-zoom .az-hint {
    opacity: 0.8;
    flex-basis: 100%;
    text-align: center;
}

@media (max-width: 991px) {
    #wrapper,
    .liteBoxShadow .caroufredsel_wrapper,
    .liteBoxShadow .caroufredsel_wrapper #carousel {
        height: calc(100vh - 130px) !important;
    }

    #wrapper {
        width: 100% !important;
        margin-top: 8px;
    }

    .galleryShadow {
        display: none !important;
    }

    .callbacks_container .rslides img {
        max-height: 70vh;
    }

    #archene-zoom .az-prev {
        left: 6px;
    }

    #archene-zoom .az-next {
        right: 6px;
    }
}

@media (max-width: 500px) {
    .liteBoxShadow .archene-zoom-hint {
        top: auto;
        bottom: 72px;
        left: 50%;
        transform: translateX(-50%);
    }
}
