
/* Gallery Section */
.gallery-section {
    max-width: var(--width-996);
}

.gallery_buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-24);
    font-size: var(--font-24);
    margin-bottom: var(--space-48);
}

.gallery_btn {
    color: var(--color-black-text);
    background-color: var(--color-green-background);
    text-decoration: none;
    font-weight: var(--font-main-regular);
    font-size: var(--font-24);
    border-radius: var(--radius-round);
    padding: var(--space-12) var(--space-16);
    cursor: pointer;
    box-shadow: var(--shadow-bottom);
    transition: var(--transition-fast);
    text-align: center;
}

.gallery_btn:hover {
    background-color: var(--color-light-green);
    box-shadow: var(--shadow-bottom-green);
    color: var(--color-white-text);
}

.gallery_btn.active {
    background-color: var(--color-light-green);
    color: var(--color-white-text);
    font-weight: var(--font-main-semibold);
}

.gallery_btn.active:hover {
    box-shadow: var(--shadow-bottom);
    color: var(--color-white-text);
}

.gallery {
    display: none;
}

.gallery.active {
    display: block;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 100px;
    padding: var(--space-48) 0 0 0;
}

.gallery img {
    max-width: 400px;
    width: 100%;
    transition: var(--transition);
}

.gallery img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-bottom-left);
    cursor: pointer;
}

.gallery_text_container {
    display: flex;
    justify-content: space-between;
    justify-content: center;
    align-items: center;
    margin: var(--space-24) 0;
    font-size: var(--font-16);
    text-align: center;
    gap: 32px;
    line-height: 1.1;
}

.price {
    display: none;
}

.sold {
    color: #e74c3c;
    word-wrap: break-word;
    max-width: 105px;
    display: none;
}

.for-sale {
    color: #20dfc6;
    color: #16af44;
    word-wrap: break-word;
    max-width: 100px;
    display: none;
}

.gallery_text_container .add_to_cart {
    cursor: pointer;
    display: none;
}

.gallery_text_container .add_to_cart:hover {
    color: #20dfdf;
}

.gallery_text_container .name {
    max-width: 300px;
}

.gallery-subtitle {
    text-align: center;
    font-size: var(--font-24);
    max-width: var(--width-588);
    font-weight: var(--font-main-light);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

/* Keep original styles for .modal-content */
.modal-content {
    position: absolute;
    left: 50%;
    top: calc(50% + 105px); /* Adjust for vertical centering */
    top: 50%;
    transform: translate(-50%, -50%);
    margin: auto;
    max-width: 1000px;
    text-align: center;
    overflow: hidden; /* Hide excess space around the modal */
    /* padding-top: 20px; */
}

/* Ensure smooth transition and responsive image size */
.modal-content img {
    width: 100%;
    border: none;
}

.modal-content .vertical-image {
    max-width: 650px;
    position: relative;
    left: 50%;
    transform: translate(-50%);
}

.modal-content .vertical-image-text {
    width: 100%;
    max-width: 650px;
    position: relative;
    left: 50%;
    transform: translate(-50%);
}

.modal-content .vertical-image,
.modal-content .vertical-image-text {
    transition: max-width 0.3s ease-in-out; /* Smooth transition for max-width */
    margin: 0 auto; /* Ensure it is centered */
}

.modal-content .gallery_text_container {
    justify-content: space-around;
    margin: 20px 0;
    gap: 28px;
    color: #fff;
}

.close {
    position: absolute;
    top: 12px;
    right: 24px;
    color: #fff;
    font-size: 48px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    transition: var(--transition-fast);
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Disable scrolling */
body.modal-open {
    overflow: hidden;
}

.additional-images {
    text-align: center;
    justify-content: center;
    margin-top: var(--space-24);
}

.additional-images img {
    width: 60px;
    margin: 0 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.3s, opacity 0.3s ease;
    opacity: 0.5;
}

.additional-images img:hover {
    border: 2px solid #fff;
}

/* Hover effect for thumbnails */
.thumbnail:hover {
    border: 2px solid #fff;
    opacity: 1;
    transform: scale(1.02);
    transition: transform 0.3s, opacity 0.3s ease;
}

/* Active state for the clicked thumbnail */
.thumbnail.active-thumbnail {
    border: 2px solid #ffffff; /* Highlight with a border, or any style you like */
    opacity: 1; /* Make sure it stays fully visible */
    transform: scale(1.02); /* Keep it enlarged if you want */
    box-shadow: var(--shadow-bottom-left);
}

@media (max-width:750px) {
    .gallery.active {
        gap: 100px;
    }
    .gallery_text_container {
        justify-content: space-between;
        justify-content: center;
    }
    /* .gallery-section {
        padding: 48px 16px;
    } */
}

@media (max-width:400px) {
    .gallery.active {
        gap: 50px;
    }
}

.gallery-cta h4{
    margin-top: 0;
}