.stories-index, .story-body {
  padding: clamp(3rem, 7vw, 5rem) 1rem;
  background: radial-gradient(ellipse at top, #fff9ed 12%, #f9dfe2);
  color: #57283b;
  text-align: center;
}
.stories-invitation {
  max-width: 58rem; margin: 0 auto;
  padding: clamp(2.1rem, 6vw, 4rem) clamp(1.1rem, 5vw, 3rem);
  border: 5px double #ad793b; border-radius: 1.4rem .45rem;
  background: #fff9ed;
  box-shadow: inset 0 0 0 5px #efcea0, 0 .7rem 2rem #79364324;
}
.stories-invitation::before, .stories-invitation::after {
  content: '❧ ✿ ❦ ✿ ❧' / ""; display: block;
  color: #9d6027; font: 1.35rem Georgia, serif; letter-spacing: .18em;
}
.stories-invitation::after { transform: rotate(180deg); margin-top: 1.25rem; }
.stories-invitation h1 { font-size: clamp(2.65rem, 7vw, 5rem); margin-bottom: 1.5rem; }
.story-heading { max-width: 44rem; margin: 0 auto; }
.story-heading h1 { font-size: clamp(2.9rem, 8vw, 6rem); }
.story-heading > p:not(.eyebrow), .story-reflection { font-size: clamp(1.05rem, 2vw, 1.2rem); }
.story-gallery {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center;
  gap: clamp(1.75rem, 5vw, 4rem); max-width: 58rem; margin: 2.25rem auto;
}
.supplied-frame {
  position: relative; width: min(100%, 26rem); margin: 0 auto;
  background: transparent; border: 0; border-radius: 0; padding: 0;
  box-shadow: 0 .65rem 1.4rem #6b392929;
}
.supplied-frame-art { display: block; width: 100%; height: auto; }
.supplied-frame-window {
  position: absolute; inset: var(--opening);
  isolation: isolate;
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center; padding: var(--mat-inset, 2%);
}
.supplied-frame-window::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  border-radius: var(--mat-radius, .25rem);
  background: radial-gradient(ellipse at 45% 42%, var(--mat-light, #f8f5ed), var(--mat-edge, #dbd5c8));
  box-shadow: inset 0 0 .45rem #32251e45;
}
.supplied-frame-window img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: 100%;
  min-width: 0; min-height: 0; object-fit: contain;
  box-shadow: 0 0 0 1px var(--photo-rim, #997044), 0 .15rem .4rem #2b211850;
}
.supplied-frame.magnolia { --opening: 22% 17% 21% 17%; --mat-light: #ebe8e1; --mat-edge: #dedbd4; }
.supplied-frame.crimson { --opening: 23% 25% 22% 25%; --mat-light: #e6e3dc; --mat-edge: #cfccc6; }
.supplied-frame.twilight { --opening: 24% 14% 28% 34%; --mat-light: #845076; --mat-edge: #493053; --photo-rim: #d9a060; }
.supplied-frame.wreath { --opening: 22% 26% 22% 26%; --mat-radius: 42%; --mat-inset: 8%; --mat-light: #eae7e3; --mat-edge: #dedbd8; }
.supplied-frame.amber { --opening: 27% 19% 35% 19%; --mat-radius: 50%; --mat-inset: 9%; --mat-light: #f5dac0; --mat-edge: #d4ab88; }
.supplied-frame.noir { --opening: 29% 22% 25% 25%; --mat-light: #303539; --mat-edge: #1d2227; --photo-rim: #cd9a55; }
.supplied-frame.foliage { --opening: 14% 27% 14% 27%; --mat-light: #f6f5f2; --mat-edge: #e8e5df; }
.supplied-frame.azure { --opening: 28% 29% 24% 31%; --mat-light: #a2cad5; --mat-edge: #7daebb; --photo-rim: #cf994f; }
.story-gallery:not(#framed-portraits) .azure { grid-column: 1 / -1; }
.story-reflection { max-width: 39rem; margin: 2.5rem auto 1.2rem; }
.story-source { margin-bottom: 2rem; font-size: .9rem; }
.story-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.story-links a, .shuffle-portraits {
  padding: .55rem .9rem; border: 1px solid #be8b78; border-radius: 2rem; background: #fff8ef;
  color: #702b45; text-decoration: none; font-weight: 650;
}
.shuffle-portraits { font-family: inherit; font-size: 1rem; cursor: pointer; }
.story-links a:hover, .shuffle-portraits:hover { background: #fde6e9; }
@media (max-width: 42rem) {
  .story-gallery { grid-template-columns: 1fr; max-width: 24rem; padding: 0 .4rem; }
}
