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__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;
}

@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__content img {
        max-height: calc(100vh - 92px);
    }

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