section .template-one {
    grid-template-areas: "title video"
                         "buble video";
    grid-template-columns: auto auto;
    text-align: left;
}

section .template-two {
    grid-template-areas: "video title"
                         "video buble";
    grid-template-columns: auto auto;
    text-align: right;
}

section .title {
    grid-area: title;
    position: relative;
    padding-top: 50px;
}

section .buble {
    grid-area: buble;
    display: flex;
    justify-content: center;
    height: 100%;
}

section .buble h6 {
    text-align: center;
}

section .buble > div {
    width: 60%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
 }

 section .buble .content {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: flex-end;
    align-items: flex-end;
}

section .buble .content .text {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
}

section .buble .content .text .slider {
    position: absolute;
    bottom: 0;
}

section .buble .content .text .invisible {
    visibility: hidden;
}

section .buble .switch {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

section .buble .switch > div {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

section .buble .switch a {
    display: block;
    width: 100%;
    height: 100%;
}

section .buble .switch .active {
    background-color: var(--colorGreen);
}

section .buble .switch .deactive {
    background-color: var(--colorGrayLight);
}

section .video {
    grid-area: video;
    height: 100%;
    width: 100%;
    display: flex;
}

section .video .content {
    height: 812px;
    width: 375px;
    display: flex;
    position: relative;
}

section .video .content .slider {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 100;
}

section .video .content .slider img {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}

section .video .content .mobile-border {
    z-index: 1000;
    display: flex;
    position: absolute;
    width: 430px;
    height: 863px;
    top: -25px;
    left: -27px;
    pointer-events: none;
}

section .video .content .mobile-border img {
    width: 100%;
    height: 100%;
}

section .transition {
    transition: all .4s ease-in-out;
}

section .show {
    left: 0;
    right: 0;
}

section .hidden-right {
    left: -100%;
    right: 100%;
}

section .hidden-left {
    left: 100%;
    right: -100%;
}

@media(max-width: 1200px) {
    section .page {
        gap: calc(var(--sectionGridGapPage) / 2);
    }

    section .buble > div {
        width: 80%;
     }
}

@media(max-width: 950px) {
    section .page {
        gap: calc(var(--sectionGridGapPage) / 5);
    }

    section .template-one {
        grid-template-areas: "title"
                             "video"
                             "buble";
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    section .template-two {
        grid-template-areas: "title"
                             "video"
                             "buble";
        grid-template-columns: 1fr;
        text-align: center;
    }

    section .title {
        padding-top: 0;
    }

    section .buble > div {
        width: 100%;
     }

     section .video {
        justify-content: center;
        align-items: center;
    }
     section .video .content {
        width: 280px;
        height: 606px;
    } 

    section .video .content .mobile-border {
        width: 321px;
        height: 644px;
        top: -19px;
        left: -20px;
    }
}
