/* Guest Photo Album: the open-book viewer (1.7.0). Grey table, the album seen from above,
   a soft shadow in the fold, page edges and a drop shadow. Used in ZONE (Preview) and on the wedding website. */

.wzv { --bw: min(100%, 980px, calc(78vh * 2 * var(--pw, 3) / var(--ph, 2))); font-family: inherit; }
.wzv *, .wzv *::before, .wzv *::after { box-sizing: border-box; }

.wzv-stage {
	display: flex; align-items: center; justify-content: center;
	padding: clamp(24px, 6vw, 64px) clamp(12px, 4vw, 48px);
	background: radial-gradient(ellipse at 50% 45%, #e9e8e4 0%, #d9d7d2 55%, #c9c6c0 100%);
	border-radius: 14px;
	touch-action: pan-y;
}

/* The book */
.wzv-book { position: relative; display: flex; width: var(--bw); }
.wzv-book.is-open {
	box-shadow:
		-3px 3px 0 #efece6, 3px 3px 0 #efece6,
		-5px 6px 0 #e3dfd7, 5px 6px 0 #e3dfd7,
		0 28px 50px -18px rgba(30, 26, 22, .5), 0 10px 22px rgba(30, 26, 22, .16);
}
.wzv-book.is-closed { width: calc(var(--bw) / 2); }
.wzv-book.is-closed .wzv-page {
	box-shadow:
		3px 2px 0 #efece6, 5px 4px 0 #e3dfd7,
		0 28px 50px -18px rgba(30, 26, 22, .5), 0 10px 22px rgba(30, 26, 22, .16);
}

/* Pages */
.wzv-page {
	position: relative; flex: 1 1 0; min-width: 0;
	aspect-ratio: var(--pw, 3) / var(--ph, 2);
	background: #fff; overflow: hidden;
	container-type: inline-size;
}
.wzv-page.is-blank { background: #fbfaf6; }

/* The fold: a soft shadow on both sides of the middle, darkest where the pages meet. */
.wzv-page.is-left::after, .wzv-page.is-right::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.wzv-page.is-left::after {
	background:
		linear-gradient(to right, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, 0) 6%),
		linear-gradient(to right, rgba(0, 0, 0, 0) 78%, rgba(0, 0, 0, .06) 90%, rgba(0, 0, 0, .16) 97%, rgba(0, 0, 0, .3) 100%);
}
.wzv-page.is-right::after {
	background:
		linear-gradient(to left, rgba(0, 0, 0, .04) 0%, rgba(0, 0, 0, 0) 6%),
		linear-gradient(to left, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, .05) 91%, rgba(0, 0, 0, .14) 97.5%, rgba(0, 0, 0, .26) 100%);
}

/* Photos (same rules as the editor: borders are the background showing around a photo) */
.wzv-cell { position: absolute; padding: 0; }
.wzv-cell.bd-all { padding: 1.8cqw; }
.wzv-cell.bd-main { padding: 3.6cqw; }
.wzv-crop { display: block; width: 100%; height: 100%; overflow: hidden; }
.wzv-crop img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; margin: 0; border: 0; border-radius: 0; box-shadow: none; }

/* Cover */
.wzv-page.is-cover { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f7f4ed; }
.wzv-page.is-cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, rgba(0, 0, 0, .16) 0%, rgba(0, 0, 0, .04) 3%, rgba(0, 0, 0, 0) 7%); }
.wzv-cover-in { display: flex; flex-direction: column; align-items: center; gap: 1.2cqw; padding: 6% 9%; text-align: center; }
.wzv-cover-top { font-size: 2.3cqw; letter-spacing: .35cqw; text-transform: uppercase; color: #7a6a5c; }
.wzv-cover-main { font-family: var(--ow-serif, "Times New Roman", Georgia, serif); font-size: 6.6cqw; line-height: 1.15; color: #292D29; }
.wzv-cover-main.has-rule::after { content: ""; display: block; width: 9cqw; height: .3cqw; margin: 2.2cqw auto 0; background: #702F3D; }
.wzv-cover-bottom { font-family: var(--ow-serif, "Times New Roman", Georgia, serif); font-style: italic; font-size: 3.4cqw; color: #5D5040; }
.wzv-page.cs-photo { justify-content: flex-start; }
.wzv-cover-photo { align-self: stretch; flex: 0 0 auto; height: 64%; margin: 5% 5% 0; background: #d9d2c7 center / cover no-repeat; }
.wzv-page.cs-photo .wzv-cover-in { flex: 1; justify-content: center; padding: 2% 8%; gap: .6cqw; }
.wzv-page.cs-photo .wzv-cover-main { font-size: 5cqw; }
.wzv-page.cs-photo .wzv-cover-top { font-size: 1.9cqw; }
.wzv-page.cs-photo .wzv-cover-bottom { font-size: 2.7cqw; }

/* Turning pages */
.wzv-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; }
.wzv-arrow {
	width: 44px; height: 44px; padding: 0; border: 1px solid #EAE0D6; border-radius: 50%;
	background: #fff; color: #702F3D; font-size: 26px; line-height: 40px; cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}
.wzv-arrow:hover:not(:disabled) { border-color: #702F3D; }
.wzv-arrow:disabled { opacity: .35; cursor: default; }
.wzv-count { min-width: 150px; text-align: center; font-size: 14px; color: #5D5040; }

/* Full screen (ZONE Preview) */
.wzv-lightbox {
	position: fixed; inset: 0; z-index: 100000;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: 56px 16px 20px;
	background: radial-gradient(ellipse at 50% 45%, #e9e8e4 0%, #d6d4cf 60%, #c3c0ba 100%);
}
.wzv-lightbox > div { width: 100%; display: flex; flex-direction: column; align-items: center; }
.wzv-lightbox .wzv { --bw: min(92vw, 1200px, calc(74vh * 2 * var(--pw, 3) / var(--ph, 2))); }
.wzv-lightbox .wzv-stage { background: none; padding: 0; width: 100%; }
.wzv-lightbox .wzv-count { color: #3b332b; }
.wzv-close {
	position: absolute; top: 12px; right: 14px; display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 14px; border: 1px solid #EAE0D6; border-radius: 999px; background: #fff;
	color: #702F3D; font-size: 18px; line-height: 1; cursor: pointer;
}
.wzv-close span { font-size: 13px; }
html.wzv-noscroll, html.wzv-noscroll body { overflow: hidden; }

/* On the wedding website */
.wz-ma-site-album .wzv:focus { outline: none; }
.wz-ma-site-album { padding-bottom: clamp(48px, 7vw, 96px); } /* 1.7.1: room before the next section */
.wz-ma-site-album .wz-ma-site-sub { text-align: center; margin: -4px auto 18px; max-width: 560px; opacity: .8; }

@media (max-width: 700px) {
	.wzv-arrow { width: 40px; height: 40px; line-height: 36px; }
	.wzv-count { min-width: 120px; font-size: 13px; }
}

/* 1.8.0: "Would you like a copy?" under the album on the wedding website */
.wz-ma-site-album .wz-ma-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; max-width: 760px; margin: 28px auto 0; padding: 22px 26px; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 16px; box-shadow: 0 6px 22px rgba(0,0,0,.05); scroll-margin-top: 90px; }
.wz-ma-site-album .wz-ma-buy-text { flex: 1 1 320px; }
.wz-ma-site-album .wz-ma-buy h3 { margin: 0 0 6px; font-size: 22px; font-weight: 400; }
.wz-ma-site-album .wz-ma-buy p { margin: 0; font-size: 15px; line-height: 1.55; opacity: .85; }
.wz-ma-site-album .wz-ma-buy-form { display: flex; align-items: center; gap: 16px; margin: 0; flex: 0 0 auto; }
.wz-ma-site-album .wz-ma-buy-price { font-size: 20px; white-space: nowrap; }
.wz-ma-site-album .wz-ma-buy-btn { padding: 13px 28px; border: 0; border-radius: 999px; background: #6b2c3a; color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.wz-ma-site-album .wz-ma-buy-btn:hover { background: #54212e; }
.wz-ma-site-album .wz-ma-buy-msg { flex: 1 1 100%; margin: 0; padding: 8px 12px; border-radius: 10px; background: #fbf4e6; color: #6b4c14; font-size: 14px; }
@media (max-width: 560px) { .wz-ma-site-album .wz-ma-buy { padding: 18px; } .wz-ma-site-album .wz-ma-buy-form { flex: 1 1 100%; justify-content: space-between; } }
