
.gallery-img {
    height: 500px;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 767.98px) {
    .gallery-img {
        height: 250px; /* or auto, or any smaller height you prefer */
    }
}


.curtains-gallery {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.gallery-container {
    overflow: hidden;
    position: relative;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.gallery-item {
    min-width: calc(33.333% - 20px);
    margin: 0 10px;
    position: relative;
}

.gallery-item img {
    height: 300px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.caption {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    text-align: center;
    border-radius: 0 0 8px 8px;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 60px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    border-radius: 4px;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

@media (max-width: 768px) {
    .gallery-item {
        min-width: calc(100% - 20px);
    }

    .gallery-item img {
        height: 250px;
    }
}


/* How It Looks Carousel Section */
