* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	min-height: 100%;
	background: #111;
}

body {
	font-family: Arial, "Noto Sans KR", sans-serif;
	-webkit-font-smoothing: antialiased;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

.modal-open {
	overflow: hidden;
}

.invitation {
	width: min(100%, 800px);
	min-height: 100vh;
	margin: 0 auto;
	background: #FFF;
	box-shadow: 0 0 45px rgb(0 0 0 / 42%);
}

.design-canvas {
	position: relative;
	width: 100%;
	line-height: 0;
}

.design-image {
	display: block;
	width: 100%;
	height: auto;
	user-select: none;
	-webkit-user-drag: none;
}

.hotspot {
	position: absolute;
	z-index: 5;
	margin: 0;
	padding: 0;
	border: 0;
	outline-offset: -2px;
	background: transparent;
	cursor: pointer;
}

.hotspot:focus-visible {
	outline: 2px solid rgb(255 255 255 / 85%);
}

.photo-hotspot {
	left: var(--left);
    top: var(--top);
    width: 29.36%;
    height: 6%;
}

.map-hotspot {
    left: 0;
    top: 78.05%;
    width: 100%;
    height: 6.35%;
}

.account-hotspot {
	left: var(--left);
	top: var(--top);
	width: 13.46%;
	height: 1.08%;
}

.lightbox,
.map-modal {
	position: fixed;
	z-index: 1000;
	inset: 0;
	animation: fade-in .18s ease both;
}

.lightbox[hidden],
.map-modal[hidden] {
	display: none;
}

.lightbox {
	display: grid;
	place-items: center;
	padding: 50px 42px 65px;
	background: rgb(0 0 0 / 97%);
	touch-action: pan-y;
}

.lightbox > img {
	display: block;
	max-width: 100%;
	max-height: calc(100dvh - 115px);
	object-fit: contain;
	animation: zoom-in .2s ease both;
}

.lightbox-close,
.lightbox-arrow {
	position: absolute;
	z-index: 2;
	border: 0;
	background: rgb(255 255 255 / 9%);
	color: #fff;
	cursor: pointer;
}

.lightbox-close {
	top: max(16px, env(safe-area-inset-top));
	right: 16px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	font-size: 31px;
	font-weight: 200;
	line-height: 1;
}

.lightbox-arrow {
	top: 50%;
	width: 40px;
	height: 64px;
	transform: translateY(-50%);
	font-size: 48px;
	font-weight: 200;
	line-height: .8;
}

.lightbox-prev { left: 0; border-radius: 0 6px 6px 0; }
.lightbox-next { right: 0; border-radius: 6px 0 0 6px; }

.lightbox-count {
	position: absolute;
	bottom: max(24px, env(safe-area-inset-bottom));
	left: 0;
	width: 100%;
	margin: 0;
	color: rgb(255 255 255 / 82%);
	font-size: 12px;
	letter-spacing: .12em;
	text-align: center;
}

.map-modal {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background: rgb(0 0 0 / 55%);
}

.map-sheet {
	width: min(100%, 430px);
	padding: 12px 22px max(22px, env(safe-area-inset-bottom));
	border-radius: 18px 18px 0 0;
	background: #f8f6e9;
	color: #302b28;
	text-align: center;
	animation: sheet-up .22s ease both;
}

.map-sheet-handle {
	width: 38px;
	height: 4px;
	margin: 0 auto 18px;
	border-radius: 4px;
	background: #c9c4b7;
}

.map-sheet h2 {
	margin: 0;
	font-family: "Batang", serif;
	font-size: 19px;
}

.map-sheet p {
	margin: 8px 0 17px;
	color: #777168;
	font-size: 12px;
}

.map-sheet a,
.map-sheet button {
	display: block;
	width: 100%;
	margin-top: 8px;
	padding: 13px 10px;
	border: 1px solid #d7d1c4;
	border-radius: 5px;
	background: #fffef8;
	color: #37312d;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.map-sheet a:first-of-type {
	border-color: #abd8ba;
	color: #18743d;
}

.map-sheet a:nth-of-type(2) {
	border-color: #ead786;
	color: #5e4c13;
}

.map-sheet button {
	border: 0;
	background: transparent;
	color: #817b72;
	font-weight: 400;
}

.toast {
	position: fixed;
	z-index: 1100;
	bottom: max(28px, env(safe-area-inset-bottom));
	left: 50%;
	width: max-content;
	max-width: calc(100% - 40px);
	padding: 11px 18px;
	border-radius: 24px;
	background: rgb(30 27 25 / 94%);
	color: #fff;
	font-size: 12px;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 12px);
	transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
	opacity: 1;
	transform: translate(-50%, 0);
}

@keyframes fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes zoom-in {
	from { opacity: 0; transform: scale(.97); }
	to { opacity: 1; transform: scale(1); }
}

@keyframes sheet-up {
	from { transform: translateY(30px); }
	to { transform: translateY(0); }
}

@media (min-width: 700px) {
	.lightbox-arrow { width: 60px; }
	.lightbox-prev { left: 24px; }
	.lightbox-next { right: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}
