#dovlo .dovlo-product-top > div {
    width: 100%;
}

#dovlo .dovlo-product-top .wp-block-woocommerce-product-meta {
    display: none !important;
}

#dovlo .dovlo-product-top {
    width: min(100% - 32px, var(--dovlo-shell));
}

#dovlo-product-top-js .wp-block-woocommerce-product-image-gallery {
    position: relative;
    min-width: 0;
}

#dovlo-product-top-js .dovlo-gallery {
    position: relative;
    width: 100%;
    min-width: 0;
}

#dovlo-product-top-js .dovlo-gallery__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    background: var(--dovlo-surface-soft);
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

#dovlo-product-top-js .dovlo-gallery__main-button {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    cursor: zoom-in;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

#dovlo-product-top-js .dovlo-gallery__main-button:focus-visible {
    outline: 2px solid var(--dovlo-brand);
    outline-offset: -3px;
}

#dovlo-product-top-js .dovlo-gallery__track {
    display: flex;
    width: 100%;
    height: 100%;
    transform: translate3d(0, 0, 0);
    transition: transform .42s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

#dovlo-product-top-js .dovlo-gallery__slide {
    flex: 0 0 100%;
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    overflow: hidden;
}

#dovlo-product-top-js .dovlo-gallery__main-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

#dovlo-product-top-js .dovlo-gallery__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0 0 3px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: color-mix(in srgb, var(--dovlo-surface) 94%, transparent);
    box-shadow: var(--dovlo-shadow-sm);
    color: var(--dovlo-ink);
    font: 400 31px/1 Arial, sans-serif;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .18s ease, transform .18s ease;
}

#dovlo-product-top-js .dovlo-gallery__nav:hover {
    background: var(--dovlo-surface);
}

#dovlo-product-top-js .dovlo-gallery__nav:focus-visible,
#dovlo-product-top-js .dovlo-gallery__thumb:focus-visible {
    outline: 2px solid var(--dovlo-brand);
    outline-offset: 2px;
}

#dovlo-product-top-js .dovlo-gallery__nav--prev {
    left: 12px;
}

#dovlo-product-top-js .dovlo-gallery__nav--next {
    right: 12px;
}

#dovlo-product-top-js .dovlo-gallery__position {
    position: absolute;
    left: 50%;
    bottom: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--dovlo-ink) 62%, transparent);
    color: var(--dovlo-surface);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    transform: translateX(-50%);
}

#dovlo-product-top-js .dovlo-gallery__thumbs-slider {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-top: 12px;
}

#dovlo-product-top-js .dovlo-gallery__thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 2px 1px 7px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--dovlo-brand) var(--dovlo-brand-soft);
}

#dovlo-product-top-js .dovlo-gallery__thumbs::-webkit-scrollbar {
    height: 7px;
}

#dovlo-product-top-js .dovlo-gallery__thumbs::-webkit-scrollbar-track {
    border-radius: 999px;
    background: var(--dovlo-brand-soft);
}

#dovlo-product-top-js .dovlo-gallery__thumbs::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--dovlo-brand);
}

#dovlo-product-top-js .dovlo-gallery__thumb {
    flex: 0 0 82px;
    display: block;
    width: 82px;
    height: 82px;
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--dovlo-surface-soft);
    opacity: .68;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    transition: border-color .18s ease, opacity .18s ease, transform .18s ease;
}

#dovlo-product-top-js .dovlo-gallery__thumb:hover,
#dovlo-product-top-js .dovlo-gallery__thumb.is-active {
    border-color: var(--dovlo-brand);
    opacity: 1;
}

#dovlo-product-top-js .dovlo-gallery__thumb:hover {
    transform: translateY(-1px);
}

#dovlo-product-top-js .dovlo-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.dovlo-simple-lightbox-open {
    overflow: hidden;
}

.dovlo-simple-lightbox[hidden] {
    display: none !important;
}

.dovlo-simple-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .92);
}

.dovlo-simple-lightbox__image {
    display: block;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
}

.dovlo-simple-lightbox__close,
.dovlo-simple-lightbox__prev,
.dovlo-simple-lightbox__next {
    position: fixed;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0 0 3px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: #FFF;
    box-shadow: var(--dovlo-shadow-sm);
    color: var(--dovlo-ink);
    font: 400 31px / 1 Arial, sans-serif;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .18s ease, transform .18s ease;
}

.dovlo-simple-lightbox__close:focus-visible,
.dovlo-simple-lightbox__prev:focus-visible,
.dovlo-simple-lightbox__next:focus-visible {
    outline: 2px solid var(--dovlo-brand);
    outline-offset: 3px;
}

.dovlo-simple-lightbox__close {
    top: 40px;
    right: 18px;
}

.dovlo-simple-lightbox__prev {
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
}

.dovlo-simple-lightbox__next {
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
}

.dovlo-simple-lightbox__counter {
    position: fixed;
    left: 50%;
    bottom: 18px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    transform: translateX(-50%);
}

@media (min-width: 940px) {
    #dovlo .dovlo-product-top {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: min(100% - 64px, var(--dovlo-shell));
        gap: 80px;
    }
}

@media (max-width: 939px) {
    #dovlo .dovlo-product-top {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 778px) {
    #dovlo-product-top-js .dovlo-gallery__thumb {
        flex-basis: 72px;
        width: 72px;
        height: 72px;
    }

    #dovlo-product-top-js .dovlo-gallery__nav {
        width: 38px;
        height: 38px;
    }

    #dovlo-product-top-js .dovlo-gallery__nav--prev {
        left: 8px;
    }

    #dovlo-product-top-js .dovlo-gallery__nav--next {
        right: 8px;
    }

    .dovlo-simple-lightbox {
        padding: 10px;
    }

    .dovlo-simple-lightbox__image {
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 70px);
    }

    .dovlo-simple-lightbox__close,
    .dovlo-simple-lightbox__prev,
    .dovlo-simple-lightbox__next {
        width: 42px;
        height: 42px;
        font-size: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #dovlo-product-top-js .dovlo-gallery__track,
    #dovlo-product-top-js .dovlo-gallery__thumbs,
    #dovlo-product-top-js .dovlo-gallery__nav,
    #dovlo-product-top-js .dovlo-gallery__thumb,
    .dovlo-simple-lightbox__close,
    .dovlo-simple-lightbox__prev,
    .dovlo-simple-lightbox__next {
        transition: none;
        scroll-behavior: auto;
    }
}