.modal {
	display: none;
	position: relative;

	width: 100%;
	margin: auto;
	border-radius: 8px;
}

.modal.send {
	width: 360px;
}

.modal.video {
	width: 720px;
}

#yt_player {
	height: 406px;
}

.modal.image {
	width: 720px;
}

#image_modal_wrapper img {
	width: 100%;
	height: auto;
}

.modal_bone {
	padding: 28px;
	background-color: #1A1D1F;
	border-radius: 8px;
}

.modal_bar {
	position: absolute;
	top: 0;
	bottom: 0;

	width: 59px;
}

.modal_bar.left {
	left: -59px;
}

.modal_bar.right {
	right: -59px;
}

.modal_close {
	position: fixed;
	top: 85px;

	width: 48px;
	height: 48px;
	margin-left: 12px;
	background-color: transparent;
	border: 2px solid #272B30;
	border-radius: 8px;
	cursor: pointer;

	transition: background-color .23s ease-out;
}

.modal_close:before {
	content: '';
	position: absolute;
	top: 10px;
	left: 10px;

	width: 24px;
	height: 24px;
	background-image: url('/images/close.svg');
	background-position: center;
	background-repeat: no-repeat;
	background-size: 100% auto;
}

.modal_close.absolute {
	position: sticky;
	top: 0;
}

.modal_hover {
	position: absolute;
	bottom: 0;

	width: 59px;
	cursor: pointer;
}

.modal_hover.left {
	top: 0;
}

.modal_hover.right {
	top: 49px;
}

.modal_arrow {
	position: fixed;
	top: 50%;

	width: 59px;
	height: 59px;
	background: url('/images/arrow.svg') center center no-repeat;
	background-size: 30px auto;
	opacity: .5;

	transition: opacity .25s ease-out;
}

.modal_arrow.left {
	transform: translateY(-50%);
}

.modal_arrow.right {
	transform: translateY(-50%) rotate(180deg);
}

.modal_hover:hover .modal_arrow {
	opacity: 1;
}

.modal_lock {
	overflow: hidden;
	position: fixed;

	width: 100%;
	height: 100%;
}

.modal_overlay {
	overflow: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;

	background: rgba(0, 0, 0, .96);
	z-index: 99000;
	zoom: 1;

	-webkit-overflow-scrolling: touch;
}

.modal_overlay > *:not(.modal_arrow.right),
.modal_overlay > *:not(.modal_arrow.left) {
	-webkit-transform: translateZ(0px);
}

@media only screen and (max-width: 990px) {
	.modal_portfolio_view_bone {
		padding: 100px 30px 30px;
	}
}

@media only screen and (max-width: 950px) {
	.modal_bar {
		position: absolute;
		top: -59px;
		right: 0;
		bottom: auto;

		height: 59px;
	}

	.modal_bar.left {
		left: 0;
	}

	.modal_bar.right {
		top: 0;
		right: 0;

		z-index: 2;
	}

	.modal_close,
	.modal_close.absolute {
		position: absolute;
		top: 24px;
		right: 24px;

		margin: 0;
		background-color: rgba(0, 0, 0, .12);
	}

	.modal_close:hover {
		background-color: rgba(0, 0, 0, .24);
	}

	.modal_close img {
		opacity: 1;
	}

	.modal_hover {
		bottom: auto;

		height: 59px;
	}

	.modal_hover.right {
		top: 0;
	}

	.modal_arrow {
		position: absolute;
		top: 0;

		background: url('../images/arrow_m.svg') center center no-repeat;
		background-size: 19px auto;
	}

	.modal_arrow.left {
		transform: translateY(0);
	}

	.modal_arrow.right {
		transform: translateY(0) rotate(180deg);
	}
}

@media only screen and (max-width: 480px) {
	.modal.send {
		width: calc(100% - 24px);
	}
}

@media only screen and (max-width: 800px) {
	.modal.video {
		width: 600px;
	}

	#yt_player {
		height: 338px;
	}
}

@media only screen and (max-width: 640px) {
	.modal.video {
		width: 460px;
	}

	#yt_player {
		height: 259px;
	}
}

@media only screen and (max-width: 480px) {
	.modal.video {
		width: calc(100% - 24px);
	}

	#yt_player {
		height: 250px;
	}
}