main {
	padding: 4rem 2rem;
}

main h1 {
	font-size: 1.5rem;
	text-transform: uppercase;
	margin-bottom: 2rem;
}

.news-image {
	float: right;
	margin-left: 2rem;
	height: max-content;
	border: solid 1px var(--secondary);
	padding: 1.5rem;

	position: relative;
}

.news-image::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	top: 4px;
	left: 4px;
	border: solid 1px var(--bg2);
}

main > div {
	display: flex;
	flex-direction: row-reverse;
}

main > div div:has(h1) {
	width: 100%;
}

main > div > time {
	display: none;
}

.news-image time {
	position: absolute;
	top: -1rem;
	left: -1rem;
	font-size: 1.5rem;
	color: var(--bg1);
	background-color: var(--secondary);
	padding: 1rem;
	z-index: 40;
}

@media (max-width: 800px) {
	.news-image {
		display: none;
	}

	main > div > time {
		display: block;
	}
}

main p {
	line-height: 1.5rem;
	font-size: 1.25rem;
	margin-bottom: 2rem;
}

main h2 {
	font-size: 2rem;
	color: var(--bg2);
	text-align: center;
	clear: right;
}

main hr {
	margin-inline: auto;
	margin-bottom: 2rem;
}

main div > figure {
	display: flex;
	flex-direction: row;
	justify-content: center;
	flex-wrap: wrap;

	border: solid 1px #dee2e6;
	border-radius: 0.25rem;
	padding: 2rem;
}

main figure > figure {
	width: max-content !important;
	height: 16rem !important;
	flex-grow: 0 !important;
}

figure > figure > img {
	width: 16rem !important;
	height: 16rem !important;
	object-fit: contain !important;
	object-position: center !important;

	cursor: pointer;
}

.preview-image {
	max-width: 200px;
	cursor: pointer;
	margin: 10px;
	border-radius: 8px;
	transition: transform 0.2s;
}
.preview-image:hover {
	transform: scale(1.05);
}

/* Overlay */
#fullscreenOverlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.9);
	justify-content: center;
	align-items: center;
	overflow: hidden;
	z-index: 1000;
	opacity: 0;
	transition: opacity 0.3s ease;
}
#fullscreenOverlay.show {
	display: flex;
	opacity: 1;
}

#fullscreenImage {
	max-width: 90%;
	max-height: 90%;
	transform-origin: center center;
	transition: transform 0.3s ease;
	cursor: zoom-in;
}

.nav-button {
	font: normal normal normal 14px/1 FontAwesome;
	position: absolute;
	bottom: 0;
	background: var(--secondary);
	color: var(--bg1);
	border: none;
	padding: 1rem;
	cursor: pointer;
	user-select: none;
	transform: translateY(-50%);
	border-radius: 0.25rem;
	z-index: 30;
}

.nav-button:hover {
	background: var(--bg2);
}

#prevBtn {
	left: 50%;
	transform: translateX(-4rem) translateY(-50%);
}

#prevBtn::after {
	content: '\f060';
}

#nextBtn {
	right: 50%;
	transform: translateX(4rem) translateY(-50%);
}

#nextBtn::after {
	content: '\f061';
}
