.vgs-gallery {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.vgs-main-wrapper {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.vgs-main-image {
    flex: 1 1 auto;
}

.vgs-main-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.vgs-thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.vgs-thumb {
    padding: 0;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
}

.vgs-thumb-inner {
    display: block;
    position: relative;
    width: 64px;
    height: 64px;
    overflow: hidden;
}

.vgs-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vgs-thumb.is-active {
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

.vgs-nav {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.vgs-nav button,
.vgs-nav .button {
    cursor: pointer;
}

/* Mobile: horizontal thumbnails */
@media (max-width: 768px) {
    .vgs-main-wrapper {
        flex-direction: column;
    }
    .vgs-thumbs {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
    }
    .vgs-thumb-inner {
        width: 60px;
        height: 60px;
    }
}
