.frontend-popup-modal {
    padding-right: 0 !important;
}

.frontend-popup-modal .modal-dialog {
    width: calc(100% - 2rem);
    max-width: 920px;
    margin-right: auto;
    margin-left: auto;
}

.frontend-popup-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: .75rem;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .35);
}

.frontend-popup-close {
    position: absolute;
    top: .65rem;
    right: .65rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: #fff;
    background: rgba(0, 0, 0, .72);
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.frontend-popup-close:hover,
.frontend-popup-close:focus {
    color: #fff;
    background: #000;
    outline: 3px solid #ffbf47;
    outline-offset: 2px;
}

.frontend-popup-image-link {
    display: block;
}

.frontend-popup-image {
    display: block;
    width: 100%;
    max-height: 68vh;
    object-fit: contain;
    background: #e5f3fb;
}

.frontend-popup-actions {
    display: flex;
    justify-content: flex-end;
    padding: .7rem .85rem;
    background: #fff;
}

.frontend-popup-action {
    font-weight: 600;
}

.frontend-popup-indicators {
    right: 4.5rem;
    bottom: .85rem;
    left: 4.5rem;
    margin: 0;
    pointer-events: none;
}

.frontend-popup-indicators li {
    width: 9px;
    height: 9px;
    margin: 0 4px;
    background-color: #0069a6;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
    pointer-events: auto;
}

.frontend-popup-control {
    top: 50%;
    bottom: auto;
    width: 44px;
    height: 44px;
    margin: 0 .75rem;
    background: rgba(0, 0, 0, .65);
    border-radius: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.frontend-popup-control:hover,
.frontend-popup-control:focus {
    background: #000;
    outline: 3px solid #ffbf47;
    outline-offset: 2px;
}

@media (max-width: 575.98px) {
    .frontend-popup-modal .modal-dialog {
        width: calc(100% - 1rem);
    }

    .frontend-popup-image {
        max-height: 62vh;
    }

    .frontend-popup-close {
        top: .4rem;
        right: .4rem;
        width: 38px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .frontend-popup-modal.fade,
    .frontend-popup-modal.fade .modal-dialog {
        transition: none !important;
    }
}
