/* Centered Vertical Modal */
/* 1. Ensure the backdrop and modal sit ON TOP of sticky navigation */
.modal-backdrop {
    z-index: 10000 !important;
}

#welcomeModal {
    z-index: 10001 !important;
    text-align: center;
    padding: 0 !important;
}

/* 2. Vertical alignment trick using pseudo-element */
#welcomeModal:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -4px;
    /* Removes whitespace bug */
}

/* 3. Reset Bootstrap's dialog positioning & force true centering */
#welcomeModal .modal-dialog {
    display: inline-block !important;
    text-align: left;
    vertical-align: middle;
    margin: 180px auto !important;
    position: relative;
    width: 90%;
    max-width: 700px;
    /* Adjust size to fit your images */
    float: none !important;
    /* Prevents Bootstrap float offsets */
}

/* 4. Fix modal content box shadow & borders */
#welcomeModal .modal-content {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: none;
}

.popup-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 1050;
    color: #fff;
    font-size: 32px;
    opacity: 0.8;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    outline: none;
}

.popup-close-btn:hover {
    color: var(--accent-color, #8dd69d);
    opacity: 1;
}

.popup-slide {
    cursor: pointer;
}

.popup-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

/* Center Carousel Arrows */
#welcomeModal .carousel-control .fa {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
}