/* Album hero slideshow + video cards. Mechanism ported from the Fancy Dog hero; MarkRowSoft styling. */
.mrs-hero {
  position: relative;
  /* break out of main's column to full bleed */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -1rem;
  height: 100vh;
  height: 100svh;
  min-height: 28rem;
  overflow: hidden;
  background: #111;
  color: #fff;
  isolation: isolate;
}
.mrs-hero__carousel, .mrs-hero__slide { position: absolute; inset: 0; }
.mrs-hero__slide { opacity: 0; transition: opacity 1.2s ease; }
.mrs-hero__slide.is-active { opacity: 1; z-index: 1; }
.mrs-hero__slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  max-width: none;
}
.mrs-hero__slide video[data-hero-video] {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  background: transparent;
}
.mrs-hero__shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 50%, rgba(0,0,0,.7) 100%);
}
.mrs-hero__copy {
  position: absolute; z-index: 3; left: 0; right: 0;
  bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
  padding: 0 max(1.25rem, env(safe-area-inset-left, 0px)) 0 max(1.25rem, env(safe-area-inset-right, 0px));
  text-align: center;
}
.mrs-hero__title {
  margin: 0 0 .35rem; line-height: .95; color: #fff;
  font-family: "Playfair Display", "Didot", "Bodoni 72", Georgia, "Times New Roman", serif;
  font-weight: 700; font-size: clamp(3rem, 15vw, 6.5rem); letter-spacing: -0.015em;
  text-wrap: balance;
  text-shadow: 0 0 28px rgba(255, 214, 140, .45), 0 2px 18px rgba(0,0,0,.6);
}
.mrs-hero__title-main {
  background: linear-gradient(180deg, #fff 0%, #fff 55%, #ffe7b3 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 14px rgba(0,0,0,.45));
}
.mrs-hero__rule {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  margin: .5rem auto .55rem; max-width: 16rem; color: #f3d38a;
}
.mrs-hero__rule span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #f3d38a 40%, #f3d38a 60%, transparent); }
.mrs-hero__rule i { font-style: normal; font-size: .85rem; text-shadow: 0 0 10px rgba(243, 211, 138, .8); }
.mrs-hero__sub {
  margin: 0 auto 1.2rem; max-width: 34rem;
  font-size: clamp(.95rem, 4.2vw, 1.25rem); font-weight: 600;
  text-transform: uppercase; letter-spacing: .28em; padding-left: .28em;
  color: #fbe6b8; text-shadow: 0 1px 10px rgba(0,0,0,.7), 0 0 18px rgba(243, 211, 138, .35);
}
.mrs-hero__cta {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 48px;
  padding: .75rem 1.4rem; border-radius: 999px; background: rgba(255,255,255,.92);
  color: #111; font-weight: 600; text-decoration: none; box-shadow: 0 6px 24px rgba(0,0,0,.3);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.mrs-hero__cta { animation: mrs-cta-draw 2.6s ease-in-out infinite; }
.mrs-hero__cta:active { transform: scale(.97); animation: none; }
@keyframes mrs-cta-draw {
  0%, 58%, 100% { translate: 0 0; }
  72% { translate: 0 9px; }
  82% { translate: 0 2px; }
  91% { translate: 0 6px; }
}
.mrs-hero__arrow {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  width: 3rem; height: 3rem; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(0,0,0,.35); color: #fff; font-size: 2rem; line-height: 1; display: none;
}
.mrs-hero__arrow--prev { left: 1rem; } .mrs-hero__arrow--next { right: 1rem; }
.mrs-hero__dots {
  position: absolute; z-index: 3; left: 0; right: 0; display: flex; justify-content: center; gap: .4rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
}
.mrs-hero__dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); transition: background .3s, transform .3s; }
.mrs-hero__dot.is-active { background: #fff; transform: scale(1.3); }
@media (min-width: 900px) {
  .mrs-hero__arrow { display: block; }
  .mrs-hero__copy { bottom: 4.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mrs-hero__slide { transition: none; }
}

/* Video posts: a moulded wood frame, a linen mat, and a brass nameplate.
   The plate is the same width as the picture so the frame reads as one object. */
.album-videos {
  display: grid; gap: 2.4rem 1.5rem; grid-template-columns: 1fr;
  margin: 1.5rem 0 2.5rem; scroll-margin-top: 1rem;
}
@media (min-width: 760px) { .album-videos { grid-template-columns: repeat(2, 1fr); } }
.album-video-card {
  --frame-plate: #f7f1e4;
  --frame-ink: #24160e;
  --wood-hi: #c4925a;
  --wood-mid: #7a4b28;
  --wood-lo: #3a2414;
  margin: 0;
  padding: 18px;
  border: 22px solid transparent;
  border-radius: 2px;
  background:
    linear-gradient(180deg, #f3eadb 0%, #e7dcc8 100%) padding-box,
    linear-gradient(160deg, rgba(255, 236, 206, .95), rgba(255, 236, 206, 0) 28%, rgba(0, 0, 0, .45) 72%, rgba(255, 220, 170, .35)) border-box,
    linear-gradient(90deg, var(--wood-lo), var(--wood-mid) 8%, var(--wood-hi) 16%, #5c381c 28%, #8d5a32 46%, #4a2e18 62%, var(--wood-hi) 78%, var(--wood-lo)) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 220, .85),
    inset 0 0 0 1px rgba(90, 52, 24, .55),
    inset 0 -8px 14px rgba(40, 20, 8, .28),
    0 1px 0 #1a0e08,
    0 18px 28px rgba(0, 0, 0, .38),
    0 2px 4px rgba(0, 0, 0, .35);
  position: relative;
}
@media (max-width: 560px) {
  .album-video-card { border-width: 14px; padding: 11px; }
}
.album-video-card__frame {
  position: relative;
  background: #14110e;
  aspect-ratio: var(--ar, 9 / 16);
  max-height: 78svh;
  box-shadow:
    inset 0 0 0 1px #1a100a,
    inset 0 10px 18px rgba(0, 0, 0, .45),
    0 0 0 10px #efe4d2,
    0 0 0 11px #b08958;
}
.album-video-card__frame::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(115deg, rgba(255,255,255,.22), rgba(255,255,255,0) 28%, rgba(255,255,255,0) 62%, rgba(255,255,255,.08));
}
@media (min-width: 760px) { .album-video-card__frame { aspect-ratio: var(--ar, 16 / 9); } }
.album-video-card video { display: block; width: 100%; height: 100%; object-fit: contain; background: #111; }
.album-video-card__play {
  position: absolute; inset: 0; z-index: 3; width: 100%; border: 0; padding: 0; cursor: pointer;
  background: radial-gradient(circle at center, rgba(0,0,0,.05), rgba(0,0,0,.35));
  display: flex; align-items: center; justify-content: center;
}
.album-video-card__play span {
  width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.9);
  box-shadow: 0 8px 28px rgba(0,0,0,.35); position: relative; transition: transform .2s;
}
.album-video-card__play span::after {
  content: ""; position: absolute; left: 31px; top: 23px;
  border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent #111;
}
.album-video-card__play:active span { transform: scale(.92); }
.album-video-card.is-playing .album-video-card__play { display: none; }
.album-video-card__caption {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin: 10px 0 0;
  padding: .7rem .85rem;
  line-height: 1.35;
  font-size: .95rem;
  box-sizing: border-box;
  width: 100%;
  color: var(--frame-ink);
  background: var(--frame-plate);
  border: 1px solid #cbb892;
  border-radius: 1px;
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(60, 36, 16, .28);
  text-shadow: none;
}
.album-video-card__who { display: flex; flex-direction: column; min-width: 0; }
.album-video-card__who strong,
.album-video-card__who span { color: var(--frame-ink); }
.album-video-card__link {
  flex: none; font-size: .85rem; font-weight: 600; white-space: nowrap;
  color: var(--frame-ink); text-decoration-color: rgba(26, 18, 12, .45);
}

/* Background music toggle (tap to play) */
.mrs-music{position:absolute;top:calc(env(safe-area-inset-top,0px) + .75rem);right:.75rem;z-index:5;display:inline-flex;align-items:center;gap:.35rem;padding:.35rem .7rem;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:rgba(0,0,0,.28);color:#fff;font:inherit;font-size:.75rem;letter-spacing:.05em;opacity:.75;cursor:pointer;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.mrs-music:hover,.mrs-music:focus-visible{opacity:1}
.mrs-music.is-on{opacity:.95;background:rgba(0,0,0,.4)}
.mrs-music.is-on .mrs-music__icon{animation:mrs-music-pulse 2.4s ease-in-out infinite}
@keyframes mrs-music-pulse{50%{opacity:.4}}
@media (prefers-reduced-motion: reduce){.mrs-music.is-on .mrs-music__icon{animation:none}}
.mrs-downloads{position:absolute;top:calc(env(safe-area-inset-top,0px) + .75rem);left:.75rem;z-index:5;display:flex;flex-wrap:wrap;gap:.4rem;max-width:calc(100% - 7.5rem)}
.mrs-downloads--static{position:static;max-width:none;margin:.75rem 0 1rem}
.mrs-downloads .mrs-hero__cta{min-height:40px;padding:.5rem .9rem;font-size:.8rem;animation:none}
.mrs-download{display:inline-flex;align-items:center;padding:.35rem .7rem;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:rgba(0,0,0,.28);color:#fff;font:inherit;font-size:.75rem;letter-spacing:.04em;text-decoration:none;white-space:nowrap;opacity:.75;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.mrs-download:hover,.mrs-download:focus-visible{opacity:1}
.mrs-download-menu{position:relative}
.mrs-download-menu>summary{list-style:none;cursor:pointer;min-height:40px;gap:.3rem}
.mrs-download-menu>summary::-webkit-details-marker{display:none}
.mrs-download-menu[open]>summary{opacity:1;background:rgba(0,0,0,.55)}
.mrs-download-menu__list{position:absolute;top:calc(100% + .35rem);left:0;z-index:6;display:flex;flex-direction:column;min-width:13rem;max-width:calc(100vw - 1.5rem);padding:.3rem;border-radius:12px;background:rgba(20,20,20,.92);box-shadow:0 10px 30px rgba(0,0,0,.35);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.mrs-download-menu__item{display:block;padding:.7rem .85rem;min-height:44px;box-sizing:border-box;border-radius:8px;color:#fff;font-size:.9rem;text-decoration:none}
.mrs-download-menu__item small{opacity:.65}
.mrs-download-menu__item:hover,.mrs-download-menu__item:focus-visible{background:rgba(255,255,255,.14)}
@media print{.mrs-music,.mrs-downloads{display:none}}

/* Collage is the page background on public albums, ?k= links, and guest album links.
   The mosaic is already darkened when it is generated. Do not lay another
   scrim or a white sheet over the page. Video posts keep their own wooden frame. */
html:has(body.has-collage) { background: #0c0c0e; }
body.has-collage {
  background: #0c0c0e;
  color: #f7f4ee;
  position: relative;
  z-index: 0;
}
body.has-collage::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: #0c0c0e var(--album-collage) center / cover no-repeat;
}
body.has-collage a { color: #fff; text-decoration-color: rgba(255,255,255,.55); }
body.has-collage a:hover { text-decoration-color: #fff; }
body.has-collage .mrs-hero__cta { color: #111; text-decoration: none; text-shadow: none; }
body.has-collage main > h1,
body.has-collage main > p:not(.private-banner),
body.has-collage .sub,
body.has-collage .muted,
body.has-collage .crumb,
body.has-collage .album-reel__label,
body.has-collage .album-nav,
body.has-collage .mrs-credit,
body.has-collage .site-header,
body.has-collage .site-footer {
  color: #f7f4ee;
  text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 14px rgba(0,0,0,.6);
}
body.has-collage .sub,
body.has-collage .muted,
body.has-collage .album-reel__label { color: #f3eadc; }
body.has-collage .album-reel__label { opacity: 1; }
body.has-collage .brand-logo,
body.has-collage .brand-mark,
body.has-collage .footer-mark {
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 8px rgba(255,255,255,.85));
}
body.has-collage .mrs-credit { opacity: 1; }
body.has-collage .site-header,
body.has-collage .site-footer {
  background: transparent;
  border-color: rgba(255,255,255,.22);
}
body.has-collage .site-header a,
body.has-collage .site-footer a,
body.has-collage nav a { color: #fff; text-shadow: none; }
body.has-collage nav a:hover,
body.has-collage nav a[aria-current="page"] { border-bottom-color: #fff; }
body.has-collage .album-video-card__caption,
body.has-collage .album-video-card__who strong,
body.has-collage .album-video-card__who span,
body.has-collage .album-video-card__link {
  color: var(--frame-ink, #1a120c);
  text-shadow: none;
}
body.has-collage .album-video-card__link { text-decoration-color: rgba(26, 18, 12, .45); }
body.has-collage .album-video-card__link:hover,
body.has-collage .album-video-card__link:focus-visible {
  color: var(--frame-ink, #1a120c);
  text-decoration-color: #1a120c;
}
body.has-collage .photo-grid a,
body.has-collage .photo-grid figure {
  background: transparent;
  border-color: rgba(255,255,255,.28);
}
body.has-collage .photo-grid a:hover,
body.has-collage .photo-grid figure:hover { border-color: #fff; }
body.has-collage .preview-frame img,
body.has-collage .preview-frame video {
  background: transparent;
  border-color: rgba(255,255,255,.28);
}

/* Private-preview banner: full-bleed strip in normal flow above the hero.
   The hero pulls itself up 1rem (margin-top:-1rem) to meet the header;
   when the banner precedes it, the banner takes that slot instead. */
.private-banner + .mrs-hero { margin-top: 0; }
.private-banner:has(+ .mrs-hero) {
  position: relative; z-index: 5;
  width: 100vw; margin-left: calc(50% - 50vw) !important; margin-top: -1rem !important;
  box-sizing: border-box;
}

/* Phone: no sideways scroll; toolbar wraps into tidy rows above the title */
html,body{overflow-x:hidden;overflow-x:clip}
.mrs-hero{max-width:100vw}
@media (max-width: 600px){
  .mrs-downloads{left:.6rem;right:auto;max-width:calc(100% - 6.6rem);gap:.35rem}
  .mrs-download{min-height:44px;padding:.4rem .85rem;font-size:.8rem}
  .mrs-downloads .mrs-hero__cta{order:-1;flex:1 1 100%;justify-content:center;min-height:44px;font-size:.85rem;white-space:nowrap}
  .mrs-downloads--static{max-width:none}
  .mrs-music{right:.6rem;min-height:36px}
}
@media (max-width: 360px){.mrs-download{font-size:.75rem;padding:.35rem .7rem}}

/* Video-only viewer */
html.mrs-vv-open,html.mrs-vv-open body{overflow:hidden}
.mrs-vv{position:fixed;inset:0;z-index:1000;background:#000;display:flex;align-items:center;justify-content:center;touch-action:none;overscroll-behavior:contain}
.mrs-vv[hidden]{display:none}
.mrs-vv__video{width:100%;height:100%;max-height:100dvh;object-fit:contain;background:#000}
.mrs-vv__close{position:absolute;top:calc(env(safe-area-inset-top,0px) + .6rem);right:.6rem;z-index:2;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;font-size:1.8rem;line-height:1;cursor:pointer}
.mrs-vv__nav{position:absolute;right:.6rem;z-index:2;width:48px;height:48px;border:0;border-radius:10px;background:rgba(255,255,255,.12);color:#fff;font-size:2rem;cursor:pointer}
.mrs-vv__nav--prev{top:calc(50% - 56px)}.mrs-vv__nav--next{top:calc(50% + 8px)}
.mrs-vv__nav:disabled{opacity:.2;cursor:default}
@media (hover:none){.mrs-vv__nav{display:none}}
.mrs-vv__caption{position:absolute;top:calc(env(safe-area-inset-top,0px) + .9rem);left:.9rem;right:4rem;z-index:2;color:#fff;font-size:.9rem;text-shadow:0 1px 3px rgba(0,0,0,.8);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
.mrs-vv__count{opacity:.7}
.mrs-vv__hint{position:absolute;left:50%;bottom:calc(env(safe-area-inset-bottom,0px) + 5rem);transform:translateX(-50%);z-index:2;padding:.6rem 1rem;border-radius:999px;background:rgba(0,0,0,.65);color:#fff;font-size:.95rem;white-space:nowrap;pointer-events:none;transition:opacity .6s}
.mrs-vv__hint span{display:inline-block;animation:mrs-vv-nudge 1.2s ease-in-out infinite}
.mrs-vv__hint.is-gone{opacity:0}
@keyframes mrs-vv-nudge{50%{transform:translateY(-6px)}}
.mrs-vv.is-bump .mrs-vv__video{animation:mrs-vv-bump .3s}
@keyframes mrs-vv-bump{50%{transform:translateY(-10px)}}
.mrs-vv.is-up .mrs-vv__video{animation:mrs-vv-in-up .35s ease-out}.mrs-vv.is-down .mrs-vv__video{animation:mrs-vv-in-down .35s ease-out}
@keyframes mrs-vv-in-up{from{transform:translateY(35%);opacity:.3}}@keyframes mrs-vv-in-down{from{transform:translateY(-35%);opacity:.3}}
@media (prefers-reduced-motion: reduce){.mrs-vv__hint span,.mrs-vv.is-bump .mrs-vv__video,.mrs-vv.is-up .mrs-vv__video,.mrs-vv.is-down .mrs-vv__video{animation:none}}

/* v0.1.45 toolbar polish: one tidy row, equal heights; Music bounces while off */
.mrs-downloads{align-items:center;flex-wrap:nowrap}
.mrs-downloads .mrs-download,.mrs-downloads .mrs-hero__cta{box-sizing:border-box;height:40px;min-height:40px;padding:0 .95rem;line-height:1;white-space:nowrap;overflow:visible}
.mrs-downloads .mrs-hero__cta{gap:.4rem}
.mrs-downloads .mrs-hero__cta span{display:inline-block;line-height:1}
.mrs-download-menu{display:flex;align-items:center}
.mrs-music{height:40px;box-sizing:border-box;padding:0 .9rem}
@keyframes mrs-music-bounce{0%,55%,100%{transform:translateY(0)}65%{transform:translateY(-7px)}75%{transform:translateY(0)}83%{transform:translateY(-3px)}91%{transform:translateY(0)}}
.mrs-music:not(.is-on){animation:mrs-music-bounce 2.2s ease-in-out infinite;opacity:.95;background:rgba(0,0,0,.45)}
.mrs-music:not(.is-on):not(.was-touched)::after{content:"Tap for sound \1F50A";position:absolute;top:calc(100% + .45rem);right:0;padding:.35rem .6rem;border-radius:8px;background:rgba(0,0,0,.72);color:#fff;font-size:.75rem;white-space:nowrap;pointer-events:auto;cursor:pointer}
@media (prefers-reduced-motion: reduce){.mrs-music:not(.is-on){animation:none}}
@media (max-width: 600px){
  .mrs-downloads{max-width:calc(100% - 7rem);gap:.35rem}
  .mrs-downloads .mrs-download{height:44px;min-height:44px;flex:none}
  .mrs-downloads .mrs-hero__cta{order:0;flex:1 1 auto;min-width:0;height:auto;min-height:44px;padding:.35rem .7rem;white-space:normal;text-align:center;justify-content:center;font-size:.8rem;line-height:1.15}
  .mrs-music{height:44px}
}
/* Viewer: tap-for-sound when the phone forced muted autoplay */
.mrs-vv__sound{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:3;padding:.8rem 1.2rem;border:0;border-radius:999px;background:rgba(255,255,255,.92);color:#111;font:inherit;font-size:1rem;font-weight:600;cursor:pointer;animation:mrs-music-bounce 2.2s ease-in-out infinite}
.mrs-vv__sound[hidden]{display:none}

/* Share to Facebook (hero) */
.mrs-share-fb{display:inline-flex;align-items:center;gap:.4rem;box-sizing:border-box;height:40px;padding:0 .9rem;border-radius:999px;background:#1877f2;color:#fff;font-weight:600;font-size:.85rem;text-decoration:none;white-space:nowrap;flex:none}
.mrs-share-fb__icon{display:block;flex:none;width:20px;height:20px;border-radius:50%;overflow:hidden}
.mrs-share-fb:hover,.mrs-share-fb:focus-visible{background:#166fe0;color:#fff}
@media (max-width: 600px){.mrs-share-fb{height:44px;padding:0 .75rem}.mrs-share-fb__label{display:none}}

/* Viewer nav icons: SVG chevrons, centred in their buttons; desktop gets a tidy right-edge column */
.mrs-vv__close,.mrs-vv__nav{display:inline-flex;align-items:center;justify-content:center;padding:0;font-size:0;line-height:0;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.mrs-vv__close svg,.mrs-vv__nav svg{display:block;pointer-events:none}
.mrs-vv__nav{border-radius:50%;background:rgba(255,255,255,.16);transform:translateY(-50%)}
.mrs-vv__nav:hover:not(:disabled),.mrs-vv__close:hover{background:rgba(255,255,255,.3)}
.mrs-vv__nav:focus-visible,.mrs-vv__close:focus-visible{outline:2px solid #fff;outline-offset:2px}
.mrs-vv__nav--prev{top:calc(50% - 32px)}.mrs-vv__nav--next{top:calc(50% + 32px)}
@media (hover:hover) and (min-width:768px){
  .mrs-vv__close{top:1.25rem;right:1.5rem;width:48px;height:48px}
  .mrs-vv__nav{right:1.5rem;width:56px;height:56px}
  .mrs-vv__nav--prev{top:calc(50% - 36px)}.mrs-vv__nav--next{top:calc(50% + 36px)}
  .mrs-vv__caption{left:1.5rem;right:6rem;top:1.6rem}
}
@media (hover:none){.mrs-vv__nav{display:none}}
