.modal {
	align-items: center;
	background-color: rgba( 0, 0, 0, .95 );
	display: none;
	height: 100%;
	justify-content: center;
	left: 0;
	position: fixed;
	top: 0;
	transition: all .3s ease-in-out;
	width: 100%;
	z-index: 999999;
}

.modal-inner {
	align-items: center;
	animation: popIn .6s 1;
	animation-fill-mode: forwards;
	display: flex;
	height: 90%;
	justify-content: center;
	position: relative;
	width: 90%;
}

.modal-inner * {
	margin: 0;
}

button.modal-close {
	background: #fff url( '../svgs/fa/close.svg' ) no-repeat center center;
	background-size: 1rem 1rem;
	border-radius: 50%;
	cursor: pointer;
	height: 3rem;
	opacity: .7;
	padding: 1rem;
	position: absolute;
	right: -1rem;
	text-align: left;
	text-indent: -9999px;
	top: -1rem;
	transition: .4s;
	width: 3rem;
	z-index: 1;
}

button.modal-close:hover, button.modal-close:focus {
	opacity: 1;
}

.modal-content {
	display: flex;
	height: 100%;
	position: relative;
	width: 100%;
}

.modal-image {
	display: none;
	margin: 0 auto;
	max-width: 100%;
	object-fit: contain;
}

.modal-image.current {
	display: block;
}

.modal-content .buttons {
	bottom: 1rem;
	display: flex;
	gap: 2rem;
	justify-content: space-between;
	left: 50%;
	position: absolute;
	transform: translateX( -50% );
}

.modal-content button {
	background: #fff url( '../svgs/fa/angle-down.svg' ) no-repeat center center;
	background-size: 100% 100%;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1rem;
	height: 3rem;
	opacity: .7;
	text-align: left;
	text-indent: -9999px;
	transition: all .3s ease-in-out;
	width: 3rem;
}

.modal-content button:hover, .modal-content button:focus {
	opacity: 1;
}

button.prev {
	transform: rotate( 90deg );
}

button.next {
	transform: rotate( -90deg );
}

@keyframes popIn {

	0%{
		opacity: 0;
		top: 25px;
	}

	100%{
		opacity: 1;
		top: 0;
	}

}
