.vns-slider {
    position: relative;
    width: min(100%, var(--vns-width, 1100px));
    height: var(--vns-height, 620px);
    max-width: 100%;
    overflow: hidden;
    border: var(--vns-border-width, 0) solid var(--vns-border-color, #fff);
    border-radius: var(--vns-border-radius, 14px);
    background: #111827;
    box-sizing: border-box;
    cursor: ew-resize;
    isolation: isolate;
    touch-action: none;
    user-select: none;
}

.vns-slider *,
.vns-slider *::before,
.vns-slider *::after {
    box-sizing: border-box;
}

.vns-image,
.vns-after-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.vns-image {
    display: block;
    object-fit: var(--vns-object-fit, cover);
    object-position: center;
    pointer-events: none;
}

.vns-image-before {
    z-index: 1;
}

.vns-after-wrap {
    z-index: 2;
    overflow: hidden;
    clip-path: inset(0 50% 0 0);
}

.vns-divider {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 6;
    width: var(--vns-divider-width, 2px);
    height: 100%;
    background: var(--vns-divider-color, #fff);
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.25);
    transform: translateX(-50%);
    pointer-events: none;
}

.vns-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--vns-handle-size, 48px);
    height: var(--vns-handle-size, 48px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-items: center;
    gap: 3px;
    border-radius: 999px;
    background: var(--vns-handle-color, #fff);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    transform: translate(-50%, -50%);
}

.vns-arrow {
    display: block;
    width: 16px;
    height: 16px;
    border: 0;
    color: #111827;
}

.vns-label {
    position: absolute;
    z-index: 7;
    bottom: 20px;
    max-width: calc(50% - 32px);
    padding: 7px 12px;
    border-radius: 5px;
    color: var(--vns-label-color, #fff);
    background: var(--vns-label-bg, #111827);
    font: 700 12px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    backdrop-filter: blur(6px);
}

.vns-label-before {
    right: 20px;
}

.vns-label-after {
    left: 20px;
}

.vns-range {
    position: absolute;
    inset: 0;
    z-index: 8;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
}

.vns-slider:focus,
.vns-slider:focus-within {
    outline: 3px solid color-mix(in srgb, var(--vns-divider-color, #fff) 65%, #2563eb);
    outline-offset: 3px;
}

.vns-placeholder,
.vns-empty {
    padding: 24px;
    color: #334155;
    background: #f8fafc;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
}

.vns-gallery {
    --vns-gallery-bg: #3c3c3b;
    --vns-gallery-text: #e4dfd9;
    --vns-gallery-muted: rgba(228, 223, 217, 0.65);
    --vns-gallery-soft: rgba(228, 223, 217, 0.55);
    --vns-gallery-gold: #e7ab59;
    --vns-gallery-green: #8aa179;
    --vns-gallery-label-size: 9px;
    --vns-gallery-kicker-size: 10px;
    --vns-gallery-title-size: 20px;
    --vns-gallery-description-size: 13px;
    --vns-gallery-caption-size: 13px;
    --vns-gallery-filter-size: 10px;
    width: 100%;
    background: var(--vns-gallery-bg);
    color: var(--vns-gallery-text);
    text-align: center;
    font-size: var(--vns-gallery-caption-size);
    font-family: Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.vns-gallery,
.vns-gallery * {
    box-sizing: border-box;
}

.vns-gallery-inner {
    width: min(100%, 1105px);
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 5.75rem) clamp(1rem, 3vw, 2rem);
}

.vns-gallery-stage {
    width: 100%;
    max-width: 980px;
    aspect-ratio: 16 / 9;
    max-height: 62vh;
    height: auto;
    margin: 0 auto;
    border: 0;
    border-radius: 0;
    background: var(--vns-gallery-bg);
    cursor: ew-resize;
    --vns-divider-width: 2px;
    --vns-divider-color: #fff;
    --vns-handle-size: 44px;
    --vns-handle-color: #fff;
}

.vns-gallery-stage .vns-after-wrap {
    clip-path: inset(0 0 0 50%);
}

.vns-gallery-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    user-select: none;
}

.vns-gallery-image-before {
    z-index: 1;
}

.vns-gallery-image-after {
    z-index: 2;
}

.vns-gallery-stage .vns-divider {
    width: 2px;
    background: #fff;
    box-shadow: none;
}

.vns-gallery-stage .vns-handle {
    width: 44px;
    height: 44px;
    background: #fff;
    color: var(--vns-gallery-bg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.vns-gallery-stage .vns-arrow {
    color: var(--vns-gallery-bg);
}

.vns-gallery-label {
    position: absolute;
    top: 16px;
    z-index: 7;
    display: grid;
    gap: 0.1rem;
    max-width: calc(50% - 32px);
    padding: 0.35rem 0.7rem;
    background: rgba(60, 60, 59, 0.72);
    color: var(--vns-gallery-text);
    font-size: var(--vns-gallery-label-size);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
    justify-items: center;
    pointer-events: none;
}

.vns-gallery-label span {
    color: var(--vns-gallery-gold);
    font-weight: 800;
    letter-spacing: 0.06em;
}

.vns-gallery-label-before {
    left: 16px;
}

.vns-gallery-label-after {
    right: 16px;
    text-align: center;
}

.vns-gallery-entry-copy {
    max-width: 720px;
    margin: 0 auto 1.15rem;
    text-align: center;
}

.vns-gallery-entry-kicker {
    margin: 0 0 0.35rem;
    color: var(--vns-gallery-gold);
    font-size: var(--vns-gallery-kicker-size);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.vns-gallery-entry-kicker:empty,
.vns-gallery-entry-title:empty,
.vns-gallery-entry-description:empty {
    display: none;
}

.vns-gallery-entry-title {
    margin: 0;
    color: #f1efea;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: var(--vns-gallery-title-size);
    font-weight: 500;
    line-height: 1.15;
}

.vns-gallery-entry-description {
    margin: 0.45rem auto 0;
    color: rgba(241, 239, 234, 0.72);
    font-size: var(--vns-gallery-description-size);
    line-height: 1.55;
}

.vns-gallery-caption {
    max-width: 760px;
    margin: 0.8rem auto 0;
    color: var(--vns-gallery-soft);
    font-size: var(--vns-gallery-caption-size);
    text-align: center;
    line-height: 1.65;
}

.vns-gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: 2rem 0 1.3rem;
}

.vns-gallery-filter {
    min-height: 42px;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(228, 223, 217, 0.2);
    border-radius: 0;
    background: transparent;
    color: var(--vns-gallery-muted);
    cursor: pointer;
    font: 700 var(--vns-gallery-filter-size)/1 Montserrat, system-ui, sans-serif;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

.vns-gallery-filter.is-active {
    border-color: var(--vns-gallery-green);
    background: var(--vns-gallery-green);
    color: var(--vns-gallery-bg);
}

.vns-gallery-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
}

.vns-gallery-thumbs {
    display: flex;
    gap: 0.7rem;
    max-width: min(100%, 760px);
    overflow-x: auto;
    scrollbar-width: thin;
}

.vns-gallery-thumb {
    flex: 0 0 auto;
    width: 82px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    opacity: 0.5;
    cursor: pointer;
    overflow: hidden;
}

.vns-gallery-thumb:hover,
.vns-gallery-thumb:focus-visible,
.vns-gallery-thumb.is-active {
    opacity: 1;
}

.vns-gallery-thumb.is-active {
    border-color: var(--vns-gallery-gold);
}

.vns-gallery-thumb img {
    display: block;
    width: 78px;
    height: 52px;
    object-fit: cover;
}

.vns-gallery-thumb span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.vns-gallery-arrow {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
    cursor: pointer;
}

.vns-gallery-arrow-prev {
    border: 1px solid rgba(228, 223, 217, 0.25);
    background: transparent;
    color: var(--vns-gallery-text);
}

.vns-gallery-arrow-next {
    border: 0;
    background: var(--vns-gallery-gold);
    color: var(--vns-gallery-bg);
}

.vns-gallery-arrow .vns-arrow {
    color: currentColor;
}

.vns-gallery-filter:focus-visible,
.vns-gallery-thumb:focus-visible,
.vns-gallery-arrow:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.vns-gallery.is-updating .vns-gallery-stage {
    opacity: 0.98;
}

@media (max-width: 760px) {
    .vns-slider {
        height: min(var(--vns-height, 620px), 72vw);
    }

    .vns-label {
        bottom: 12px;
        max-width: calc(50% - 20px);
        padding: 6px 9px;
        font-size: 10px;
    }

    .vns-label-before {
        right: 12px;
    }

    .vns-label-after {
        left: 12px;
    }

    .vns-gallery-inner {
        padding-inline: 1rem;
    }

    .vns-gallery-filters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.2rem;
    }

    .vns-gallery-filter {
        flex: 0 0 auto;
    }

    .vns-gallery-nav {
        gap: 0.7rem;
    }

    .vns-gallery-thumbs {
        justify-content: flex-start;
    }

    .vns-gallery-label {
        top: 10px;
        max-width: calc(50% - 20px);
        padding: 0.32rem 0.55rem;
        font-size: 8px;
    }

    .vns-gallery-label-before {
        left: 10px;
    }

    .vns-gallery-label-after {
        right: 10px;
    }
}
