html.cjm-modal-open,
body.cjm-modal-open {
    overflow: hidden !important;
    height: 100%;
    touch-action: none;
}

.modal-backdrop.cjm-backdrop.show {
    opacity: 0.85;
    background-color: #000;
}

.custom-jewelry-modal .modal-dialog {
    max-width: 900px;
}

.custom-jewelry-modal .modal-content {
    border: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.custom-jewelry-modal .modal-body {
    padding: 0;
}

.custom-jewelry-modal .cjm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.custom-jewelry-modal .cjm-image {
    background-size: cover;
    background-position: center;
    min-height: 380px;
}

.custom-jewelry-modal .cjm-content {
    padding: 2.75rem 2.5rem;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.custom-jewelry-modal .cjm-eyebrow {
    color: var(--bs-primary, #c9a85a);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.custom-jewelry-modal .cjm-headline {
    color: #212529;
    font-weight: 700;
    font-size: 1.85rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.custom-jewelry-modal .cjm-body {
    color: #555;
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
}

.custom-jewelry-modal .cjm-cta {
    align-self: flex-start;
}

.custom-jewelry-modal .btn-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 5;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    padding: 0.6rem;
    opacity: 1;
}

@media (max-width: 767.98px) {
    .custom-jewelry-modal .cjm-grid {
        grid-template-columns: 1fr;
    }

    .custom-jewelry-modal .cjm-image {
        min-height: 220px;
    }

    .custom-jewelry-modal .cjm-content {
        padding: 2rem 1.5rem;
    }

    .custom-jewelry-modal .cjm-headline {
        font-size: 1.45rem;
    }
}
