:root {
    /* Main brand colors */
    --background-primary-color: #000;
    --primary-text-color:#fff;

}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--background-primary-color);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 30px;
}

.main-image-container {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
    background: #f8f9fa;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    background: var(--background-primary-color);
    cursor: pointer;
}

.main-image:hover {
    transform: scale(1.02);
}

.image-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 25px 30px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.main-image-container:hover .image-info {
    transform: translateY(0);
}

.image-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color:var(--primary-text-color);
}

.image-caption {
    font-size: 1rem;
    opacity: 0.9;
}

.thumbnail-scroller {
    position: relative;
    padding: 0 50px;
}

.thumbnails-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #4a6ee0 #f0f0f0;
}

.thumbnails-container::-webkit-scrollbar {
    height: 8px;
}

.thumbnails-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
    background: #4a6ee0;
    border-radius: 10px;
}

.thumbnail {
    min-width: 120px;
    height: 80px;
    border-radius: 0px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    flex-shrink: 0;
    position: relative;
}

    .thumbnail:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .thumbnail.active {
        border-color: #4a6ee0;
        transform: translateY(-5px);
    }

    .thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .thumbnail:hover img {
        transform: scale(1.1);
    }

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: #4a6ee0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

    .scroll-btn:hover {
        background: #4a6ee0;
        color: white;
        transform: translateY(-50%) scale(1.1);
    }

    .scroll-btn.prev {
        left: 0;
    }

    .scroll-btn.next {
        right: 0;
    }

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .modal-overlay.active {
        display: block;
        opacity: 1;
    }

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: 2% auto;
    background: transparent;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
}

.modal-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.modal-caption {
    font-size: 1.1rem;
    opacity: 0.9;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

    .close-modal:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
    }

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

    .modal-nav:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-50%) scale(1.1);
    }

    .modal-nav.prev {
        left: 20px;
    }

    .modal-nav.next {
        right: 20px;
    }

/* Loading State */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    font-size: 1.2rem;
    color: #666;
}

/* Error State */
.error {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    color: #e74c3c;
    text-align: center;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-container {
        padding: 20px;
    }

    .main-image-container {
        height: 300px;
    }

    .thumbnail {
        min-width: 80px;
        height: 60px;
    }

    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .modal-info {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 15px;
    }

    .modal-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .main-image-container {
        height: 200px;
    }

    .thumbnail-scroller {
        padding: 0 30px;
    }

    .thumbnail {
        min-width: 60px;
        height: 40px;
    }

    .scroll-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}
