/* ============================================================
   Gallery Hero — gallery-hero.css
   BuddiesSpace / buddiespace-v2
   Figma node: 32:1295
   Design: navy bg, left text column, right image bleeds top + right
   ============================================================ */

.gallery-hero {
  position: relative;
  background-color: #21254a;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

/* ── Padded content wrapper ── */
.gallery-hero__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(60px, 6.94vw, 100px) clamp(24px, 6.67vw, 96px);
  display: flex;
  align-items: flex-start;
}

/* ── Left: text column ── */
/* Figma: 558px wide on a 1440px canvas = 38.75%; capped at 558px */
.gallery-hero__content {
  width: min(558px, 55%);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.67vw, 24px);
}

/* Figma: Inter Black 900, 56px, line-height 1.2 */
.gallery-hero__heading {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 3.89vw, 56px);
  line-height: 1.2;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Figma: Inter Regular 400, 22px, line-height 1.55 */
.gallery-hero__body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 1.53vw, 22px);
  line-height: 1.55;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0;
}

/* ── Right: image — absolutely positioned, bleeds to top and right ── */
/* Figma: 560px wide (38.9% of 1440), position left=880px top=0, height=594px */
.gallery-hero__media {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: clamp(240px, 38.89%, 560px);
  pointer-events: none;
}

.gallery-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: auto;
}

/* ── Responsive: large desktop (1200–1440px) ── */
@media (max-width: 1200px) {
  .gallery-hero__content {
    width: min(520px, 54%);
  }
}

/* ── Responsive: tablet (768–1023px) ── */
@media (max-width: 1023px) {
  .gallery-hero__content {
    width: min(440px, 56%);
  }

  .gallery-hero__media {
    width: clamp(220px, 36%, 420px);
  }
}

/* ── Responsive: mobile (max 767px) — stack vertically, image on top ── */
@media (max-width: 767px) {
  .gallery-hero {
    overflow: visible; /* allow image to sit naturally in flow */
  }

  .gallery-hero__media {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    height: clamp(240px, 60vw, 380px);
  }

  .gallery-hero__image {
    height: 100%;
    object-position: center top;
  }

  .gallery-hero__inner {
    padding-top: clamp(32px, 6vw, 56px);
    padding-bottom: clamp(40px, 8vw, 64px);
  }

  .gallery-hero__content {
    width: 100%;
  }

  .gallery-hero__heading {
    font-size: clamp(30px, 8vw, 44px);
  }

  .gallery-hero__body {
    font-size: clamp(15px, 4.2vw, 18px);
  }
}

/* ── Responsive: small mobile (max 480px) ── */
@media (max-width: 480px) {
  .gallery-hero__media {
    height: clamp(220px, 65vw, 300px);
  }
}
