.contentElements {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding-right: 4px;
}

.contentElements p {
    font-family: 'kanit_r', sans-serif;
    font-size: 1.2rem;
}

.contentElements h1 {
    font-family: 'kanit_m', sans-serif;
    font-size: 2rem;
    margin-top: 30px;
    margin-bottom: 10px;
}

.contactText {
    width: 100%;
    text-align: center;
    padding-top: 30vh;
}

.contactText p {
    width: 550px;
    margin: auto;
    font-family: 'kanit_r', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 6vh;
}

.contactText h1 {
    font-family: 'kanit_m', sans-serif;
    font-size: 2.3rem;
    margin-bottom: 30vh;
}

.serviceVideo .video {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    z-index: 300;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    -webkit-transition: 0.6s;
    transition: 0.6s;
}

.serviceVideo.fullscreen .video {
    visibility: visible;
    opacity: 1;
    background-color: black;
}

.video video {
    display: none;
}

.serviceVideo.fullscreen .video video {
    display: block;
    width: 100%;
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    max-height: 100%;
    max-height: 100vh;
    max-height: calc(var(--vh, 1vh) * 100);
}

.serviceVideo .video img.closeVideo {
    width: 30px;
    height: auto;
    position: absolute;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    top: 4vh;
    right: 4vh;
    left: unset;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    -webkit-filter: invert();
    filter: invert();
    cursor: pointer;
}

.serviceVideo .video img.closeVideo:hover {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.videoContainer {
    width: 100%;
    height: 40vw;
    max-height: 600px;
    overflow: hidden;
    position: relative;
}

.videoContainer img {
    cursor: pointer;
    width: 100%;
    position: absolute;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    top: 50%;
    -webkit-transition: .8s;
    transition: .8s;
}

.descriptionBlock {
    margin-top: 30px;
}

.doubleColumn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.col {
    width: 47.5%;
    display: inline-block;
}

.textColumn {
    height: -webkit-max-content;
    height: -moz-max-content;
    height: max-content;
}

.gallery {
    width: 100%;
    height: 100%;
}

.gallery img {
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
    height: 100%;
    -webkit-transition: .3s;
    transition: .3s;
}

.playButton {
    width: 80px !important;
    height: 80px !important;
    -webkit-transform: translateX(-50%) translateY(-50%) !important;
    transform: translateX(-50%) translateY(-50%) !important;
    -webkit-filter: invert();
    filter: invert();
    top: 50% !important;
    left: 50% !important;
    -webkit-transition: .3s !important;
    transition: .3s !important;
}


@media screen and (min-width: 769px) {

    .videoContainer:hover .playButton {
        opacity: 0;
    }

    .videoContainer:hover > img.poster {
        -webkit-transform: translateY(-50%) scale(1.05) !important;
        transform: translateY(-50%) scale(1.05) !important;
    }
    
}


.serviceDescription {
    margin-bottom: 10px;
}

.serviceVideo {
    margin-bottom: 30px;
}



@media (max-width: 1024px) {

    .contentElements p {
        font-size: 1.3rem;
        line-height: 2.2rem;
    }

    .contentElements h1 {
        font-size: 2rem;
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .descriptionBlock {
        margin-top: 0px;
        margin-bottom: 30px;
    }

    .doubleColumn {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .col {
        width: 100% !important;
        margin-top: 40px;
    }

    .doubleColumn > .col:first-of-type {
        margin-top: 0;
    }

    .gallery {
        min-height: 400px
    }

    .contactText p {
        font-size: 1.5rem;
        margin-bottom: 4vh;
        width: 620px;
    }

    .contactText h1 {
        font-size: 2.5rem;
        margin-bottom: 29vh;
    }

    .content .video img {
        visibility: visible !important;
        display: block !important;
        pointer-events: none;
    }

    .fullscreen .video img {
        pointer-events: all;
    }
}

@media (max-width: 768px) {

    .contentElements p {
        font-size: 1.1rem;
        line-height: 1.8rem;
    }

    .contentElements h1 {
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .contactText p {
        font-size: 1.3rem;
        width: 550px;
    }

    .contactText h1 {
        font-size: 2rem;
        margin-bottom: 34vh;
    }
}

@media (max-width: 650px) {

    .content {
        height: 80%;
        height: 80vh;
        height: calc(var(--vh, 1vh) * 80);
        width: 90%;
    }

    .contentElements h1 {
        padding-top: 20px;
        margin-top: 0px;
        margin-bottom: 20px;
    }

    .contactText p {
        font-size: 1.1rem;
        width: 80%;
    }

    .contactText h1 {
        font-size: 1.5rem;
        margin-bottom: 34vh;
    }

    .videoContainer {
        min-height: 400px;
    }

    .videoContainer img {
        height: 100%;
        width: auto;
        position: absolute;
        -webkit-transform: translateX(-50%) translateY(0);
        transform: translateX(-50%) translateY(0);
        left: 50%;
        top: 0;
    }

    .serviceDescription {
        margin-top: 10px;
    }
}

@media (max-width: 400px) {

    .contentElements p {
        font-size: 1rem;
    }

}
