.umg-gallery {
    --umg-height: min(20vw, 550px);
    position: relative;
    width: 100%;
    margin: 1.5rem auto;
    color: #fff;
    isolation: isolate;
}
.umg-stage {
    height: var(--umg-height);
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}
.umg-stage.is-dragging {
    cursor: grabbing;
}
.umg-track {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    will-change: transform;
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    transform: translate3d(0, 0, 0);
}
.umg-slide {
    position: relative;
    flex: 0 0 auto;
    height: 100%;
    max-width: 88vw;
    aspect-ratio: var(--umg-item-ratio);
    margin: 0;
    background: #151515;
    overflow: hidden;
}
.umg-open {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #151515;
    cursor: zoom-in;
}
.umg-open img,
.umg-open video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: var(--umg-fit);
    background: #151515;
    image-rendering: auto;
}
.umg-open video {
    pointer-events: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}
.umg-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    transform: translate(-50%, -50%);
    border: 1px solid #ffffff73;
    border-radius: 50%;
    background: #171717a8;
    box-shadow: 0 8px 24px #0007;
    backdrop-filter: blur(9px);
}
.umg-play svg {
    width: 25px;
    fill: #fff;
}
.umg-slide figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 2.5rem 0.85rem 0.8rem;
    background: linear-gradient(transparent, #000b);
    font:
        500 0.85rem/1.35 system-ui,
        sans-serif;
    text-align: center;
    pointer-events: none;
}
.umg-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid #ffffff75;
    border-radius: 50%;
    background: #2020208f;
    color: #fff;
    box-shadow: 0 6px 18px #0004;
    backdrop-filter: blur(11px);
    cursor: pointer;
    transition:
        transform 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
}
.umg-nav:hover,
.umg-nav:focus-visible {
    background: #ffffffd9;
    color: #111;
    box-shadow: 0 10px 28px #0007;
    outline: none;
}
.umg-prev {
    left: 16px;
}
.umg-next {
    right: 16px;
}
.umg-nav svg {
    width: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}
.umg-nav:hover svg {
    transform: scale(1.1);
}
.umg-dots {
    position: absolute;
    bottom: -24px;
    left: 50%;
    z-index: 4;
    display: flex;
    gap: 7px;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
}
button:hover, button:focus{
	border-color: #ee0668 !important;
	background-color: #eb1a8e !important;
}
.umg-nav:hover, .umg-nav:focus-visible {
    background: #eb1a8e;
    color: #ffffff;
    box-shadow: 0 10px 28px #0007;
    outline: none;
    border-color: #ee0668 !important;
}
.umg-dot {
    width: 0px;
    height: 0px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: #b1b1b1;
    cursor: pointer;
    transition:
        width 0.25s ease,
        background 0.25s ease;
}
.umg-dot[aria-selected="true"] {
    width: 24px;
    background: #222;
}
.umg-lightbox {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 72px 90px;
    background: rgb(8 10 14 / 0.91);
    backdrop-filter: blur(7px);
    opacity: 1;
    transition: opacity 0.24s ease;
}
.umg-lightbox[hidden] {
    display: none;
}
.umg-lightbox__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    max-height: calc(100vh - 144px);
    overflow: hidden;
}
.umg-lightbox__media img,
.umg-lightbox__media video {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 18px 50px #000a;
    transform: scale(1);
    transition: transform 0.25s ease;
}
.umg-lightbox__media.is-zoomed img {
    transform: scale(1.8);
    transform-origin: center;
}
.umg-close {
    position: fixed;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid #ffffff70;
    border-radius: 50%;
    background: #25272ba8;
    color: #fff;
    box-shadow: 0 6px 18px #0006;
    backdrop-filter: blur(10px);
    font-size: 28px;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        background 0.25s ease;
}
.umg-close:hover, .umg-close:focus-visible {
    transform: rotate(90deg);
    background: #ffffffdc;
    color: #ffffff;
    outline: none;
}
figure.umg-slide {
    border: 1px solid #dddddd;
}
.umg-lightbox .umg-nav {
    position: fixed;
    width: 48px;
    height: 48px;
}
.umg-lightbox .umg-prev {
    left: 22px;
}
.umg-lightbox .umg-next {
    right: 22px;
}
.umg-lightbox__count {
    position: fixed;
    top: 32px;
    left: 28px;
    color: #fff;
    font:
        600 15px/1 system-ui,
        sans-serif;
}
@media (max-width: 1024px) {
    .umg-gallery {
        --umg-height: min(43vw, 450px);
    }
    .umg-nav {
        width: 42px;
        height: 42px;
    }
    .umg-stage {
        padding: 0 4px;
    }
    .umg-slide {
        max-width: 90vw;
    }
}
@media (max-width: 600px) {
    .umg-gallery {
        --umg-height: min(70vw, 320px);
        margin-bottom: 2.7rem;
    }
    .umg-track {
        gap: 8px;
    }
    .umg-slide {
        max-width: 86vw;
    }
    .umg-nav {
        width: 38px;
        height: 38px;
    }
    .umg-prev {
        left: 8px;
    }
    .umg-next {
        right: 8px;
    }
    .umg-lightbox {
        padding: 64px 48px;
    }
    .umg-lightbox .umg-nav {
        width: 44px;
        height: 44px;
    }
    .umg-lightbox .umg-prev {
        left: 0;
    }
    .umg-lightbox .umg-next {
        right: 0;
    }
    .umg-lightbox__count {
        top: 25px;
        left: 18px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .umg-track,
    .umg-nav,
    .umg-dot,
    .umg-close,
    .umg-lightbox__media img {
        transition: none;
    }
}
