.vcg-gallery {
    --vcg-gap: 4px;
    --vcg-row-height: 200px;
    width: 100%;
}

.vcg-tabs {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 34px;
    justify-content: center;
    margin: 0 0 22px;
}

.vcg-tab {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    line-height: 1.3;
    padding: 0;
    position: relative;
    text-align: center;
    transition: opacity .2s ease;
}

.vcg-tab:hover,
.vcg-tab:focus-visible {
    opacity: .72;
}

.vcg-tab:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.vcg-tab.is-active {
    font-weight: 600;
}

.vcg-tab.is-active::after {
    background: currentColor;
    bottom: -6px;
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    right: 0;
}

.vcg-grid {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: var(--vcg-gap);
    opacity: 0;
    overflow: hidden;
    position: relative;
    transition: opacity .16s ease;
    width: 100%;
}

.vcg-gallery.is-vcg-ready .vcg-grid {
    opacity: 1;
}

.vcg-item {
    background: rgba(0, 0, 0, .06);
    display: block;
    flex: 0 0 auto;
    line-height: 0;
    overflow: hidden;
    height: var(--vcg-row-height);
    position: relative;
    transform: scale(1);
    width: calc(var(--vcg-row-height) * var(--vcg-aspect, 1.5));
    transition:
        width .34s ease,
        height .34s ease,
        opacity .22s ease,
        transform .22s ease;
}

.vcg-gallery:not(.is-vcg-ready) .vcg-item {
    transition: none;
}

.vcg-item.is-hiding,
.vcg-item.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(.965);
}

.vcg-item.is-hidden {
    display: none;
}

.vcg-image {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
    width: 100%;
}

.vcg-item:hover .vcg-image,
.vcg-item:focus-visible .vcg-image {
    transform: scale(1.035);
}

.vcg-item:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

html.vcg-lightbox-open {
    overflow-y: scroll !important;
    scrollbar-gutter: stable;
}

body.vcg-lightbox-open {
    overflow-y: visible !important;
}

.vcg-lightbox {
    align-items: center;
    background: rgba(0, 0, 0, .88);
    box-sizing: border-box;
    display: flex;
    height: 100vh;
    justify-content: center;
    left: 0;
    opacity: 0;
    padding: 44px 72px;
    pointer-events: none;
    position: fixed;
    top: 0;
    transition: opacity .22s ease;
    right: 0;
    width: auto;
    z-index: 999999;
}

.vcg-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.vcg-lightbox__figure {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    max-height: 100%;
    max-width: 100%;
}

.vcg-lightbox__image {
    box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
    display: block;
    max-height: calc(100vh - 110px);
    max-width: calc(100vw - 144px);
    object-fit: contain;
    opacity: 1;
    transition: opacity .16s ease;
}

.vcg-lightbox.is-loading .vcg-lightbox__image {
    opacity: 0;
}

.vcg-lightbox__caption {
    color: #fff;
    display: none;
    font-size: 15px;
    line-height: 1.45;
    margin-top: 14px;
    max-width: min(780px, 90vw);
    text-align: center;
}

.vcg-lightbox__caption:not(:empty) {
    display: block;
}

.vcg-lightbox__button {
    align-items: center;
    appearance: none;
    background: rgba(0, 0, 0, .25);
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: flex;
    font: inherit;
    height: 44px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    transition: background .18s ease, opacity .18s ease;
    width: 44px;
}

.vcg-lightbox__button:hover,
.vcg-lightbox__button:focus-visible {
    background: rgba(255, 255, 255, .18);
}

.vcg-lightbox__button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.vcg-lightbox__close {
    right: 22px;
    top: 22px;
}

.vcg-lightbox__prev,
.vcg-lightbox__next {
    top: 50%;
    transform: translateY(-50%);
}

.vcg-lightbox__prev {
    left: 22px;
}

.vcg-lightbox__next {
    right: 22px;
}

.vcg-lightbox__counter {
    bottom: 20px;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
}

@media (max-width: 767px) {
    .vcg-tabs {
        gap: 12px 20px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .vcg-tab {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .vcg-lightbox {
        padding: 36px 18px;
    }

    .vcg-lightbox__image {
        max-height: calc(100vh - 96px);
        max-width: calc(100vw - 36px);
    }

    .vcg-lightbox__prev,
    .vcg-lightbox__next {
        bottom: 18px;
        top: auto;
        transform: none;
    }

    .vcg-lightbox__prev {
        left: 18px;
    }

    .vcg-lightbox__next {
        right: 18px;
    }

    .vcg-lightbox__counter {
        bottom: 31px;
    }
}
