/*

TemplateMo 552 Video Catalog

https://templatemo.com/tm-552-video-catalog

*/


.tm-bg-gray { background-color: #F4F4F4; }
.tm-text-primary { color: #0c367e; }




.tm-welcome-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    z-index: 999;
}

.tm-welcome-container-inner { margin-top: 100px; }
.tm-welcome-text { font-size: 1.6rem; }


.btn-primary { background-color: #3399CC; }
.btn-primary:hover { background-color: #1674a0; }

/*
    Button hover effect: https://tympanus.net/Development/CreativeButtons/
*/

.tm-btn-animate {
    position: relative;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: all 0.3s ease;
}

.tm-btn-animate:before {
    left: 0;
    top: -100%;
    position: absolute;
    height: 100%;
    width: 100%;
    line-height: 2.5;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
    font-family: "Font Awesome 5 Free";
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

.tm-btn-animate:after {
    content: '';
    position: absolute;
    z-index: -1;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}

.tm-btn-animate:hover:before { top: 13px; }

.tm-btn-animate span {
    display: inline-block;
    width: 100%;
    height: 100%;
    -webkit-transition: all 0.3s;
    -webkit-backface-visibility: hidden;
    -moz-transition: all 0.3s;
    -moz-backface-visibility: hidden;
    transition: all 0.3s;
    backface-visibility: hidden;
}

.tm-btn-animate:hover span {
    -webkit-transform: translateY(300%);
    -moz-transform: translateY(300%);
    -ms-transform: translateY(300%);
    transform: translateY(300%);
}


.tm-btn-cta:before { font-size: 180%; }
.tm-btn-download:before { font-size: 120%; }
.tm-btn-submit:before { font-size: 120%; }
.tm-icon-down:before { content: '\f078'; }
.tm-icon-download:before { content: '\f019'; }
.tm-icon-submit:before { content: '\f1d8'; }
.tm-icon-submit:hover:before { top: 18px; }
.tm-btn-cta:hover { color: white; }

.tm-btn-download:hover,
.tm-btn-download:focus,
.tm-btn-submit:hover,
.tm-btn-submit:focus {
    color: white;
    background-color: #3399CC;
}

.tm-btn-download span { padding-top: 10px; }


.tm-content-container {
    max-width: 1422px;
    padding-top: 0px;
    padding-bottom: 35px;
}

.tm-catalog-item-list { justify-content: space-between; }

.tm-catalog-item {
    max-width: 462px;
    display: flex;
    flex-direction: column;
    margin-bottom: 64px;
}

.tm-thumbnail-container { overflow: hidden; }
.tm-thumbnail-container img { transition: all 0.3s ease; }
.tm-thumbnail-container:hover img { transform: scale(1.2) rotate(5deg); }

.tm-img-overlay {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.4);
    cursor: pointer;
    transition: all 0.3s ease ;
}

.tm-overlay-icon {
    color: #a7a7a7;
    opacity: 1;
    font-size: 2rem;
    padding: 10px 15px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 8px;
    z-index: 1002;
    transition: all 0.3s ease;
}

.tm-img-overlay:hover { background-color: transparent; }
.tm-img-overlay:hover .tm-overlay-icon { opacity: 0; }
.tm-catalog-item-description { flex: 1; }




/*Video detail page*/

.tm-video-title { font-size: 2.5rem; }
.tm-share-box {
    font-size: 1.4rem;
    padding: 3rem;
}
.tm-share-box-title { font-size: 1.4rem; }

.tm-bg-white {
    background-color: white;
    border: 1px solid #CDCECF;
    border-radius: 5px;
}

.tm-share-button {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 24px;
}

.tm-share-button:last-child { margin-right: 0; }
.tm-text-link { color: #3399CC; }

.tm-likes-box,
.tm-btn-download {
    width: 280px;
    height: 60px;
}

.tm-likes-box { padding-top: 12px; }
.tm-video-description-box { max-width: 920px; }
.tm-text-gray { color: #6F7071; }

video {
  width: 100%;
  height: auto;
}

.fa-facebook { color: #3b5998; }
.fa-twitter { color: #00acee; }
.fa-pinterest { color: #c8232c; }
.tm-liked-icon { display: none; }
.tm-not-liked-icon { display: inline-block; }
.tm-liked-icon, .tm-not-liked-icon { margin-top: 3px; }
.tm-liked .tm-liked-icon { display: inline-block; }
.tm-liked .tm-not-liked-icon { display: none; }
.tm-welcome-text-2 { max-width: 575px; }
.tm-share-button:hover { background-color: #e9ecef; }

/*About*/

/* Contact */


@media (min-width: 992px) {
}

@media (max-width: 1419px) {
    .tm-catalog-item { margin-bottom: 30px; }
    .iframe {
        width: 100%;
        height: calc(100vw / 1.78);
    }
}

@media (max-width: 991px) {

    #tm-video {
        width: 888px;
        height: 500px;
    }

    .iframe {
        width: 100%;
        height: calc(100vw / 1.78);
    }
}

@media (max-width: 879px) {
      .iframe {
        width: 100%;
        height: calc(100vw / 1.78);
    }
}

@media (max-width: 640px) {
     .iframe {
        width: 100%;
        height: calc(100vw / 1.78);
    }
    .tm-share-box {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 419px) {
      .iframe {
        width: 100%;
        height: calc(100vw / 1.78);
    }
}