/* ==========================================================================
   Instagram Feed Grid Component
   Displayed across all storefront pages above the footer.
   ========================================================================== */

.rh-insta-feed {
  position: relative;
  padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 6vw, 70px);
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255, 31, 31, .14), transparent 75%), #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.rh-insta-feed__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(30px, 5vw, 50px);
  padding: 0 20px;
}

.rh-insta-feed__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 11px/1 var(--ui, sans-serif);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--red, #ff1f1f);
  margin-bottom: 12px;
}

.rh-insta-feed__tag svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.rh-insta-feed__title {
  margin: 0 0 14px;
  font: 900 clamp(28px, 4vw, 44px)/1.08 var(--display, sans-serif);
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #fff;
}

.rh-insta-feed__sub {
  margin: 0 auto;
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--mute, #999);
  line-height: 1.6;
}

.rh-insta-feed__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  padding: 0 clamp(16px, 4vw, 48px);
  max-width: 1600px;
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .rh-insta-feed__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .rh-insta-feed__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 12px;
  }
}

.rh-insta-card {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1), border-color .4s, box-shadow .4s;
}

.rh-insta-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(255, 31, 31, .6);
  box-shadow: 0 12px 30px rgba(255, 31, 31, .25);
  z-index: 2;
}

.rh-insta-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(0.16, 1, 0.3, 1);
}

.rh-insta-card:hover .rh-insta-card__img {
  transform: scale(1.08);
}

.rh-insta-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity .35s ease;
}

.rh-insta-card:hover .rh-insta-card__overlay {
  opacity: 1;
}

.rh-insta-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.rh-insta-card__handle {
  font: 700 11px/1 var(--ui, sans-serif);
  letter-spacing: .08em;
  color: #fff;
}

.rh-insta-card__icon {
  width: 18px;
  height: 18px;
  stroke: var(--red, #ff1f1f);
  stroke-width: 1.8;
  fill: none;
}

.rh-insta-feed__cta {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: clamp(28px, 4vw, 44px);
}

.rh-insta-feed__cta a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}


.rh-insta-card__caption {
  margin: 0 0 8px;
  font: 500 12px/1.35 var(--ui, sans-serif);
  color: #eee;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
