#hero {
    background-image: var(--home_bg_desktop);
    /* Update path */
    background-size: cover;
    /* Ensure the image covers the entire section */
    background-position: center;
    /* Center the image */
    background-repeat: no-repeat;
    /* Prevent tiling */
    background-color: #232931;
    /* Fallback color in case image doesn't load */
    position: relative;
    /* Allows layering elements */
    z-index: 1;
    background-attachment: fixed;
}

@media (max-width: 767px) {
    #hero {
        background-image: var(--home_bg_mobile);
        /* Use your mobile background image path */
        background-attachment: scroll; /* Prevent issues on mobile */
    }
}

#hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    /* Black overlay with 40% opacity */
    z-index: 0;
}

#hero .container {
    position: relative;
    z-index: 2;
    /* Keep content above the overlay */
}


/* Modal overlay */
.img-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.5s ease;
    /* Smooth fade */
}

/* Show modal with fade-in */
.img-modal.show {
    display: flex;
    opacity: 1;
}

/* Modal content box */
.img-modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
}

/* Image should fit nicely */
.img-modal-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    /* Keeps full image visible */
    object-fit: contain;
}

/* Close button */
.img-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.img-close:hover {
    color: #f1c40f;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .img-modal-content {
        width: 75%;
        max-width: 400px;
    }

    .img-close {
        font-size: 26px;
    }
}