/**
 * @package     VP Prime Slider
 *
 * @author      Abhishek Das <info@virtueplanet.com>
 * @link        https://www.virtueplanet.com
 * @copyright   Copyright (C) 2023 Virtueplanet Services LLP. All Rights Reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

.prime-slider {
    position: relative;
    overflow: hidden;
}

.prime-slider-slides:not(.tns-slider) {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow: hidden;
    z-index: 1;
}

.prime-slider-slide {
    position: relative;
}

.prime-slider-slides:not(.tns-slider) .prime-slider-slide {
    flex: 1 0 100%;
}

.prime-slider-slides:not(.tns-slider):before {
    position: absolute;
    content: "";
    inset: 0;
    background-color: #fff;
    opacity: 0.6;
    z-index: 2;
}

.prime-slider-slides:not(.tns-slider):after {
    position: absolute;
    left: 50%;
    top: 50%;
    height: 32px;
    width: 32px;
    margin-top: -16px;
    margin-left: -16px;
    content: "";
    -webkit-animation: sliderLoader 0.8s infinite linear;
    animation: sliderLoader 0.8s infinite linear;
    border: 2px solid #333;
    border-right-color: transparent;
    border-radius: 50%;
    background-color: transparent;
    z-index: 3;
}

.prime-slide-inner {
    --height: calc(var(--height-xs, 540) * 1px);
    position: relative;
    width: 100%;
    height: var(--height);
    background-color: var(--bg-color, transparent);
}

.prime-slide-image {
    width: 100%;
    height: 100%;
    object-fit: var(--image-fit);
    object-position: var(--image-position-horizontal) var(--image-position-vertical);
}

.prime-slide-container {
    --gutter-x: 32px;
    --max-width: calc(var(--width-xs, 300) * 1px);
    --translate-x: calc(var(--horizontal-offset-xs, 0) * 1px);
    --translate-y: calc(var(--vertical-offset-xs, 0) * 1px);
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: var(--horizontal-position, center);
    justify-content: var(--vertical-position, center);
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-right: calc(var(--gutter-x) * 0.5);
    padding-left: calc(var(--gutter-x) * 0.5);
    transform: translate(var(--translate-x), var(--translate-y));
}

.prime-slide-text-area {
    --area-width: calc(var(--area-width-xs, 300) * 1px);
    width: var(--area-width);
}

.prime-slide-subheading,
.prime-slide-heading,
.prime-slide-paragraph,
.prime-slide-buttons {
    --transition-delay: 100ms;
    --slide-transition-time: calc(var(--slide-speed) * 1ms);
    text-align: var(--text-align);
    opacity: var(--opacity, 1);
    transform: var(--translate);
    transition: opacity calc(var(--transition-time, 200) * 1ms) var(--transition-style) calc(var(--transition-delay) + var(--slide-transition-time)), transform calc(var(--transition-time, 200) * 1ms) var(--transition-style) calc(var(--transition-delay) + var(--slide-transition-time));
}

.tns-slide-no-transition .prime-slide-subheading,
.tns-slide-no-transition .prime-slide-heading,
.tns-slide-no-transition .prime-slide-paragraph,
.tns-slide-no-transition .prime-slide-buttons {
    transition: opacity calc(var(--transition-time, 200) * 1ms) var(--transition-style) var(--transition-delay), transform calc(var(--transition-time, 200) * 1ms) var(--transition-style) var(--transition-delay);
}

.prime-slide-link {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.prime-slide-subheading {
    --transition-delay: calc(var(--subheading-transition-delay, 0) * 1ms);
    color: var(--subheading-color);
    font-size: calc(var(--subheading-font-size-xs) * 1px);
    font-weight: var(--subheading-weight);
    margin-bottom: 15px;
    line-height: 1.2;
}

.prime-slide-heading {
    --transition-delay: calc(var(--heading-transition-delay, 0) * 1ms);
    color: var(--heading-color);
    font-size: calc(var(--heading-font-size-xs) * 1px);
    font-weight: var(--heading-weight);
    margin-bottom: 15px;
    line-height: 1.2;
}

.prime-slide-paragraph {
    --transition-delay: calc(var(--paragraph-transition-delay, 0) * 1ms);
    color: var(--paragraph-color);
    font-size: calc(var(--paragraph-font-size-xs) * 1px);
    font-weight: var(--paragraph-weight);
    margin-bottom: 20px;
    line-height: 1.3;
}

.prime-slide-buttons {
    --transition-delay: calc(var(--button-transition-delay, 0) * 1ms);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: var(--text-align);
    padding-top: 20px;
}

.tns-slide-active .prime-slide-subheading,
.tns-slide-active .prime-slide-heading,
.tns-slide-active .prime-slide-paragraph,
.tns-slide-active .prime-slide-buttons {
    opacity: 1;
    transform: translate(0, 0);
}

.prime-slider-controls button {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    background-color: #fff;
    border: none;
    outline: none;
    box-shadow: none;
    width: 30px;
    height: 30px;
    padding: 5px;
    font-size: 16px;
    line-height: 1;
    color: #222;
    opacity: 0;
    cursor: pointer;
    z-index: 4;
    transition: opacity 0.3s ease-in, font-size 0.3s ease-in;
}

.prime-slider-controls button:last-child {
    left: auto;
    right: 10px;
}

.prime-slider:hover .prime-slider-controls button {
    opacity: 0.6;
}

.prime-slider-controls button:hover:not(:disabled) {
    opacity: 1;
}

.prime-slider-controls button:disabled {
    opacity: 0.5 !important;
    cursor: default !important;
}

.prime-slider-navigation {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 14px;
    z-index: 4;
}

.prime-slider-navigation button {
    appearance: none;
    background-color: #fff;
    border: 1px solid #fff;
    outline: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    padding: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in;
}

.prime-slider-navigation button:hover:not(.tns-nav-active) {
    background-color: #333;
}

.prime-slider-navigation button.tns-nav-active {
    width: 16px;
    height: 16px;
}

@media (min-width: 576px) {
    .prime-slide-inner {
        --height: calc(var(--height-sm, 540) * 1px);
    }

    .prime-slide-container {
        --max-width: calc(var(--width-sm, 400) * 1px);
        --translate-x: calc(var(--horizontal-offset-sm, 0) * 1px);
        --translate-y: calc(var(--vertical-offset-sm, 0) * 1px);
    }

    .prime-slide-text-area {
        --area-width: calc(var(--area-width-sm, 300) * 1px);
    }

    .prime-slide-subheading {
        font-size: calc(var(--subheading-font-size-sm) * 1px);
        line-height: 1.2;
    }

    .prime-slide-heading {
        font-size: calc(var(--heading-font-size-sm) * 1px);
        line-height: 1.3;
    }

    .prime-slide-paragraph {
        font-size: calc(var(--paragraph-font-size-sm) * 1px);
    }
}

@media (min-width: 768px) {
    .prime-slide-inner {
        --height: calc(var(--height-md, 640) * 1px);
    }

    .prime-slide-container {
        --max-width: calc(var(--width-md, 900) * 1px);
        --translate-x: calc(var(--horizontal-offset-md, 0) * 1px);
        --translate-y: calc(var(--vertical-offset-md, 0) * 1px);
    }

    .prime-slide-text-area {
        --area-width: calc(var(--area-width-md, 300) * 1px);
    }

    .prime-slide-subheading {
        font-size: calc(var(--subheading-font-size-md) * 1px);
        line-height: 1.2;
    }

    .prime-slide-heading {
        font-size: calc(var(--heading-font-size-md) * 1px);
        line-height: 1.3;
    }

    .prime-slide-paragraph {
        font-size: calc(var(--paragraph-font-size-md) * 1px);
    }

    .prime-slider-controls button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (min-width: 992px) {
    .prime-slide-inner {
        --height: calc(var(--height-lg, 640) * 1px);
    }

    .prime-slide-container {
        --max-width: calc(var(--width-lg, 1320) * 1px);
        --translate-x: calc(var(--horizontal-offset-lg, 0) * 1px);
        --translate-y: calc(var(--vertical-offset-lg, 0) * 1px);
    }

    .prime-slide-text-area {
        --area-width: calc(var(--area-width-lg, 300) * 1px);
    }

    .prime-slide-subheading {
        font-size: calc(var(--subheading-font-size-lg) * 1px);
        line-height: 1.2;
    }

    .prime-slide-heading {
        font-size: calc(var(--heading-font-size-lg) * 1px);
        line-height: 1.3;
    }

    .prime-slide-paragraph {
        font-size: calc(var(--paragraph-font-size-lg) * 1px);
    }
}

@-webkit-keyframes sliderLoader {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes sliderLoader {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}