.gazzeta-photo-stage {
    --gazzeta-photo-height: min(66vh, 700px);
    position: relative;
}

.gazzeta-photo-stage .gazzeta-photo-frame {
    margin: 0;
    background: #f6f4ef;
}

.gazzeta-photo-stage .gazzeta-photo-frame > img {
    display: block;
    width: 100%;
    height: var(--gazzeta-photo-height);
    object-fit: contain;
    background: #f6f4ef;
    touch-action: pan-y pinch-zoom;
}

.gazzeta-photo-stage .gazzeta-photo-frame figcaption {
    padding: 8px 12px;
    color: #555;
    font: 400 12.285px/1.4 var(--sans, Arial, sans-serif);
}

.gazzeta-photo-stage .gazzeta-photo-arrow:not([hidden]) {
    position: absolute;
    z-index: 1;
    top: calc(var(--gazzeta-photo-height) / 2);
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid #a8a49c;
    border-radius: 50%;
    background: #fff;
    color: #151515;
    box-shadow: 0 2px 8px #0003;
    font: 400 32.13px/1 Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
}

.gazzeta-photo-stage .gazzeta-photo-prev {
    left: 8px;
}

.gazzeta-photo-stage .gazzeta-photo-next {
    right: 8px;
}

.gazzeta-photo-stage .gazzeta-photo-arrow[aria-disabled="true"] {
    opacity: .55;
    cursor: default;
}

.gazzeta-photo-stage .gazzeta-photo-arrow:focus-visible {
    outline: 2px solid #151515;
    outline-offset: 2px;
}

.gazzeta-article-gallery {
    margin: 1.5em 0;
}

.gazzeta-article-gallery .gazzeta-photo-stage {
    --gazzeta-photo-height: clamp(180px, 55vw, 460px);
}

.gazzeta-photo-stage .gazzeta-photo-frame[hidden] {
    display: none;
}

.gazzeta-article-gallery .gazzeta-photo-position {
    margin: 8px 0 0;
    color: #555;
    font: 400 12.285px/1.4 var(--sans, Arial, sans-serif);
    text-align: center;
}

@media (max-width: 640px) {
    .gallery-single .gazzeta-photo-stage {
        --gazzeta-photo-height: max(220px, 50vh);
    }
}
