body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    padding: 20px;
    text-align: center;
}

.gallery-container {
    width: 40%;
max-height : 30%;
    margin-top: 4%;
margin-right : 2%;
float :right;
}

.main-image img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border: 3px solid #444;
    border-radius: 8px;
    transition: opacity 1s ease-in-out;
    opacity: 1;
}

.main-image img.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.thumbnail-bar {
    margin-top: 4px;
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    padding: 10px;
}

.thumbnail {
    width: 100px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s, border 0.2s;
    border-radius: 2px;
}

.thumbnail.active,
.thumbnail:hover {
    border: 2px solid #007bff;
    transform: scale(1.1);
}

#toggleBtn {
    margin-top: 5px;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#toggleBtn:hover {
    background-color: #0056b3;
}
