@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&display=swap');


/* =====================================================
   WRAPPER
===================================================== */

.vt-slider-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    font-family: 'Rubik', sans-serif;
}


/* =====================================================
   SWIPER
===================================================== */

.vt-slider {
    width: 100%;
    overflow: hidden;

    /* miejsce na cień */
    padding: 8px 4px 14px;

    box-sizing: border-box;
	background: transparent;
}

.vt-slider .swiper-wrapper {
    align-items: stretch;
}

.vt-slider .swiper-slide {
    height: auto;
    display: flex;
	background: transparent;
}


/* =====================================================
   KARTA
===================================================== */

.vt-card {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border-radius: 14px;

    background: #fff;

    /* usuwa szare rogi */
    box-shadow: none;

    transition: transform .25s ease;
}

.vt-card:hover {
    transform: translateY(-2px);

    /* też bez cienia na hover */
    box-shadow: none;
}

/* =====================================================
   MINIATURA
===================================================== */

.vt-video-button,
button.vt-video-button {
    position: relative;

    display: block;

    width: 100%;

    /* było za wysokie */
    aspect-ratio: 1.38 / 1;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden;

    border: 0 !important;
    border-radius: 0 !important;

    background: #fff !important;
    background-color: #fff !important;

    outline: none !important;

    cursor: pointer;

    box-shadow: none !important;

    appearance: none;
    -webkit-appearance: none;
}


/*
 * ABSOLUTE rozwiązuje szare paski / wolną przestrzeń
 * przy różnych proporcjach obrazków.
 */
.vt-thumbnail {
    position: absolute;

    inset: 0;

    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover !important;
    object-position: center center;

    border: 0;

    transition:
        transform .35s ease;
}

.vt-card:hover .vt-thumbnail {
    transform: scale(1.02);
}


/* =====================================================
   PLAY
===================================================== */

.vt-play {
    position: absolute;

    top: 50%;
    left: 50%;

    z-index: 3;

    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    transform: translate(-50%, -50%);

    border: 1px solid rgba(255, 255, 255, .95);

    border-radius: 50%;

    background: rgba(255, 255, 255, .26);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    box-shadow:
        0 2px 8px rgba(0, 0, 0, .12);

    transition:
        transform .2s ease,
        background .2s ease;
}

.vt-video-button:hover .vt-play {
    transform:
        translate(-50%, -50%)
        scale(1.06);

    background: rgba(255, 255, 255, .38);
}


/* trójkąt */

.vt-play-icon {
    width: 0;
    height: 0;

    margin-left: 4px;

    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid #fff;
}


/* =====================================================
   LOGO
===================================================== */

.vt-logo-wrap {
    width: 100%;
    height: 72px;
    flex: 0 0 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 8px 14px;

    box-sizing: border-box;
    background: #fff;
}

.vt-logo {
    display: block;

    width: auto !important;
    height: auto !important;

    max-width: 190px !important;
    max-height: 54px !important;

    margin: 0 !important;

    object-fit: contain;
}


/* =====================================================
   NAWIGACJA
===================================================== */

.vt-nav {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 8px;

    margin-top: 6px;
}


/* takie same przyciski jak slider sukcesów */

.vt-nav button,
.vt-nav button.vt-prev,
.vt-nav button.vt-next {
    position: relative;

    width: 40px !important;
    height: 40px !important;

    min-width: 40px !important;
    min-height: 40px !important;

    flex: 0 0 40px;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    border-radius: 50% !important;

    background: #fff !important;
    background-color: #fff !important;

    color: #050505 !important;

    cursor: pointer;

    font-size: 0 !important;
    line-height: 0 !important;

    box-sizing: border-box;

    appearance: none;
    -webkit-appearance: none;

    box-shadow:
        0 2px 5px rgba(0,0,0,.12),
        0 1px 2px rgba(0,0,0,.06);

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}


/* chevron */

.vt-nav button::before {
    content: '';

    position: absolute;

    top: 50%;
    left: 50%;

    width: 8px;
    height: 8px;

    border-top: 3px solid #050505;
    border-right: 3px solid #050505;

    border-radius: 1px;
}


/* lewo */

.vt-nav .vt-prev::before {
    transform:
        translate(-35%, -50%)
        rotate(-135deg);
}


/* prawo */

.vt-nav .vt-next::before {
    transform:
        translate(-65%, -50%)
        rotate(45deg);
}


/* hover / aktywny */

.vt-nav button:hover,
.vt-nav button:focus,
.vt-nav button:focus-visible,
.vt-nav button:active {
    background: #f1f2f4 !important;
    background-color: #f1f2f4 !important;

    color: #050505 !important;

    outline: none !important;
    border: 0 !important;
}

.vt-nav button:active {
    transform: scale(.94);
}


/* =====================================================
   MODAL
===================================================== */

.vt-modal {
    position: fixed;

    inset: 0;

    z-index: 9999999;

    display: none;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    padding: 32px;

    box-sizing: border-box;
}

.vt-modal.is-open {
    display: flex;
}

.vt-modal-backdrop {
    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, .82);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.vt-modal-content {
    position: relative;

    z-index: 2;

    width: min(960px, 100%);

    background: #000;

    border-radius: 16px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, .35);
}

.vt-video-container {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 16px;

    background: #000;
}

.vt-video-container iframe,
.vt-video-container video {
    position: absolute;

    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}


/* X */

.vt-modal-close,
button.vt-modal-close {
    position: absolute;

    top: -18px;
    right: -18px;

    z-index: 5;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 42px !important;
    height: 42px !important;

    min-width: 42px !important;
    min-height: 42px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    border-radius: 50% !important;

    background: #fff !important;

    color: #050505 !important;

    font-family: Arial, sans-serif;

    font-size: 27px !important;
    line-height: 1 !important;

    cursor: pointer;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, .20);
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    .vt-video-button {
        aspect-ratio: 1.34 / 1;
    }

    .vt-logo-wrap {
        height: 60px;
        flex-basis: 60px;
    }

    .vt-logo {
        max-width: 150px !important;
        max-height: 40px !important;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .vt-slider {
        padding-top: 4px;
    }

    .vt-card {
        border-radius: 12px;
    }

    .vt-video-button {
        aspect-ratio: 1.3 / 1;
    }

    .vt-play {
        width: 46px;
        height: 46px;
    }

    .vt-play-icon {
        border-top-width: 8px;
        border-bottom-width: 8px;
        border-left-width: 12px;
    }

    .vt-logo-wrap {
        height: 56px;
        flex-basis: 56px;
    }

    .vt-logo {
        max-width: 135px !important;
        max-height: 36px !important;
    }

    .vt-modal {
        padding: 16px;
    }

    .vt-modal-close,
    button.vt-modal-close {
        top: -14px;
        right: -4px;

        width: 36px !important;
        height: 36px !important;

        min-width: 36px !important;
        min-height: 36px !important;

        font-size: 23px !important;
    }

}