#modal {
	position: fixed;
	z-index: 1;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0,0,0,0.8);
	display: flex;
	align-items: center;
	justify-content: center;
}

#modal-image {
	display: block;
	margin: auto;
	max-width: 100%;
	height: 90vh; /* sets height to 70% of viewport height */
	max-height: 100%;
	margin-bottom: 25px;
	object-fit: contain;
}

.modal-content {
	/* max-width: 25%; */
	max-width: 100%;
	background-color: rgba(255,255,255,0.8);
}

@media screen and (max-width: 800px) {
	#modal-image {
		max-width: 90%;
		max-height: 90%;
	}
	.modal-content {
		max-width: 90%;
	}
	  .close {
		font-size: 30px;
		position: absolute;
		top: 2%;
		right: 5px;
		transform: translateY(-2%);
	  }

	  .arrow-left {
		width: 2%;
	}
	
	.arrow-right {
		width: 2%;
	}
}

.close {
	cursor: pointer;
	font-size: 48px;
	padding: 12px 12px;
}

.arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.5s ease-in-out;
}

.arrow:hover {
	opacity: 1;
}

.arrow-left {
	left: 0;
	width: 5%;
	height: auto;
}

.arrow-right {
	right: 0;
	width: 5%;
	height: auto;
}

.fade-out {
	opacity: 0;
	transition: opacity 1s ease-in-out;
}

.fade-out.done {
	opacity: 0;
}