.top-container {
	position: relative;
	overflow: hidden;
}

.top-container img {
	position: relative;
}

.top-container .button-container {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
}

.top-container a {
	width: 200px;
	position: absolute;
	right: 0;
}
.page-wrapper {
	max-width: var(--max-container-width);
	margin: auto;
	padding: 20px;
}

.page-wrapper h3 {
	font-size: 25px;
	margin: 0 0 20px;
	color: var(--light-green);
}

.photo-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	margin: 0 -10px;
}
.photo-list::after {
	content: "";
	flex: auto;
}
.photo-box {
	padding: 5px;
}
.photo {
	position: relative;
	cursor: pointer;
	font-weight: bold;
}

.photo img {
	position: relative;
	border-radius: 14px;
}

.photo .view-more {
	display: none;
}

.photo-box.active .photo::before,
.photo:hover::before {
	content: "";
	position: absolute;
	width: calc(100% + 2px);
	height: calc(100% + 2px);
	background-color: #00c0da;
	z-index: 1;
	border-radius: 14px;
	left: -1px;
	top: -1px;
}

.photo-box.active .photo > *,
.photo:hover > * {
	z-index: 2;
}

.photo-box.active .photo::after,
.photo:hover::after {
	content: "";
	display: block;
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.68);
	border-radius: 14px;
	z-index: 2;
}

.photo-box.active .photo .view-more,
.photo:hover .view-more {
	display: block;
	position: absolute;
	width: 100%;
	left: 0;
	text-align: center;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
}

.photo .name {
	position: absolute;
	width: 100%;
	bottom: 0;
	padding: 5px 15px;
	text-align: center;
}

#modal {
	display: none;
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 10;
}
#modal.active {
	display: block;
}
#modal .overlay {
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	position: absolute;
}

#modal .modal-box {
	position: fixed;
	width: 100%;
	background: rgba(8, 76, 115, 0.95);
	bottom: 0;
	overflow: hidden;
	height: 100%;
}

#modal .modal-box .modal-content {
	width: 100%;
	max-width: var(--max-container-width);
	margin: auto;
	padding: 20px;
	height: 100%;
	overflow: hidden;
	flex-direction: column;
	display: none;
}
#modal .modal-box .modal-content.active {
	display: flex;
}
#modal .modal-box .modal-content > div {
	overflow: auto;
}

#modal h4 {
	color: var(--yellow);
	font-size: 22px;
	margin-bottom: 10px;
}

#modal p {
	margin-bottom: 10px;
	font-size: 18px;
}
/* WEB ONLY */
@media screen and (min-width: 751px) {
	.main-container {
		display: flex;
		align-items: center;
		padding-top: 100px;
	}
	.top-container .main-img {
		width: 1400px;
		max-width: initial;
		left: 50%;
		transform: translateX(-50%);
	}

	.top-container .button-container {
		max-width: 750px;
	}

	.top-container a {
		bottom: 10px;
		right: 3%;
	}

	.photo-box {
		width: 20%;
	}

	#modal .modal-box {
		max-height: 350px;
	}
}

@media screen and (min-width: 1024px) {
	.top-container .main-img {
		width: 1920px;
		max-width: initial;
		left: 50%;
		transform: translateX(-50%);
	}

	.top-container .button-container {
		max-width: var(--max-container-width);
	}

	.top-container a {
		bottom: 30px;
		right: 6%;
	}

	.photo-box {
		width: 16.66%;
	}

}

/* MOBILE ONLY */
@media screen and (max-width: 750px) {
	.top-container a {
		bottom: 20px;
		left: 50%;
		transform: translateX(-50%);
	}
	.photo-box {
		width: 50%;
	}

	#modal .modal-box {
		max-height: 50%;
	}
}
