/* Wrapper to handle right overflow */
.ccc-7198-wrapper {
    position: relative;
    width: 100%;
}
.ccc-7198-overflow-yes .ccc-7198-wrapper {
    /* Allow the carousel to break out of its container to the right edge */
    width: calc(100% + (100vw - 100%) / 2);
    max-width: 100vw;
}

/* Prevent horizontal page scrolling on mobile */
html, body {
    overflow-x: hidden;
}

.ccc-7198-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}
/* Ensure swiper wrapper flexes properly when custom width is used */
.swiper-wrapper {
    box-sizing: border-box;
}

.ccc-7198-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    /* Force swiper slide to obey our width */
    flex-shrink: 0;
}
.ccc-7198-card:hover, .ccc-7198-card:focus {
    text-decoration: none;
}
.ccc-7198-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
    z-index: 1;
}
.ccc-7198-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 0.4s ease, background-color 0.4s ease;
}
.ccc-7198-overlay-content {
    color: #fff;
    text-align: center;
    z-index: 3;
}
.ccc-7198-overlay-content img {
    max-width: 100px;
    height: auto;
}
.ccc-7198-overlay-content svg {
    width: 2em;
    height: 2em;
    fill: #fff;
}
.ccc-7198-text {
    font-size: 1.5em;
    font-weight: bold;
}

/* Play Button */
.ccc-7198-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    pointer-events: none; /* Let clicks pass through to the link */
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.ccc-7198-play-btn svg {
    display: block;
}
/* Optional: slightly scale up play button on card hover */
.ccc-7198-card:hover .ccc-7198-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Hover Effects */
.ccc-7198-hover-zoom-in .ccc-7198-card:hover .ccc-7198-bg {
    transform: scale(1.1);
}
.ccc-7198-hover-fade-overlay .ccc-7198-overlay {
    opacity: 0;
}
.ccc-7198-hover-fade-overlay .ccc-7198-card:hover .ccc-7198-overlay {
    opacity: 1;
}

/* Navigation Overrides */
.ccc-7198-container .swiper-button-next,
.ccc-7198-container .swiper-button-prev {
    background-color: rgba(255,255,255,0.8);
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 10;
}
.ccc-7198-container .swiper-button-next:after,
.ccc-7198-container .swiper-button-prev:after {
    font-size: 20px;
    font-family: 'swiper-icons';
}
