.kbs-2508-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

.kbs-2508-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.kbs-2508-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transform: scale(var(--kbs-scale-start, 1));
}

.kbs-2508-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.kbs-2508-content {
    position: relative;
    z-index: 3;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.kbs-2508-title {
    margin: 0;
    padding: 0;
    opacity: 0;
}

.kbs-2508-subtitle-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.kbs-2508-subtitle {
    margin: 0;
    padding: 0;
    opacity: 0;
}

.kbs-2508-subtitle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.kbs-2508-button-wrapper {
    opacity: 0;
}

.kbs-2508-button {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Animations */
@keyframes kbsZoomIn {
    0% { transform: scale(var(--kbs-scale-start, 1)); }
    100% { transform: scale(var(--kbs-scale-end, 1.2)); }
}

@keyframes kbsZoomOut {
    0% { transform: scale(var(--kbs-scale-start, 1.2)); }
    100% { transform: scale(var(--kbs-scale-end, 1)); }
}

@keyframes kbsZoomOdd {
    0% { transform: scale(var(--kbs-scale-start-odd, 1)); }
    100% { transform: scale(var(--kbs-scale-end-odd, 1.2)); }
}

@keyframes kbsZoomEven {
    0% { transform: scale(var(--kbs-scale-start-even, 1.2)); }
    100% { transform: scale(var(--kbs-scale-end-even, 1)); }
}

.swiper-slide-active.kbs-anim-in .kbs-2508-image {
    animation: kbsZoomIn linear forwards;
}

.swiper-slide-active.kbs-anim-out .kbs-2508-image {
    animation: kbsZoomOut linear forwards;
}

.swiper-slide-active.kbs-anim-alternate:nth-child(odd) .kbs-2508-image {
    animation: kbsZoomOdd linear forwards;
}

.swiper-slide-active.kbs-anim-alternate:nth-child(even) .kbs-2508-image {
    animation: kbsZoomEven linear forwards;
}

/* Content Animations */
.swiper-slide-active .kbs-anim-fadeIn { animation: fadeIn 1s ease forwards; }
.swiper-slide-active .kbs-anim-fadeInUp { animation: fadeInUp 1s ease forwards; }
.swiper-slide-active .kbs-anim-fadeInDown { animation: fadeInDown 1s ease forwards; }
.swiper-slide-active .kbs-anim-fadeInLeft { animation: fadeInLeft 1s ease forwards; }
.swiper-slide-active .kbs-anim-fadeInRight { animation: fadeInRight 1s ease forwards; }
.swiper-slide-active .kbs-anim-zoomIn { animation: zoomIn 1s ease forwards; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }


/* Swiper Overrides */
.swiper-button-next, .swiper-button-prev {
    color: #fff;
}
.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}
.swiper-pagination-bullet-active {
    opacity: 1;
}

/* Single slide fix */
.kbs-single-slide .kbs-2508-image,
.kbs-single-slide .kbs-2508-title,
.kbs-single-slide .kbs-2508-subtitle,
.kbs-single-slide .kbs-2508-subtitle-icon,
.kbs-single-slide .kbs-2508-button-wrapper {
    animation-fill-mode: forwards !important;
}