﻿/* Instagram landing module. Content is supplied by verified profile links or embeds. */
.instagram-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 0;
  align-items: center;
  padding: clamp(4.5rem, 9vw, 8rem) var(--store-gutter, clamp(20px, 4vw, 64px));
  background: #fff;
  color: var(--ink);
}
.instagram-copy {
  display: contents;
}
.instagram-section [hidden] { display: none !important; }
.instagram-brand-logo { width: 96px; height: 82px; }
.instagram-fallback .frame-button { min-height: 44px; justify-content: center; font-size: .9375rem; }
.instagram-copy > * { margin: 0; }
.instagram-copy .section-kicker {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.instagram-copy h2 {
  max-width: 12ch;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.instagram-copy p {
  max-width: 42ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  word-break: keep-all;
}
.instagram-copy .instagram-scroll-hint { font-size: .8125rem; }
.instagram-copy > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: .78rem;
  letter-spacing: .08em;
  text-decoration: none;
}
.instagram-copy > a:hover { color: var(--muted); }
.instagram-copy > a:focus-visible,
.instagram-screen :is(a, button, iframe):focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
}
.instagram-device {
  position: relative;
  width: clamp(350px, 27vw, 390px);
  max-width: 100%;
  justify-self: center;
  padding: 43px 8px 8px;
  border: 1px solid #171a20;
  border-radius: 44px;
  background: linear-gradient(125deg, #45334f 0%, #a7aeb7 13%, #171b22 29%, #090b0f 52%, #252b35 76%, #796281 100%);
  box-shadow: inset 0 0 0 2px #07080b, inset 0 0 0 3px rgba(255, 255, 255, .12), 0 18px 40px rgba(24, 35, 48, .16);
}
.instagram-device::before {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 50%;
  width: calc(100% - 18px);
  height: 36px;
  border-radius: 34px 34px 0 0;
  background: #fff;
  content: "";
  transform: translateX(-50%);
}
.instagram-island {
  position: absolute;
  z-index: 3;
  top: 17px;
  left: 50%;
  width: 86px;
  height: 21px;
  border-radius: 999px;
  background: #080a0d;
  transform: translateX(-50%);
  pointer-events: none;
}
.instagram-island::after {
  position: absolute;
  top: 7px;
  right: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #152839;
  box-shadow: inset 0 0 0 1px #0b151e;
  content: "";
}
.instagram-device::after {
  position: absolute;
  top: 106px;
  left: 0;
  width: 3px;
  height: 28px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(#c0c5cb, #4b5360);
  box-shadow: 0 43px 0 #7b828a, 0 82px 0 #7b828a;
  content: "";
}
.instagram-screen {
  height: min(680px, 72svh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #080a0e;
  border-top: 0;
  border-radius: 0 0 34px 34px;
  background: #fff;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.instagram-screen:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 5px;
}
.instagram-screen::-webkit-scrollbar { display: none; width: 0; height: 0; }
.instagram-start {
  position: absolute;
  z-index: 4;
  inset: 43px 9px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 44px;
  padding: 24px;
  border: 0;
  border-radius: 0 0 34px 34px;
  background: rgba(255,255,255,.2);
  color: #182330;
  font-family: var(--sans);
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
}
.instagram-start > span:first-child { padding: 12px 16px; background: rgba(255,255,255,.94); border-radius: 2px; }
.instagram-start > span:last-child { font-size: 1.5rem; }
.instagram-start:focus-visible { outline: 2px solid var(--navy); outline-offset: -6px; }
.instagram-device.is-preview .instagram-screen { filter: blur(2px); opacity: .65; }
.instagram-device:not(.is-preview) .instagram-start { display: none; }
.instagram-feed {
  display: grid;
  gap: 0;
  background: #fff;
}
.instagram-feed article {
  display: grid;
  gap: 0;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.instagram-feed article:last-child { border-bottom: 0; }
.instagram-feed article > :is(a, iframe, blockquote, img, picture) { display: block; width: 100%; margin: 0; }
.instagram-feed article > a { min-height: 44px; color: inherit; text-decoration: none; }
.instagram-feed article img { aspect-ratio: 1 / 1.08; object-fit: cover; background: #f5f4f1; }
.instagram-feed article iframe { min-height: 420px; border: 0; }
.instagram-feed iframe { min-width: 0 !important; max-width: 100% !important; }
.instagram-feed article blockquote { min-width: 0 !important; max-width: 100% !important; }
.instagram-fallback {
  display: grid;
  min-height: 240px;
  place-items: center;
  gap: .8rem;
  padding: 32px 20px;
  color: var(--muted);
  text-align: center;
}
.instagram-fallback::before {
  color: var(--ink);
  content: "MOMENTO";
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: .08em;
}
.instagram-fallback p { max-width: 28ch; margin: 0; font-size: .875rem; line-height: 1.7; }
.instagram-fallback a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: .75rem;
  letter-spacing: .06em;
  text-decoration: none;
}
.instagram-fallback.is-loaded { min-height: 0; padding-block: 16px; }
.instagram-feed article > a { display: flex; align-items: center; padding: 8px 16px; font-size: .8125rem; line-height: 1.6; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 960px) {
  .instagram-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    justify-items: center;
    padding-block: 4.5rem;
  }
  .instagram-copy { justify-items: center; text-align: center; }
  .instagram-copy h2,
  .instagram-copy p { max-width: 28ch; }
  .instagram-device { justify-self: center; }
}

@media (max-width: 600px) {
  .instagram-section { gap: 0; padding: 4rem 20px; }
  .instagram-copy h2 { font-size: 1.75rem; }
  .instagram-copy p { font-size: .9375rem; }
  .instagram-device {
    width: min(100%, 360px);
    padding: 43px 7px 7px;
    border-radius: 42px;
  }
  .instagram-screen { height: min(680px, 72svh); border-radius: 0 0 32px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .instagram-screen { scroll-behavior: auto; }
}

/* At the smallest phone widths, the handset itself supplies the frame. */
@media (max-width: 360px) {
  .instagram-section { padding-inline: 0; }
  .instagram-copy { padding-inline: 20px; }
  .instagram-device { width: 100%; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .instagram-screen { border: 0; border-radius: 0; }
  .instagram-device::before, .instagram-device::after, .instagram-island { display: none; }
  .instagram-start { inset: 0; border-radius: 0; }
}
