/* Container */
.scrollable-gallery-container {
    width: 100%;
    max-width: 100vw;
    padding: 60px 0;
    background: #ffffff;
    overflow: hidden;
}

.gallery-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 40px 0;
}

.gallery-title span {
    color: #007bff;
}

/* Scroll Wrapper */
.gallery-scroll-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

.gallery-scroll {
    display: flex;
    gap: 20px;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
}

.gallery-scroll:active {
    cursor: grabbing;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

/* Gallery Item */
.gallery-item {
    flex: 0 0 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    width: 300px !important;
    height: 280px !important;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex !important;
    flex-direction: column !important;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.gallery-item-image {
    width: 100% !important;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    flex: 0 0 220px !important;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.gallery-item-image img {
    width: 100% !important;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.4s ease;
    display: block !important;
    flex-shrink: 0 !important;
}

.gallery-item:hover .gallery-item-image img {
    transform: scale(1.1);
}

.gallery-item-caption {
    padding: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    background: #ffffff;
    min-height: 60px !important;
    max-height: 60px !important;
    height: 60px !important;
    flex: 0 0 60px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Custom Scrollbar */
.gallery-scrollbar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    position: relative;
    margin-top: 20px;
    cursor: pointer;
}

.gallery-scrollbar-thumb {
    position: absolute;
    height: 100%;
    background: #007bff;
    border-radius: 3px;
    width: 30%;
    left: 0;
    transition: background 0.2s ease;
    cursor: grab;
}

.gallery-scrollbar-thumb:hover {
    background: #0056b3;
}

.gallery-scrollbar-thumb:active {
    cursor: grabbing;
    background: #004085;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .gallery-scroll-wrapper {
        padding: 0 30px;
    }
    
    .gallery-title {
        font-size: 30px;
    }
    
    .gallery-item {
        flex: 0 0 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;
        width: 280px !important;
        height: 260px !important;
    }
    
    .gallery-item-image {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
        flex: 0 0 200px !important;
    }
    
    .gallery-item-image img {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .scrollable-gallery-container {
        padding: 40px 0;
    }
    
    .gallery-scroll-wrapper {
        padding: 0 20px;
    }
    
    .gallery-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .gallery-item {
        flex: 0 0 250px !important;
        min-width: 250px !important;
        max-width: 250px !important;
        width: 250px !important;
        height: 230px !important;
    }
    
    .gallery-item-image {
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
        flex: 0 0 180px !important;
    }
    
    .gallery-item-image img {
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
    }
    
    .gallery-item-caption {
        font-size: 15px;
        padding: 15px;
        min-height: 50px !important;
        max-height: 50px !important;
        height: 50px !important;
        flex: 0 0 50px !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .gallery-title {
        font-size: 24px;
    }
    
    .gallery-item {
        flex: 0 0 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
        width: 220px !important;
        height: 210px !important;
    }
    
    .gallery-item-image {
        height: 160px !important;
        min-height: 160px !important;
        max-height: 160px !important;
        flex: 0 0 160px !important;
    }
    
    .gallery-item-image img {
        height: 160px !important;
        min-height: 160px !important;
        max-height: 160px !important;
    }
    
    .gallery-item-caption {
        font-size: 14px;
        padding: 12px;
        min-height: 50px !important;
        max-height: 50px !important;
        height: 50px !important;
        flex: 0 0 50px !important;
    }
}
