.gallery {
    margin: auto;
    margin-top: 7vh;
    max-width: 90%;
    text-align: center;
}

.main-image {
    width: 100%;
    max-width: 100vw;
    height: auto;
    max-height: 80vh; 
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease-in-out;
}

.thumbnails_container {
    overflow: hidden;
    max-width: 300px;
    white-space: nowrap;
    border-radius: 10px;
    margin: 20px auto;
    cursor: grab;
    -ms-overflow-style: none;
    scrollbar-width: none;  
}

.thumbnails_container::-webkit-scrollbar {
    display: none; 
}

.thumbnails {
    display: inline-flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 50px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s, opacity 0.3s;
}

.thumbnail:hover {
    transform: scale(1.1);
}

.thumbnails_container:active {
    cursor: grabbing;
}