/* Instagram feed section — near Contact */

/* Global page-line overrides loaded after index.html inline styles.
   Keeps the gold divider fixed in the viewport so the falling beam remains
   visible and active while scrolling through the full page. */
body .bg-centerline {
  position: fixed;
  left: 50%;
  top: 0;
  bottom: 0;
  height: auto;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 215, 0, 0.14) 7%,
    rgba(255, 215, 0, 0.14) 93%,
    transparent
  );
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

body .bg-centerline::after {
  height: min(32vh, 260px);
  background: linear-gradient(to bottom, transparent, rgba(255, 215, 0, 0.96), transparent);
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.95));
  animation: beamFlowViewport 4.8s linear infinite;
}

@keyframes beamFlowViewport {
  0% { transform: translateY(-34vh); }
  100% { transform: translateY(112vh); }
}

/* CookieYes — positioning only. Preserve the native CookieYes layout and sizing;
   only center the banner horizontally at the bottom of the viewport. */
div.cky-consent-container {
  left: 50% !important;
  right: auto !important;
  bottom: 0 !important;
  transform: translateX(-50%) !important;
}

.instagram-feed-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 215, 0, 0.075), transparent 30rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0));
  padding: clamp(4.6rem, 7vw, 6.5rem) clamp(1.25rem, 4.4vw, 4.25rem);
}

.instagram-feed-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 100% 6px;
  mix-blend-mode: soft-light;
}

.instagram-feed-shell {
  --instagram-feed-gap: clamp(3.4rem, 7vw, 6.25rem);
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--instagram-feed-gap);
  align-items: center;
}

.instagram-feed-copy-column {
  position: relative;
  z-index: 2;
  max-width: 30rem;
}

.instagram-feed-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  margin: 0 0 1.4rem;
  font-family: var(--mono);
  font-size: .82rem;
  color: #9ca3af;
}

.instagram-feed-status .prompt,
.instagram-feed-status .status-label {
  color: var(--gold);
  font-weight: 700;
}

.instagram-feed-status .status-label {
  letter-spacing: .28em;
  text-transform: uppercase;
}

.instagram-feed-status .arrow {
  color: #4b5563;
}

.instagram-feed-status .value {
  color: #d1d5db;
}

.instagram-feed-kicker {
  display: none;
}

.instagram-feed-title {
  margin: 0;
  max-width: 9.5ch;
  font-family: "Syncopate", sans-serif;
  color: #f8f8fb;
  font-size: clamp(2.05rem, 3.45vw, 2.95rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.instagram-feed-copy {
  max-width: 24rem;
  margin: 1.6rem 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(.98rem, 1.35vw, 1.04rem);
  line-height: 1.85;
}

.instagram-feed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  margin-top: 2rem;
}

.instagram-feed-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 3rem;
  border: 1px solid rgba(255, 215, 0, .42);
  border-radius: 999px;
  padding: 0 1.15rem;
  color: rgba(255,255,255,.86);
  background: rgba(255, 215, 0, .035);
  text-decoration: none;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: border-color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.instagram-feed-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, .7);
  background: rgba(255, 215, 0, .08);
  box-shadow: 0 0 24px rgba(255, 215, 0, .14);
}

.instagram-feed-grid {
  align-self: center;
  justify-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  padding-top: 0;
}

.instagram-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 1.05rem;
  background: rgba(255,255,255,.03);
  color: #fff;
  text-decoration: none;
  transform: translateZ(0);
}

.instagram-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .9;
  filter: saturate(.94) contrast(1.04);
  transition: transform .55s ease, opacity .35s ease, filter .35s ease;
}

.instagram-card:hover img {
  opacity: 1;
  transform: scale(1.055);
  filter: saturate(1) contrast(1.05);
}

.instagram-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0,0,0,.78));
  opacity: 0;
  transition: opacity .3s ease;
}

.instagram-card:hover::after { opacity: 1; }

.instagram-card-badge {
  position: absolute;
  top: .7rem;
  right: .7rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(0,0,0,.34);
  backdrop-filter: blur(12px);
  color: rgba(255,255,255,.9);
  font-size: .7rem;
}

.instagram-card-caption {
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: .9rem;
  z-index: 2;
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: .82rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(.65rem);
  transition: opacity .3s ease, transform .3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.instagram-card:hover .instagram-card-caption {
  opacity: 1;
  transform: translateY(0);
}

.instagram-feed-empty {
  grid-column: 1 / -1;
  min-height: 13rem;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 1.05rem;
  color: rgba(255,255,255,.54);
  text-align: center;
  padding: 2rem;
}

@media (max-width: 980px) {
  body .bg-centerline {
    display: none;
  }

  .instagram-feed-shell {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .instagram-feed-copy-column {
    max-width: 38rem;
  }

  .instagram-feed-title {
    max-width: 12ch;
  }

  .instagram-feed-grid {
    padding-top: 0;
  }
}

@media (max-width: 680px) {
  .instagram-feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .instagram-feed-section { padding-left: 1rem; padding-right: 1rem; }
}

@media (max-width: 430px) {
  .instagram-feed-grid { grid-template-columns: 1fr; }
}
