/* Rajwada: what the editor's version adds to the design (styles.css stays as it was). */

/* a part the client left empty is not shown */
[hidden] {
  display: none !important;
}

/* --- a function's own photo, in a gilt circle on its scroll ----------- */
.ceremony-scroll__icon.rj-own {
  width: 40cqw;
  height: 40cqw;
  max-width: none;
  object-fit: cover;
  border-radius: 50%;
  border: 1.4cqw solid #d9a84a;
  box-shadow: 0 0 0 0.6cqw #f6e7c4, 0 0 0 1.1cqw #b9852e, 0 4px 10px rgba(92, 52, 20, 0.28);
  filter: none;
}

/* --- the couple's own photo in place of the painting: a palace arch, gilt --- */
.sunset__frame.rj-own {
  width: min(84%, 520px);
  padding-top: clamp(8px, 3vw, 24px);
}
.sunset__frame.rj-own .sunset__pic {
  position: relative;
  border-radius: 999px 999px 0 0;
  padding: 7px;
  background: linear-gradient(160deg, #f6dc8c, #b9852e 40%, #f3d9a4 60%, #8a5a17);
  box-shadow: 0 14px 34px rgba(74, 10, 20, 0.22);
}
.sunset__frame.rj-own .sunset__art {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px 0 0;
}
.sunset__frame.rj-own::after {
  height: 34%;
}

/* --- Our Moments --------------------------------------------------------- */
/* On the sandstone, after the couple: the heading in the couple's line's
   italic, the gold lotus divider, then the photo mala. */
.moments {
  position: relative;
  background: var(--sand);
  box-shadow: 0 -1px 0 var(--sand), 0 1px 0 var(--sand);
  padding: clamp(28px, 7vw, 72px) var(--gutter) clamp(56px, 12vw, 120px);
  text-align: center;
}
.moments__title {
  margin: 0;
  color: #6a1e20;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(30px, 8.6vw, 54px);
  font-style: italic;
  font-weight: 700;
  line-height: 1.1;
}
.moments__divider {
  display: block;
  width: min(62%, 340px);
  height: auto;
  margin: clamp(8px, 2.4vw, 16px) auto 0;
}
.moments__sub {
  max-width: 30em;
  margin: clamp(8px, 2vw, 14px) auto 0;
  color: #6a1e20;
  font-family: var(--font-serif);
  font-size: clamp(16px, 4.4vw, 22px);
  font-style: italic;
  line-height: 1.35;
  opacity: 0.85;
}
/* the photo mala: rows of photos hung on a maroon silk cord with a gold
   thread, each a cream print held by a gold clip, a little tilted, swaying
   softly; a marigold at each end of the cord (js/rj.js draws the rows) */
/* the cord runs from one edge of the screen to the other; on a wide screen
   the photos stay in the middle 1100px of it */
.moments__grid {
  margin: clamp(22px, 6vw, 46px) calc(var(--gutter) * -1) 0;
}
.mala-row {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: 0 calc(var(--gutter) * 0.6);
  margin-bottom: clamp(26px, 7vw, 48px);
}
.mala-cord {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  overflow: visible;
  pointer-events: none;
}
.mala-cord path {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.mala-cord .c1 {
  stroke: #7f0033;
  stroke-width: 3.2;
}
.mala-cord .c2 {
  stroke: #e8c36b;
  stroke-width: 1.1;
  stroke-dasharray: 2 5;
}
.mala-flower {
  position: absolute;
  top: -12px;
  width: 30px;
  height: 30px;
  z-index: 1;
  filter: drop-shadow(0 2px 2px rgba(92, 40, 0, 0.3));
}
.mala-flower--l {
  left: 2px;
}
.mala-flower--r {
  right: 2px;
}
.mala-flower svg {
  display: block;
  width: 100%;
  height: 100%;
}
.moment {
  position: relative;
  flex: none;
  width: min(42%, 230px);
  margin: 0;
  rotate: var(--r, 0deg);
  transform-origin: 50% -10px;
}
.mala-row--3 .moment {
  width: min(28%, 240px);
}
.mala-row--4 .moment {
  width: min(21%, 240px);
}
@media (min-width: 760px) {
  .mala-row {
    padding: 0 max(calc(var(--gutter) * 0.6), calc((100% - 1100px) / 2));
  }
}
.moment__open {
  position: relative;
  display: block;
  width: 100%;
  padding: 7px 7px 28px;
  border: 0;
  background: #fffaf2;
  box-shadow: 0 10px 18px rgba(74, 10, 20, 0.22), 0 1px 2px rgba(74, 10, 20, 0.12);
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
/* the gold clip on the cord */
.moment__open::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 50%;
  width: 13px;
  height: 22px;
  margin-left: -6.5px;
  border-radius: 3px;
  background: linear-gradient(90deg, #8a5a17, #f6dc8c 45%, #b9852e);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.25);
}
.moment__open::after {
  content: '\2665';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  color: #a8232c;
  font: 13px/1 Georgia, serif;
}
.moment__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #ead8bd;
}
/* each row's photos drop onto the cord one after another as it comes into
   view, bounce a little and then swing (js/moments.js swings them: it sets
   each one's rotate) */
@keyframes mala-drop {
  0% { opacity: 0; translate: 0 -90px; }
  55% { opacity: 1; translate: 0 9px; }
  78% { translate: 0 -3px; }
  100% { opacity: 1; translate: 0 0; }
}
.moments.is-armed .moment {
  opacity: 0;
  translate: 0 -90px;
}
.moments.is-armed .mala-row.is-shown .moment {
  animation: mala-drop 950ms cubic-bezier(0.3, 0.9, 0.4, 1) both;
}
.moments.is-armed .mala-row.is-shown .moment:nth-of-type(2) {
  animation-delay: 170ms;
}
.moments.is-armed .mala-row.is-shown .moment:nth-of-type(3) {
  animation-delay: 340ms;
}
.moments.is-armed .mala-row.is-shown .moment:nth-of-type(4) {
  animation-delay: 510ms;
}
.moments.is-shown-all .moment {
  opacity: 1;
  translate: none;
}
/* a tap lifts the photo off the cord a little (and rose petals fly from it) */
.moment__open {
  transition: scale 260ms ease, box-shadow 260ms ease;
}
.moment.is-lift .moment__open {
  scale: 1.07;
  box-shadow: 0 18px 30px rgba(74, 10, 20, 0.3), 0 1px 2px rgba(74, 10, 20, 0.12);
}
.mala-petal {
  position: fixed;
  z-index: 59;
  width: 30px;
  height: auto;
  pointer-events: none;
}
/* like the rest of the finale, hidden until the maroon has washed in (app.js) */
.finale.is-armed:not([data-washed]) .moments {
  visibility: hidden;
}

/* the photo, full screen */
.moment-view {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 14px;
  background: rgba(36, 6, 12, 0.92);
  opacity: 0;
  transition: opacity 260ms ease;
}
.moment-view.is-on {
  opacity: 1;
}
.moment-view img {
  max-width: 100%;
  max-height: 100%;
  border: 3px solid #d9a84a;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.moment-view button {
  position: absolute;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(243, 217, 164, 0.7);
  border-radius: 50%;
  background: rgba(74, 10, 20, 0.6);
  color: #f3d9a4;
  font: 26px/1 Georgia, serif;
  cursor: pointer;
}
.moment-view .moment-view__close {
  top: 12px;
  right: 12px;
}
.moment-view .moment-view__prev {
  left: 10px;
  top: 50%;
  translate: 0 -50%;
}
.moment-view .moment-view__next {
  right: 10px;
  top: 50%;
  translate: 0 -50%;
}

/* --- the foot: the invitation sign-off under the painting ------- */
.rj-end {
  background: var(--sand);
  color: #6a1e20;
  font-family: var(--font-serif);
}
.finale.is-armed:not([data-washed]) .rj-end {
  visibility: hidden;
}

/* the client's own venue photo in place of the lake painting (rj.js adds .rj-own-venue): the painting's wide shape,
   cut to fit, softly rounded; the venue's name and the map pin keep their places over it */
.lake__frame.rj-own-venue .lake__art { aspect-ratio: 1567 / 737; width: 100%; height: auto; object-fit: cover; border-radius: 14px;
  box-shadow: 0 18px 30px -18px rgba(40, 0, 10, .55), 0 0 0 1px rgba(201, 162, 39, .45); }
/* a soft cream fade over the photo's top, so the venue's name (half over it) reads on any photo */
.lake__frame.rj-own-venue::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 38%; border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, rgba(248, 236, 222, .92), rgba(248, 236, 222, .55) 55%, rgba(248, 236, 222, 0)); pointer-events: none; }
