/* Warda Invitations — frontend */

.warda-invitation {
	--ww-accent: #b98a3c;
	--ww-accent-soft: #d9b56a;
	--ww-text: #3f3a34;
	--ww-bg: #f6f2ec;
	--ww-footer: #b3a89d;
	--ww-paper: #faf7f1;
	--ww-font-heading: 'Aref Ruqaa', serif;
	--ww-font-body: 'Amiri', serif;
	position: relative;
	width: 100%;
	direction: rtl;
	font-family: var(--ww-font-body);
	color: var(--ww-text);
	background: var(--ww-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1.6;
	-webkit-text-size-adjust: 100%;
	text-align: center;
}
.warda-invitation *, .warda-invitation *::before, .warda-invitation *::after { box-sizing: border-box; }
.warda-invitation svg { display: inline-block; overflow: visible; }

/* Preloader */
.ww-preloader {
	position: fixed; inset: 0; z-index: 9999;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
	background: var(--ww-paper);
	transition: opacity .65s ease, visibility .65s ease;
}
.ww-preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.ww-preloader__text { font-family: var(--ww-font-heading); font-size: 22px; color: var(--ww-accent); }
.ww-preloader__dots { display: flex; gap: 7px; }
.ww-preloader__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ww-accent-soft); animation: ww-dot 1s ease-in-out infinite; }
.ww-preloader__dots i:nth-child(2) { animation-delay: .15s; }
.ww-preloader__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ww-dot { 0%,100%{transform:translateY(0);opacity:.4}50%{transform:translateY(-6px);opacity:1} }

/* Envelope */
.ww-envelope { position: fixed; inset: 0; z-index: 9000; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.ww-envelope__flap { position: absolute; top: 0; bottom: 0; width: 50.15%; background-color: var(--ww-paper); background-size: cover; background-position: center; transition: transform 1.7s cubic-bezier(.77,0,.18,1); will-change: transform; z-index: 1; }
.ww-envelope__flap--left  { left: 0;  box-shadow: inset -24px 0 34px -22px rgba(90,70,30,.35); }
.ww-envelope__flap--right { right: 0; box-shadow: inset  24px 0 34px -22px rgba(90,70,30,.35); }
.ww-envelope__flap::after { content:''; position:absolute; inset:0; background:radial-gradient(120% 90% at 0% 0%,rgba(185,138,60,.10),transparent 55%),radial-gradient(120% 90% at 100% 100%,rgba(185,138,60,.10),transparent 55%); pointer-events:none; }
.ww-envelope__flap[style*="background-image"]::after { background: none; }
.ww-envelope__seam { position:absolute; top:0; bottom:0; left:50%; width:2px; transform:translateX(-50%); z-index:2; background:linear-gradient(rgba(0,0,0,.10),rgba(0,0,0,.22),rgba(0,0,0,.10)); filter:blur(.6px); transition:opacity .9s ease; }
.ww-envelope.is-open .ww-envelope__flap--left  { transform: translateX(-102%); }
.ww-envelope.is-open .ww-envelope__flap--right { transform: translateX(102%); }
.ww-envelope.is-open .ww-envelope__seam        { opacity: 0; }
.ww-envelope.is-gone { display: none; }
.ww-envelope__center { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); z-index:10; display:flex; flex-direction:column; align-items:center; gap:20px; transition:transform .8s cubic-bezier(.5,-.4,.6,1),opacity .6s ease; }
.ww-envelope.is-open .ww-envelope__center { transform:translate(-50%,-50%) scale(.2); opacity:0; }
.ww-envelope__seal { position:relative; width:104px; height:104px; border-radius:50%; background-size:cover; background-position:center; background-repeat:no-repeat; flex-shrink:0; background-image:radial-gradient(circle at 34% 30%,#e9c87e,#c99f4e 55%,#a67c2f 100%); box-shadow:0 6px 18px rgba(120,88,30,.35),inset 0 2px 4px rgba(255,255,255,.45),inset 0 -3px 6px rgba(110,78,20,.4); display:flex; align-items:center; justify-content:center; color:#8a6420; animation:ww-seal-pulse 2.6s ease-in-out infinite; }
/* An uploaded seal is a picture, not a wax blob: drop the gold gradient and
   let it fill the circle (it used to render at natural size, showing only a
   corner of a 400px image inside an 86px disc — i.e. looking blank). */
.ww-envelope__seal--img { background-image:none; background-color:transparent; box-shadow:0 6px 18px rgba(120,88,30,.28); }
.ww-envelope__seal svg { width:50px; height:50px; }
@keyframes ww-seal-pulse { 0%,100%{transform:scale(1)}50%{transform:scale(1.05)} }

.ww-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: #fdfcfa;
	background-color: #6d6a66;
	/* Exactly one screen: the content sits higher and the scroll hint
	   is always visible without scrolling. 100svh accounts for mobile
	   browser toolbars (falls back to 100vh on old browsers). */
	min-height: 100vh;
	min-height: 100svh;
	padding: 40px 22px 92px;
}
.ww-hero__overlay { position:absolute; inset:0; background:linear-gradient(rgba(30,28,26,.22),rgba(30,28,26,.12) 45%,rgba(30,28,26,.38)); pointer-events:none; }
.ww-hero__inner { position:relative; z-index:2; width:100%; max-width:640px; display:flex; flex-direction:column; align-items:center; text-align:center; margin:0 auto; }
.ww-hero__blessing { width:100%; margin-bottom:22px; }
.ww-hero__rule { display:block; width:100%; height:1px; background:rgba(255,255,255,.75); }
.ww-hero__blessing p { margin:12px 0; font-family:var(--ww-font-body); font-weight:500; font-size:clamp(16px,4.2vw,22px); line-height:2; color:#fff; text-shadow:0 1px 6px rgba(0,0,0,.35); }
.ww-hero__stars { display:flex; gap:18px; margin:16px 0 20px; }
.ww-hero__stars svg { width:20px; height:20px; fill:#fff; filter:drop-shadow(0 1px 3px rgba(0,0,0,.35)); }
.ww-hero__stars svg:nth-child(2) { transform:translateY(-6px) scale(1.15); }
.ww-hero__families-intro { margin:0 0 22px; font-family:var(--ww-font-body); font-weight:600; font-size:clamp(20px,5.5vw,30px); color:#fff; text-shadow:0 2px 8px rgba(0,0,0,.4); }
.ww-hero__families { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:6px 18px; width:100%; margin-bottom:24px; }
.ww-hero__family { display:flex; flex-direction:column; align-items:center; gap:8px; }
.ww-hero__role { font-family:var(--ww-font-body); font-weight:600; font-size:clamp(17px,4.5vw,25px); color:#fff; text-shadow:0 2px 6px rgba(0,0,0,.4); }
.ww-hero__parent { font-family:var(--ww-font-body); font-weight:500; font-size:clamp(14px,3.8vw,20px); color:#f3ede2; text-shadow:0 2px 6px rgba(0,0,0,.45); margin-bottom:6px; }
.ww-hero__amp { font-family:var(--ww-font-heading); font-size:clamp(22px,6vw,30px); color:rgba(255,255,255,.85); }
.ww-hero__invite-line { margin:0 0 30px; font-family:var(--ww-font-body); font-weight:500; font-size:clamp(17px,4.5vw,24px); color:#fff; text-shadow:0 2px 8px rgba(0,0,0,.45); }
.ww-hero__names { display:flex; align-items:baseline; justify-content:center; flex-wrap:wrap; gap:6px 16px; margin:0 0 18px; font-weight:400; }
.ww-hero__name { font-family:var(--ww-font-heading); font-size:clamp(34px,8.6vw,68px); line-height:1.25; color:#fdfcfa; text-shadow:0 3px 14px rgba(0,0,0,.45); }
.ww-hero__name--accent { background:linear-gradient(115deg,#f7e3ae 10%,var(--ww-accent-soft) 45%,#a97a2c 90%); -webkit-background-clip:text; background-clip:text; color:transparent; -webkit-text-fill-color:transparent; filter:drop-shadow(0 3px 10px rgba(0,0,0,.4)); }
.ww-hero__names-amp { font-family:'Times New Roman',serif; font-style:italic; font-size:clamp(26px,7vw,48px); color:#fdfcfa; }
.ww-hero__subtitle, .ww-hero__welcome { margin:8px 0 0; font-size:clamp(14px,3.8vw,17px); color:#f4efe7; max-width:520px; }
.ww-scroll-hint { position:absolute; bottom:22px; left:50%; transform:translateX(-50%); z-index:3; display:flex; flex-direction:column; align-items:center; gap:5px; color:#fff; font-size:14px; font-weight:600; font-family:var(--ww-font-body); text-shadow:0 2px 8px rgba(0,0,0,.5); white-space:nowrap; }
/* The hint must be readable the moment the invitation opens: never part of
   the scroll-reveal animation, never starts at opacity 0. */
.ww-animated .ww-scroll-hint { opacity:1 !important; transform:translateX(-50%) !important; }
.ww-scroll-hint.is-gone { opacity:0 !important; pointer-events:none; transition:opacity .5s ease; }
.ww-scroll-hint svg { width:30px; height:18px; animation:ww-bounce 1.8s ease-in-out infinite; }
@keyframes ww-bounce { 0%,100%{transform:translateY(0);opacity:.7}50%{transform:translateY(6px);opacity:1} }
.ww-petals { position:absolute; inset:0; z-index:1; overflow:hidden; pointer-events:none; }
.ww-petal { position:absolute; top:-6%; display:block; border-radius:62% 38% 58% 42%/55% 60% 40% 45%; background:rgba(255,255,255,.85); animation-name:ww-fall; animation-timing-function:linear; animation-iteration-count:infinite; will-change:transform; }
.ww-petal--gold { background:linear-gradient(130deg,#ecd193,var(--ww-accent-soft)); }
@keyframes ww-fall { 0%{transform:translate3d(0,-4vh,0) rotate(0deg);opacity:0}8%{opacity:.9}100%{transform:translate3d(var(--ww-drift,40px),110vh,0) rotate(var(--ww-rot,300deg));opacity:.55} }

/* Reveal */
.ww-animated .ww-reveal { opacity:0; transform:translateY(26px); transition:opacity .9s ease, transform .9s ease; }
.ww-animated .ww-reveal.is-visible, .ww-animated.is-revealed .ww-reveal { opacity:1; transform:translateY(0); }
.ww-hero__inner .ww-reveal:nth-child(1){transition-delay:.12s}
.ww-hero__inner .ww-reveal:nth-child(2){transition-delay:.26s}
.ww-hero__inner .ww-reveal:nth-child(3){transition-delay:.40s}
.ww-hero__inner .ww-reveal:nth-child(4){transition-delay:.54s}
.ww-hero__inner .ww-reveal:nth-child(5){transition-delay:.68s}
.ww-hero__inner .ww-reveal:nth-child(6){transition-delay:.82s}
.ww-hero__inner .ww-reveal:nth-child(7){transition-delay:.96s}
@media (prefers-reduced-motion:reduce) {
	.warda-invitation *,.warda-invitation *::before,.warda-invitation *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
	.ww-animated .ww-reveal{opacity:1;transform:none}
}

@media (max-width:380px) {
	.ww-hero{padding:50px 16px 80px}
	.ww-envelope__seal{width:88px;height:88px}
	.ww-envelope__seal svg{width:44px;height:44px}
	}
@media (min-width:768px) {
	.ww-envelope__seal{width:118px;height:118px}
	.ww-envelope__seal svg{width:58px;height:58px}
}

/* Countdown */
.ww-countdown { position:relative; display:flex; align-items:center; justify-content:center; text-align:center; background-color:var(--ww-bg); background-size:cover; background-position:center; padding:90px 16px 100px; overflow:hidden; }
.ww-countdown__overlay { position:absolute; inset:0; background:linear-gradient(180deg,rgba(246,242,236,.92) 0%,rgba(246,242,236,.80) 50%,rgba(246,242,236,.92) 100%); pointer-events:none; }
.ww-countdown__inner { position:relative; z-index:2; width:100%; max-width:520px; display:flex; flex-direction:column; align-items:center; text-align:center; margin:0 auto; }
.ww-countdown__title { font-family:var(--ww-font-heading); font-size:clamp(30px,8vw,48px); color:var(--ww-text); margin:0 0 12px; font-weight:400; }
.ww-countdown__subtitle { font-family:var(--ww-font-body); font-size:clamp(14px,3.5vw,17px); color:var(--ww-text); opacity:.6; margin:0 0 48px; }
.ww-countdown__cards { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; width:100%; max-width:100%; margin:0 auto; padding:0 8px; }
.ww-countdown__card { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; aspect-ratio:1/1.1; padding:12px 4px; background:rgba(255,255,255,.85); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); border:1px solid rgba(255,255,255,.6); border-radius:20px; box-shadow:0 2px 8px rgba(63,58,52,.04),0 12px 32px -8px rgba(63,58,52,.10); }
.ww-countdown__value { font-family:var(--ww-font-heading); font-size:clamp(32px,9vw,48px); font-weight:700; color:var(--ww-text); line-height:1; }
.ww-countdown__label { font-family:var(--ww-font-body); font-size:clamp(12px,3vw,14px); color:var(--ww-text); opacity:.55; }
.ww-countdown__decor { margin-top:48px; opacity:.25; color:var(--ww-text); }
.ww-countdown__decor svg { width:60px; height:60px; }
@media (max-width:360px) { .ww-countdown__cards{gap:10px} .ww-countdown__card{border-radius:16px;padding:12px 6px} }

/* Program */
.ww-program { position:relative; background-color:var(--ww-bg); background-size:cover; background-position:center; padding:90px 24px 100px; text-align:center; }
.ww-program__overlay { position:absolute; inset:0; background:linear-gradient(180deg,rgba(246,242,236,.92) 0%,rgba(246,242,236,.82) 50%,rgba(246,242,236,.92) 100%); pointer-events:none; }
.ww-program__inner { position:relative; z-index:2; width:100%; max-width:760px; margin:0 auto; }
.ww-program__title { text-align:center; font-family:var(--ww-font-heading); font-size:clamp(30px,8vw,48px); color:var(--ww-text); margin:0 0 12px; font-weight:400; }
.ww-program__title-rule { display:block; width:60px; height:2px; margin:0 auto 56px; background:linear-gradient(90deg,transparent,var(--ww-accent),transparent); border-radius:2px; }
.ww-timeline { position:relative; padding:10px 0 20px; }
.ww-timeline__line { position:absolute; top:0; bottom:0; left:50%; width:2px; transform:translateX(-50%); background:linear-gradient(to bottom,transparent 0%,rgba(185,138,60,.3) 8%,rgba(185,138,60,.3) 92%,transparent 100%); }
.ww-timeline__item { position:relative; display:grid; margin-bottom:56px; text-align:right; }
.ww-timeline__item:last-child { margin-bottom:0; }
.ww-timeline__item--right { grid-template-columns:1fr 42px 1fr; }
.ww-timeline__item--left  { grid-template-columns:1fr 42px 1fr; }
.ww-timeline__dot { grid-column:2; align-self:start; justify-self:center; margin-top:22px; width:14px; height:14px; border-radius:50%; background:var(--ww-accent); border:3px solid var(--ww-bg); box-shadow:0 0 0 2px rgba(185,138,60,.35); z-index:2; }
.ww-timeline__card { padding:24px; background:rgba(255,255,255,.70); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); border:1px solid rgba(255,255,255,.5); border-radius:20px; box-shadow:0 2px 6px rgba(63,58,52,.03),0 10px 28px -8px rgba(63,58,52,.10); transition:transform .3s ease,box-shadow .3s ease; }
.ww-timeline__card:hover { transform:translateY(-3px); box-shadow:0 4px 10px rgba(63,58,52,.06),0 18px 40px -10px rgba(63,58,52,.16); }
.ww-timeline__item--right .ww-timeline__card { grid-column:3; grid-row:1; text-align:right; }
.ww-timeline__item--right .ww-timeline__icon-col { grid-column:1; grid-row:1; display:flex; align-items:flex-start; justify-content:flex-end; padding-top:14px; padding-left:10px; }
.ww-timeline__item--left .ww-timeline__card  { grid-column:1; grid-row:1; text-align:left; }
.ww-timeline__item--left .ww-timeline__icon-col  { grid-column:3; grid-row:1; display:flex; align-items:flex-start; justify-content:flex-start; padding-top:14px; padding-right:10px; }
.ww-timeline__icon { width:56px; height:56px; border-radius:50%; background:rgba(255,255,255,.6); border:1px solid rgba(185,138,60,.15); display:flex; align-items:center; justify-content:center; color:var(--ww-accent); flex:none; }
.ww-timeline__icon svg { width:30px; height:30px; }
.ww-timeline__date { display:inline-block; font-size:12px; font-weight:600; color:var(--ww-accent); letter-spacing:.8px; margin-bottom:8px; direction:ltr; unicode-bidi:isolate; }
.ww-timeline__event-title { font-family:var(--ww-font-heading); font-size:clamp(20px,5vw,26px); color:var(--ww-text); margin:0 0 8px; font-weight:400; line-height:1.4; }
.ww-timeline__venue { font-family:var(--ww-font-body); font-size:13px; font-weight:500; color:var(--ww-text); opacity:.6; margin:0 0 4px; }
.ww-timeline__time { display:inline-block; font-size:14px; font-weight:600; color:var(--ww-text); opacity:.5; margin-bottom:14px; direction:ltr; unicode-bidi:isolate; }
.ww-timeline__maps-btn { display:inline-flex; align-items:center; gap:6px; padding:9px 22px; border-radius:999px; background:linear-gradient(135deg,var(--ww-accent-soft),var(--ww-accent)); color:#fff; font-size:13px; font-weight:600; font-family:var(--ww-font-body); text-decoration:none; box-shadow:0 4px 14px -4px rgba(185,138,60,.5); transition:transform .2s ease,box-shadow .2s ease; }
.ww-timeline__maps-btn:hover { transform:translateY(-2px); box-shadow:0 8px 20px -4px rgba(185,138,60,.55); color:#fff; }
.ww-timeline__maps-btn svg { width:15px; height:15px; }
@media (max-width:700px) {
	.ww-timeline__line{left:24px}
	.ww-timeline__item--right,.ww-timeline__item--left{grid-template-columns:48px 1fr}
	.ww-timeline__dot{grid-column:1;justify-self:center;margin-top:28px}
	.ww-timeline__item--right .ww-timeline__card,.ww-timeline__item--left .ww-timeline__card{grid-column:2;grid-row:1;text-align:right}
	.ww-timeline__item--right .ww-timeline__icon-col,.ww-timeline__item--left .ww-timeline__icon-col{grid-column:2;grid-row:2;justify-content:flex-end;padding:10px 24px 0 0}
	.ww-timeline__icon{width:44px;height:44px}
	.ww-timeline__icon svg{width:24px;height:24px}
	.ww-timeline__item{margin-bottom:40px}
}

/* Footer */
.ww-footer { position:relative; padding:80px 24px 56px; background-color:var(--ww-footer); background-size:cover; background-position:center; text-align:center; color:#fff; }
.ww-footer__inner { position:relative; z-index:2; max-width:480px; margin:0 auto; display:flex; flex-direction:column; align-items:center; }
.ww-footer__rules { display:flex; align-items:center; gap:14px; margin-bottom:30px; }
.ww-footer__rules span { display:block; width:50px; height:1px; background:rgba(255,255,255,.35); }
.ww-footer__names { font-family:var(--ww-font-heading); font-size:clamp(26px,7vw,38px); font-weight:400; margin:0 0 14px; color:#fff; line-height:1.4; }
.ww-footer__names span { font-family:'Times New Roman',serif; font-style:italic; margin:0 8px; opacity:.75; font-size:.7em; }
.ww-footer__message { font-family:var(--ww-font-body); font-size:clamp(14px,3.8vw,17px); color:rgba(255,255,255,.80); margin:0 0 32px; line-height:1.8; }
.ww-footer__social { display:flex; gap:12px; margin-bottom:32px; }
.ww-footer__social a { display:flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:50%; border:1.5px solid rgba(255,255,255,.30); color:rgba(255,255,255,.80); text-decoration:none; transition:all .25s ease; }
.ww-footer__social a:hover { background:rgba(255,255,255,.15); border-color:rgba(255,255,255,.65); color:#fff; transform:translateY(-2px); }
.ww-footer__social svg { width:20px; height:20px; }
.ww-footer__rings { margin-bottom:10px; }
.ww-footer__rings svg { width:56px; height:28px; color:rgba(255,255,255,.55); }

/* Countdown mobile fixes */
@media (max-width: 480px) {
	.ww-countdown { padding: 70px 12px 80px; }
	.ww-countdown__inner { max-width: 100%; padding: 0; }
	.ww-countdown__cards { gap: 8px; padding: 0; }
	.ww-countdown__value { font-size: clamp(24px, 7vw, 36px); }
	.ww-countdown__label { font-size: 11px; }
	.ww-countdown__card { border-radius: 16px; }
}

/* ============================================================ Story */
.ww-story { padding: 70px 24px; background: var(--ww-paper); }
.ww-story__inner { max-width: 560px; margin: 0 auto; }
.ww-story__ornament { color: var(--ww-accent); margin-bottom: 14px; }
.ww-story__ornament svg { width: 90px; height: 36px; }
.ww-story__title { font-family: var(--ww-font-heading); font-size: 30px; color: var(--ww-accent); margin: 0 0 16px; font-weight: 400; }
.ww-story__text { font-family:var(--ww-font-body); font-weight:500; font-size: 16px; line-height: 2; margin: 0; color: var(--ww-text); }

/* ============================================================ Gallery */
.ww-gallery { padding: 70px 18px; background: var(--ww-bg); }
.ww-gallery__inner { max-width: 720px; margin: 0 auto; }
.ww-gallery__title { font-family: var(--ww-font-heading); font-size: 30px; color: var(--ww-accent); margin: 0 0 10px; font-weight: 400; }
.ww-gallery__title-rule { display: block; width: 70px; height: 2px; margin: 0 auto 28px; background: linear-gradient(90deg, transparent, var(--ww-accent), transparent); }
.ww-gallery__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .ww-gallery__grid { grid-template-columns: repeat(3, 1fr); } }
.ww-gallery__item { position: relative; display: block; padding: 0; border: none; background: none; cursor: pointer; border-radius: 14px; overflow: hidden; aspect-ratio: 1/1; box-shadow: 0 6px 18px rgba(70, 55, 25, .14); -webkit-tap-highlight-color: transparent; }
.ww-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.ww-gallery__item:hover img, .ww-gallery__item:focus-visible img { transform: scale(1.06); }
.ww-gallery__item::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 14px; pointer-events: none; }

/* Lightbox */
.ww-lightbox { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; padding: 26px; background: rgba(14, 12, 10, .92); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ww-lightbox.is-open { display: flex; }
.ww-lightbox img { max-width: 100%; max-height: 88vh; border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,.6); }
.ww-lightbox__close { position: absolute; top: 16px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255,255,255,.14); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
html.ww-lightbox-open, html.ww-lightbox-open body { overflow: hidden; }

/* ============================================================ Location */
.ww-location { padding: 64px 24px; background: var(--ww-paper); }
.ww-location__inner { max-width: 480px; margin: 0 auto; }
.ww-location__pin { display: inline-flex; color: var(--ww-accent); margin-bottom: 12px; }
.ww-location__pin svg { width: 42px; height: 42px; }
.ww-location__address { font-family:var(--ww-font-body); font-weight:600; font-size: 17px; line-height: 1.9; margin: 0 0 20px; }
.ww-location__btn { display: inline-block; padding: 13px 34px; border-radius: 30px; background: linear-gradient(135deg, var(--ww-accent-soft), var(--ww-accent)); color: #fff; font-family: var(--ww-font-heading); font-size: 17px; text-decoration: none; box-shadow: 0 8px 22px rgba(120, 88, 30, .3); transition: transform .25s ease, box-shadow .25s ease; }
.ww-location__btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(120, 88, 30, .38); color: #fff; }

/* ============================================================ RSVP */
.ww-rsvp { padding: 70px 22px; background: var(--ww-bg); }
.ww-rsvp__inner { max-width: 440px; margin: 0 auto; }
.ww-rsvp__title { font-family: var(--ww-font-heading); font-size: 30px; color: var(--ww-accent); margin: 0 0 8px; font-weight: 400; }
.ww-rsvp__subtitle { font-size: 15px; margin: 0 0 26px; opacity: .85; }
.ww-rsvp__form { background: var(--ww-paper); border: 1px solid rgba(185, 138, 60, .22); border-radius: 20px; padding: 26px 22px; text-align: right; box-shadow: 0 14px 40px rgba(90, 70, 30, .10); position: relative; }
.ww-rsvp__field { display: block; margin-bottom: 16px; }
.ww-rsvp__field > span { display: block; font-size: 14px; margin-bottom: 7px; color: var(--ww-text); opacity: .9; }
.ww-rsvp__field input[type="text"],
.ww-rsvp__field input[type="number"],
.ww-rsvp__field textarea { width: 100%; padding: 12px 14px; border: 1px solid rgba(63, 58, 52, .22); border-radius: 12px; background: #fff; font-family: var(--ww-font-body); font-size: 16px; color: var(--ww-text); outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.ww-rsvp__field input:focus, .ww-rsvp__field textarea:focus { border-color: var(--ww-accent); box-shadow: 0 0 0 3px rgba(185, 138, 60, .16); }
.ww-rsvp__field textarea { resize: vertical; min-height: 76px; }
.ww-rsvp__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.ww-rsvp__choice { position: relative; display: block; cursor: pointer; }
.ww-rsvp__choice input { position: absolute; opacity: 0; pointer-events: none; }
.ww-rsvp__choice span { display: block; padding: 12px 8px; text-align: center; border: 1.5px solid rgba(63, 58, 52, .22); border-radius: 12px; font-size: 14.5px; background: #fff; transition: all .2s ease; }
.ww-rsvp__choice input:checked + span { border-color: var(--ww-accent); background: rgba(185, 138, 60, .08); color: var(--ww-accent); font-weight: 700; }
.ww-rsvp__submit { display: block; width: 100%; padding: 15px; margin-top: 4px; border: none; border-radius: 14px; background: linear-gradient(135deg, var(--ww-accent-soft), var(--ww-accent)); color: #fff; font-family: var(--ww-font-heading); font-size: 18px; cursor: pointer; box-shadow: 0 8px 22px rgba(120, 88, 30, .3); transition: transform .2s ease, opacity .2s ease; }
.ww-rsvp__submit:hover:not(:disabled) { transform: translateY(-1px); }
.ww-rsvp__submit:disabled { opacity: .6; cursor: default; }
.ww-rsvp__feedback { margin: 14px 0 0; font-size: 15px; text-align: center; color: #2e7d32; }
.ww-rsvp__feedback.is-error { color: #b71c1c; }
.ww-rsvp__form.is-sent .ww-rsvp__field,
.ww-rsvp__form.is-sent .ww-rsvp__names,
.ww-rsvp__form.is-sent .ww-rsvp__choices,
.ww-rsvp__form.is-sent .ww-rsvp__submit { display: none; }
.ww-rsvp__form.is-sent .ww-rsvp__feedback { font-size: 17px; padding: 8px 0; }

/* ============================================================ Music toggle */
.ww-music-toggle { position: fixed; bottom: 18px; left: 18px; z-index: 9500; width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer; background: rgba(250, 247, 241, .94); color: var(--ww-accent); box-shadow: 0 6px 18px rgba(60, 45, 15, .28); display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; transition: transform .2s ease; }
.ww-music-toggle:hover { transform: scale(1.07); }
.ww-music-toggle svg { width: 22px; height: 22px; }
.ww-music-toggle .ww-music-toggle__on { display: none; }
.ww-music-toggle .ww-music-toggle__off { display: block; }
.ww-music-toggle.is-playing .ww-music-toggle__on { display: block; animation: ww-music-pulse 1.6s ease-in-out infinite; }
.ww-music-toggle.is-playing .ww-music-toggle__off { display: none; }
@keyframes ww-music-pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.12)} }

/* ============================================================
   SCROLL SNAP — the first three screens land on their own
   (hero → countdown → program). After the program everything
   scrolls freely, so the snap points stop there on purpose.
   ============================================================ */
.warda-invitation .ww-hero,
.ww-tpl-classic .ww-countdown,
.ww-tpl-floral .ww-countdown,
.ww-tpl-geometric .ww-countdown,
.ww-tpl-royal .ww-countdown,
.ww-tpl-minimal .ww-countdown,
.warda-invitation .ww-countdown,
.warda-invitation .ww-story {
	scroll-snap-align: start;
	scroll-snap-stop: always;
}
/* Countdown is one full screen so its snap point is unambiguous — but the
   content must be CENTRED in it, otherwise the extra height shows up as a
   dead band under the counters. */
.warda-invitation .ww-countdown {
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: 24px;
	padding-bottom: 24px;
}
.ww-countdown__inner { width: 100%; }
@media (prefers-reduced-motion: reduce) {
	.warda-invitation .ww-hero,
	.warda-invitation .ww-countdown { scroll-snap-align: none; }
}

/* ============================================================
   PROGRAM TIMELINE (mobile) — cards alternate around a true
   centre line, each facing its own icon across the line.
   The columns are SYMMETRIC (1fr | rail | 1fr) so the line,
   the dots and the icons all line up; an asymmetric grid puts
   the dots off the line and the whole rail looks broken.
   ============================================================ */
@media (max-width: 767px) {
	.ww-program { padding-left: 12px; padding-right: 12px; }
	.ww-timeline { padding: 6px 0 14px; }
	.ww-timeline__line { left: 50%; right: auto; transform: translateX(-50%); }

	.ww-timeline__item--right,
	.ww-timeline__item--left { grid-template-columns: 1fr 46px 1fr; }
	.ww-timeline__item { margin-bottom: 18px; }

	/* RTL: column 1 is the RIGHT side of the screen. */
	.ww-timeline__item--right .ww-timeline__card     { grid-column: 1; }
	.ww-timeline__item--right .ww-timeline__icon-col { grid-column: 3; }
	.ww-timeline__item--left  .ww-timeline__card     { grid-column: 3; }
	.ww-timeline__item--left  .ww-timeline__icon-col { grid-column: 1; }

	.ww-timeline__item--right .ww-timeline__card,
	.ww-timeline__item--left  .ww-timeline__card {
		grid-row: 1; text-align: right; padding: 11px 12px; border-radius: 14px;
	}
	.ww-timeline__item--right .ww-timeline__icon-col,
	.ww-timeline__item--left  .ww-timeline__icon-col {
		grid-row: 1; display: flex; align-items: center; justify-content: center; padding: 0;
	}
	.ww-timeline__dot {
		grid-column: 2; grid-row: 1; justify-self: center; align-self: center;
		width: 10px; height: 10px; border-width: 2px; margin: 0;
	}

	.ww-timeline__icon { width: 38px; height: 38px; }
	.ww-timeline__icon svg { width: 19px; height: 19px; }
	.ww-timeline__date { font-size: 9.5px; margin-bottom: 3px; letter-spacing: .5px; }
	.ww-timeline__event-title { font-size: 14.5px; margin: 0 0 2px; line-height: 1.35; }
	.ww-timeline__venue { font-size: 11px; margin: 0 0 1px; line-height: 1.4; }
	.ww-timeline__time { font-size: 11.5px; margin-bottom: 7px; }
	.ww-timeline__maps-btn { padding: 5px 11px; font-size: 10.5px; gap: 4px; }
	.ww-timeline__maps-btn svg { width: 11px; height: 11px; }
}

/* ============================================================
   MAP MODAL — shared by the program buttons and the main
   location button (see standalone renderer).
   ============================================================ */
.ww-location__btn { cursor: pointer; border: none; font-family: var(--ww-font-body); }

/* ============================================================
   ENVELOPE LABEL — still and large.
   The label used to ride a rotating SVG ring: unreadable, and
   too small to notice. It is now straight, big and stationary.
   ============================================================ */
.ww-envelope__label {
	font-family: var(--ww-font-body);
	font-size: 21px;
	font-weight: 700;
	color: var(--ww-accent);
	letter-spacing: .2px;
	text-align: center;
	line-height: 1.5;
	padding: 0 16px;
	max-width: 300px;
	text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}
@media (max-width: 380px) { .ww-envelope__label { font-size: 19px; } }
@media (min-width: 768px) { .ww-envelope__label { font-size: 23px; } }
@media (prefers-reduced-motion: reduce) {
	.ww-envelope__seal { animation: none; }
}

/* ============================================================ Notes / conditions */
.ww-notes { padding: 50px 22px; background: var(--ww-bg); }
.ww-notes__card {
	position: relative;
	max-width: 440px;
	margin: 0 auto;
	background: var(--ww-paper);
	border: 1px solid rgba(185, 138, 60, .18);
	border-radius: 20px;
	padding: 34px 26px 26px;
	text-align: center;
	box-shadow: 0 14px 40px rgba(90, 70, 30, .10);
}
/* A soft accent line along the top instead of a side bar — reads as a
   deliberate card design rather than a generic callout box. */
.ww-notes__card::before {
	content: '';
	position: absolute;
	top: 0; left: 50%;
	transform: translateX(-50%);
	width: 56px; height: 3px;
	border-radius: 0 0 3px 3px;
	background: linear-gradient(90deg, transparent, var(--ww-accent), transparent);
}
.ww-notes__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px; height: 52px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(185,138,60,.14), rgba(185,138,60,.06));
	color: var(--ww-accent);
}
.ww-notes__icon svg { width: 24px; height: 24px; }
.ww-notes__title { font-family: var(--ww-font-heading); font-size: 21px; color: var(--ww-accent); margin: 0 0 8px; font-weight: 400; }
.ww-notes__text { font-family: var(--ww-font-body); font-size: 15px; font-weight: 500; line-height: 1.9; margin: 0; color: var(--ww-text); }

/* ============================================================ Dress code */
.ww-dresscode { padding: 36px 22px 40px; background: var(--ww-bg); text-align: center; }
.ww-notes + .ww-dresscode { padding-top: 14px; }
.ww-dresscode__card {
	max-width: 400px;
	margin: 0 auto;
	/* No card background — the swatches sit directly in the section. */
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
}
.ww-dresscode__icon { display: none; }
.ww-dresscode__title { font-family: var(--ww-font-heading); font-size: 22px; color: var(--ww-accent); margin: 0 0 6px; font-weight: 400; }
.ww-dresscode__subtitle { font-family: var(--ww-font-body); font-size: 14px; font-weight: 500; color: var(--ww-text); opacity: .72; margin: 0 0 26px; line-height: 1.7; }
.ww-dresscode__swatches { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.ww-dresscode__swatch {
	position: relative;
	width: 56px; height: 56px;
	border-radius: 50%;
	flex-shrink: 0;
	/* Clean ring — thin accent border, soft outer glow, NO inset shadows
	   that darken or distort the chosen colour. */
	box-shadow:
		0 0 0 2.5px var(--ww-paper),
		0 0 0 3.5px rgba(185, 138, 60, .32),
		0 4px 12px rgba(0, 0, 0, .10);
	transition: transform .25s ease, box-shadow .25s ease;
}
.ww-dresscode__swatch:hover {
	transform: translateY(-3px) scale(1.06);
	box-shadow:
		0 0 0 2.5px var(--ww-paper),
		0 0 0 3.5px var(--ww-accent),
		0 8px 20px rgba(0, 0, 0, .16);
}
@media (max-width: 360px) {
	.ww-dresscode__swatch { width: 48px; height: 48px; }
}

/* ============================================================ RSVP additions */
.ww-rsvp__names { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ww-rsvp__names .ww-rsvp__field { margin-bottom: 16px; }
.ww-rsvp__counter { display: block; margin-top: 5px; font-size: 11.5px; color: var(--ww-text); opacity: .55; text-align: left; direction: ltr; }
.ww-rsvp__counter.is-max { color: #b71c1c; opacity: 1; font-weight: 700; }

/* ============================================================ Studio brand bar */
.ww-brand { background: #12100e; color: #e8e3da; padding: 20px 22px 26px; text-align: center; }
.ww-brand__main { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; padding: 6px 4px; border-radius: 12px; transition: opacity .2s ease; }
.ww-brand__main:hover { opacity: .8; }
.ww-brand__logo { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ww-brand__txt { display: flex; flex-direction: column; align-items: flex-start; text-align: right; }
[dir="rtl"] .ww-brand__txt { align-items: flex-end; }
.ww-brand__name { font-family: var(--ww-font-body); font-size: 14.5px; font-weight: 700; color: #fff; }
.ww-brand__tagline { font-family: var(--ww-font-body); font-size: 11.5px; opacity: .62; margin-top: 1px; }
.ww-brand__links { display: flex; justify-content: center; gap: 9px; margin-top: 14px; }
.ww-brand__links a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.09); color: #e8e3da; transition: background .2s ease, transform .2s ease; }
.ww-brand__links a:hover { background: var(--ww-accent); color: #fff; transform: translateY(-2px); }
.ww-brand__links svg { width: 17px; height: 17px; }

/* ============================================================ Countdown inline map */
.ww-countdown__map { width: 100%; max-width: 360px; margin: 30px auto 0; }
.ww-countdown__map-frame {
	width: 100%;
	height: 200px;
	border-radius: 16px;
	overflow: hidden;
	background: #eee9e1;
	box-shadow: 0 8px 28px rgba(60, 50, 30, .14);
	border: 2px solid rgba(185, 138, 60, .22);
}
.ww-countdown__map-frame .leaflet-container { border-radius: 16px; }
.ww-countdown__map-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 14px auto 0;
	padding: 12px 24px;
	background: rgba(255, 255, 255, .88);
	border: 1px solid rgba(185, 138, 60, .28);
	border-radius: 30px;
	color: var(--ww-text);
	font-family: var(--ww-font-body);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(60, 50, 30, .10);
	transition: transform .2s ease, box-shadow .2s ease;
	-webkit-tap-highlight-color: transparent;
}
.ww-countdown__map-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(60, 50, 30, .18); }
.ww-countdown__map-btn svg { width: 18px; height: 18px; color: #c0392b; flex-shrink: 0; }

/* ============================================================
   ENVELOPE OPENING STYLES
   The default "slide" is already defined above. These are the
   three additional styles the admin can pick from.
   ============================================================ */

/* CURTAIN — flaps slide up/down instead of left/right */
.ww-envelope--curtain .ww-envelope__flap--left,
.ww-envelope--curtain .ww-envelope__flap--right {
	left: 0; right: 0; width: 100%; height: 50%; transform: none;
}
.ww-envelope--curtain .ww-envelope__flap--left  { top: 0; bottom: auto; }
.ww-envelope--curtain .ww-envelope__flap--right { top: auto; bottom: 0; }
.ww-envelope--curtain .ww-envelope__seam {
	width: 100%; height: 1px; left: 0; top: 50%; transform: translateY(-50%);
}
.ww-envelope--curtain.is-open .ww-envelope__flap--left  { transform: translateY(-102%); }
.ww-envelope--curtain.is-open .ww-envelope__flap--right { transform: translateY(102%); }

/* BOOK — left flap stays, right flap rotates like a book page */
.ww-envelope--book .ww-envelope__flap--right {
	transform-origin: left center;
	transition: transform 1.2s cubic-bezier(.4, 0, .2, 1);
}
.ww-envelope--book.is-open .ww-envelope__flap--left  { transform: none; opacity: 0; transition: opacity .6s .4s ease; }
.ww-envelope--book.is-open .ww-envelope__flap--right { transform: perspective(1200px) rotateY(-180deg); }

/* FADE — both flaps fade out together (no sliding) */
.ww-envelope--fade .ww-envelope__flap--left,
.ww-envelope--fade .ww-envelope__flap--right {
	transition: opacity 1s ease;
}
.ww-envelope--fade.is-open .ww-envelope__flap--left,
.ww-envelope--fade.is-open .ww-envelope__flap--right { opacity: 0; transform: none; }
.ww-envelope--fade .ww-envelope__seam { transition: opacity .4s ease; }

/* ====================================================================
   VISUAL TEMPLATES
   Each template is a complete look applied via a single CSS class on
   the root .warda-invitation. They layer on top of the base styles
   and the admin's colour/font choices, adding decorative treatments,
   border patterns, shadows, and layout tweaks that make each design
   feel purpose-built.
   ==================================================================== */

/* ---------------------------------------------------------- CLASSIC
   (default) — gold corners, subtle borders, warm paper.
   Most of the base CSS IS the classic look, so only light touches. */
.ww-tpl-classic .ww-hero::after {
	content: '';
	position: absolute; inset: 20px;
	border: 1px solid rgba(185, 138, 60, .25);
	border-radius: 2px;
	pointer-events: none;
	z-index: 1;
}
.ww-tpl-classic .ww-countdown__cards { border-top: 1px solid rgba(185, 138, 60, .15); border-bottom: 1px solid rgba(185, 138, 60, .15); padding: 28px 0; }

/* ---------------------------------------------------------- FLORAL
   Watercolour flower corners, soft shadows, rounded everything. */
.ww-tpl-floral .ww-hero { overflow: hidden; }
.ww-tpl-floral .ww-hero::before,
.ww-tpl-floral .ww-hero::after {
	content: '';
	position: absolute;
	width: 220px; height: 220px;
	background: radial-gradient(ellipse at center,
		rgba(196, 139, 139, .22) 0%,
		rgba(196, 139, 139, .08) 40%,
		transparent 70%);
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
}
.ww-tpl-floral .ww-hero::before { top: -60px; right: -60px; }
.ww-tpl-floral .ww-hero::after  { bottom: -60px; left: -60px; }
.ww-tpl-floral .ww-section { position: relative; }
.ww-tpl-floral .ww-program,
.ww-tpl-floral .ww-countdown { overflow: hidden; }
.ww-tpl-floral .ww-program::before {
	content: '';
	position: absolute;
	width: 180px; height: 180px;
	top: -40px; left: -40px;
	background: radial-gradient(ellipse at center,
		rgba(125, 148, 113, .18) 0%,
		transparent 65%);
	border-radius: 50%;
	pointer-events: none;
}
.ww-tpl-floral .ww-timeline__card { border-radius: 20px; border: 1px solid rgba(196, 139, 139, .2); }
.ww-tpl-floral .ww-countdown__card { border-radius: 20px; }
.ww-tpl-floral .ww-notes__card,
.ww-tpl-floral .ww-rsvp__form { border-radius: 24px; }

/* ---------------------------------------------------------- GEOMETRIC
   Hard lines, thin borders, hexagonal/angular ornaments. */
.ww-tpl-geometric .ww-hero::after {
	content: '';
	position: absolute;
	inset: 24px;
	border: 2px solid rgba(255, 255, 255, .35);
	pointer-events: none;
	z-index: 1;
}
.ww-tpl-geometric .ww-hero::before {
	content: '';
	position: absolute;
	inset: 30px;
	border: 1px solid rgba(255, 255, 255, .18);
	pointer-events: none;
	z-index: 1;
}
.ww-tpl-geometric .ww-hero__blessing { border: none; }
.ww-tpl-geometric .ww-hero__rule { display: none; }
.ww-tpl-geometric .ww-hero__stars svg { display: none; }
.ww-tpl-geometric .ww-hero__stars::before {
	content: '◆';
	font-size: 12px;
	color: rgba(255, 255, 255, .7);
	letter-spacing: 18px;
}
.ww-tpl-geometric .ww-timeline__card { border-radius: 4px; border: 1.5px solid rgba(185, 138, 60, .25); }
.ww-tpl-geometric .ww-timeline__icon { border-radius: 8px; }
.ww-tpl-geometric .ww-timeline__dot { border-radius: 2px; transform: rotate(45deg); }
.ww-tpl-geometric .ww-countdown__card { border-radius: 6px; }
.ww-tpl-geometric .ww-notes__card,
.ww-tpl-geometric .ww-rsvp__form { border-radius: 6px; }
.ww-tpl-geometric .ww-rsvp__field input,
.ww-tpl-geometric .ww-rsvp__field textarea { border-radius: 4px; }
.ww-tpl-geometric .ww-gallery__item { border-radius: 4px; }
.ww-tpl-geometric .ww-countdown__map-frame { border-radius: 4px; }

/* ---------------------------------------------------------- ROYAL
   Islamic arches, dense ornamental borders, mosque-dome shapes. */
.ww-tpl-royal .ww-hero { overflow: hidden; }
.ww-tpl-royal .ww-hero::after {
	content: '';
	position: absolute;
	inset: 14px;
	border: 3px double var(--ww-accent);
	border-radius: 8px;
	pointer-events: none;
	z-index: 1;
	opacity: .35;
}
.ww-tpl-royal .ww-hero__blessing {
	position: relative;
	padding: 18px 24px;
	border: 1.5px solid rgba(185, 138, 60, .3);
	border-radius: 8px;
	background: rgba(0, 0, 0, .15);
}
.ww-tpl-royal .ww-hero__rule { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--ww-accent), transparent); }
.ww-tpl-royal .ww-section { position: relative; }
.ww-tpl-royal .ww-program::after {
	content: '';
	position: absolute;
	bottom: 0; left: 50%;
	transform: translateX(-50%);
	width: 120px; height: 2px;
	background: linear-gradient(90deg, transparent, var(--ww-accent), transparent);
}
.ww-tpl-royal .ww-timeline__card {
	border: 1.5px solid rgba(185, 138, 60, .2);
	box-shadow: 0 6px 20px rgba(120, 88, 30, .12);
}
.ww-tpl-royal .ww-timeline__icon {
	background: linear-gradient(135deg, rgba(185, 138, 60, .15), rgba(185, 138, 60, .05));
	border: 1.5px solid rgba(185, 138, 60, .25);
}
.ww-tpl-royal .ww-countdown__card {
	border: 1.5px solid rgba(185, 138, 60, .2);
	box-shadow: 0 4px 14px rgba(120, 88, 30, .10);
}
.ww-tpl-royal .ww-notes__card,
.ww-tpl-royal .ww-rsvp__form {
	border: 1.5px solid rgba(185, 138, 60, .22);
}
.ww-tpl-royal .ww-gallery__item { border: 1.5px solid rgba(185, 138, 60, .18); }

/* ---------------------------------------------------------- MINIMAL
   Maximum white space, no ornaments, hairline typography. */
.ww-tpl-minimal .ww-hero__stars { display: none; }
.ww-tpl-minimal .ww-hero__rule { display: none; }
.ww-tpl-minimal .ww-hero__blessing { border: none; padding: 0; margin-bottom: 40px; }
.ww-tpl-minimal .ww-hero__blessing p { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; opacity: .75; }
.ww-tpl-minimal .ww-hero__families-intro { font-size: 13px; letter-spacing: .8px; text-transform: uppercase; opacity: .7; }
.ww-tpl-minimal .ww-hero__name { font-weight: 300; letter-spacing: 2px; }
.ww-tpl-minimal .ww-hero__invite-line { font-size: 13px; letter-spacing: .8px; opacity: .7; }
.ww-tpl-minimal .ww-countdown__card { background: transparent; border: 1px solid rgba(63, 58, 52, .15); border-radius: 0; box-shadow: none; }
.ww-tpl-minimal .ww-countdown__decor { display: none; }
.ww-tpl-minimal .ww-timeline__card { box-shadow: none; border: 1px solid rgba(63, 58, 52, .12); border-radius: 4px; }
.ww-tpl-minimal .ww-timeline__icon { background: transparent; border: 1px solid rgba(63, 58, 52, .2); box-shadow: none; }
.ww-tpl-minimal .ww-timeline__dot { border-color: rgba(63, 58, 52, .3); }
.ww-tpl-minimal .ww-notes__card,
.ww-tpl-minimal .ww-notes__card::before { display: none; }
.ww-tpl-minimal .ww-notes__icon,
.ww-tpl-minimal .ww-rsvp__form { box-shadow: none; border: 1px solid rgba(63, 58, 52, .12); }
.ww-tpl-minimal .ww-rsvp__submit { border-radius: 4px; box-shadow: none; background: var(--ww-text); }
.ww-tpl-minimal .ww-gallery__item { border-radius: 0; box-shadow: none; border: 1px solid rgba(63, 58, 52, .1); }
.ww-tpl-minimal .ww-gallery__item::after { display: none; }
.ww-tpl-minimal .ww-scroll-hint { text-transform: uppercase; letter-spacing: 2px; font-size: 11px; }

/* ============================================================ Story photos */
.ww-story__photos {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	margin: 24px auto;
	max-width: 400px;
}
/* If there's only 1 photo, it takes the full width */
.ww-story__photo--main:only-child {
	grid-column: 1 / -1;
}
/* If there's 3 photos, the first one spans both columns */
.ww-story__photos:has(.ww-story__photo:nth-child(3):last-child) .ww-story__photo--main {
	grid-column: 1 / -1;
}
.ww-story__photo {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / 1;
}
.ww-story__photo--main {
	aspect-ratio: 4 / 3;
}
.ww-story__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .6s ease;
}
.ww-story__photo:hover img { transform: scale(1.04); }

/* ---- FRAME STYLES PER TEMPLATE ---- */

/* CLASSIC — rounded corners, gold ring border, soft shadow */
.ww-tpl-classic .ww-story__photo,
.ww-story__photo {
	border-radius: 16px;
	border: 2px solid rgba(185, 138, 60, .25);
	box-shadow: 0 8px 28px rgba(90, 70, 30, .12);
}

/* FLORAL — heavy rounded, soft pink shadow, double border illusion */
.ww-tpl-floral .ww-story__photo {
	border-radius: 22px;
	border: 3px solid rgba(196, 139, 139, .3);
	box-shadow:
		0 0 0 5px rgba(196, 139, 139, .08),
		0 10px 30px rgba(140, 80, 80, .12);
}

/* GEOMETRIC — sharp corners, strong border */
.ww-tpl-geometric .ww-story__photo {
	border-radius: 4px;
	border: 2px solid rgba(30, 42, 68, .25);
	box-shadow: 0 6px 20px rgba(20, 30, 50, .10);
}

/* ROYAL — ornate double border, gold shadow */
.ww-tpl-royal .ww-story__photo {
	border-radius: 12px;
	border: 2.5px solid rgba(185, 138, 60, .35);
	box-shadow:
		0 0 0 4px rgba(185, 138, 60, .10),
		0 0 0 6px rgba(185, 138, 60, .06),
		0 12px 36px rgba(120, 88, 30, .16);
}

/* MINIMAL — no border, hairline shadow, square */
.ww-tpl-minimal .ww-story__photo {
	border-radius: 0;
	border: 1px solid rgba(63, 58, 52, .08);
	box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

@media (max-width: 360px) {
	.ww-story__photos { gap: 8px; max-width: 320px; }
}
