/* Isolated homepage gallery. No shared header, footer or bundle changes. */
section.instagram-feed {
  margin: 0;
  padding: 80px 0;
  color: #20231f;
  background: #fff;
  font-family: 'Switzer', Arial, sans-serif;
}
.instagram-feed__heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.instagram-feed__heading h2 { margin: 0; color: inherit; font-family: inherit; font-size: clamp(34px, 3.4vw, 46px); font-weight: 500; line-height: 1.12; letter-spacing: -.035em; }
.instagram-feed__profile { display: inline-flex; align-items: center; gap: 16px; flex-shrink: 0; min-height: 44px; color: #20231f; font-size: 14px; font-weight: 500; text-decoration: none; }
.instagram-feed__profile svg { width: 20px; height: 20px; }
.instagram-feed__profile:hover { color: #a85534; text-decoration: none; }
.instagram-feed__track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 4); gap: 24px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0; margin: 0; list-style: none; }
.instagram-feed__track::-webkit-scrollbar { display: none; }
.instagram-feed__item { min-width: 0; scroll-snap-align: start; }
.instagram-feed__card { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; border: 0; border-radius: 0; padding: 0; color: #20231f; background: #f3f1ee; text-decoration: none; cursor: pointer; }
.instagram-feed__poster { display: block; width: 100%; height: 100%; margin: 0; padding: 0; object-fit: cover; }
.instagram-feed__poster[hidden] { display: none; }
.instagram-feed__play { position: absolute; left: 16px; bottom: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #2f4b3f; background: #fff; transition: color 220ms ease, transform 220ms ease; }
.instagram-feed__play svg { width: 18px; height: 18px; margin-left: 1px; }
.instagram-feed__card:hover .instagram-feed__play { color: #a85534; }
.instagram-feed__controls { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.instagram-feed__controls[hidden], .instagram-viewer [hidden] { display: none !important; }
.instagram-feed__controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #20231f; cursor: pointer; transition: color 180ms ease; }
.instagram-feed__controls svg { width: 20px; height: 20px; }
.instagram-feed__controls [data-instagram-prev] svg { transform: rotate(180deg); }
.instagram-feed__controls button:hover:not(:disabled) { color: #a85534; }
.instagram-feed__controls button:disabled { opacity: .3; cursor: default; }
.instagram-feed__dots { display: none; min-width: 0; max-width: 100%; }
.instagram-feed__controls .instagram-feed__dot { flex: 0 1 28px; min-width: 0; display: grid; place-items: center; width: 28px; height: 44px; border-radius: 0; background: transparent; padding: 0; }
.instagram-feed__dot span { width: 8px; height: 8px; border-radius: 50%; background: #d2d5cf; }
.instagram-feed__dot[aria-current="true"] span { background: #2f4b3f; }
.instagram-feed :is(a,button):focus-visible, .instagram-viewer :is(a,button,summary):focus-visible { outline: 2px solid #2f4b3f; outline-offset: 3px; }
.instagram-feed__card:focus-visible { outline-offset: -4px; }
dialog.instagram-viewer {
  --video-ratio: .5625;
  --video-max-height: min(720px, calc(100dvh - 88px - var(--viewer-info-height, 210px)));
  position: fixed; inset: 56px 0 0;
  width: min(480px, calc(100vw - 32px));
  max-width: none; max-height: calc(100dvh - 88px);
  padding: 0; margin: auto; border: 0; border-radius: 0;
  background: transparent; color: #20231f; overflow: visible;
  overscroll-behavior: contain; font-family: 'Switzer', Arial, sans-serif;
}
dialog.instagram-viewer {
  width: min(480px, calc(100vw - 32px), max(260px, calc(var(--video-max-height) * var(--video-ratio))));
}
.instagram-viewer::backdrop { background: rgb(15 20 16 / 78%); }
.instagram-viewer__body { max-height: calc(100dvh - 88px); overflow-y: auto; overscroll-behavior: contain; background: #fff; }
.instagram-viewer__close { position: absolute; top: -56px; right: 0; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #d9dad3; border-radius: 0; padding: 0; background: #fff; color: #20231f; cursor: pointer; transition: color .2s ease, border-color .2s ease; }
.instagram-viewer__close:hover { color: #111; border-color: #20231f; }
.instagram-viewer__close svg { width: 20px; height: 20px; }
.instagram-viewer__close:focus:not(:focus-visible) { outline: none; }
.instagram-viewer__video { display: block; width: 100%; height: auto; aspect-ratio: var(--video-ratio); object-fit: contain; background: #101410; }
.instagram-viewer.instagram-viewer--embed { width: min(480px, calc(100vw - 32px)); }
.instagram-viewer__embed { min-height: 240px; background: #fff; }
.instagram-viewer__embed .instagram-media { width: 100% !important; min-width: 0 !important; max-width: 100% !important; margin: 0 !important; border: 0 !important; box-shadow: none !important; }
.instagram-viewer__embed iframe { display: block; }
.instagram-viewer__preview { position: relative; display: block; background: #101410; color: #fff; text-decoration: none; }
.instagram-viewer__preview-image { display: block; width: 100%; height: auto; max-height: max(160px, min(640px, calc(100dvh - 88px - var(--viewer-info-height, 210px)))); object-fit: contain; margin: 0; }
.instagram-viewer__preview-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: #2f4b3f; transition: color 220ms ease, transform 220ms ease; }
.instagram-viewer__preview-play svg { width: 24px; height: 24px; margin-left: 1px; }
.instagram-viewer__preview:hover .instagram-viewer__preview-play { color: #a85534; }
.instagram-viewer__info { padding: 20px 24px; font-size: 14px; line-height: 1.5; }
.instagram-viewer__attribution { margin: 0; overflow-wrap: anywhere; }
.instagram-viewer__credit { margin: 0; color: #62685f; font-size: 14px; line-height: 1.4; }
.instagram-viewer__creator { display: block; color: #20231f; font-size: 16px; font-weight: 500; line-height: 1.4; text-decoration: none; }
.instagram-viewer__creator:hover { color: #a85534; text-decoration: none; }
.instagram-viewer__engagement { display: block; margin-top: 4px; color: #62685f; font-size: 14px; line-height: 1.4; text-decoration: none; }
.instagram-viewer__engagement:hover { color: #a85534; }
.instagram-viewer__profile { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 16px; padding: 12px 16px; border: 0; border-radius: 0; background: #2f4b3f; color: #f9f8f6; font-size: 14px; font-weight: 500; line-height: 1.4; text-align: center; text-decoration: none; transition: background-color 180ms ease; }
.instagram-viewer__profile:hover { background: #273f35; color: #f9f8f6; text-decoration: none; }
.instagram-viewer__fallback, .instagram-viewer__original { display: inline-block; color: #2f4b3f; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.instagram-viewer__original { margin-top: 12px; }
.instagram-viewer__fallback:hover, .instagram-viewer__original:hover { color: #a85534; }
.instagram-viewer__caption { margin-top: 8px; color: #62685f; font-size: 14px; line-height: 1.5; }
.instagram-viewer__caption summary { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; list-style: none; }
.instagram-viewer__caption summary::-webkit-details-marker { display: none; }
.instagram-viewer__caption summary::before { content: ""; flex: 0 0 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 180ms ease; }
.instagram-viewer__caption[open] summary::before { transform: translateY(2px) rotate(225deg); }
.instagram-viewer__caption p { margin: 4px 0 0; color: inherit; font-size: inherit; line-height: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.instagram-viewer__error { margin: 0 0 16px; color: #62685f; font-size: 14px; line-height: 1.5; }
@media (hover: hover) and (pointer: fine) {
  .instagram-feed__card:hover .instagram-feed__play { transform: scale(1.04); }
  .instagram-viewer__preview:hover .instagram-viewer__preview-play { transform: translate(-50%, -50%) scale(1.04); }
}
@media (min-width: 1024px) {
  dialog.instagram-viewer .instagram-viewer__close,
  dialog.instagram-viewer .instagram-viewer__close:is(:hover, :focus, :active) { position: fixed; top: 24px; right: 24px; width: 48px; height: 48px; border: 0; background: transparent; color: #fff; opacity: 1; transform: none; box-shadow: none; transition: none; }
  .instagram-viewer__close svg { width: 28px; height: 28px; }
  .instagram-viewer__close svg { pointer-events: none; }
  dialog.instagram-viewer .instagram-viewer__close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
}
@media (max-width: 1000px) and (min-width: 761px) { .instagram-feed__track { grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; } }
@media (max-width: 760px) {
  section.instagram-feed { padding: 52px 0; }
  .instagram-feed > .grid-container { padding-inline: 22px; }
  .instagram-feed__heading { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 24px; }
  .instagram-feed__heading h2 { font-size: 34px; line-height: 1.12; }
  .instagram-feed__track { grid-auto-columns: min(78%, 300px); gap: 16px; }
  .instagram-feed__item:nth-child(n + 9), .instagram-feed__dots > .instagram-feed__dot:nth-child(n + 9) { display: none; }
  .instagram-feed__controls { justify-content: center; margin-top: 12px; }
  .instagram-feed__controls [data-instagram-prev], .instagram-feed__controls [data-instagram-next] { display: none; }
  .instagram-feed__dots { display: flex; justify-content: center; }
  .instagram-feed__item:not(.is-active) .instagram-feed__play { display: none; }
  dialog.instagram-viewer { width: min(480px, calc(100vw - 32px)); }
  .instagram-viewer__info { padding: 20px; }
  .instagram-feed__play { left: 12px; bottom: 12px; width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .instagram-feed__play, .instagram-feed__controls button, .instagram-viewer__preview-play, .instagram-viewer__profile, .instagram-viewer__close, .instagram-viewer__caption summary::before { transition: none; }
  .instagram-feed__card:hover .instagram-feed__play { transform: none; }
  .instagram-viewer__preview:hover .instagram-viewer__preview-play { transform: translate(-50%, -50%); }
}
