/* The Dorau Lighthouse - Bootstrap 5 layout for every page (includes/layout_top.php).  The e-mails still use lighhouse.css in the main folder. */

:root {
	--lh-blue: #6495ed;
	--lh-navy: #13294b;
	--lh-gold: #f2c94c;
	--lh-link: #fff3c4;
}

body {
	background: var(--lh-blue);
	color: #fff;
	font-family: "Trebuchet MS", system-ui, sans-serif;
	font-size: 1rem;
}
a { color: var(--lh-link); }
a:hover, a:focus { color: var(--lh-gold); }

/* Banner */
.lh-banner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: .75rem 3.5rem;
	background: var(--lh-navy) url("../site_images/lighthouse_banner_background.jpg") center / cover;
}
.lh-banner a { min-width: 0; max-width: 100%; }
.lh-banner img { display: block; max-width: 100%; height: auto; }
.lh-menu-btn {
	position: absolute;
	left: .5rem;
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	border: 0;
}
.lh-menu-btn:hover, .lh-menu-btn:focus { color: var(--lh-gold); }

/* Sidebar menu */
.lh-sidebar {
	background: var(--lh-navy);
	padding: 0;
}
@media (min-width: 992px) {
	.lh-sidebar { min-height: calc(100vh - 52px); padding: 1rem .5rem; }
}
@media (max-width: 991.98px) {
	#lhNav { background: var(--lh-navy); color: #fff; max-width: 280px; }
}
.lh-sidebar h2 {
	margin: 1.25rem .75rem .25rem;
	font-size: .75rem;
	font-weight: bold;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #9fb3d9;
}
.lh-sidebar .nav-link { padding: .25rem .75rem; color: #dbe6fb; }
.lh-sidebar .nav-link:hover, .lh-sidebar .nav-link:focus { color: var(--lh-gold); }
.lh-sidebar .nav-link.active { color: var(--lh-gold); font-weight: bold; }

/* Page content */
.lh-main { padding: 1.5rem 1rem 2rem; }
@media (min-width: 992px) {
	.lh-main { padding: 2rem 2.5rem; max-width: 62rem; }
}
.lh-title { margin-bottom: 1.25rem; font-size: 1.9rem; font-weight: normal; }
.lh-photo {
	max-width: 100%;
	height: auto;
	border-radius: .25rem;
	box-shadow: 0 .25rem 1rem rgba(0, 0, 0, .25);
}
.lh-photo.float-md-start, .lh-photo.float-md-end { clear: both; }
@media (min-width: 768px) {
	.lh-photo.float-md-start { max-width: 45%; margin: .25rem 1.5rem 1rem 0; }
	.lh-photo.float-md-end { max-width: 45%; margin: .25rem 0 1rem 1.5rem; }
}
.lh-box {
	background: rgba(19, 41, 75, .45);
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: .5rem;
	padding: 1.25rem;
}

/* Right-hand panel (weather) */
.lh-panel { padding: 1.5rem 1rem 2rem; }
@media (min-width: 1200px) {
	.lh-panel { padding: 2rem 1.5rem 2rem 0; }
}
.lh-weather { color: #fff; }
.lh-weather h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #dbe6fb; margin-bottom: .75rem; }
.lh-weather .lh-temp { font-size: 2.5rem; line-height: 1; }
.lh-weather .lh-days td { padding: .2rem .25rem; vertical-align: middle; }
.lh-weather .lh-days img { width: 36px; height: 36px; }
.lh-weather .lh-low { color: #c9d8f5; }

.lh-footer { padding: 1.5rem 1rem; font-size: .8rem; text-align: center; color: #e6eefc; }

/* Tables on the blue background (Bootstrap's default is white) */
.lh-table {
	--bs-table-bg: transparent;
	--bs-table-color: #fff;
	--bs-table-border-color: rgba(255, 255, 255, .2);
}
/* Picture gallery thumbnails */
.lh-thumb { display: block; height: 100%; text-align: center; text-decoration: none; }
.lh-thumb-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; background: rgba(19, 41, 75, .35); border-radius: .375rem; overflow: hidden; }
.lh-thumb-img img { max-width: 100%; max-height: 100%; transition: transform .2s; }
.lh-thumb:hover .lh-thumb-img img, .lh-thumb:focus .lh-thumb-img img { transform: scale(1.04); }
.lh-thumb-label { display: block; margin-top: .4rem; line-height: 1.3; }

/* Family trees made of image slices: kept at their exact size, scrolling sideways on a phone */
.lh-tree-wrap { overflow-x: auto; text-align: center; margin: 1.5rem 0; }
.lh-tree { display: inline-block; line-height: 0; }
.lh-tree > div { display: flex; }
.lh-tree img { display: block; max-width: none; }
.lh-greek { letter-spacing: .05em; font-weight: bold; }
.lh-caption { font-size: .9rem; text-align: center; margin-top: .5rem; }
.lh-pagenav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .25); clear: both; }
