.section h2 {
    color: #16302b;
}
.gallery-subtitle {
    text-align: center;
    color: #666;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.carousel-container {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-main {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background: #f9f9f9;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item {
    flex: 0 0 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 16 / 9; 
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.carousel-item:hover .carousel-overlay {
    opacity: 1;
}

.carousel-overlay-icon {
    color: white;
    font-size: 2.5rem; 
}

.carousel-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 1.5rem 1.2rem 1.2rem;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
}

.carousel-item:hover .carousel-info {
    transform: translateY(0);
    opacity: 1;
}

.carousel-info-title {
    font-size: 1.1rem; 
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.carousel-info-price {
    font-size: 0.95rem; 
    color: #d4a574;
}

/* THUMBNAILS SECTION */
.carousel-thumbnails {
    width: 160px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem; 
    overflow-y: auto;
    max-height: 500px; 
    padding: 0.5rem;
}

.carousel-thumbnails::-webkit-scrollbar {
    width: 5px; 
}

.carousel-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.carousel-thumbnails::-webkit-scrollbar-thumb {
    background: #d4a574;
    border-radius: 3px;
}

.thumbnail-item {
    position: relative;
    border-radius: 6px; 
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent; 
    aspect-ratio: 16 / 9;
}

.thumbnail-item:hover {
    transform: scale(1.05);
    border-color: #d4a574;
}

.thumbnail-item.active {
    border-color: #d4a574;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.5);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 0.4rem; 
    font-size: 0.65rem; 
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumbnail-item:hover .thumbnail-overlay {
    opacity: 1;
}

/* NAV BUTTONS */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 165, 116, 0.9);
    color: white;
    border: none;
    padding: 0.8rem 1rem; 
    font-size: 1.3rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
}

.carousel-btn:hover {
    background: #d4a574;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

/* CAROUSEL DOTS */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.7rem; 
    margin-top: 1.5rem; 
    flex-wrap: wrap;
}

.carousel-dot {
    width: 9px; 
    height: 9px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-dot:hover {
    background: #d4a574;
}

.carousel-dot.active {
    background: #d4a574;
    width: 28px;
    border-radius: 5px;
}

/* Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.gallery-lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
    object-fit: contain;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 3001;
    background: rgba(212, 165, 116, 0.2);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
}

.close:hover {
    color: #d4a574;
    background: rgba(212, 165, 116, 0.3);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(212, 165, 116, 0.8);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    pointer-events: all;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #d4a574;
    transform: scale(1.1);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.1rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem 2rem;
    border-radius: 4px;
    max-width: 80%;
}

@media (max-width: 1024px) {
    .carousel-container {
        flex-direction: column;
        max-width: 800px;
    }
    
    .carousel-thumbnails {
        width: 100%;
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .thumbnail-item {
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        max-width: 100%;
    }
    
    .carousel-item {
        aspect-ratio: 4 / 3;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        padding: 0.8rem;
        font-size: 1.2rem;
    }
    
    .carousel-info {
        padding: 1.5rem 1rem 1rem;
    }
    
    .carousel-info-title {
        font-size: 1rem;
    }
    
    .close {
        width: 40px;
        height: 40px;
        font-size: 2rem;
        top: 15px;
        right: 15px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
}