/*
Theme Name: JNews - Child Theme
Version: 1.0.0
Theme URI: http://themeforest.net/?ref=jegtheme
Description: A basic starter child theme for customization purpose of JNews theme.
Author: Jegtheme
Author URI: http://themeforest.net/user/jegtheme?ref=jegtheme
Template: jnews
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ------------------------------------------------------------------------- *
 *  Theme customization starts here
/* ------------------------------------------------------------------------- */

.jeg_slider_type_custom .jeg_slide_caption {
    left: auto;
    right: 0;
    padding-right: 0;
    padding-left: 40px;
}
.jeg_slider_type_custom_wrapper .tns-outer {
  visibility: visible;
  position: relative;
}
.jeg_slider_type_custom .jeg_slide_caption {
  color: #fff;
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 60px 40px 30px 0;
  width: 100%;
  overflow: hidden;
  background: -o-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 70%);
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0)), color-stop(70%, rgba(0, 0, 0, 0.65)));
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 70%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#a6000000', GradientType=0);
}
.jeg_slider_type_custom .jeg_slide_item {
  position: relative;
  -webkit-backface-visibility: hidden;
}
.jeg_slider_type_custom .jeg_caption_container {
  padding: 0 0 0 30px;
}
.jeg_slider_type_custom .jeg_slide_caption .jeg_post_title {
  font-size: 34px;
  line-height: 1.1;
  margin-top: 10px;
}
.jeg_slider_type_custom_wrapper .tns-outer .tns-controls button {
  font-size: 14px;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 15px;
  height: 40px;
  line-height: 40px;
  width: 40px;
  text-align: center;
  background: #212121;
  border: 0;
  transform: translateY(-50%);
  -webkit-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
  opacity: .6;
  z-index: 999;
  border-radius: 100%;
  margin: 0;
}
.jeg_slider_type_custom_wrapper .tns-controls button:before {
  font-family: 'jegicon' !important;
}
.jeg_slider_type_custom_wrapper .tns-controls button.tns-next {
  right: 15px;
  left: unset;
}
.jeg_slider_type_custom_wrapper button.tns-prev:before {
  content: '\65' !important;
}
.jeg_slider_type_custom_wrapper button.tns-next:before {
  content: '\66' !important;
}
.jeg_slider_type_custom_wrapper:hover button.tns-prev {
  opacity: 1;
}
.jeg_slider_type_custom_wrapper:hover button.tns-next {
  opacity: 1;
}
.jeg_slider_wrapper .jeg_slider.jeg_slider_type_custom {
  position: relative;
  visibility: visible;
  opacity: 1;
}
.jeg_slider_type_custom_wrapper .jeg_slider_thumbnail_wrapper {
  visibility: visible;
  position: relative;
}
.jeg_slider_thumbnail:not(.tns-slider) {
  margin: 0px -5px;
}
.jeg_slider_type_custom .jeg_slide_item:not(.tns-item):not(:first-child) {
  display: none;
}
.jeg_slider_type_custom_wrapper .jeg_slider_thumbnail:not(.tns-slider) .jeg_slide_thumbnail_item_wrapper {
  width: 14.2857142857%;
  display: inline-block;
  padding: 0;
}
.jeg_slider_type_custom_wrapper .jeg_slider_thumbnail:not(.tns-slider) .jeg_slide_thumbnail_item_wrapper:nth-child(n + 8) {
/*  display: none;*/
}
@media only screen and (max-width: 480px) {
  .jeg_slider_type_custom_wrapper .jeg_slider_thumbnail:not(.tns-slider) .jeg_slide_thumbnail_item_wrapper {
    width: 25%;
  }

  .jeg_slider_type_custom_wrapper .jeg_slider_thumbnail:not(.tns-slider) .jeg_slide_thumbnail_item_wrapper:nth-child(n + 5) {
/*    display: none;*/
  }
}
.jnews-dark-nocookie .jeg_slider_type_custom_wrapper .tns-controls button {
    background-color: var(--j-bg-color) !important;
}
.jnews-dark-nocookie .jeg_slider_type_custom_wrapper .tns-controls button.tns-next {
    background-color: var(--j-grey-bg-color) !important;
}
.jnews-dark-mode .jeg_slider_type_custom_wrapper .tns-controls button {
    background-color: var(--j-bg-color) !important;
}
.jnews-dark-mode .jeg_slider_type_custom_wrapper .tns-controls button.tns-next {
    background-color: var(--j-grey-bg-color) !important;
}


.jeg_slider_type_custom.jeg_slider .jeg_slider_item,
.jeg_slider_thumbnail .tns-slide-active.current .jeg_slide_thumbnail_item:before,
.jeg_slider_thumbnail .tns-slide-active.current .jeg_slide_thumbnail_item:after {
    display: none;
}
.jeg_slider_type_custom_wrapper .jeg_slide_thumbnail_item {
  text-align: center;
}
.jeg_slider_type_custom_wrapper .jeg_slider_thumbnail.jeg_tns_active {
  width: 100% !important;
  margin-top: 0;
}
.jeg_slider_type_custom_wrapper .jeg_slide_thumbnail_item a {
    color: #212121;
    display: block;
    padding: 10px 0;
    border-bottom: 3px solid #efefef;
    background-color: #f5f5f5;
    font-size: 15px;
    font-weight: 500;
}
.jeg_slider_type_custom_wrapper .jeg_slide_thumbnail_item_wrapper.current a {
  border-color: #f70d28;
}
.jeg_slider_type_custom_wrapper .jeg_slide_caption .jeg_post_category a {
  font-size: 15px;
  padding: 5px 6px;
}


@media only screen and (max-width: 1024px) {
  .jeg_slider_type_custom .jeg_slide_caption .jeg_post_title {
    font-size: 23px;
  }
}
@media only screen and (max-width: 768px) {
  .jeg_slider_type_custom .jeg_caption_container {
    min-width: 100%;
  }
  .jeg_slider_type_custom .jeg_slide_caption .jeg_post_title {
    font-size: 26px;
  }
}
@media only screen and (max-width: 568px) {
  .jeg_slider_type_custom .jeg_slide_caption {
    padding: 20px 40px 20px 0;
  }
  .jeg_slider_type_custom .jeg_slide_caption .jeg_post_title {
    font-size: 20px;
    line-height: 1.4;
  }
}
@media only screen and (max-width: 480px) {
  .jeg_slider_type_custom .jeg_slide_caption {
    padding: 15px 40px 15px 0;
  }
  .jeg_slider_type_custom .jeg_caption_container {
    padding: 0 20px;
  }
  .jeg_slider_type_custom .jeg_post_category a,
  .jeg_slider_type_custom .jeg_slide_caption .jeg_post_meta {
    font-size: 10px;
    line-height: 10px;
  }
  .jeg_slider_type_custom .jeg_slide_caption .jeg_post_title {
    font-size: 19px;
    margin-bottom: 5px;
    line-height: 1.3;
  }
}
@media only screen and (max-width: 320px) {
  .jeg_slider_type_custom .jeg_slide_caption .jeg_post_title {
    font-size: 1em;
    line-height: 1.3;
    margin-top: 5px;
  }
  .jeg_slider_type_custom .jeg_slide_caption .jeg_post_meta {
    display: none;
  }
}