/* =============================================================
   CN Workspace Gallery — cn-workspace-gallery.css
   Cecil Nurse | cecilnurse.co.za
   ============================================================= */

/* ── Wrapper ─────────────────────────────────────────────────── */
.cn-workspace-slider-wrap {
    width: 100%;
    font-family: inherit;
}

/* ── Slider shell ────────────────────────────────────────────── */
.cn-ws-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #ebebeb;
    user-select: none;
    -webkit-user-select: none;
}

.cn-ws-slider {
    width: 100%;
    overflow: hidden;
}

.cn-ws-track {
    display: flex;
    width: 100%;
}

.cn-ws-slide {
    min-width: 100%;
    width: 100%;
    flex: 0 0 100%;
    box-sizing: border-box;
}

.cn-ws-slide img {
    width: 100%;
    display: block;
}

/* ── Track (the moving strip) ────────────────────────────────── */
.cn-ws-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* ── Individual slide ────────────────────────────────────────── */
.cn-ws-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.cn-ws-slide img {
    width: 100%;
    height: 666px !important;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.cn-ws-slide-placeholder {
    width: 100%;
    height: 480px;
    background: #d8d8d8;
}

/* ── Outer shell (positions buttons outside the slider) ──────── */
.cn-ws-slider-outer {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cn-ws-slider-outer .cn-ws-slider {
    flex: 1;
    min-width: 0; /* prevents flex blowout */
}

/* ── Prev / Next buttons ─────────────────────────────────────── */
.cn-ws-prev,
.cn-ws-next {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.cn-ws-prev svg,
.cn-ws-next svg {
	color: #fff;
}

.cn-ws-prev:hover,
.cn-ws-next:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}
.cn-ws-prev:focus,
.cn-ws-next:focus {
	background: rgba(255, 255, 255, 0.25);
}

.cn-ws-prev:disabled,
.cn-ws-next:disabled {
    opacity: 0.3;
    cursor: default;
    transform: scale(1);
}

/* ── Post title ──────────────────────────────────────────────── */
.cn-ws-title {
    margin: 16px 0 16px 0;
	text-align: center;
    font-size: 24px;
    font-weight: 500;
	color: #fff;
    line-height: inherit;
}

/* ── Dot navigation ──────────────────────────────────────────── */
.cn-ws-dots {
	display: none !important;
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 10;
}

.cn-ws-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, transform 0.25s ease;
}

.cn-ws-dot.is-active {
    background: #fff;
    transform: scale(1.35);
}

.cn-ws-dot:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.75);
}

/* ── Product bar ─────────────────────────────────────────────── */
.cn-ws-products {
    display: flex;
    flex-wrap: wrap;
	justify-content: center;
    gap: 24px;
    margin-top: 16px;
    min-height: 44px;
    transition: opacity 0.2s ease;
}

/* ── Product button ──────────────────────────────────────────── */
/*
 * Colour is intentionally left as a CSS custom property so you
 * can override it from Elementor → Custom CSS or your theme stylesheet:
 *
 *   .cn-ws-product-btn { --cn-btn-bg: #YOUR_BRAND_COLOR; }
 */
.cn-ws-product-btn {
    --cn-btn-bg:     #1a1a1a; /* ← update this to Cecil Nurse brand colour */
    --cn-btn-hover:  #333333;
    --cn-btn-color:  #ffffff;

    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.15s ease;
}

.cn-ws-category-link-btn {
	background: #FFFFFF33 !important;
	border-radius: 100px !important;
	padding: 8px 16px !important;
	transition: unset !important;
}

.cn-ws-category-link-btn svg {
    width: 18.3249568939209px !important;
    height: 19.999998092651367px !important;
}

.cn-ws-category-link-btn:hover svg {
    transform: unset !important;
}

/* ── Product button icon ─────────────────────────────────────── */
.cn-ws-product-btn svg {
    width: 8.333333px;
    height: 8.333333px;
    margin-left: 10px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.cn-ws-product-btn:hover svg {
    transform: rotate(45deg);
}

/* ── Empty state ─────────────────────────────────────────────── */
.cn-ws-empty {
    color: #888;
    font-size: 14px;
    padding: 12px 0;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media ( max-width: 768px ) {
    .cn-ws-slide img,
    .cn-ws-slide-placeholder {
        height: 226px !important;
    }

    .cn-ws-prev,
    .cn-ws-next {
        width: 36px;
        height: 36px;
    }

    .cn-ws-prev svg,
    .cn-ws-next svg {
        width: 15px;
        height: 15px;
    }

    .cn-ws-products {
        gap: 8px;
    }

    .cn-ws-product-btn {
        font-size: 13px;
        padding: 9px 16px;
    }
	
	.cn-ws-slider-outer {
        position: relative;
        flex-direction: column;
    }

    .cn-ws-prev,
    .cn-ws-next {
        position: absolute;
        bottom: -130%;
        top: auto;
        transform: none;
    }

    .cn-ws-prev { left: 0; }
    .cn-ws-next { right: 0; }

    .cn-ws-prev:hover,
    .cn-ws-next:hover {
        transform: scale(1.05); /* override the desktop translateY hover */
    }

    .cn-ws-prev:disabled,
    .cn-ws-next:disabled {
        transform: scale(1);
    }
}

@media ( max-width: 1024px ) {
	.cn-workspace-slider-wrap {
		margin-top: 90px !important;
	}
	
    .cn-ws-slide img,
    .cn-ws-slide-placeholder {
        height: 500px !important;
    }
}
