/*---- Common -----*/
.hidden {
  display: none !important;
}

/*---- End common -----*/

/*----- Styling YT block -----*/
.tsl-video-thumbnail {
  width: 100vw;
}

.tsl-video-main {
  position: relative;
  width: 100%;
}

.tsl-video-gradient-top {
  background-repeat: repeat-x;
  background-image: url('/wp-content/plugins/youtube-block/image/yt-hf.png');
  -moz-transition: opacity .3s cubic-bezier(0.0, 0.0, 0.2, 1);
  -webkit-transition: opacity .3s cubic-bezier(0.0, 0.0, 0.2, 1);
  transition: opacity .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.tsl-video-notavailable {
  background: #000;
  color: #fff;
  padding: 25% 40px;
}

.tsl-video-snippets {
  position: absolute;
  top: 0;
  left: 0;
  width: inherit;
  height: inherit;
  transition: linear 0.3s color, linear 0.3s background-color;
}

.tsl-video-play:hover .tsl-video-snippets {
  transition: linear 0.3s color, linear 0.3s background-color;
  background: rgba(0, 0, 0, 0.3);
}

.tsl-video-title {
  padding: 10px 10px 60px;
  font-size: 18px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tsl-video-overlay {
  background: #000;
}

.tsl-video-thumbnail img {
  opacity: 1;
  transition:
    opacity 0.2s linear 0s;
  width: 100%;
}

.tsl-video-playicon {
  position: absolute;
  width: 70px;
  height: 70px;
  padding: 10px;
  font-size: 42px;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  transition: linear 0.1s color, linear 0.1s background-color;
  z-index: 2;
}

.tsl-video-play {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1;
  top: 0;
  left: 0;
  overflow: hidden;
}

.tsl-video-play:hover .tsl-video-playicon {
  transition: linear 0.3s color, linear 0.3s background-color;
}

.tsl-video-play:hover .tsl-video-playicon {
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: transform;
  transition-property: transform;
  -webkit-transform: translateY(-8px);
  transform: translateY(-8px);
}

.tsl-video-play .tsl-video-playicon {
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: transform;
  transition-property: transform;
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
}

.tsl-video-play .tsl-video-playicon img {
  object-fit: contain;
}

/*----- End styling YT block in content -----*/

/*----- Styling YT block in homepage -----*/
.modtslv {
  background-color: #eee;
  padding: .5rem 2rem;
  margin-bottom: 2rem;
}

.modtslv .mod-tslv-channel-info {
  display: block;
  margin-bottom: 1rem;
}

.modtslv .mod-tslv-channel-info h3 {
  display: inline-block;
  color: #000;
  font-variant: all-petite-caps;
  font-weight: 600;
}

.modtslv .mod-tslv-channel-info .mod-tslv-subBtn {
  float: right !important;
}

.modtslv .mod-tslv-main {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}

/*.modtslv .mod-tslv-others {
	position: relative;
	width: 100%;
	height: auto;
	padding-bottom: 0;
	margin: 25px 0;
}
.modtslv .mod-tslv-others .mod-tslv-video {
	position: absolute;
	width: 48.5%;
	height: 100%;
}
.modtslv .mod-tslv-others .mod-tslv-video#tslv-1 {
	top: 0;
	left: 0;
}
.modtslv .mod-tslv-others .mod-tslv-video#tslv-2 {
	right: 0;
}*/

.modtslv .mod-tslv-others {
  position: relative;
  width: 100%;
  height: 250px;
  padding-bottom: 0;
  margin: 25px 0;
}

.modtslv .mod-tslv-others .mod-tslv-video {
  position: relative;
  width: 48.5%;
  height: 100%;
}

.modtslv .mod-tslv-others .mod-tslv-video#tslv-1 {
  /*top: 0;*/
  /*left: 0;*/
  float: left;
}

.modtslv .mod-tslv-others .mod-tslv-video#tslv-2 {
  /*right: 0;*/
  float: right;
}

/*----- End styling YT block in homepage -----*/

@media (max-width: 768px) {
  .mod-tslv-subBtn {
    display: none;
  }
}

@media (max-width: 782px) {
  .modtslv .mod-tslv-others .mod-tslv-video {
    width: 100%;
  }

  .modtslv .mod-tslv-others .mod-tslv-video {
    height: auto;
    position: relative;
    margin-top: 25px;
  }

  .modtslv .mod-tslv-others {
    height: auto;
  }

  .modtslv .mod-tslv-others .mod-tslv-video#tslv-1,
  .modtslv .mod-tslv-others .mod-tslv-video#tslv-2 {
    float: none;
  }
}
