.so-panel2-clickable-photo {
    cursor: pointer;
}

.so-gallery-viewer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.so-gallery-viewer[aria-hidden="false"] {
    display: block;
}

.so-gallery-viewer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

.so-gallery-viewer__dialog {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 60px;
}

.so-gallery-viewer__stage {
    width: min(92vw, 1600px);
    height: min(86vh, 980px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.so-gallery-viewer__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.so-gallery-viewer__close,
.so-gallery-viewer__nav {
    border: 0;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    cursor: pointer;
}

.so-gallery-viewer__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 34px;
    line-height: 1;
}

.so-gallery-viewer__nav {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 38px;
    line-height: 1;
    flex-shrink: 0;
}

body.so-modal-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .so-gallery-viewer__dialog {
        padding: 12px;
    }

    .so-gallery-viewer__nav {
        width: 44px;
        height: 44px;
        font-size: 30px;
    }
}
