body.rikit-modal-open {
	overflow: hidden;
}
.rikit-modal {
	width: 100dvw;
	height: 100dvh;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 4;
	position: fixed;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	overflow: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	opacity: 1;
	justify-content: flex-start;
	z-index: 3;
	visibility: hidden;
	opacity: 0;
	transition: visibility 0.2s, opacity 0.2s ease-in-out;
}
.modal-wrap,
.rikit-modal {
	display: flex;
	flex-flow: column nowrap;
	align-items: center;
}
.modal-wrap {
	flex-shrink: 0;
	flex-grow: 0;
	width: 100%;
	min-height: 100%;
	margin: auto;
	justify-content: center;
}
.rikit-modal.open {
	visibility: visible;
	opacity: 1;
}
.rikit-modal.open .modal-content {
	scale: 1;
}
.rikit-modal .modal-content {
	width: 6rem;
	margin: 0.5rem 0;
	position: relative;
	background-color: #fff;
	padding: 0.2rem;
	border-radius: 0.05rem;
	box-shadow: 0 0 0.1rem rgba(0, 0, 0, 0.5);
	scale: 0.9;
	transition: scale 0.2s ease-out;
}
.rikit-modal .modal-content--long {
	width: 10rem;
}
.rikit-modal .modal-content--full {
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 0;
	padding-top: 1rem;
}
.rikit-modal .modal-content--full .modal-close {
	position: absolute;
	background-color: transparent;
	border: none;
	font-size: 0.4rem;
	cursor: pointer;
	top: 0.2rem;
	right: 0.2rem;
	padding: 0;
	z-index: 2;
}
.rikit-modal .modal-content--media {
	width: 9rem;
	padding: 0;
	margin: 0;
	border-radius: 0;
	min-height: 4.7rem;
	box-sizing: content-box;
	background-color: #000;
}
.rikit-modal .modal-content--media img,
.rikit-modal .modal-content--media video {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}
.rikit-modal .modal-content--media iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
	border: none;
}
.rikit-modal .modal-close {
	position: absolute;
	background-color: transparent;
	border: none;
	font-size: 0.4rem;
	cursor: pointer;
	top: -0.5rem;
	right: 0;
	padding: 0;
}
@media screen and (max-width: 719px) {
	.rikit-modal .modal-close {
		display: inline-block;
		width: 0.2rem;
		height: 0.2rem;
		left: 0.2rem;
		top: 0.2rem;
		z-index: 1;
	}
	.rikit-modal .modal-content {
		width: 100%;
		height: 100%;
		min-height: 100%;
		margin: 0;
		border-radius: 0;
		padding-top: 1.2rem;
	}
}
