/* Blog listing: EAEL markup + a JS-free grid fallback so the clone stays polished
   even though the original masonry script was removed. */
#eael-post-grid-ceefeba .eael-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin: 0;
  position: relative;
}
#eael-post-grid-ceefeba .eael-post-grid .eael-grid-post,
#eael-post-grid-ceefeba .eael-post-grid .eael-post-grid-column {
  float: none !important;
  width: auto;
  padding: 0 !important;
  margin: 0 !important;
  clear: none !important;
}
#eael-post-grid-ceefeba .eael-grid-post-holder {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#eael-post-grid-ceefeba .eael-grid-post-holder-inner {
  display: flex;
  flex-direction: column;
}
#eael-post-grid-ceefeba .eael-entry-media {
  position: relative;
  overflow: hidden;
}
#eael-post-grid-ceefeba .eael-entry-thumbnail {
  position: relative;
  padding-bottom: 66% !important;
  overflow: hidden;
  background: #f3f4f6;
}
#eael-post-grid-ceefeba .eael-entry-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none !important;
}
#eael-post-grid-ceefeba .eael-entry-wrapper {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
#eael-post-grid-ceefeba .eael-entry-title {
  font-size: 20px;
  line-height: 1.32;
  margin: 0 0 10px;
}
#eael-post-grid-ceefeba .eael-entry-title a {
  display: block;
}
#eael-post-grid-ceefeba .eael-entry-content {
  flex: 1 1 auto;
}
#eael-post-grid-ceefeba .eael-grid-post-excerpt p {
  margin: 0;
  color: #5c5c5c;
  font-size: 15px;
  line-height: 1.6;
}
#eael-post-grid-ceefeba .eael-entry-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
}
#eael-post-grid-ceefeba .eael-entry-media:hover .eael-entry-overlay {
  opacity: 1;
}
#eael-post-grid-ceefeba .eael-entry-overlay i {
  color: #fff;
  font-size: 18px;
}
#eael-post-grid-ceefeba .eael-entry-overlay > a {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.blog-load-more-wrap {
  justify-content: center;
  margin-top: 40px;
}
.blog-load-more-wrap .eael-load-more-button {
  cursor: pointer;
  text-decoration: none;
}
.blog-load-more-wrap .eael-load-more-button.button--loading {
  opacity: 0.75;
  pointer-events: none;
}
.blog-load-more-wrap .eael-btn-loader {
  display: none;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: blogspin 0.7s linear infinite;
}
.blog-load-more-wrap .eael-load-more-button.button--loading .eael-btn-loader {
  display: inline-block;
}
@keyframes blogspin {
  to { transform: rotate(360deg); }
}
.blog-no-more {
  text-align: center;
  margin: 28px 0 0;
  color: #5c5c5c;
  font-size: 15px;
}
.blog-noscript {
  text-align: center;
  margin-top: 16px;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 10px;
}
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e1e1e1;
  border-radius: 3px;
  background: #fff;
  color: #23527c;
  text-decoration: none;
  line-height: 1;
}
.blog-pagination .page-numbers:hover {
  border-color: #23527c;
}
.blog-pagination .page-numbers.current {
  background: #23527c;
  border-color: #23527c;
  color: #fff;
}
.blog-pagination .page-numbers.disabled {
  opacity: 0.45;
  pointer-events: none;
}
.blog-pagination .prev,
.blog-pagination .next {
  min-width: auto;
}

@media (max-width: 700px) {
  #eael-post-grid-ceefeba .eael-post-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  #eael-post-grid-ceefeba .eael-entry-wrapper {
    padding: 16px;
  }
}

.blog-load-more-wrap.is-hidden {
  display: none !important;
}
