/**
 * Frontend Styles for Smart Swiper Showcase
 */

:root {
    --sss-primary-color: #28266f;
}

/* Slider Wrapper */
.sss-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    /* removed for autoHeight */
    overflow: hidden;
}

/* Main Swiper */
.sss-main-swiper {
    width: 100%;
    height: 100%;
}

.sss-main-swiper .swiper-slide {
    position: relative;
}

/* Slide Background */
.sss-slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Hide main slide background image if a video is enabled */
.sss-slide-bg.has-video {
    background-image: none !important;
}

/* Dark Overlay */
.sss-overlay {
    position: absolute;
    inset: 0;
    background: #000;
}

.sss-overlay {
    display: none;
}

/* Content */
.sss-content {
    position: absolute;
    bottom: 130px;
    right: 40px;
    z-index: 10;
    text-align: right;
    animation: fadeIn 0.8s ease-out;
}

@media (min-width: 768px) {
    .sss-content {
        left: 64px;
    }
}

.sss-headline {
    font-size: 1.7rem;
    font-weight: 300;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 1.6rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-right: 12px;
}

@media (min-width: 768px) {
    .sss-headline {
        font-size: 3rem;
    }
}

.sss-info-btn {
    padding: 10px 48px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}



.sss-info-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    transform: translateY(-2px);
}

/* Link button - same visual style as info button */
a.sss-link-btn,
.sss-info-btn {
    display: inline-block;
    margin-right: 12px;
    padding: 6px 18px;
    border: 2px solid rgba(255, 255, 255, 1);
    background: rgba(0, 0, 0, 0);
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    backdrop-filter: blur(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    text-align: center;
    line-height: 1.4;
}


@media (min-width: 768px) {

    a.sss-link-btn,
    .sss-info-btn {
        display: inline-block;
        margin-right: 12px;
        padding: 6px 48px;
        border: 1px solid rgba(255, 255, 255, 0.6);
        background: rgba(0, 0, 0, 0.2);

        backdrop-filter: blur(8px);
        border-radius: 4px;
    }
}

/* @media only screen and (max-width: 768px) {
    .sss-info-btn {
        padding: 10px 18px;
    }

    a.sss-link-btn {
        display: inline-block;
        margin-right: 12px;
        padding: 6px 18px;
        backdrop-filter: blur(2px);
    }
}*/

a.sss-link-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    transform: translateY(-2px);
}

/* Navigation Arrows */
.sss-nav-prev,
.sss-nav-next {
    position: absolute;
    bottom: 4.5%;
    transform: translateY(-50%);
    z-index: 20;
    background: transparent;
    border: none;
    color: var(--sss-primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

@media (min-width: 768px) {

    .sss-nav-prev,
    .sss-nav-next {

        bottom: 2%;

    }
}


.sss-nav-prev.sss-thumb-nav-prev,
.sss-nav-next.sss-thumb-nav-next {
    position: static;
    background: rgba(255, 255, 255, 0);
    color: #E3E7F3 !important;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.sss-nav-prev,
.sss-nav-next {
    color: #ffffff;
    box-shadow: none;
}

@media (min-width: 768px) {

    .sss-nav-prev,
    .sss-nav-next {
        color: #ffffff7a;

    }
}

.sss-nav-prev:hover,
.sss-nav-next:hover {
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    background: transparent;
    box-shadow: none;
}

button.sss-nav-next.sss-thumb-nav-next:hover,
button.sss-nav-prev.sss-thumb-nav-prev:hover {
    color: #150578 !important;
}

.sss-nav-prev {
    right: 82px;
}

.sss-nav-next {
    right: 36px;
}

.sss-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--sss-primary-color);
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 8px;
}

@media (min-width: 768px) {
    .sss-close-btn {
        top: 24px;
        right: 32px;
    }
}

.sss-close-btn:hover {
    color: #000000;
}

@media (min-width: 768px) {
    .sss-testimonial-content {
        padding: 0;
    }

    .sss-testimonial-item {


        p {

            padding-left: 10px;
            padding-right: 10px;

        }
    }
}

/* Testimonial Item */
.sss-testimonial-item {
    display: none;
    margin-bottom: 28px;

    p {
        margin: 0 auto;
        max-width: 1100px;
        line-height: 1.4;
        padding-bottom: 60px;
        font-size: 28px;
        font-style: italic;
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
    }
}

.sss-testimonial-item.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.sss-testimonial-text {
    font-size: 1.125rem;
    color: var(--sss-primary-color);
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: center;
}

/* Replace default typographic quotes with image blockquotes */
.sss-testimonial-text {
    position: relative;
    padding-left: 72px;
    padding-right: 72px;
    text-align: left;
}

/* Inline quote opener */
.sss-quote-opener {
    display: inline;
}

.sss-quote-opener::before {
    content: '';
    display: inline-block;
    width: 48px;
    height: 48px;
    background-image: url('left-blockquote.png');
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 12px;
    opacity: 0.95;
    top: -6px;
    position: relative;
}


.sss-client-name {
    position: relative;
    padding-left: 12px;
}

.sss-client-name::after {
    content: '';
    position: absolute;
    width: 48px;
    height: 48px;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 2;
    opacity: 0.95;
    right: -68px;
    bottom: -20px;
    background-image: url('right-blockquote.png');
}

@media (max-width: 768px) {
    .sss-testimonial-text {
        padding-left: 56px;
        padding-right: 56px;
    }

    .sss-quote-opener::before {
        width: 36px;
        height: 36px;
        margin-right: 12px;
    }

    .sss-client-name::after {

        width: 36px;
        height: 36px;

        right: -30px;
        bottom: -40px;

    }
}

@media (min-width: 768px) {
    .sss-testimonial-text {
        font-size: 1.25rem;
    }
}

.sss-client-name {
    font-weight: 600;
    color: var(--sss-primary-color);
}

@media (min-width: 768px) {
    .sss-client-name {
        text-align: center;
    }
}

/* Testimonials Heading */
.sss-testimonials-heading {
    font-size: 1.875rem;
    font-weight: 500;
    color: var(--sss-primary-color);
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 0;
}

@media (min-width: 768px) {
    .sss-testimonials-heading {
        font-size: 2.6rem;
        margin-bottom: 2.5rem;
        padding-top: 50px;
    }
}

/* Thumbnails Section */
.sss-thumbnails-section {
    margin-top: 32px;
    padding-bottom: 40px;
    position: relative;
}

.sss-thumbnails-title {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--sss-primary-color);
    text-align: center;
    margin-bottom: 48px;
    font-weight: 500;
}

@media (min-width: 768px) {
    .sss-thumbnails-title {
        font-size: 1.875rem;
        margin-bottom: 46px !important;
    }
}

.sss-thumbnails-wrapper {
    position: relative;
    padding-bottom: 60px;
}

.sss-thumbnails {
    overflow: visible;
    padding: 0 20px;
}

.sss-thumbnails .swiper-wrapper {
    display: flex;
    align-items: center;
}

.sss-thumbnails .swiper-slide {
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.sss-thumbnails .swiper-slide:has(.sss-thumbnail.active) {
    z-index: 999;
}

.sss-thumbnail {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 8px;
    overflow: hidden;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
    padding: 0;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .sss-thumbnail {
        width: 248px;
        height: 168px;
    }
}

.sss-thumbnail:hover {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sss-thumbnail.active {
    transform: scale(1.4);
    opacity: 1;
    z-index: 999;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
}

.sss-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Thumbnails Navigation Arrows - inherit main nav styles, override position */
.sss-thumbnails-section .sss-nav-prev,
.sss-thumbnails-section .sss-nav-next {
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translateY(-50%);
}

.sss-thumbnails-section .sss-nav-prev {
    right: 86px;
    bottom: -80px;
}

.sss-thumbnails-section .sss-nav-next {
    right: 40px;
    bottom: -80px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Panel positioning - overlay by default (relative to slider) */
.sss-slider-wrapper {
    position: relative;
}

.sss-testimonial-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    transform: translateY(110%);
    transition: transform 0.35s ease;
    z-index: 50;
    box-shadow: none;
}

.sss-testimonial-panel.active {
    transform: translateY(0);
}

/* Expand mode: panel positioned under slider */
.sss-slider-wrapper[data-mode="expand"] .sss-testimonial-panel {
    position: static;
    transform: none;
    transition: none;
    box-shadow: none;
    margin-top: 16px;
    display: none;
}

.sss-slider-wrapper[data-mode="expand"] .sss-testimonial-panel.active {
    display: block;
}

/* small improvements */
.sss-testimonial-content {
    padding-top: 80px !important;
    padding: 0;
    margin: 0 auto;
}

.sss-close-btn {
    position: absolute;
    right: 18px;
    top: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    box-shadow: none;
}

.sss-close-btn:hover {
    background-color: transparent;
}

/* Expand mode: panel moved below the slider and spans full page width */
.sss-testimonial-panel.sss-moved {
    position: relative !important;
    width: 100%;
    left: auto;
    right: auto;
    margin: 0;
    background: #ffffff;
    display: none;
    z-index: 9999;
}

.sss-testimonial-panel.sss-moved.active {
    display: block;
    animation: sssFadeIn 0.36s ease both;
}

@keyframes sssFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sss-slider-wrapper .sss-testimonial-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: translateY(100%);
    transition: transform 0.36s ease;
    z-index: 5;
}

.sss-slider-wrapper .sss-testimonial-panel.active {
    transform: translateY(0);
}

.sss-extra-content {
    margin-top: 40px;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    line-height: inherit;
    box-sizing: border-box;
    margin-bottom: 10px;
    position: relative;
}

.sss-extra-content p {
    font-size: 18px;
}

.sss-extra-content h2 {
    margin-bottom: 36px;
}

.sss-extra-content button {
    background: #fff;
}

.sss-extra-content button:hover {
    background-color: var(--sss-primary-color);
    color: #fff;
}

/* Apply primary color inside extra content blocks to key typographic elements */
.sss-extra-content h2,
.sss-extra-content h3,
.sss-extra-content h4,
.sss-extra-content p,
.sss-extra-content a,
.sss-extra-content li {
    color: var(--sss-primary-color);
}

/* Video slide styles */
.sss-video-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9;
}

.sss-video-poster {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.sss-video-poster img {
    width: 100% !important;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.sss-play-video {
    position: absolute;
    z-index: 20;
    background: rgba(0, 0, 0, 0);
    border: none;
    color: #fff;
    width: 84px;
    /* Keep the circular background size */
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease;
}

.sss-play-video:hover {
    transform: scale(1.06);
    background: rgba(0, 0, 0, 0);
}

.sss-play-video .play-icon {
    width: 64px;
    /* Adjust size of the play icon container */
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sss-play-video .play-svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    /* Ensure SVG color is inherited */
}

.sss-video-wrapper .sss-inserted-video {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    z-index: 15;
}

/* Portrait: full height centered */
.sss-video-wrapper.sss-video-portrait .sss-inserted-video {
    height: 100% !important;
    width: auto !important;
    max-width: none !important;
}

/* Landscape: full width / cover-like */
.sss-video-wrapper.sss-video-landscape .sss-inserted-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* When playing, hide overlay to give prominence to video controls */
.sss-video-wrapper.playing .sss-play-video,
.sss-video-wrapper.playing .sss-video-poster {
    display: none;
}

/* Portrait video playing: black background to hide image holder behind narrow video */
.sss-video-wrapper.sss-video-portrait.playing {
    background-color: rgba(0, 0, 0, 0.5);
    /* 50% opacity black background */
    background-size: cover;
    background-position: center;
}

/* small fallback when no poster available */
.sss-video-poster.sss-no-poster {
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Video Placeholder (extracted frame) */
.sss-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Default to cover for landscape */
    z-index: 2;
    /* Above poster, below play button */
    display: none;
    /* Hidden by default, shown when video pauses */
}

.sss-video-wrapper.sss-video-portrait .sss-video-placeholder {
    object-fit: contain;
    /* Contain for portrait to show full image */
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
}

.sss-content {
    bottom: 80px;
    right: 180px;
}

@media (max-width: 768px) {
    .sss-video-wrapper.sss-video-portrait .sss-video-placeholder {
        object-fit: cover;
        height: 100%;
        width: 100%;
    }

    .sss-video-wrapper.sss-video-portrait .sss-inserted-video {
        height: 100% !important;
        width: 100% !important;
        max-width: none !important;
        object-fit: cover;
    }

    .sss-content {
        bottom: 120px;
        right: 20px;
    }

    .sss-overlay:has(+ .sss-video-wrapper.playing) {
        display: block;
    }

    .sss-video-wrapper.height-auto.playing~.sss-content {
        display: none;
    }

    .sss-video-wrapper.sss-video-landscape.playing {
        background-image: none !important;
    }
}

/* Short testimonial displayed top-left when provided */
.sss-short-testimonial {
    position: absolute;
    top: 74px;
    left: 84px;
    z-index: 25;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.05;
    color: #fff;
    max-width: 60%;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
    .sss-short-testimonial {
        max-width: 90%;
        top: 16px;
        left: 16px;
        font-size: 32px;
        /* slightly smaller on small screens */
    }
}

/* Thumbnail-close button: visually sits under thumbnails navigation */
.sss-close-btn.sss-thumb-close {
    /* Position like the thumbnail arrows: bottom-right, 60px under the arrows */
    position: absolute;
    right: 14px;
    /* matches .sss-thumbnails-section .sss-nav-next */
    bottom: -140px;
    /* arrows sit at -80px; 60px under that = -140px */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--sss-primary-color);
    cursor: pointer;
    padding: 6px;
    z-index: 60;
}

.sss-close-btn.sss-thumb-close svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 767px) {

    /* On small screens keep it visible but adjust spacing */
    .sss-close-btn.sss-thumb-close {
        right: 16px;
        bottom: unset;
        width: 44px;
        height: 44px;
        top: 96%;
    }
}

@media (min-width: 768px) {

    .sss-close-btn.sss-thumb-close {
        top: calc(100% - 60px);
        height: 0;
        width: 50px;
        height: 50px;
    }
}