/* CSS Styles for Carousel Popup Gallery widget */

.cpg-6ac5c190-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

/* CONTAINER AND STRIP */
.cpg-6ac5c190-strip-container {
    position: relative;
    width: 100%;
}

.cpg-6ac5c190-strip {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 20px 10px;
    gap: 15px;
    align-items: center;
    cursor: grab;
}

.cpg-6ac5c190-strip.dragging {
    cursor: grabbing;
    user-select: none;
}

.cpg-6ac5c190-strip::-webkit-scrollbar {
    display: none;
}
.cpg-6ac5c190-strip {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* STRIP ARROWS STYLING */
.cpg-6ac5c190-strip-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.cpg-6ac5c190-strip-arrow.prev {
    left: -15px;
}

.cpg-6ac5c190-strip-arrow.next {
    right: -15px;
}

.cpg-6ac5c190-strip-arrow:disabled,
.cpg-6ac5c190-strip-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

/* CARDS STYLING */
.cpg-6ac5c190-card {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    background: #fff;
    flex-shrink: 0;
}

.cpg-6ac5c190-card:hover {
    transform: translateY(var(--cpg-lift-y, -8px)) scale(var(--cpg-scale, 1.03));
}

.cpg-6ac5c190-card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.cpg-6ac5c190-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cpg-6ac5c190-card-content {
    padding: 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.cpg-6ac5c190-card-title {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

.cpg-6ac5c190-card-subtitle {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.cpg-6ac5c190-card-count {
    font-size: 12px;
    color: #999;
    background: #f1f1f1;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

/* POPUP LIGHTBOX OVERLAY */
.cpg-6ac5c190-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.cpg-6ac5c190-modal-content {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    z-index: 1000000;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

/* SLIDER TRACK */
.cpg-6ac5c190-slider-viewport {
    width: 100%;
    height: 80%;
    position: relative;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cpg-6ac5c190-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    position: absolute;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

/* MODAL CAROUSEL SLIDES */
.cpg-6ac5c190-modal-slide {
    position: absolute;
    aspect-ratio: 4 / 5;
    height: min(80vh, var(--cpg-slide-max-height, 1250px));
    width: auto;
    transition: transform var(--cpg-transition-speed, 400ms) ease, 
                opacity var(--cpg-transition-speed, 400ms) ease,
                filter var(--cpg-transition-speed, 400ms) ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
}

.cpg-6ac5c190-slide-inner {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    background: #000;
}

.cpg-6ac5c190-slide-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cpg-6ac5c190-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.cpg-6ac5c190-slide-title {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 600;
}

.cpg-6ac5c190-slide-desc {
    margin: 0;
    font-size: 14px;
    opacity: 0.85;
}

/* CAROUSEL STATES (3 visible at once) */
.cpg-6ac5c190-modal-slide.active {
    transform: translate3d(0, var(--cpg-center-lift, -15px), 0) scale(var(--cpg-center-scale, 1.0));
    filter: brightness(var(--cpg-center-brightness, 1));
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 10;
}

.cpg-6ac5c190-modal-slide.prev-slide {
    transform: translate3d(-55%, var(--cpg-side-lift, 5px), 0) scale(var(--cpg-side-scale, 0.85));
    filter: brightness(var(--cpg-side-brightness, 0.7));
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 5;
}

.cpg-6ac5c190-modal-slide.next-slide {
    transform: translate3d(55%, var(--cpg-side-lift, 5px), 0) scale(var(--cpg-side-scale, 0.85));
    filter: brightness(var(--cpg-side-brightness, 0.7));
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 5;
}

/* NAVIGATION & UI CONTROLS */
.cpg-6ac5c190-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    z-index: 100;
    transition: all 0.3s ease;
}

.cpg-6ac5c190-arrow.prev {
    left: 20px;
}

.cpg-6ac5c190-arrow.next {
    right: 20px;
}

.cpg-6ac5c190-close {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    z-index: 101;
    transition: all 0.3s ease;
}

.cpg-6ac5c190-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    font-size: 14px;
    font-weight: 500;
}

.cpg-6ac5c190-cta-container {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 102;
    display: flex;
    justify-content: center;
    width: auto;
}

.cpg-6ac5c190-cta {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .cpg-6ac5c190-modal-slide {
        width: 70%;
        height: auto;
    }
    .cpg-6ac5c190-modal-slide.prev-slide {
        transform: translate3d(-40%, var(--cpg-side-lift, 5px), 0) scale(var(--cpg-side-scale, 0.8));
    }
    .cpg-6ac5c190-modal-slide.next-slide {
        transform: translate3d(40%, var(--cpg-side-lift, 5px), 0) scale(var(--cpg-side-scale, 0.8));
    }
    .cpg-6ac5c190-arrow {
        display: none;
    }
    .cpg-6ac5c190-strip-arrow {
        display: none; /* Hide strip arrows on mobile touch screens */
    }
}
