.wedding-visore {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    border: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    color: #fff;
}
.wedding-visore::backdrop { background: rgb(0 0 0 / 80%); }
.wedding-visore:fullscreen { background: #141414; }
.wedding-visore-barra {
    position: absolute;
    inset: 0 0 auto;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 55px;
    padding: 0 14px 0 20px;
    background: rgb(0 0 0 / 24%);
}
.wedding-visore-strumenti { display: flex; gap: 4px; }
.wedding-visore button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 2px;
    padding: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: 400 28px/1 Arial, sans-serif;
}
.wedding-visore button[hidden] { display: none; }
.wedding-visore button:hover { background: rgb(255 255 255 / 12%); }
.wedding-visore button:focus-visible { outline: 1px solid currentColor; outline-offset: -3px; }
.wedding-visore-foto {
    position: absolute;
    inset: 69px 54px;
    display: grid;
    place-items: center;
    margin: 0;
    touch-action: pan-y pinch-zoom;
    overflow: auto;
}
.wedding-visore-foto img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    min-height: 0;
    object-fit: contain;
    border-radius: 2px;
}
.wedding-visore.ingrandita .wedding-visore-foto { display: block; touch-action: auto; }
.wedding-visore.ingrandita img { width: 150%; max-width: none; max-height: none; margin: auto; }
.wedding-visore-didascalia {
    position: absolute;
    inset: auto 50px 18px;
    margin: 0;
    text-align: center;
    overflow-wrap: anywhere;
    pointer-events: none;
    font: 600 16px/1.25 AlbertSans, Arial, sans-serif;
}
.wedding-visore .wedding-freccia {
    position: absolute;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
    font-size: 39px;
}
.wedding-freccia[data-precedente] { left: max(8px, 6%); }
.wedding-freccia[data-successiva] { right: max(8px, 6%); }
@media (max-width: 767px) {
    .wedding-visore-foto { inset: 60px 0 58px; }
    .wedding-freccia[data-precedente] { left: 4px; }
    .wedding-freccia[data-successiva] { right: 4px; }
    .wedding-visore .wedding-freccia { background: rgb(0 0 0 / 38%); }
    .wedding-visore-didascalia { inset-inline: 14px; font-size: 14px; }
}
