/* ============================================================
   Gallery: Sharing Our Work
   Figma node 49:996 — BuddieSpace v2
   ============================================================ */

.gallery-sharing {
  background: #ffffff;
  /* Figma: pt-40px, px-96px, pb-100px */
  padding: clamp(24px, 2.78vw, 40px)
           clamp(20px, 6.67vw, 96px)
           clamp(56px, 6.94vw, 100px);
}

/* ---- Heading ---- */
/* Figma: Inter Bold 54px, #21254a, centered, line-height 1.3 */
.gallery-sharing__title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 3.75vw, 54px);
  color: #21254a;
  text-align: center;
  line-height: 1.3;
  margin: 0 0 clamp(32px, 3.89vw, 56px);
  text-transform: uppercase;
}

/* ---- Grid ---- */
/* Figma: flex-col, gap-56px */
.gallery-sharing__grid {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 3.89vw, 56px);
}

/* ---- Row ---- */
/* Figma: flex-row, gap 78-80px, items-start */
.gallery-sharing__row {
  display: flex;
  flex-direction: row;
  gap: clamp(32px, 5.56vw, 80px);
  align-items: flex-start;
}

/* ---- Item ---- */
/* Figma: flex-row, gap-32px, items-center, flex-1 */
.gallery-sharing__item {
  display: flex;
  flex-direction: row;
  gap: clamp(20px, 2.22vw, 32px);
  align-items: center;
  flex: 1 0 0;
  min-width: 0;
}

/* ---- Icon ---- */
/* Figma: 100×100px, overflow clip */
.gallery-sharing__icon-wrap {
  width: clamp(72px, 6.94vw, 100px);
  height: clamp(72px, 6.94vw, 100px);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-sharing__icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---- Text block ---- */
/* Figma: flex-col, gap-4px */
.gallery-sharing__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

/* ---- Title group (item 1 has two bold lines) ---- */
.gallery-sharing__item-title-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ---- Item title ---- */
/* Figma: Inter SemiBold 24px, #21254a, line-height 1.3 */
.gallery-sharing__item-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(17px, 1.67vw, 24px);
  color: #21254a;
  line-height: 1.3;
  margin: 0;
}

/* ---- Item subtitle ---- */
/* Figma: Inter Regular 22px, #21254a, line-height 1.55 */
.gallery-sharing__item-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.53vw, 22px);
  color: #21254a;
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   Responsive — tablet (≤ 1024px): reduce icon/font sizes
   ============================================================ */
@media (max-width: 1024px) {
  .gallery-sharing__row {
    gap: clamp(24px, 3vw, 48px);
  }
}

/* ============================================================
   Responsive — mobile (≤ 768px): stack rows and items
   ============================================================ */
@media (max-width: 768px) {
  .gallery-sharing__row {
    flex-direction: column;
    gap: 32px;
  }

  .gallery-sharing__item {
    flex: none;
    width: 100%;
  }
}

/* ============================================================
   Responsive — small mobile (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .gallery-sharing__icon-wrap,
  .gallery-sharing__icon {
    width: 64px;
    height: 64px;
  }

  .gallery-sharing__item {
    gap: 16px;
  }
}
