/*
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
/* ------------------------------------------------------------------------- */

/* Max Lines */
.jeg_post.jeg_pl_sm .jeg_post_title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Font Fix */
.jeg_header .fa-discord:before {
  display: none;
}

/* Header */
.jeg_header .jeg_midbar, .jeg_midbar.jeg_container.normal {
  margin-bottom: 0;
}
.jeg_topbar .jeg_nav_item {
  border-right: none;
}

/* Post Gallery Captions */
.gallery-item .gallery-caption {
  position: relative;
  top: unset;
  bottom: unset;
  left: unset;
  right: unset;
  background: #fff2;
  margin: 0 0 2em;
  padding: 1em 0.5em;
  opacity: 1;
}
.gallery-item:hover .gallery-caption {
  top: unset;
  bottom: unset;
  left: unset;
  right: unset;
  opacity: 1;
  background: #fff3;
}

.mejs-controls {
  display: none !important;
  visibility: hidden !important;
}

/* Post Sidebar */
.jeg_sidebar  .jeg_postblock .jeg_posts .jeg_meta_date {
  display: none;
}

/* Popup Thumbnails */
.jeg_popup_content .thumbnail-container > img {
  object-fit: cover;
  object-position: left;
}

/* Autoload Bug Temp Fix */
.jeg_posts_masonry {
  min-height: 150vh;
}

/* Overflow fix */
@media only screen and (max-width: 1200px) {
  .jeg_slider_type_7 .jeg_slide_caption .jeg_post_excerpt {
    display: none;
  }
}

/* Main Content Fix */
.jeg_main .jeg_container .jeg_content.jeg_singlepage {
  padding-top: 4em;
}
.jeg_hero_style_6 .jeg_post_meta, .jeg_hero_style_6 .jeg_post_title a {
  line-height: 1.3em;
}

/* Hide Main Shares */
.jeg_share_top_container {
  display: none;
}


/* Magento Ads */
.magento-wrapper li{
  border: none;	
}
.magento-wrapper ul.products li.product .image img {
  display: block;
	margin: 0 auto 10px;
  object-fit: cover;
  height: 200px;
  width: 100%;
  max-width: 200px;
}
.magento-wrapper .products  .name, .magento-wrapper .products  .price {
  font-size: 1.0em;
  line-height: 1.4em;
  margin: 0.5em auto;
  max-width: 250px;
}
.magento-wrapper .products a.buy-it-now {
    display: none;
}
.magento-wrapper ul.products {
  display: flex;
  flex-wrap: wrap;
}
.magento-wrapper ul.products li.product{
  -webkit-box-flex: 0;
  -ms-flex: 0 0 50%;
  flex: 0 0 50%;
  width: 50%;
  margin: 0 auto;
  padding: 0 5px 10px;
  min-width: 120px;
}

/* Social Icons */
.jeg_topbar .socials_widget.nobg a{
  margin: 0 10px;
}
.socials_widget.nobg .jeg_discord_chat .fa span{
  content: url(image/discord-white.png);
  image-rendering: pixelated;
  image-rendering: -webkit-optimize-contrast;
  width: 1em;
  height: 1em;
  margin-bottom: 3px;
}

/* Photoswipe & Search Opacity */
.pswp .pswp__bg, .jeg_search_expanded .jeg_search_modal_expand {
  opacity: 0.94 !important;
}

/* Search Close */
.jeg_header .jeg_search_expanded .jeg_search_wrapper.jeg_search_modal_expand .jeg_search_toggle {
  right: 1em;
  top: 0.5em;
  font-size: 32px;
}

/* Post Lists */
.jeg_post .jeg_post_excerpt p {
  font-size: 1rem;
  line-height: 1.4rem;
}

/* Min Thumb Size */
.thumbnail-container > img {
  object-fit: cover;
}

.jeg_pl_lg_box .jeg_thumb img, .jeg_pl_md_box .jeg_thumb img {
  min-height: 200px;
  object-fit: cover;
}

@media only screen and (max-width: 667px) {
  .jeg_pl_lg_box .jeg_post_title, .jeg_pl_md_box .jeg_post_title {
    font-size: 18px;
  }
}

/* Footer */
.jeg_footer .footer_widget {
  text-align: center;
}
.jeg_footer .footer_widget .jeg_postblock_28 {
  text-align: left;
}

/* Hide Theme Update Notifications */
.jnews-notice-update {
  display: none;
}

#simple-css-textarea {
  height: unset !important;
}
