/* Single post · Hero — template-parts/gf-post-hero.php */

.gf-post-hero {
  position: relative;
  padding: 5.85rem 0 0;
  background: #07070b;
  color: #fff;
  overflow: hidden;
}

.gf-post-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(255, 204, 0, 0.14), transparent 38%),
    linear-gradient(165deg, #07070b 0%, #101118 100%);
}

.gf-post-hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 84% 10%, #000 0%, transparent 68%);
  pointer-events: none;
}

.gf-post-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 11, 0.88) 0%, rgba(7, 7, 11, 0.58) 58%, rgba(7, 7, 11, 0.88) 100%),
    linear-gradient(180deg, rgba(7, 7, 11, 0.12) 0%, rgba(7, 7, 11, 0.92) 100%);
  pointer-events: none;
}

.gf-post-hero__inner {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(2.4rem, 5vw, 3.75rem);
}

.gf-post-crumbs {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start !important;
  width: auto !important;
  gap: 0.45rem !important;
  margin: 0 0 1.5rem !important;
  padding: 0 0 0.85rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.74rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.gf-post-crumbs a {
  color: rgba(255, 255, 255, 0.72) !important;
  text-decoration: none !important;
}

.gf-post-crumbs a:hover {
  color: #ffcc00 !important;
}

.gf-post-crumbs__sep {
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 50%;
  background: rgba(255, 204, 0, 0.5);
  flex: 0 0 auto;
}

.gf-post-crumbs__current {
  color: rgba(255, 255, 255, 0.92);
  max-width: 28ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gf-post-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(14rem, 0.7fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
}

.gf-post-hero__copy {
  position: relative;
  padding-left: 1.2rem;
}

.gf-post-hero__copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 2px;
  background: linear-gradient(180deg, #ffcc00 0%, rgba(255, 204, 0, 0.12) 100%);
}

.gf-post-hero__kicker {
  margin: 0 0 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffcc00;
}

.gf-post-hero__title,
.gf-post-hero h1 {
  margin: 0 0 1rem !important;
  max-width: 18ch;
  font-family: var(--font-display), sans-serif !important;
  font-size: clamp(1.85rem, 1.2rem + 1.8vw, 3rem) !important;
  font-weight: 650 !important;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: #fff !important;
}

.gf-post-hero__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.86rem;
}

.gf-post-hero__dot {
  width: 0.2rem;
  height: 0.2rem;
  border-radius: 50%;
  background: rgba(255, 204, 0, 0.5);
}

.gf-post-hero--field .gf-post-hero__bg,
.gf-post-hero--field .gf-post-hero__grid-overlay,
.gf-post-hero--field .gf-post-hero__shade {
  display: none;
}

.gf-post-hero--field {
  background-color: var(--gf-post-field, #07070b);
}

.gf-post-hero--field .gf-post-crumbs {
  border-bottom-color: rgba(255, 255, 255, 0.22);
}

.gf-post-hero--field .gf-post-hero__media {
  background: transparent;
  border: 0;
  min-height: 0;
  padding: 0;
}

.gf-post-hero--field .gf-post-hero__media img {
  max-width: 18rem;
  max-height: 18rem;
}

.gf-post-hero__media {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 16rem;
  padding: 1.75rem;
  background: #15161c;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gf-post-hero__media img {
  width: auto;
  height: auto;
  max-width: 12.5rem;
  max-height: 12.5rem;
  object-fit: contain;
  display: block;
}

@media (max-width: 860px) {
  .gf-post-hero__grid {
    grid-template-columns: 1fr;
  }

  .gf-post-hero__title,
  .gf-post-hero h1 {
    max-width: none;
  }

  .gf-post-hero__media {
    min-height: 12rem;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 640px) {
  .gf-post-hero {
    padding-top: 5.1rem;
  }
}
