body.specappointment-image-lock {
    overflow: hidden;
}

.specappointment-image-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483600;
}

.specappointment-image-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
}

.specappointment-image-modal__dialog {
    position: relative;
    z-index: 1;
    width: calc(100vw - 48px);
    max-width: 1040px;
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.specappointment-image-modal__nav {
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border: 0;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 48px;
    height: 72px;
    justify-content: center;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    z-index: 2;
}

.specappointment-image-modal__nav--prev {
    left: 0;
}

.specappointment-image-modal__nav--next {
    right: 0;
}

.specappointment-image-modal__nav:hover,
.specappointment-image-modal__nav:focus-visible,
.specappointment-image-modal__close:hover,
.specappointment-image-modal__close:focus-visible {
    background: rgba(0, 0, 0, 0.78);
    outline: 2px solid #fff;
    outline-offset: -2px;
}

.specappointment-image-modal__close {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
    width: 52px;
    height: 52px;
    border: 0;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.specappointment-image-modal__content {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 48px);
}

.specappointment-image-modal__content img {
    display: block;
    width: 100%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
    background: #111;
}

.specappointment-image-modal__caption {
    padding: 14px 18px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #f3f4f6;
    background: #151515;
}

.specappointment-image-modal__counter {
    background: rgba(0, 0, 0, 0.58);
    border-radius: 999px;
    bottom: 14px;
    color: #fff;
    font-size: 13px;
    left: 50%;
    line-height: 1;
    padding: 7px 10px;
    position: absolute;
    transform: translateX(-50%);
}

@media (max-width: 720px) {
    .specappointment-image-modal__dialog {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        margin: 10px auto;
    }

    .specappointment-image-modal__close {
        width: 46px;
        height: 46px;
        font-size: 28px;
    }

    .specappointment-image-modal__nav {
        font-size: 36px;
        height: 58px;
        width: 42px;
    }

    .specappointment-image-modal__content img {
        max-height: calc(100vh - 92px);
    }

    .specappointment-image-modal__caption {
        padding: 12px 14px 14px;
        font-size: 13px;
    }
}
