@media screen and (max-width: 1023px) {
    .gallery
    {
        position: fixed;
        background-color: var(--panel-color);
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 102;
    }

    .gallery__close
    {
        position: absolute;
        background-image: url(/static/resources/img/cross_black.svg);
        background-repeat: no-repeat;
        background-position: center;
        background-size: 19px;
        width: 36px;
        height: 36px;
        right: 10px;
        top: 10px;
        z-index: 103;
    }

    .gallery__close:active
    {
        transform: scale(0.95);
    }

    .gallery__thumbnails
    {
        background-color: #fff;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 68px;
        padding: 10px;
        box-sizing: border-box;

        white-space: nowrap;
        overflow-x: auto;
    }

    .gallery__thumbnail
    {
        width: 48px;
        height: 48px;
        background-position: center;
        background-repeat: no-repeat;
        background-size: 40px;
        display: inline-block;
        border: 2px solid transparent;
        transition: all var(--transition-duration) ease-out;
        border-radius: 2px;
    }

    .gallery__thumbnail + .gallery__thumbnail
    {
        margin-left: 10px;
    }

    .gallery__thumbnail_active,
    .gallery__thumbnail:hover
    {
        border-color: var(--pruma-green);
    }

    .gallery__image-container
    {
        position: absolute;
        background-color: #fff;
        left: 0;
        top: 0;
        right: 0;
        bottom: 76px;
        display: flex;
    }

    .gallery__image
    {
        display: block;
        margin: auto;
        max-width: 100%;
        max-height: 100%;
        transition: opacity 0.2s ease-out;
        pointer-events: none;
    }

    .gallery__image_hidden
    {
        opacity: 0 !important;
    }

    .gallery__nav-button
    {
        position: absolute;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        top: calc(50% - 24px);
        align-items: center;
        justify-content: center;
        display: inline-flex;
        box-shadow: 0 2px 10px 0 rgb(0 0 0 / 12%);
        transition: all var(--transition-duration) ease-out;
    }

    .gallery__nav-button:active
    {
        transform: scale(0.95);
    }

    .gallery__nav-button_prev
    {
        left: 20px;
    }

    .gallery__nav-button *
    {
        pointer-events: none;
    }

    .gallery__nav-button_prev .gallery__nav-button-inner
    {
        transform: rotate(180deg);
    }

    .gallery__nav-button_next
    {
        right: 20px;
    }

    .gallery__nav-button:hover
    {
        background-color: var(--pruma-green);
    }

    .gallery__nav-button:hover path
    {
        fill: #fff;
    }
}
