/* Crest — minimal: one olive screen (monogram, names, a paragraph), then every photo on paper. */
:root {
  --cr-band: #635939;
  --cr-on-band: #fffcf7;
  --cr-nav: #f2e8d6;
  --cr-paper: #fffcf7;
  --cr-ink: #635939;
  --cr-display: 'Gilda Display', Georgia, serif;
  --cr-sans: 'Quicksand', Arial, sans-serif;
  --cr-text: 'Lato', Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body.cr { margin: 0; background: var(--cr-paper); color: var(--cr-ink); font: 300 13px/1.8 var(--cr-text); }
.cr a { color: inherit; text-decoration: none; }
.cr p { margin: 0; }

/* the olive screen */
.cr-band { position: relative; background: var(--cr-band); color: var(--cr-on-band); min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.cr-header { width: 83.333%; max-width: 1400px; margin: 0 auto; height: 96px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: var(--cr-nav); }
.cr-link { font: 400 10px/1.8 var(--cr-sans); letter-spacing: .15em; text-transform: uppercase; padding: 10px 0; transition: opacity .4s; }
.cr-link:hover { opacity: .6; color: inherit; }
.cr-link--home { justify-self: start; }
.cr-link--gallery { justify-self: end; }
.cr-mark { display: inline-grid; grid-template-columns: auto auto auto; align-items: center; gap: 14px; color: var(--cr-on-band); }
.cr-mark:hover { color: var(--cr-on-band); }
.cr-mark-date { display: grid; justify-items: center; font: 400 10px/1.25 var(--cr-sans); opacity: .75; font-variant-numeric: tabular-nums; }
.cr-mark-letters { font: 400 64px/1 var(--cr-display); letter-spacing: -.02em; display: inline-flex; }
.cr-mark-second { margin-left: -.22em; }

.cr-intro { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 64px 24px 120px; }
.cr-names { margin: 0 auto 22px; max-width: 1000px; font: 400 34px/1.1 var(--cr-display); letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere; }
.cr-text { max-width: 430px; font: 300 13px/1.85 var(--cr-text); }
.cr-caps { margin-top: 22px !important; font: 400 10px/1.6 var(--cr-sans); letter-spacing: .15em; text-transform: uppercase; color: var(--cr-nav); }
.cr .wedz-actions { margin-top: 28px; }
.cr-btn { display: none; background: transparent; border: 1px solid rgba(255, 252, 247, .55); color: var(--cr-on-band); padding: 10px 22px; font: 400 10px/1.4 var(--cr-sans); letter-spacing: .15em; text-transform: uppercase; border-radius: 0; transition: background .3s, color .3s; }
.cr-btn:hover { background: var(--cr-on-band); color: var(--cr-band); }

.cr-studio { position: absolute; left: 8.333%; bottom: 28px; max-width: 96px; font: 400 22px/1 var(--cr-display); color: var(--cr-on-band); }
.cr-studio img { display: block; width: 100%; height: auto; max-height: 64px; object-fit: contain; filter: brightness(0) invert(1); opacity: .9; }

/* every photo at its own shape: three columns, 8 px apart (live/app.js lays them out with Masonry) */
.cr-gallery { width: 83.333%; max-width: 1400px; margin: 0 auto; padding: 96px 0 56px; }
.cr #lgallery { margin: 0 -4px; }
.cr #lgallery .grid-item { width: 33.333%; padding: 4px; }
.cr #lgallery .grid-item img { width: 100%; height: auto; display: block; }

.cr-footer { padding: 24px 24px 56px; text-align: center; background: var(--cr-paper); }
.cr-footer-logo { display: inline-block; line-height: 0; margin-bottom: 18px; }
.cr-footer-logo img { width: 80px; max-height: 80px; object-fit: contain; }
.cr-credit { font: 400 10px/1.8 var(--cr-sans); letter-spacing: .06em; color: #80765c; }
.cr-credit a { text-decoration: underline; text-underline-offset: 3px; }

/* the viewer (live/: lightGallery) — the photo, its number, close and the arrows; no strip of thumbnails */
body.cr .lg-outer .lg-progress-bar .lg-progress { background-color: #f2e8d6; } /* the slideshow's bar, not lightGallery's blue */
body.cr .lg-outer .lg-thumb-outer, body.cr .lg-outer .lg-toggle-thumb { display: none !important; }
body.cr .lg-outer .lg-counter { font: 400 11px/1 var(--cr-sans); letter-spacing: .12em; padding-left: 28px; }

@media (max-width: 767px) {
  .cr-header { width: calc(100% - 32px); height: 80px; }
  /* the shared Login button sits in the top-right corner on phones: Gallery on the left, Home not needed */
  .cr-link--home { display: none; }
  .cr-link--gallery { grid-column: 1; grid-row: 1; justify-self: start; }
  .cr-link { font-size: 9px; }
  .cr-mark { gap: 10px; }
  .cr-mark-letters { font-size: 52px; }
  .cr-intro { padding: 56px 22px 110px; }
  .cr-names { font-size: 26px; }
  .cr-text { max-width: 335px; font-size: 12.5px; }
  .cr-studio { display: none; } /* the shared studio badge is in the corner on phones */
  .cr-gallery { width: 100%; padding: 6px 0 24px; }
  .cr #lgallery { margin: 0; padding: 0 3px; }
  .cr #lgallery .grid-item { width: 50%; padding: 3px; }
}
