    .viewer-overlay {
        position: fixed;
        inset: 0 0;
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        background: #000000E5;
        z-index: 100000;
    }

    .viewer-header {
        position: relative;
        top: 0px;
        transition: top 0.3s;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 24px;
        width: 100%;
        box-sizing: border-box;
        height: 82px;
        z-index: 1;
        background: rgba(0, 0, 0, 0.9);
        user-select: none;
        -webkit-user-select: none;
    }

    @media (max-width: 1019px) {
        .viewer-header {
            justify-content: flex-end;
            height: 64px;
            padding: 8px 16px;
        }
    }

    .viewer-header_hidden {
        top: -34px;
    }

    .viewer-header_hidden>* {
        visibility: hidden;
    }

    .viewer-content {
        display: flex;
        flex-grow: 1;
    }

    .viewer-actions {
        display: flex;
        align-items: center;
        justify-content: center;
        column-gap: 12px;
    }

    .viewer-caption {
        flex: 1;
        overflow: hidden;
        color: #fff;
        font-family: hh sans, Arial, sans-serif;
        font-style: normal;
        font-weight: 400;
        line-height: 22px;
    }

    .viewer-footer .viewer-caption {
        text-align: center;
    }

    .viewer-title {
        font-size: 16px;
        line-height: 22px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    @media (max-width: 1019px) {
        .viewer-title {
            font-size: 12px;
            line-height: 18px;
        }
    }

    .viewer-subtitle {
        margin-top: 4px;
        font-size: 14px;
        line-height: 20px;
    }

    @media (max-width: 1019px) {
        .viewer-subtitle {
            font-size: 10px;
            line-height: 14px;
            margin-top: 0;
        }
    }

    .viewer-image-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        max-width: 100%;
        max-height: 100%;
    }

    .viewer-image-wrapper_hidden {
        opacity: 0;
    }

    .viewer-image {
        display: block;
        object-fit: contain;
        user-select: none;
        -webkit-user-select: none;
        transition: transform 0.3s, height 0.3s, width 0.3s;
    }

    .viewer-loader,
    .viewer-image-wrapper {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .viewer-loader svg {
        height: 64px;
        width: 64px;
    }

    @media (max-width: 1019px) {
        .viewer-loader svg {
            height: 48px;
            width: 48px;
        }
    }

    .viewer-footer {
        position: relative;
        bottom: 0px;
        transition: bottom 0.3s;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #000000e6;
        padding: 12px 16px;
        z-index: 1;
    }

    @media (min-width: 1020px) {
        .viewer-footer {
            display: none;
        }
    }

    .viewer-footer_hidden {
        bottom: -42px;
    }

    .viewer-footer_hidden>* {
        visibility: hidden;
    }

    .viewer-zoom-state {
        color: #fff;
        font-family: hh sans, Arial, sans-serif;
        font-size: 18px;
        font-style: normal;
        font-weight: 400;
        line-height: 26px;
    }