.vrc-inline-gallery {
    width: 100%;
}
.vrc-inline-gallery-main-link {
    display: block;
}
.vrc-inline-gallery-main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px 6px 0 0;
}
.vrc-inline-gallery-thumbs-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}
.vrc-inline-gallery-thumbs-viewport {
    overflow: hidden;
    flex: 1;
}
.vrc-inline-gallery-thumbs-track {
    display: flex;
    gap: 8px;
    transition: transform 0.18s ease-out;
}
.vrc-inline-gallery-thumb {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    padding: 0;
    flex: 0 0 calc((100% - 16px) / 3);
    cursor: pointer;
}
.vrc-inline-gallery-thumb img {
    width: 100%;
    height: 78px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}
.vrc-inline-gallery-thumb.is-active {
    border-color: #dc2626;
    box-shadow: 0 0 0 1px rgba(220,38,38,0.25);
}
.vrc-inline-gallery-nav {
    width: 28px;
    height: 28px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.vrc-inline-gallery-nav.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.vrc-gallery-lightbox-open {
    overflow: hidden;
}
.vrc-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}
.vrc-gallery-lightbox-stage {
    max-width: min(92vw, 1200px);
    max-height: 88vh;
}
.vrc-gallery-lightbox-stage img {
    max-width: 100%;
    max-height: 88vh;
    display: block;
    border-radius: 4px;
}
.vrc-gallery-lightbox-close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
}
.vrc-gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: rgba(255,255,255,0.2);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}
.vrc-gallery-lightbox-prev {
    left: 18px;
}
.vrc-gallery-lightbox-next {
    right: 18px;
}
