/* ============================================================
   C8 Image Slider
   ============================================================ */
.gg-c8-image-slider{
    overflow-x: hidden;
}
.gg-c8-image-slider .gg-custom-widget-container {
    padding-top: 64px;
    padding-bottom: 64px;
}

/* Header: headline left, nav right */
.gg-c8-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 40px;
}
.gg-c8-header:not(:has(.gg-c8-headline)) {
    justify-content: flex-end;
}

.gg-c8-headline {
    color: var(--gg-secondary);
    margin: 0;
}

/* Navigation */
.gg-c8-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.gg-c8-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--gg-secondary);
    background: transparent;
    color: var(--gg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
    padding: 0;
}

.gg-c8-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}
.gg-c8-btn--next {
    background: var(--gg-secondary);
    color: var(--gg-light);
}

.gg-c8-btn:hover {
    background: var(--gg-secondary);
    color: var(--gg-light);
    opacity: 0.85;
}

.gg-c8-btn.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Swiper */
.gg-c8-swiper {
    overflow: visible;
}

.gg-c8-swiper .swiper-wrapper {
    align-items: stretch;
}

.gg-c8-swiper .swiper-slide {
    height: auto;
}

/* Slide */
.gg-c8-slide {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.gg-c8-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Pagination dots */
.gg-c8-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
}

.gg-c8-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gg-bullet-inactive);
    opacity: 1;
    cursor: pointer;
    transition: width 0.25s, border-radius 0.25s, background 0.25s;
    display: block;
    flex-shrink: 0;
}

.gg-c8-pagination .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 5px;
    background: var(--gg-secondary);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
    .gg-c8-image-slider .gg-custom-widget-container {
        padding-top: 32px;
        padding-bottom: 32px;
        padding-right: 0;
    }

    .gg-c8-header {
        padding-right: 15px;
        margin-bottom: 24px;
    }

    .gg-c8-nav {
        display: none;
    }

    .gg-c8-slide {
        aspect-ratio: 16 / 9;
    }
}
