.modal{
	position: fixed;
	background-color: rgba(0,0,0,0.8);
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	z-index: 1;
	user-select: none;
	overflow: hide;
	cursor: pointer;
}

.modalContainer{
	display: flex;
	justify-content: center;
	align-items: center;
	width: inherit;
	height: 100vh;
}

.slider{
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	max-width: 85%;
	height: auto;
}

.modalImage, .modalContainer video{
	display: inline-block;
	object-fit: contain;
	cursor: auto;
	margin: 0;
	max-width: 100%;
    max-height: 99vh;
}


.slideButton{
	z-index: 2;
	position: absolute;
	height: 100%;
	min-width: 15%;
	font-size: 2rem;
	color: white;
	display: block;
	transition: 0.2s;
	opacity: 0%;
	margin: 0;
	padding: 0;
}

.slideButton p{
    position: relative;
	top: calc( 50% - 1rem );
	margin: 0;
	padding: 0 1rem;
}

.slideButton:hover{
	cursor: pointer;
	opacity: 100%;
}

#previous{
	text-align: left;
	left: 0;
	background-image: linear-gradient( to right, rgba( 0,0,0,0.5 ), rgba( 0,0,0,0 ) );
}

#next{
	text-align: right;
	right: 0;
	background-image: linear-gradient( to left, rgba( 0,0,0,0.5 ), rgba( 0,0,0,0 ) );
}

@media only screen and (max-width: 800px){
	.modalContainer{
		justify-content: center;
	}
	
	.slideButton{
		font-size: 1rem;
		opacity: 100%;
	}
}
