.am_ajax_post_grid_wrap {
  box-sizing: border-box;
}

.asr-filter-div .asr_taxonomy {
  display: inline-flex;
  cursor: pointer;
  background: transparent;
  padding: 5px 10px;
  margin: 0 2px 2px 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  align-content: center;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  min-height: 40px;
}

.asr-filter-div ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gm-taxonomy-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.gm-taxonomy-filter input[type='checkbox'],
.gm-taxonomy-filter input[type='radio'] {
  display: none;
}

.asr_taxonomy:hover {
  background: rgba(0, 0, 0, 0.05);
}

.gm-taxonomy-item input:checked + label {
  background: rgba(0, 0, 0, 0.1);
}

.asr-ajax-container {
  position: relative;
}

.asr-ajax-container .asr-loader {
  display: none;
}

/***************** * New Design *****************/
.asr-filter-div {
  margin-bottom: 30px;
}

.am_grid_col {
  padding: 0 15px;
}

.am_post_grid {
  display: -ms-flexbox;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -ms-flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

/*Loading*/
.asr-loader {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  text-align: center;
  z-index: 9;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
}

.lds-dual-ring {
  display: inline-block;
  width: 80px;
  height: 80px;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  top: 50%;
  transform: translateY(-50%);
}

.lds-dual-ring:after {
  content: ' ';
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 1px solid #333;
  border-color: #333 transparent #333 transparent;
  -webkit-animation: lds-dual-ring 1.2s linear infinite;
  animation: lds-dual-ring 1.2s linear infinite;
}

@-webkit-keyframes lds-dual-ring {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes lds-dual-ring {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* Layout 1 */
.am_single_grid {
  box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.2);
  height: 100%;
  display: block;
}

.am_thumb {
  height: 200px;
  overflow: hidden;
}

.am_thumb img {
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
  height: 100%;
  width: 100%;
  margin: 0 !important;
  border-radius: 0;
  -webkit-transition: -webkit-transform 0.2s ease-in-out;
  transition: transform 0.2s ease-in-out;
}

.am_grid_col .am_single_grid .am_cont a {
  text-decoration: none;
}

.am_cont {
  padding: 20px;
}

.am_single_grid:hover .am_thumb img {
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
  transform: scale(1.1);
}

.am_grid_col {
  margin-bottom: 30px;
}

.am_grid_col-3 {
  -ms-flex: 0 0 33.333333%;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 33.333333%;
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.am_grid_col-4 {
  -ms-flex: 0 0 25%;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 25%;
  flex: 0 0 25%;
  max-width: 25%;
}
/* End Layout 1 */

/* Layout 1 Responsive */
@media only screen and (max-width: 767px) {
  .am_grid_col-3 {
    -ms-flex: 0 0 100%;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .am_grid_col-4 {
    -ms-flex: 0 0 100%;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1023px) {
  .am_grid_col-4 {
    -ms-flex: 0 0 33.333333%;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 33.333333%;
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}
/* End Layout 1 Responsive */

/* Paginaion */
.am_posts_navigation_init {
  margin: 30px 0;
  text-align: center;
}

.am_posts_navigation_init .page-numbers {
  min-width: 30px;
  display: inline-flex;
  height: 30px;
  text-align: center;
  border: 1px solid #c6c6c6;
  padding: 4px 4px;
  text-decoration: none;
  align-items: center;
  justify-content: center;
}

.am_posts_navigation_init .page-numbers.current,
.am_posts_navigation_init .page-numbers:hover {
  background: #f0f0f0;
}

.am_posts_navigation {
  text-align: center;
  margin-bottom: 30px;
}
/* End Paginaion */

/* Loding Animation */
.am-post-grid-load-more {
  position: relative;
}

.am-post-grid-load-more.loading:after {
  content: '';
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  animation: spin 1s ease-in-out infinite;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 9;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* End Loading Animation */

.am_has_animation .am_grid_col {
  display: none;
}

/* Style 1 CSS */
.gm-admin-notice {
  font-family: monospace;
  font-size: 14px;
  border: 1px solid #ffbf05;
  width: 100%;
  border-style: dashed;
  padding: 5px 10px;
}

.am__readmore,
.gm_read_more {
  white-space: nowrap;
  cursor: pointer;
}

.am__title a {
  color: inherit;
}

/* Style the main scrollbar */
.gm-taxonomy::-webkit-scrollbar {
  width: 1px;
  height: 1px;
}

/* Style the scrollbar thumb (handle) */
.gm-taxonomy::-webkit-scrollbar-thumb {
  background-color: transparent;
}

/* Style the scrollbar track */
.gm-taxonomy::-webkit-scrollbar-track {
  background-color: #f0f0f0;
}

/* Style the scrollbar corner */
.gm-taxonomy::-webkit-scrollbar-corner {
  background-color: transparent;
}

/* Style the scrollbar resizer */
.gm-taxonomy::-webkit-resizer {
  background-color: transparent;
}

.gm-term {
  white-space: nowrap;
  display: inline-block;
}

.gm-comments-link svg {
  width: 18px;
  height: 18px;
  margin-right: 4px;
  vertical-align: middle;
}

.gm-title-tooltip [title] {
  position: relative;
}

.gm-title-tooltip [title]:hover:before {
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  background: #444;
  border-radius: 3px;
  color: #fff;
  content: attr(title);
  font-size: 11px;
  padding: 4px 10px;
  position: absolute;
  white-space: nowrap;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
}

.infinite_scroll.am-post-grid-load-more {
  text-indent: -9999px;
  overflow: hidden;
  position: relative;
  background-color: transparent !important;
  border: 0 !important;
}

.infinite_scroll.am-post-grid-load-more.loading:after {
  border-top-color: #000;
}
