/* ==========================================================
   Application detail pages (used by applications/app-page-template.php)
   ========================================================== */

.app-layout {
	display: grid;
	grid-template-columns: minmax(200px, 300px) minmax(0, 850px);
	gap: 2rem;
	align-items: start;
}

.app-name {
	margin: 0 0 1.5rem;
	font-size: 24px;
	font-weight: bold;
	color: black;
}

.challenge {
	margin: 0 0 1.75rem;
}

.solution-row {
	display: grid;
	grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
	gap: 1rem 1.25rem;
	align-items: start;
}
.solution p {
	margin-top: 0;
}

/* MAIN PHOTO WITH "CLICK TO ENLARGE" NOTE */
.photo {
	position: relative;
	display: block;
}
.photo img {
	display: block;
	width: 100%;
	height: auto;
	box-sizing: border-box;
}
.photo-note {
	position: absolute;
	left: 3px;
	right: 3px;
	bottom: 3px;
	padding: 1rem 0 0.4rem;
	text-align: center;
	color: white;
	text-decoration: none;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
}

/* VIDEO (16:9, scales down on small screens) */
.video {
	margin-top: 1.25rem;
}
.video-frame {
	position: relative;
	max-width: 853px;
	aspect-ratio: 16 / 9;
}
.video-frame iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 800px) {
	.app-layout {
		grid-template-columns: minmax(0, 1fr);
	}
	/* Show the page content first, then the applications menu */
	.app-detail {
		order: -1;
	}
}
@media (max-width: 600px) {
	.solution-row {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ==========================================================
   Applications side menu (applications/appmenu.php)
   ========================================================== */
.app-nav {
	padding-top: 0.25rem;
}
.menu-category {
	margin: 0 0 0.25rem;
	font-size: 1rem;
	font-weight: bold;
}
.app-nav ul {
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
}
.app-nav li {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.15rem 0;
	font-size: 0.917rem;
}
.app-nav img {
	flex: none;
	height: 14px;
	width: auto;
	border: 0;
}
.app-nav a[aria-current="page"] {
	color: black;
	font-weight: bold;
}
