.gallery-filter-buttons {
    margin-bottom: 20px;
    text-align: center;
}

.gallery-filter-buttons .filter-button {
    background: none;
    font-weight: bold;
    font-size: 14px;
    margin: 0 10px;
    cursor: pointer;
    padding: 8px 12px;
    color: #686868;
    border: 1px solid;
    border-radius: 15px;
}

.gallery-filter-buttons .filter-button.active,
.gallery-filter-buttons .filter-button:hover {
    border-color: #0AA7CB;
    color: #0AA7CB;
}

.inspiration-gallery-grid {
    /* Do NOT use display: flex when using Isotope */
    position: relative;
}

.gallery-item {
    width: 23%;
    height: 300px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
    margin: 10px;
    overflow: hidden;
    /* ← Manual gap */
}

.gallery-item:hover {
    transform: scale(1.05);
}


/* Modal Styles */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vmax;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    overflow-y: scroll;
}

.inspirationModalInnerWrap {
    position: relative;
    width: auto;
    margin: auto;
    top: 30px;
    max-width: 100%;
    overflow-y: hidden;
    overflow-y: scroll;
    height: auto;
    max-height: 100vh;
}

.modal-content {
    background: #fff;
    display: flex;
    flex-direction: row;
    padding: 35px;
    position: relative;
    height: max-content;
    gap: 20px;
    margin: 20px;
}

.modal-left,
.modal-right {
    width: 50%;
}

.modal-left img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0px;
    width: auto;
}

.modal-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.modal-right h2 {
    margin-top: 0;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: bold;
}

.product-details-btn,
.order-btn {
    margin-bottom: 20px;
    background: #0AA7CB;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 0px;
    cursor: pointer;
    text-decoration: none;
}

.product-details-btn:hover,
.order-btn:hover {
    background: #0399bb;
    color: #ffffff;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 35px;
    color: #000;
    cursor: pointer;
    background: #fff;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 34px;
}

.modal-close:hover {
    background-color: #e7e7e7;
}

.gallery-item-desc {
    display: none;
}

#modalDesc {
    margin-bottom: 10px;
}

#modalBtns {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.gallery-item-title {
    position: absolute;
    bottom: 0;
    background-color: #fff;
    width: 100%;
    padding: 2px 5px;
    text-align: center;
}

@media screen and (max-width: 767px) {
    .inspirationModalInnerWrap {
        width: auto;
    }
    .modal-content {
        flex-direction: column;
    }
    .modal-left,
    .modal-right {
        width: 100%;
    }
    #modalBtns {
        display: flex;
        flex-direction: column;
    }
    .product-details-btn,
    .order-btn {
        margin-top: 0
    }
    .gallery-item {
        width: 100%;
    }
    .gallery-filter-buttons .filter-button {
        margin-bottom: 12px;
    }
}

.modal-nav {
    position: absolute;
    top: 200px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 10;
    user-select: none;
    transform: translateY(-50%);
    width: 30px;
    height: 50px;
    background-color: black;
    text-align: center;
    border-radius: 0;
    line-height: 45px;
}

.modal-nav:hover {
    background-color: #0AA7CB;
    color: #ffffff;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}