/* Holy Fizz — Instagram / UGC wall
   Matched to holyfizzthailand.com: Playfair Display 700, Poppins, sage #8FA878.
   The theme loads both faces already, so nothing is fetched here. */

.hfu {
  --d: "Playfair Display", Georgia, serif;
  --b: Poppins, -apple-system, "Segoe UI", sans-serif;
  --ink: #2C2A27;
  --sage: #8FA878;
  --accent: #5F7A4D;
  --accent-dk: #4C6440;
  --line: #E6EBDE;
  --cream: #FAF8F3;

  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 68px) 20px;
  font-family: var(--b);
  color: var(--ink);
  font-weight: 300;
}

/* ---------- header: title left, follow button right ---------- */
.hfu__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.hfu__headtext { flex: 1 1 340px; min-width: 0; }
.hfu .hfu__title {
  font-family: var(--d);
  font-weight: 700;
  font-size: clamp(27px, 4.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0 0 8px;
  color: var(--ink);
  text-wrap: balance;
}
.hfu .hfu__sub {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--sage);
  max-width: 50ch;
}

.hfu .hfu__follow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  background: var(--accent);
  color: #fff;
  font-family: var(--b);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  letter-spacing: .01em;
  padding: 14px 26px;
  border-radius: 99px;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.hfu .hfu__follow:hover { background: var(--accent-dk); color: #fff; transform: translateY(-1px); }
.hfu .hfu__follow svg { flex: none; }

/* ---------- grid ---------- */
.hfu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.hfu[data-cols="2"] .hfu__grid { grid-template-columns: repeat(2, 1fr); }
.hfu[data-cols="4"] .hfu__grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .hfu__grid,
  .hfu[data-cols="4"] .hfu__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) { .hfu__grid { gap: 10px; } }

/* ---------- tile ---------- */
.hfu .hfu__tile {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: var(--cream);
  text-decoration: none;
  isolation: isolate;
}
.hfu .hfu__tile img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .45s ease;
}
.hfu .hfu__tile:hover img { transform: scale(1.055); }

/* the scrim sits under the text, not over the whole picture */
.hfu__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px 16px 15px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: linear-gradient(to top, rgba(26, 24, 21, .78) 0%, rgba(26, 24, 21, .45) 45%, rgba(26, 24, 21, 0) 100%);
  pointer-events: none;
}
.hfu__label {
  font-family: var(--b);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
  color: #fff;
  text-wrap: balance;
}
.hfu__credit {
  font-family: var(--b);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.3;
  color: rgba(255, 255, 255, .82);
}
@media (max-width: 460px) {
  .hfu__overlay { padding: 34px 11px 11px; }
  .hfu__label { font-size: 13px; }
  .hfu__credit { font-size: 11px; }
}

/* ---------- badge: who made this ---------- */
.hfu__badge {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 2;
  font-family: var(--b);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: .04em;
  line-height: 1;
  padding: 6px 11px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .94);
  color: var(--accent);
  pointer-events: none;
}
.hfu__badge--kol { background: var(--accent); color: #fff; }
.hfu__badge--event { background: #2C2A27; color: #fff; }

.hfu .hfu__tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .hfu .hfu__tile img,
  .hfu .hfu__follow { transition: none; }
  .hfu .hfu__tile:hover img { transform: none; }
  .hfu .hfu__follow:hover { transform: none; }
}
