/* Basic modal styles */
.modal {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1000; /* Ensure above other content */
}

.modal-content {
    background-color: #fff;
    margin: 15% auto; /* Centered */
    padding: 50px;
    border: 1px solid #6D758F;
    width: 50%; /* Adjust as needed */
    border-radius: 20px; /* Rounded corners */
    position: relative;
    z-index: 1010; /* Ensure above modal background */
    pointer-events: auto;
}

.modal-content h2 {
    color: #1C1D1C !important;
    font-family: Poppins !important;
    font-size: 25px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: normal !important;
    text-decoration-line: none !important;
}

.modal-content p {
    color:  #1C1D1C;
    font-family: Poppins;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 30px;
}

.modal-content a {
    color: #004771;
    font-family: Poppins;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 30px;
}

.close {
    color: #004771;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer !important;
}


#glossSearch {
    z-index: 1; /* Set a low z-index if it overlaps with grid items */
}

.elementor-loop-container .post-item {
    position: relative;
    z-index: 10; /* Ensure grid items are on top */
}

/* X-Small devices (portrait phones, less than 576px) */
/* No media query for `xs` since this is the default in Bootstrap */

/* Large devices (desktops, 992px and up) */
@media (max-width: 992px) { 
    .modal-content {
        margin: 15% auto; /* Centered */
        padding: 50px;
        width: 50%; /* Adjust as needed */
    }
    
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 768px) { 
    .modal-content {
        margin: 15% auto; /* Centered */
        padding: 40px;
        width: 80%; /* Adjust as needed */
    }
    
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 576px) { 
    .modal-content {
        margin: 15% auto; /* Centered */
        padding: 35px;
        width: 90%; /* Adjust as needed */
    }
}



