@import url("https://fonts.googleapis.com/css2?family=Reem+Kufi&display=swap");

html,
body {
	margin: 0;
	padding: 0;
	background: #fafafa;
	font-family: "Reem Kufi", sans-serif;
	letter-spacing: 0.2px;
	height: 100vh;
	width: 100vw;
	background-color: var(--bg-1);
	position: relative;
	scroll-behavior: smooth;
}

:root {
	--col-1: #c8ddef;
	--col-2: #ff3729fc;
	--bg-1: white;
}

.material-symbols-rounded {
	font-family: "Material Symbols Rounded";
	font-weight: normal;
	font-style: normal;
	font-size: 18px;
	/* Preferred icon size */
	display: inline-block;
	line-height: 1;
	text-transform: none;
	letter-spacing: normal;
	word-wrap: normal;
	white-space: nowrap;
	direction: ltr;

	vertical-align: middle;
	/* Support for all WebKit browsers. */
	-webkit-font-smoothing: antialiased;
	/* Support for Safari and Chrome. */
	text-rendering: optimizeLegibility;

	/* Support for Firefox. */
	-moz-osx-font-smoothing: grayscale;

	/* Support for IE. */
	font-feature-settings: "liga";
}

section {
	width: 100%;
	box-sizing: border-box;
	padding: 2em;
}

.gallery {
	width: 100%;
	box-sizing: border-box;
}

.gallery .row {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}

.gallery .row .col {
	max-width: 24.999%;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

.gallery .row .col .fluid-container {
	width: 99.9999%;
	float: left;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	padding-left: 10px;
	padding-right: 10px;
	margin: 15px 0;
	user-select: none;
	transition: all 0.2s ease;
	display: block;
}

.gallery .row .col .fluid-container {
	display: block;
}

.gallery .row .col .fluid-container.selected {
	width: 99.99%;
	max-width: 49.99%;
}

@media screen and (max-width: 767px) {
	.gallery .row .col .fluid-container {
		width: 99.99%;
	}

	.gallery .row .col {
		max-width: 49.999%;
	}
}

.gallery .row .col .fluid-container .item {
	border-radius: 16px;
	overflow: hidden;
	cursor: zoom-in;
	opacity: 0;
	transition: all 0.4s ease-in-out;
}

.gallery .row .col .fluid-container.inScreen .item {
	opacity: 1;
}

.gallery .row .col .fluid-container .item .img img {
	border-radius: 16px;
	width: 100%;
	transition: transform 0.2s ease-in-out;
}

.gallery .row .col .fluid-container .item .img {
	border-radius: 16px;
	position: relative;
	overflow: hidden;
}

.gallery .row .col .fluid-container .item .img:hover img {
	transform: scale(1.2);
}

.gallery .row .col .fluid-container .item .img:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background-color: rgba(57, 57, 57, 0.385);
	color: #fafafa;
	font-size: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s ease-in-out;
	z-index: 1;
}

.gallery .row .col .fluid-container .item .img:hover:before {
	opacity: 1;
}

.gallery .row .col .fluid-container .item .info {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.2em;
	box-sizing: border-box;
	transform: scale(0.9);
	opacity: 0;
	transition: all 0.3s ease-in-out;
}

.gallery .row .col .fluid-container .item:hover .info {
	transform: scale(1);
	opacity: 1;
}

.gallery .row .col .fluid-container .item .info .title {
	flex: 1;
	text-align: center;
}

.overlayed {
	overflow: hidden !important;
}

.overlay {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	height: 100%;
	width: 100%;
	z-index: 999;
	background-color: rgba(38, 38, 38, 0.544);
	display: none;
}

.overlayed .overlay {
	display: flex;
	justify-content: center;
	align-items: center;
	animation: fadeIn 0.3s ease-in-out;
}

.overlay .viewer {
	box-sizing: border-box;
	user-select: none;
	display: flex;
	justify-content: center;
	align-items: stretch;
	flex-direction: column;
	padding: 60px;
}

.overlay .viewer div {
	display: flex;
	justify-content: center;
	align-items: center;
}

.overlay .viewer div:first-child {
	display: flex;
	justify-content: flex-start;
	align-items: center;
}

.overlay .viewer img {
	max-height: 80vh;
	max-width: 80vw;
	border-radius: 8px;
}

.alt {
	flex: 1;
	color: white;
}

.close {
	float: right;
	right: 0;
	border: none;
	height: 44px;
	aspect-ratio: 1;
	border-radius: 100%;
	margin: 10px;
	transition: all 0.3s ease;
}

.close:hover {
	background-color: #fafafa;
	transform: scale(1.1);
}

@keyframes fadeIn {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}


.back-to-home {
	position: fixed;
	top: 20px;
	left: 20px;
	z-index: 100;
	-webkit-transition: .5s;
	-o-transition: .5s;
	transition: .5s
}

.back-to-home a {
	text-decoration: none;
	background: #000;
	font-size: 13px;
	width: 100px;
	height: 100px;
	line-height: 100px;
	text-align: center;
	text-transform: uppercase;
	overflow: hidden;
	position: relative;
	z-index: 10;
	color: #fff;
	display: -moz-inline-stack;
	display: inline-block;
	zoom: 1;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	-ms-border-radius: 50%;
	border-radius: 50%;
	-webkit-transition: .5s;
	-o-transition: .5s;
	transition: .5s
}

.back-to-home a:active,
.back-to-home a:focus,
.back-to-home a:hover {
	text-decoration: none;
	outline: 0;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	-ms-border-radius: 50%;
	border-radius: 50%
}

.back-to-home a span {
	width: 100px;
	height: 100px;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	-ms-border-radius: 50%;
	border-radius: 50%;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: block;
	z-index: 8;
	-webkit-transform: scale(0);
	-moz-transform: scale(0);
	-ms-transform: scale(0);
	-o-transform: scale(0);
	transform: scale(0);
	background: #d3387b;
	background: -moz-linear-gradient(left, #d3387b 0, #8628cd 100%);
	background: -webkit-gradient(left top, right top, color-stop(0, #d3387b), color-stop(100%, #8628cd));
	background: -webkit-linear-gradient(left, #d3387b 0, #8628cd 100%);
	background: -o-linear-gradient(left, #d3387b 0, #8628cd 100%);
	background: -ms-linear-gradient(left, #d3387b 0, #8628cd 100%);
	background: linear-gradient(to right, #d3387b 0, #8628cd 100%);
	-webkit-transition: .3s;
	-o-transition: .3s;
	transition: .3s
}

.back-to-home a em {
	width: 100px;
	height: 100px;
	line-height: 100px;
	position: relative;
	z-index: 10;
	font-style: normal;
	color: #fff;
	-webkit-transition-delay: .2s;
	-moz-transition-delay: .2s;
	transition-delay: .2s;
	opacity: 1;
	visibility: visible;
	-webkit-transition: .3s;
	-o-transition: .3s;
	transition: .3s
}

@media screen and (max-width:768px) {
	.back-to-home a {
		width: 80px;
		height: 80px;
		line-height: 80px
	}

	.back-to-home a em,
	.back-to-home a span {
		width: 80px;
		height: 80px;
		line-height: 80px
	}
}

.back-to-home {
	left: inherit !important;
	right: 20px
}
