.gymful-blog-archive-grid {
  --gbag-gap: 24px;
  width: 100%;
}

.gbag-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gbag-gap);
  width: 100%;
}

.gbag-item {
  min-width: 0;
  height: 100%;
}

.gbag-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gbag-card:hover,
.gbag-card:focus-within {
  transform: translateY(-4px);
}

.gbag-media-link {
  display: block;
  color: inherit;
  text-decoration: none !important;
}

.gbag-media {
  position: relative;
  height: 360px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(198,176,78,0.12);
  isolation: isolate;
}

.gbag-media img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 0.55s cubic-bezier(.22,1,.36,1);
}

.gbag-card:hover .gbag-media img,
.gbag-card:focus-within .gbag-media img {
  transform: scale(1.045);
}

.gbag-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(32,20,12,0.58) 100%);
}

.gbag-media-top {
  position: absolute;
  top: 28px;
  left: 34px;
  right: 34px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.gbag-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 20px 6px;
  border: 1px solid #C6B04E;
  border-radius: 999px;
  font-family: "Cerebri Sans", sans-serif;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F8F4ED;
}

.gbag-reading-time {
  margin-top: 8px;
  font-family: "Cerebri Sans", sans-serif;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.gbag-media-title {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  z-index: 2;
  margin: 0;
  font-family: "Cerebri Sans", sans-serif;
  font-size: clamp(24px, 2.1vw, 38px);
  line-height: 1.22;
  font-weight: 400;
  letter-spacing: 0.10em;
  color: #fff;
}

.gbag-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 24px 24px 28px;
}

.gbag-excerpt {
  width: 100%;
  font-family: "Cerebri Sans", sans-serif;
  font-size: 22px;
  line-height: 1.55;
  font-weight: 400;
  color: #111;
  margin-bottom: 28px;
}

.gbag-read-more,
.gbag-load-more {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gbag-button-gap, 8px);
  min-height: 0;
  padding: 13px 34px;
  border-radius: 999px;
  border: 1px solid #C6B04E;
  text-decoration: none !important;
  font-family: "Cerebri Sans", sans-serif;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  color: #111;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.gbag-read-more {
  align-self: center;
  margin-top: auto;
}

.gbag-read-more::before,
.gbag-load-more::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #C6B04E;
  clip-path: circle(0% at 0% 100%);
  transition: clip-path 0.55s cubic-bezier(.22,1,.36,1);
}

.gbag-read-more:hover::before,
.gbag-read-more:focus-visible::before,
.gbag-load-more:hover::before,
.gbag-load-more:focus-visible::before {
  clip-path: circle(155% at 0% 100%);
}

.gbag-read-more:hover,
.gbag-read-more:focus-visible,
.gbag-load-more:hover,
.gbag-load-more:focus-visible {
  transform: translateY(-1px);
}

.gbag-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex: 0 0 auto;
}

.gbag-btn-icon svg {
  display: block;
  width: 12px;
  height: 12px;
}

.gbag-btn-icon i {
  font-size: 12px;
  line-height: 1;
}

.gbag-load-wrap {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

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

.gbag-load-more {
  background: #C6B04E;
  border-color: #C6B04E;
  padding: 18px 48px;
  font-size: 18px;
  gap: var(--gbag-load-gap, 8px);
}

.gbag-load-more::before {
  background: rgba(255,255,255,0.22);
}

.gbag-load-more.is-loading {
  pointer-events: none;
  opacity: .68;
}

.gbag-loading-text,
.gbag-status {
  font-family: "Cerebri Sans", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #111;
  text-align: center;
}

.gbag-status {
  margin-top: 18px;
}

.gbag-infinite-trigger {
  width: 100%;
  height: 1px;
}

.gbag-item.is-loading-in {
  animation: gbagFadeInUp .38s ease both;
}

@keyframes gbagFadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gymful-blog-archive-empty {
  font-family: "Cerebri Sans", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #111;
}

@media (max-width: 1024px) {
  .gbag-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .gbag-grid {
    grid-template-columns: 1fr;
  }

  .gbag-media-top {
    top: 20px;
    left: 20px;
    right: 20px;
    gap: 10px;
  }

  .gbag-media-title {
    left: 20px;
    right: 20px;
    bottom: 24px;
    font-size: 26px;
  }

  .gbag-excerpt {
    font-size: 18px;
  }
}
