html {
	scroll-behavior: smooth;
	font-family: "Gotham";
}

overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: -1;
	visibility: collapse;
}

overlay img {
	height: 80vh;
	margin: auto;
}

.show-overlay {
	visibility: visible;
	z-index: 1;
	background-color: #000000b0;
}

.container {
	width: clamp(815px, 80vw, 1600px);
	display: flex;
	flex-direction: column;
	gap: 3rem;
	padding: 5rem 1rem;
}

.page-title {
	text-align: center;
}

.flex-row {
	display: flex;
	gap: 0.2rem;
	flex-wrap: wrap;
	justify-content: center;
}

.flex-row.school {
	flex-direction: column;
}

.flex-row.school h4 {
	line-height: normal;
	font-size: 1.2rem;
	color: var(--color-water);
	text-shadow: unset;
	text-transform: unset;
	font-weight: bold;
	text-align: left;
}

.flex-row.school h4:not(:first-child) {
	margin-top: 2rem;
}

.flex-col {
	display: flex;
	flex-direction: column;
}

.grid {
	/* background-color: rgba(0, 0, 0, .6); */
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(20vw, 1fr));
	justify-items: center;
	margin-bottom: 2rem;
	margin-top: 1rem;
	gap: 1rem;
	align-items: flex-start;
}

.grid::-webkit-scrollbar {
	-webkit-appearance: none;
	width: 7px;
}

.grid::-webkit-scrollbar-thumb {
	width: 5px;
	height: 8px;
	border-radius: 4px;
	/* background-color: rgba(0, 0, 0, .5); */
	background-color: #0dd39e;
	box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}

.grid.small-award {
	grid-template-columns: repeat(auto-fit, minmax(15vw, 1fr));
	max-height: 80vh;
	overflow-y: auto;
	overflow-x: hidden;
	gap: 1rem;
	align-items: flex-start;
	/* Remove below to revert horizontal scroll */
	/* display: flex; */
}

.grid.small-award.school {
	display: flex;
	max-height: unset;
}

.grid-title {
	text-align: left;
	margin: unset !important;
	color: #fff;
	font-size: 1.5rem;
}

.anchor-color {
	color: #0dd39e;
}

.a-center p {
	text-align: center;
	width: fit-content;
	background: var(--color-water);
	padding: 1rem;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	transition: 300ms;
	font-weight: 500;
}

.a-center p:hover {
	color: #fff79c;
}

.winner-card {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	/* width: clamp(250px, 15vw, 500px); */
	align-items: flex-start;
	gap: 0.5rem;
	padding: 1rem;
	height: 100%;
}

.small-award .winner-card {
	width: 100%;

	/* Remove below to revert horizontal scrolling */
	/* flex-shrink: 0; */
}

.winner-card img {
	width: 100%;
	transition: 300ms;
	display: block;
}

.winner-card:hover img {
	/* transform: scale(1.02); */
	cursor: pointer;
}

.winner-card h3 {
	font-weight: bold;
	font-size: 1.2rem;
	color: var(--color-water);
	margin: unset;
	margin-left: auto;
	margin-right: auto;
}

.winner-card .name,
.winner-card .school,
.winner-card .ic {
	font-size: 1rem;
}

.winner-card .name::before {
	content: "Name : ";
	color: var(--color-water);
	font-weight: bold;
}

.winner-card .ic::before {
	content: "IC : ";
	color: var(--color-water);
	font-weight: bold;
}

.winner-card .school::before {
	content: "School : ";
	color: var(--color-water);
	font-weight: bold;
}

.winner-card .img-wrapper {
	border: 4px solid #fff;
}

ul.educators,
ul.club {
	margin: 1rem 0;
}

.educators li {
	text-transform: capitalize;
}

.educators li,
.club li {
	list-style-type: none;
	font-size: 1rem;
}

/* .club li::before {
	content: "Club : ";
	color: #0dd39e;
	font-weight: bold;
	font-size: 1rem;
} */

#award-nav {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

#nav-placeholder {
	opacity: 0;
	pointer-events: none;
}

#award-nav.sticky-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: unset;
	box-shadow: 1px 1px 15px #b5b5b5ba;
	width: fit-content;
	margin: auto;
	z-index: 2;
}

#award-nav.sticky-nav p {
	padding-top: unset;
}

.top-10 {
	border-width: 3px;
	border-style: solid;
	border-image: linear-gradient(
			180deg,
			rgb(86, 238, 138) 0%,
			rgb(109, 219, 244) 100%
		)
		1;
	padding: 2rem;
}

.back-to-top {
	width: 50px;
	height: 50px;
	background: linear-gradient(
		180deg,
		rgb(47, 214, 181) 0%,
		rgb(0, 100, 152) 100%
	);
	border-radius: 50%;
	position: fixed;
	bottom: 25px;
	right: 25px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.back-to-top::after {
	position: relative;
	content: "\2B71";
	display: flex;
	justify-content: center;
	font-size: 2rem;
	font-weight: bold;
	color: white;
}

#lightgallery li {
	list-style-type: none !important;
}

@media only screen and (min-width: 350px) and (max-width: 910px) {
	.container {
		width: clamp(360px, 90vw, 810px);
	}

	.grid {
		padding: 1rem 0;
		grid-template-columns: 1fr;
	}

	.grid.small-award {
		grid-auto-flow: column;
		grid-template-columns: unset;
		overflow-x: scroll;
		overflow-y: hidden;
	}

	.small-award .winner-card {
		width: clamp(250px, 70vw, 3500px);
	}

	.show-overlay {
		background-color: #000000db;
	}

	#award-nav a {
		width: 100%;
	}

	.a-center p {
		width: 100%;
	}

	overlay img {
		width: 80vw;
		height: auto;
	}

	.top-10 {
		padding: unset;
		border: unset;
	}
}
