/**
 * Horizontal masonry strip for the Google Shared Albums Elementor widget.
 */

.cckms-jzsa-horizontal-masonry {
    --cckms-jzsa-strip-height: 340px;
    --cckms-jzsa-strip-gap: 6px;
    position: relative;
    width: 100%;
    height: var(--cckms-jzsa-strip-height);
    min-height: var(--cckms-jzsa-strip-height);
    overflow: hidden;
    isolation: isolate;
}

.cckms-jzsa-horizontal-masonry > .jzsa-swiper-scope {
    position: relative;
    width: 100%;
    height: var(--cckms-jzsa-strip-height);
    overflow: hidden;
}

.cckms-jzsa-horizontal-masonry .jzsa-gallery-shell {
    width: 100% !important;
    max-width: 100% !important;
    height: var(--cckms-jzsa-strip-height) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    scroll-behavior: smooth;
}

.cckms-jzsa-horizontal-masonry .jzsa-gallery-shell::-webkit-scrollbar {
    display: none;
}

.cckms-jzsa-horizontal-masonry .jzsa-gallery-shell.cckms-is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.cckms-jzsa-horizontal-masonry .jzsa-gallery-album {
    position: relative !important;
    display: block !important;
    max-width: none !important;
    min-width: 0 !important;
    height: var(--cckms-jzsa-strip-height) !important;
    overflow: visible !important;
}

.cckms-jzsa-horizontal-masonry .jzsa-gallery-item {
    position: absolute !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    box-sizing: border-box;
}

.cckms-jzsa-horizontal-masonry .jzsa-gallery-item img.jzsa-gallery-thumb {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    pointer-events: auto;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

/* JZSA creates an off-screen slideshow beside the gallery for its viewer.
 * It must not contribute its 720px height to the strip's document flow. */
.cckms-jzsa-horizontal-masonry .jzsa-gallery-slideshow:not(.jzsa-is-fullscreen):not(.jzsa-pseudo-fullscreen):not(.jzsa-lightbox-active):not(:fullscreen) {
    position: absolute !important;
    top: 0 !important;
    left: -100000px !important;
    margin: 0 !important;
}

.cckms-jzsa-horizontal-masonry .cckms-jzsa-strip-arrow {
    position: absolute;
    top: 50%;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 82px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.38);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.cckms-jzsa-horizontal-masonry .cckms-jzsa-strip-prev {
    left: 0;
}

.cckms-jzsa-horizontal-masonry .cckms-jzsa-strip-next {
    right: 0;
}

.cckms-jzsa-horizontal-masonry .cckms-jzsa-strip-arrow::before {
    content: "";
    width: 18px;
    height: 18px;
    border-top: 4px solid currentColor;
    border-right: 4px solid currentColor;
}

.cckms-jzsa-horizontal-masonry .cckms-jzsa-strip-prev::before {
    margin-left: 7px;
    transform: rotate(-135deg);
}

.cckms-jzsa-horizontal-masonry .cckms-jzsa-strip-next::before {
    margin-right: 7px;
    transform: rotate(45deg);
}

.cckms-jzsa-horizontal-masonry .cckms-jzsa-strip-arrow.cckms-is-disabled {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .cckms-jzsa-horizontal-masonry .cckms-jzsa-strip-arrow:hover {
        background: rgba(0, 0, 0, 0.62);
    }
}

@media (max-width: 767px) {
    .cckms-jzsa-horizontal-masonry .cckms-jzsa-strip-arrow {
        width: 42px;
        height: 64px;
    }

    .cckms-jzsa-horizontal-masonry .cckms-jzsa-strip-arrow::before {
        width: 14px;
        height: 14px;
        border-width: 3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cckms-jzsa-horizontal-masonry .jzsa-gallery-shell {
        scroll-behavior: auto;
    }
}
