@charset "utf-8";

.modal-contents {
	position: fixed;
	left: 0;
	top: 0;
	opacity: 0;
	transition-duration: 0.2s;
	transition-property: opacity;
	transition-timing-function: ease-in;
	width: 100%;
	height: 100%;
	z-index: 100;
	opacity: 0;
}

.modal-contents.-show {
	opacity: 1;
	display: block;
	transition-timing-function: ease-in;
}

.modal-contents.-hide {
	width: 0;
	height: 0;
	overflow: hidden;
}

.modal-contents-inner {
	position: relative;
	width: 100%;
	height: 100vh;
	max-width: 960px;
	background-color: #fff;
	line-height: 1.7;
	font-size: 1.2rem;
	z-index: 2;
	box-sizing: border-box;
}

.modal-contents__header {
	display: flex;
	align-items: center;
	height: 40px;
	padding: 10px;
	box-sizing: border-box;
}

.modal-contents__header > *:first-child {
	margin-top: 0;
}

.modal-contents__header > *:last-child {
	margin-bottom: 0;
}

.modal-contents__close {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	line-height: 1;
	font-weight: 600;
	text-decoration: none;
}

.modal-contents__close:hover {
	text-decoration: none;
}

.modal-contents__close svg {
	width: 20px;
	height: 20px;
	stroke-width: 2;
}

.modal-contents__close .label {
	display: inline-block;
}

.modal-contents__body {
	height: 100%;
}

.modal-contents__description {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 10px 20px;
	box-sizing: border-box;
}
.modal-contents__description > *:first-child {
	margin-top: 0;
}
.modal-contents__description > *:last-child {
	margin-bottom: 0;
}

.streetview-iframe {
	border: 0;
	width: 100%;
	height: calc(100% - 130px); /* 100vh - (header height + description height) */
	height: calc(100% - 220px);
	opacity: 0;
	transition: all 0.5s ease 0.25s;
}

.streetview-iframe.-load {
	opacity: 1;
}

/* --------------- */

.modal-contents__overlay {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.25);
	transition-duration: 0.2s;
	transition-property: opacity;
	transition-timing-function: ease-in;
	z-index: 1;
}

.-show .modal-contents__overlay {
	opacity: 1;
}

.-hide .modal-contents__overlay {
	opacity: 0;
}

/* ---------------------------------------------------------------------------------------------- */

@media screen and (min-width: 541px) {
	
}

@media screen and (min-width: 1024px) {
	
	.modal-contents__header {
		height: 60px;
		padding: 20px;
	}
	
	.modal-contents.-show {
		display: flex;
		align-items: center;
	}
	
	.modal-contents {
		display: flex;
	}
	
	.modal-contents-inner {
		width: calc(100% - 100px);
		height: calc(100% - 100px);
		max-width: initial;
		max-height: 800px; /* max-height + header height + description height */
		margin: auto;
		border-radius: 2px;
		box-shadow: 0 5px 30px rgba(0,0,0,0.25);
	}
	.streetview-iframe {
		border: 0;
		width: 100%;
		height: calc(100% - 130px);
		max-height: calc(800px - 150px); /* max-height - (header height + description height) */
		opacity: 0;
		transition: all 0.5s ease 0.25s;
	}
}

@media screen and (min-width: 1280px) {
	
}
