/* =========================================================
   Custom Gallery Carousel Tab Widget
   gallery-carousel.css
   ========================================================= */

/* ── Wrapper ─────────────────────────────────────────────── */
.ce-gallery-carousel-tab-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    --ce-accent: #1b2d2a;
}

/* ── Header / Tabs ───────────────────────────────────────── */
.ce-gct-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 50px;
}

.ce-gct-tabs {
    display: flex;
    gap: 40px;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 12px;
}

.ce-gct-tab {
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #a0a0a0;
    position: relative;
    transition: color 0.35s ease;
}

/* Underline indicator */
.ce-gct-tab::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ce-accent);
    transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ce-gct-tab.is-active {
    color: var(--ce-accent);
}

.ce-gct-tab.is-active::after {
    width: 100%;
}

/* ── Panels ──────────────────────────────────────────────── */
.ce-gct-panels {
    position: relative;
}

.ce-gct-panel {
    /* hidden panels set to display:none via PHP / JS */
}

.ce-gct-panel-inner {
    position: relative;
}

/* ── Swiper container ────────────────────────────────────── */
.ce-gct-swiper {
    overflow: visible !important;
    /* allow neighbouring slides to peek */
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 4px;
    /* prevent shadow clip */
}

/* ── Slides ──────────────────────────────────────────────── */
.ce-gct-swiper .swiper-slide {
    height: 540px;
    border-radius: 16px;
    overflow: hidden;
    /* Default inactive state — overridden by JS with JS-config values */
    opacity: 0.45;
    transform: scale(0.92);
    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.ce-gct-swiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}

/* Inner wrapper keeps image flush */
.ce-gct-slide-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
}

.ce-gct-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hover zoom — only active slide */
.ce-gct-swiper .swiper-slide-active:hover img {
    transform: scale(1.06);
    /* overridden inline by JS config */
}

/* ── Footer: counter + nav ───────────────────────────────── */
.ce-gct-footer {
    width: 100%;
    display: block;
}

.ce-gct-footer .ce-gct-footer-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
}

/* Counter */
.ce-gct-info {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #555;
    line-height: 1;
}

.ce-gct-info .curr {
    color: var(--ce-accent);
    font-weight: 700;
    font-size: 16px;
}

/* Nav buttons */
.ce-gct-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ce-gct-prev,
.ce-gct-next {
    width: 50px;
    height: 50px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    background: #ffffff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
    flex-shrink: 0;
    padding: 0;
    outline: none;
    line-height: 1;
}

.ce-gct-prev svg,
.ce-gct-next svg {
    width: 14px;
    height: 14px;
    display: block;
    pointer-events: none;
}

.ce-gct-prev:hover,
.ce-gct-next:hover {
    background: var(--ce-accent);
    color: #ffffff;
    border-color: var(--ce-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.ce-gct-prev:active,
.ce-gct-next:active {
    transform: translateY(0);
}

/* Disabled state */
.ce-gct-prev.swiper-button-disabled,
.ce-gct-next.swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .ce-gct-swiper .swiper-slide {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .ce-gct-header {
        justify-content: center;
        padding: 0;
    }

    .ce-gct-tabs {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .ce-gct-swiper .swiper-slide {
        height: 300px;
        border-radius: 12px;
    }

    .ce-gct-prev,
    .ce-gct-next {
        width: 42px;
        height: 42px;
    }

    .ce-gct-prev svg,
    .ce-gct-next svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .ce-gct-swiper .swiper-slide {
        height: 240px;
        border-radius: 10px;
    }

    .ce-gct-footer {
        flex-direction: row;
        gap: 12px;
    }
}