body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f4f4f4;
}

.gallery-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers content horizontally */
    justify-content: center; /* Centers content vertically */
    width: 100%;
    text-align: center;
}

.main-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* Ensures centering */
}

.preview-bar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 10px; /* Adds spacing */
}

.preview-bar {
    display: flex;
    gap: 10px; /* Spacing between preview images */
    overflow-x: auto;
    white-space: nowrap;
    justify-content: center; /* Centers preview images */
    padding: 10px;
}

.preview-image {
    width: 80px; /* Adjust thumbnail size */
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.preview-image:hover {
    transform: scale(1.1);
}

/* Scroll buttons */
.scroll-btn {
    background-color: #fdbe33;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.scroll-btn:hover {
    background-color: Black;
}

.scroll-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}