* {
  box-sizing: border-box;
}

.row::after {
  content: "";
  clear: both;
  display: block;
}

html {
  font-family: "Lucida Sans", sans-serif;
}

[class*="grid_"] {
  width: 100%;
  margin-bottom: 20px;
}

[id$="-container"]{
    width: 100% !important;
    padding: 15px;
    margin: 0 auto;
}

[class*="mt-"]{
	margin-top:15px;
}

#container, .container{
  width: 100%;
  padding: 10px;
  margin: 0 auto;
}

.thumbnail{
  width: 100%;
  margin: auto;
  object-fit: cover;
}


.homepage-catalogue .thumbnail_wrapper img {
  object-fit: cover;
  /*min-height: 336px;*/
  /*max-height: 336px;*/
  height: 336px;
  margin-bottom: 0;
  width: 100%;

}

.justify-content-between{
  justify-content: space-between;
}

.slide_text {
  font-size: 0.65em;
}

.d-none{
	display:none;
}

@media only screen and (min-width: 768px) {
  /* For desktops: */
  .grid_1 {width: 8.33%;}
  .grid_2 {width: 16.66%;}
  .grid_3 {width: 25%;}
  .grid_4 {width: 33.33%;}
  .grid_5 {width: 41.66%;}
  .grid_6 {width: 50%;}
  .grid_7 {width: 58.33%;}
  .grid_8 {width: 66.66%;}
  .grid_9 {width: 75%;}
  .grid_10 {width: 83.33%;}
  .grid_11 {width: 91.66%;}
  .grid_12 {width: 100%;}

  .slide_text {
    font-size: inherit;
  }

  [class*="grid_"] {
    padding-left: 10px;
    padding-right: 10px;
  }
    .d-md-block{
        display:block;
    }
    .d-md-none{
        display:none !important;
    }

  .homepage-catalogue {
    margin-left: -10px;
    margin-right: -10px;
  }

  .grid_12.justify-content-between {
    padding-left: 0;
    padding-right: 0;
  }

}

@media only screen and (min-width: 1140px) {
  #container, .container{
    width: 1140px;
    padding-left: 10px;
    padding-right: 10px;

  }

  .d-lg-flex{
    display: flex;
  }

  [name*="filterCategoryDiv"]{
    height:100%;
    position: -webkit-sticky;
    position: -moz-sticky;
    position: -ms-sticky;
    position: -o-sticky;
    position: sticky;
    top:0;
  }
}

.d-block{
	display: block;
}

.grid_home_film {
  width: 100%;
}

.tf-film-title {
  padding-left: 10px;
  padding-right: 10px;
}

.grid_filter {
  width: 100%;
}

.grid_home_films,
.grid_cate_films,
.grid_film_films {
  width: auto;
  margin-left: -10px;
  margin-right: -10px;
}

.grid_home_film,
.grid_film_film {
  width: 100%;
  padding-left: 10px;
  padding-right: 10px;
}

.tf-clients-logos .tf-clients-logo {
  width: 100% !important;
}

@media (min-width: 360px) {
  .grid_home_film {
    width: 50%;
  }

  .grid_home_film,
  .grid_film_film,
  .tf-category-publicity .grid_film_film {
    width: 50%;
  }

  .tf-clients-logos .tf-clients-logo {
    width: 50% !important;
  }
}

@media (min-width: 576px) {
  .grid_home_film,
  .grid_film_film,
  .tf-category-publicity .grid_film_film {
    width: 33.3333333333%;
  }

  .tf-clients-logos .tf-clients-logo {
    width: 33.3333333333% !important;
  }
}

@media (min-width: 768px) {
  .homepage-catalogue .home-title {
    padding: 15px 10px;
  }

  .grid_home_film {
    width: 50%;
  }

  .grid_cate_films,
  .grid_film_films {
    margin-left: 0;
    margin-right: 0;
  }

  .grid_film_film {
    width: 25%;
    padding-left: 10px;
    padding-right: 10px;
  }

  .tf-category-publicity .grid_film_film {
    width: 33.3333333333%;
  }
}

@media (min-width: 992px) {
  .grid_home_film {
    width: 33.3333333333%;
  }

  .grid_filter {
    width: 25%;
  }

  .grid_film_films {
    width: 75%;
  }

  .grid_film_film {
    width: 33.3333333333%;
  }

  .tf-category-publicity .grid_film_film {
    width: 25%;
  }
}

@media (min-width: 1080px) {
  .grid_filter {
    width: 16.6666666666%;
  }

  .grid_film_films {
    width: 83.3333333333%;
  }

  .grid_film_film {
    width: 25%;
  }

  .tf-category-publicity .grid_film_film {
    width: 25%;
  }

  .tf-clients-logos .tf-clients-logo {
    width: 16.66666666666% !important;
  }
}

@media (min-width: 1200px) {
  .tf-category-publicity .grid_film_film {
    width: 16.66666666666%;
  }
}



@media (max-width: 991.98px) {
  .box h2.film-title,.taxonomybox h2.entry-title {
    font-size: 18px;
    font-weight: 300;
    line-height: 24px;
    padding: 0 4px;
  }

  .box .tf-af-link:hover h2.film-title {
    padding-left: 8px;
  }

  p.film-desc {
    font-size: 12px;
    line-height: 18px;
    padding: 0 4px;
  }
}
