
/* --------------------------------------------------
   CG Banner
-------------------------------------------------- */

.cg_banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.cg_banner_inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.cg_banner_slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.cg_banner_slide_active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.cg_banner_image {
    display: block;
    width: 100%;
    height: auto;
}

/* --------------------------------------------------
   Pilar
-------------------------------------------------- */

.cg_banner_arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.35);
    color: #fff;

    cursor: pointer;

    transition:
        background 0.2s ease,
        opacity 0.2s ease;
}

.cg_banner_arrow:hover {
    background: rgba(0, 0, 0, 0.60);
}

.cg_banner_arrow_left {
    left: 15px;
}

.cg_banner_arrow_right {
    right: 15px;
}

.cg_banner_arrow .material-symbols-outlined {
    font-size: 32px;
}

/* --------------------------------------------------
   Prickar
-------------------------------------------------- */

.cg_banner_dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 10;

    display: flex;
    gap: 8px;
}

.cg_banner_dot {
    width: 10px;
    height: 10px;

    padding: 0;
    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.55);

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.cg_banner_dot:hover {
    background: rgba(255, 255, 255, 0.85);
}

.cg_banner_dot_active {
    background: #fff;
    transform: scale(1.2);
}

/* --------------------------------------------------
   Mobil
-------------------------------------------------- */

@media (max-width: 600px) {

    .cg_banner_arrow {
        width: 38px;
        height: 38px;
    }

    .cg_banner_arrow_left {
        left: 8px;
    }

    .cg_banner_arrow_right {
        right: 8px;
    }

    .cg_banner_arrow .material-symbols-outlined {
        font-size: 27px;
    }

    .cg_banner_dots {
        bottom: 8px;
    }

}

/* --------------------------------------------------
   Reduced motion
-------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .cg_banner_slide {
        transition: none !important;
    }

}