/* Tohar Brands — Instagram section. Everything is scoped under .tb-ig.
   Delete this file and the <section class="tb-ig"> block in index.html to undo. */

.tb-ig {
  --tb-ig-bg: #dcd3c8;
  --tb-ig-ink: #111010;
  --tb-ig-soft: rgba(17, 16, 16, .58);
  --tb-ig-line: rgba(17, 16, 16, .18);
  background: var(--tb-ig-bg);
  padding: 84px 0 92px;
}

.tb-ig__inner {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- header row ---------- */

.tb-ig__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 26px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--tb-ig-line);
}

.tb-ig__eyebrow {
  margin: 0 0 12px;
  font-family: "Tohar Display", Georgia, serif;
  font-size: 12px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--tb-ig-soft);
}

.tb-ig__title {
  margin: 0;
  font-family: "Heebo", "Assistant", system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--tb-ig-ink);
}

.tb-ig__sub {
  margin: 12px 0 0;
  font-family: "Heebo", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--tb-ig-soft);
}

.tb-ig__follow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 14px 24px;
  background: var(--tb-ig-ink);
  color: #f4f1ec;
  font-family: "Heebo", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .25s ease, transform .25s ease;
}
.tb-ig__follow:hover {
  background: #000;
  transform: translateY(-2px);
}
.tb-ig__follow svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  flex: none;
}
.tb-ig__follow span {
  direction: ltr;
  letter-spacing: .02em;
}

/* ---------- grid ---------- */

.tb-ig__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tb-ig__tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #cfc5b8;
  text-decoration: none;
}
.tb-ig__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}
.tb-ig__tile:hover img,
.tb-ig__tile:focus-visible img {
  transform: scale(1.06);
}

.tb-ig__veil {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(12, 12, 12, .42);
  opacity: 0;
  transition: opacity .3s ease;
}
.tb-ig__tile:hover .tb-ig__veil,
.tb-ig__tile:focus-visible .tb-ig__veil {
  opacity: 1;
}
.tb-ig__veil svg {
  width: 34px;
  height: 34px;
  fill: #fff;
  transform: translateY(6px);
  transition: transform .3s ease;
}
.tb-ig__tile:hover .tb-ig__veil svg {
  transform: none;
}

/* reel / carousel marker, same corner Instagram uses */
.tb-ig__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45));
}
.tb-ig__badge svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .tb-ig { padding: 64px 0 72px }
  .tb-ig__inner { padding: 0 28px }
  .tb-ig__grid { grid-template-columns: repeat(3, 1fr); gap: 12px }
  .tb-ig__grid > :nth-child(7),
  .tb-ig__grid > :nth-child(8) { display: none }
}

@media (max-width: 640px) {
  .tb-ig { padding: 52px 0 60px }
  .tb-ig__inner { padding: 0 20px }
  .tb-ig__head {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding-bottom: 22px;
    margin-bottom: 22px;
  }
  .tb-ig__follow { justify-content: center }
  .tb-ig__grid { grid-template-columns: repeat(2, 1fr); gap: 10px }
  .tb-ig__grid > :nth-child(7),
  .tb-ig__grid > :nth-child(8) { display: block }
}

@media (prefers-reduced-motion: reduce) {
  .tb-ig__tile img,
  .tb-ig__veil,
  .tb-ig__follow { transition: none }
}
