/* ============================================================
   Yoo Jean Korean Hair Salon — Instagram Feed Grid
   Static grid. Each tile links to the matching Instagram post.
   Replace with the Smash Balloon widget once the Meta token is set up.
   ============================================================ */

.yj-ig {
  --yj-ig-gap: 8px;
  --yj-ig-radius: 4px;
  --yj-ig-accent: #c9a227;
  --yj-ig-ink: #14110f;
  --yj-ig-muted: #8a8279;
  --yj-ig-line: #e8e2d8;

  /* Locked to a 3-column width so the layout matches the phone view on
     every screen. Wider viewports just get more side margin. */
  max-width: 560px;
  margin: 0 auto;
  padding: 72px 24px 80px;
  font-family: "PT Serif", Georgia, serif;
  color: var(--yj-ig-ink);
}

/* ---------- Profile header ---------- */

.yj-ig__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--yj-ig-line);
}

.yj-ig__avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--yj-ig-accent), 0 2px 10px rgba(20,17,15,.12);
}

.yj-ig__meta { flex: 1; min-width: 0; }

.yj-ig__handle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: Oswald, sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--yj-ig-ink);
  text-decoration: none;
}

.yj-ig__handle:hover { color: var(--yj-ig-accent); }

.yj-ig__handle svg { width: 17px; height: 17px; fill: currentColor; }

.yj-ig__name {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--yj-ig-muted);
}

.yj-ig__stats {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--yj-ig-muted);
}

.yj-ig__stats b {
  color: var(--yj-ig-ink);
  font-weight: 700;
}

.yj-ig__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
  color: #fff;
  font-family: Oswald, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s cubic-bezier(.4,0,.2,1), box-shadow .2s;
  box-shadow: 0 3px 12px rgba(220, 39, 67, .25);
}

.yj-ig__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(220, 39, 67, .35);
}

.yj-ig__cta svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- Grid ---------- */

.yj-ig__grid {
  display: grid;
  /* Fixed at 3 across — same as the phone view, never reflows to more. */
  grid-template-columns: repeat(3, 1fr);
  gap: var(--yj-ig-gap);
}

.yj-ig__tile {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--yj-ig-radius);
  background: #f1ede6;
  text-decoration: none;
}

.yj-ig__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.yj-ig__tile:hover img { transform: scale(1.06); }

/* Hover overlay */
.yj-ig__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  background: linear-gradient(180deg, rgba(20,17,15,0) 40%, rgba(20,17,15,.82));
  opacity: 0;
  transition: opacity .3s cubic-bezier(.4,0,.2,1);
}

.yj-ig__tile:hover .yj-ig__overlay,
.yj-ig__tile:focus-visible .yj-ig__overlay { opacity: 1; }

.yj-ig__label {
  font-family: Oswald, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.3;
}

.yj-ig__tags {
  margin-top: 3px;
  font-size: 10.5px;
  color: rgba(255,255,255,.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Play badge — these are mostly reels */
.yj-ig__play {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(20,17,15,.5);
  backdrop-filter: blur(4px);
  opacity: .9;
}

.yj-ig__play svg { width: 11px; height: 11px; fill: #fff; }

/* ---------- Footer note ---------- */

.yj-ig__note {
  margin-top: 26px;
  text-align: center;
  font-size: 13px;
  color: var(--yj-ig-muted);
}

.yj-ig__note a {
  color: var(--yj-ig-accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.yj-ig__note a:hover { color: var(--yj-ig-ink); }

/* ---------- Responsive ---------- */

/* Column count stays at 3 everywhere — only spacing scales. */
@media (max-width: 1024px) {
  .yj-ig { max-width: 520px; }
}

@media (max-width: 720px) {
  .yj-ig { padding: 48px 16px 56px; max-width: 100%; }
  .yj-ig__grid { --yj-ig-gap: 6px; }
  .yj-ig__head { gap: 14px; }
  .yj-ig__avatar { width: 60px; height: 60px; }
  .yj-ig__handle { font-size: 16px; }
  .yj-ig__stats { gap: 16px; font-size: 12.5px; }
  .yj-ig__cta { padding: 9px 16px; font-size: 12px; }
  .yj-ig__overlay { padding: 8px; }
  .yj-ig__label { font-size: 11px; }
  .yj-ig__tags { display: none; }
}

@media (max-width: 480px) {
  .yj-ig__head { flex-wrap: wrap; }
  .yj-ig__cta { width: 100%; justify-content: center; margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .yj-ig__tile img, .yj-ig__overlay, .yj-ig__cta { transition: none; }
}
