﻿body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.main-image-container {
    text-align: center;
    margin: 20px 0;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

#mainImage {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

    button:hover {
        background-color: #45a049;
    }

    button:disabled {
        background-color: #cccccc;
        cursor: not-allowed;
    }

.thumbnail-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 10px 0;
}

.thumbnail-track {
    display: inline-flex;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

    .thumbnail-track:hover {
        animation-play-state: paused;
    }

.thumbnail {
    width: 100px;
    height: 75px;
    object-fit: cover;
    margin: 0 10px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

    .thumbnail:hover {
        transform: scale(1.05);
        border-color: #4CAF50;
    }

    .thumbnail.active {
        border-color: #4CAF50;
        box-shadow: 0 0 5px #4CAF50;
    }

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}
