/*
	Theme Name:   Jannah Child
	Theme URI:    http://jannah.tielabs.com/
	Description:  Jannh Child Theme
	Author:       TieLabs
	Author URI:   https://tielabs.com
	Template:     jannah
	Version:      1.0.2
	License:      license purchased
	License URI:  http://themeforest.net/licenses/regular_extended
	Tags:         Tags: two-columns, buddypress, left-sidebar, right-sidebar, custom-menu, editor-style, featured-images, full-width-template, microformats, rtl-language-support, sticky-post, threaded-comments, translation-ready
	Text Domain:  jannah-child
*/


/* write custom css after this line */


/* Jannah Child: 1 column on mobile, 2 columns from tablet upward.
   Each post stacks its thumbnail above its title. */

.mag-box .posts-items {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  column-gap: 14px !important;
  row-gap: 20px !important;
  align-items: start !important;
}

.mag-box .posts-items > li.post-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: auto !important;
  min-width: 0 !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mag-box .posts-items > li.post-item > .post-thumbnail,
.mag-box .posts-items > li.post-item > a.post-thumb,
.mag-box .posts-items > li.post-item .post-thumbnail {
  display: block !important;
  position: relative !important;
  order: 0 !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 12px !important;
}

.mag-box .posts-items > li.post-item .post-thumbnail img,
.mag-box .posts-items > li.post-item > a.post-thumb img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
}

.mag-box .posts-items > li.post-item > .post-details,
.mag-box .posts-items > li.post-item .post-details {
  display: block !important;
  order: 1 !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mag-box .posts-items > li.post-item .post-title {
  display: block !important;
  margin: 0 !important;
}


/* Padrao: 2 posts por linha em tablets, computadores e celulares na horizontal */
.mag-box .posts-items {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: 28px !important;
  row-gap: 28px !important;
}

/* Somente telas pequenas em orientacao vertical: 1 post por linha */
@media screen and (max-width: 767px) and (orientation: portrait) {
  .mag-box .posts-items {
    grid-template-columns: minmax(0, 1fr) !important;
    column-gap: 14px !important;
    row-gap: 20px !important;
  }
}
