/* ================================================
   FC HANLEY — Gallery / Coaching School Styles
   Matches site palette:
     Blues:  #004080 (dark)  #0055a4  #0f76dd (mid)
     Gold:   #ffcc00
     Font:   Poppins
   ================================================ */


/* ── MAIN GALLERY WRAPPER ───────────────────────
   Badge clearance is handled by .hero above —
   gallery just needs normal spacing from the CTA  */

.gallery {
  margin-top: 24px;
  padding: 0 16px 48px;
  text-align: center;
}

/* Hero section — let the badge overlap naturally,
   padding-top pushes the text content clear of it */
.hero {
  margin-top: 0;
  padding-top: 70px !important;
}


/* ── SECTION HEADING ────────────────────────────*/

.gallery > h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #003366;
  margin-bottom: 0.3em;
  padding-top: 28px;
  position: relative;
  display: inline-block;
}

/* Gold underline accent */
.gallery > h1::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffcc00, transparent);
  margin-top: 8px;
  border-radius: 2px;
}


/* ── GALLERY GRID ───────────────────────────────*/

.gallery-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 36px auto 0;
}


/* ── COACH CARDS ────────────────────────────────*/

.gallery-item {
  background: linear-gradient(160deg, #0d6ecf 0%, #004080 100%);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 40, 100, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

/* Gold shimmer top line */
.gallery-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffcc00, transparent);
  z-index: 1;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0, 40, 100, 0.45);
}

/* Coach photo */
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* Coach name */
.image-description {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  padding: 12px 10px 14px;
  margin: 0;
  line-height: 1.3;
}

/* Head Coach — white name, gold banner stays */
.gallery-item:first-child .image-description {
  color: #fff;
}

.gallery-item:first-child::after {
  content: '⭐ Head Coach';
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #003366;
  background: #ffcc00;
  padding: 3px 0 5px;
}


/* ── RESPONSIVE ─────────────────────────────────*/

@media (max-width: 600px) {
  .gallery {
    margin-top: 16px;
    padding: 0 12px 36px;
  }

  .gallery-images {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .gallery-item img {
    height: 160px;
  }
}