/* Container for the entire gallery */
.custom-gallery-container {
    text-align: center;
    max-width: 800px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

/* Main image area with arrows */
.main-image-wrapper {
    position: relative;
    margin-bottom: 10px;
}

#main-gallery-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Left/Right arrows for main image */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
    border-radius: 50%;
}
.nav-arrow.left {
    left: 10px;
}
.nav-arrow.right {
    right: 10px;
}

/* Thumbnail container with nav arrows */
.thumbnail-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.thumbnail-viewport {
    overflow: hidden;
    width: 300px; /* 3 thumbnails * 90px + 2 * 5px margins */
}

.thumbnail-wrapper {
    display: flex;
    transition: transform 0.3s ease;
    width: max-content;
}

.thumbnail {
    flex: 0 0 90px;
    height: 60px;
    margin: 0 5px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
}
.thumbnail.active {
    border-color: #0073aa;
}
.thumbnail.active {
    border-color: #0073aa;
}

/* Thumbnail navigation arrows */
.thumb-nav {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 20px;
    padding: 8px;
    cursor: pointer;
    z-index: 1;
    border-radius: 50%;
    margin: 0 5px;
}
