/* Bounded additions: the page layouts and original footer remain intact. */
.site-footer .site-credit {
  margin: 15px 0 0;
  color: #bfc3b1;
  font-size: .78rem;
  line-height: 1.6;
  text-align: center;
  padding-inline: 44px;
}
.site-footer .site-credit a {
  display: inline-block;
  color: #d9ddce;
  text-underline-offset: .2em;
}
.site-footer .site-credit a:focus-visible {
  outline-color: #d9ddce;
}
.reel-watch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 14px;
  border: 1px solid #c8d2bd;
  border-radius: 24px;
  background: #edf1e7;
  color: var(--olive-dark);
  font: 600 .875rem/1.45 var(--sans);
  text-align: left;
  cursor: pointer;
}
.reel-watch:hover {
  background: var(--sage-soft);
  border-color: var(--olive);
}
.reel-watch svg {
  width: 23px;
  height: 23px;
  flex: none;
}
.reel-watch[hidden], .reel-static-link[hidden] { display: none; }
.reel-static-link { max-width: 100%; white-space: normal; }
.reel-static-link svg { flex: none; }
.instagram-dialog {
  width: min(530px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  color: var(--text);
  overscroll-behavior: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
}
.instagram-dialog::backdrop { background: rgba(18, 28, 20, .78); }
.ig-viewer-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.ig-viewer-header h2 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.25;
}
.ig-viewer-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid #c8d2bd;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--olive-dark);
  cursor: pointer;
}
.ig-viewer-close svg { width: 21px; height: 21px; }
.ig-viewer-description {
  margin: 12px 18px 0;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--muted);
}
.ig-viewer-status {
  margin: 8px 18px 12px;
  font-size: .85rem;
  line-height: 1.5;
}
.ig-embed-host {
  min-height: 360px;
  margin: 0 12px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
/* Instagram supplies the video controls and resizes its own official frame. */
.ig-embed-host .instagram-media,
.ig-embed-host iframe {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-shadow: none !important;
}
.ig-embed-host blockquote { height: 360px; border: 0; }
.ig-embed-host blockquote a { display: none; }
.ig-viewer-fallback {
  margin: 0;
  padding: 16px 18px 20px;
  font-size: .8rem;
  line-height: 1.55;
}
.ig-viewer-fallback p { margin-bottom: 8px; }
.ig-viewer-options { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.ig-viewer-options button, .ig-viewer-options a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  color: var(--olive-dark);
  font: 600 .85rem/1.45 var(--sans);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ig-viewer-options button { border: 0; background: none; cursor: pointer; }
@media (max-width: 380px) {
  .ig-viewer-header { padding: 12px; gap: 8px; }
  .ig-viewer-header h2 { font-size: 1.15rem; }
  .ig-embed-host { margin: 0 5px; }
  .ig-viewer-fallback { padding: 14px 12px; }
}
