.showcase-gallery {
    --showcase-gallery-gap: 14px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    padding: 16px 0 24px;
    position: relative;
    width: 100%;
}

.showcase-gallery-viewport {
    overflow: visible;
    width: 100%;
}

.showcase-gallery-track {
    align-items: center;
    display: flex;
    gap: var(--showcase-gallery-gap);
    padding: 0 clamp(18px, 5vw, 64px);
}

.showcase-gallery-track--native {
    cursor: grab;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: clamp(18px, 5vw, 64px);
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    touch-action: pan-x;
    user-select: none;
}

.showcase-gallery-track--native::-webkit-scrollbar {
    display: none;
}

.showcase-gallery-track--native.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.showcase-gallery .owl-stage-outer {
    overflow: visible;
}

.showcase-gallery .owl-stage {
    align-items: center;
    display: flex;
}

.showcase-gallery-image {
    flex: 0 0 auto;
    height: clamp(220px, 27vw, 295px);
    overflow: hidden;
    scroll-snap-align: start;
    width: clamp(220px, 30vw, 360px);
}

.showcase-gallery-image--portrait {
    width: clamp(180px, 24vw, 255px);
}

.showcase-gallery-image--square {
    width: clamp(210px, 26vw, 295px);
}

.showcase-gallery-link {
    border-radius: 14px;
    display: block;
    height: 100%;
    outline-offset: 4px;
    width: 100%;
}

.showcase-gallery-link:focus-visible {
    outline: 3px solid #fff;
}

.showcase-gallery-img,
.showcase-gallery-image > img {
    border-radius: 14px;
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.showcase-gallery-pagination {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: center;
    min-height: 24px;
    padding-top: 28px;
    margin: auto;
}

.showcase-gallery-pagination[hidden] {
    display: none;
}

.showcase-gallery-dot {
    appearance: none;
    background: rgba(255, 255, 255, 0.72);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    height: 20px;
    padding: 0;
    transition: background-color 180ms ease, transform 180ms ease;
    width: 20px;
}

.showcase-gallery-dot.is-active {
    background: #fff;
}

.showcase-gallery-dot:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.showcase-gallery-lightbox {
    align-items: center;
    background: rgba(14, 18, 14, 0.92);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 56px clamp(16px, 4vw, 56px);
    position: fixed;
    z-index: 99999;
}

.showcase-gallery-lightbox.is-open {
    display: flex;
}

.showcase-gallery-lightbox-open {
    overflow: hidden;
}

.showcase-gallery-lightbox-figure {
    margin: 0;
    max-height: 100%;
    max-width: min(1100px, 100%);
    text-align: center;
}

.showcase-gallery-lightbox-img {
    border-radius: 8px;
    display: block;
    max-height: calc(100vh - 150px);
    max-width: 100%;
    object-fit: contain;
}

.showcase-gallery-lightbox-caption {
    color: #fff;
    font-size: 15px;
    line-height: 1.5;
    padding-top: 14px;
}

.showcase-gallery-lightbox button {
    appearance: none;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    line-height: 1;
    position: absolute;
}

.showcase-gallery-lightbox button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.showcase-gallery-lightbox-close {
    font-size: 34px;
    height: 44px;
    right: 24px;
    top: 20px;
    width: 44px;
}

.showcase-gallery-lightbox-prev,
.showcase-gallery-lightbox-next {
    font-size: 48px;
    height: 56px;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
}

.showcase-gallery-lightbox-prev {
    left: 24px;
}

.showcase-gallery-lightbox-next {
    right: 24px;
}

@media (min-width: 901px) {
    .showcase-gallery-viewport,
    .showcase-gallery .owl-stage-outer {
        min-height: 330px;
    }

    .showcase-gallery-track,
    .showcase-gallery .owl-stage {
        align-items: flex-start;
    }

    .showcase-gallery .owl-item {
        align-items: flex-start;
        display: flex;
    }

    .showcase-gallery-image {
        height: 290px;
    }

    .showcase-gallery-track--native > .showcase-gallery-image:nth-child(5n + 1),
    .showcase-gallery .owl-item:nth-child(5n + 1) .showcase-gallery-image {
        height: 260px;
    }

    .showcase-gallery-track--native > .showcase-gallery-image:nth-child(5n + 2),
    .showcase-gallery .owl-item:nth-child(5n + 2) .showcase-gallery-image {
        height: 310px;
    }

    .showcase-gallery-track--native > .showcase-gallery-image:nth-child(5n + 3),
    .showcase-gallery .owl-item:nth-child(5n + 3) .showcase-gallery-image {
        height: 275px;
    }

    .showcase-gallery-track--native > .showcase-gallery-image:nth-child(5n + 4),
    .showcase-gallery .owl-item:nth-child(5n + 4) .showcase-gallery-image {
        height: 330px;
    }
}

@media (max-width: 699px) {
    .showcase-gallery {
        padding: 14px 0 22px;
    }

    .showcase-gallery-track {
        --showcase-gallery-gap: 12px;
        padding-inline: 18px;
    }

    .showcase-gallery-image {
        height: clamp(215px, 66vw, 270px);
        width: 76vw;
    }

    .showcase-gallery-image--portrait {
        width: 64vw;
    }

    .showcase-gallery-image--square {
        width: 70vw;
    }

    .showcase-gallery-pagination {
        padding-top: 24px;
    }

    .showcase-gallery-lightbox-prev,
    .showcase-gallery-lightbox-next {
        bottom: 18px;
        top: auto;
        transform: none;
    }

    .showcase-gallery-lightbox-prev {
        left: 24px;
    }

    .showcase-gallery-lightbox-next {
        right: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .showcase-gallery-dot {
        transition: none;
    }
}
