html,
body {
	margin: 0;
	min-height: 100%;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body:not(.personal-home) {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: #3f2a1d;
	background:
		radial-gradient(circle at 10% 10%, #ffedd5 0, transparent 28%),
		radial-gradient(circle at 90% 20%, #fef3c7 0, transparent 28%),
		#fff8ed;
}

body:not(.personal-home) header {
	position: relative;
	height: 20vh;
	min-height: 8rem;
	background-color: #d97706;
}

body:not(.personal-home) header::before {
	position: absolute;
	inset: 5%;
	background-image: url("Images/LTBHeaderLaptop.png");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	content: "";
}

body:not(.personal-home) main {
	flex: 1;
	display: grid;
	grid-template-columns: 220px 1fr;
	min-height: 0;
}

.navigation-pane {
	padding: 1.5rem;
	background-color: #ffedd5;
}

.navigation-pane nav {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.navigation-pane a,
.navigation-pane summary {
	display: block;
	min-height: 2.75rem;
	padding: 0.65rem 0.25rem;
	color: #b45309;
	font-weight: bold;
	text-decoration: none;
	cursor: pointer;
	line-height: 1.4;
}

.navigation-pane a:hover,
.navigation-pane a:focus,
.navigation-pane summary:hover,
.navigation-pane summary:focus {
	text-decoration: underline;
}

.years-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 1rem;
	padding-left: 1rem;
}

.years-list details summary {
	font-weight: normal;
}

.years-list ul {
	margin: 0.5rem 0 0;
	padding-left: 1.25rem;
	color: #263238;
	word-break: break-word;
}

.body-pane {
	min-width: 0;
}

.body-frame {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 30rem;
	border: 0;
}

body:not(.personal-home) footer {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 5vh;
	padding: 1.5rem 6%;
	height: auto;
	border-top: 1px solid #f1d7b5;
	background: rgba(255, 250, 240, 0.7);
	color: #765f4d;
}

footer p {
	margin: 0;
}

.place-page {
	box-sizing: border-box;
	min-height: 100vh;
	padding: 2rem;
	overflow-wrap: anywhere;
	background: transparent;
	color: #3f2a1d;
}

.place-page section {
	margin-bottom: 2rem;
}

.place-page h2,
.place-page h3 {
	color: #b45309;
}

.place-page p {
	color: #765f4d;
	line-height: 1.75;
}

.useful-links {
	padding: 1rem 1.5rem;
	border-left: 4px solid #d97706;
	background-color: #ffedd5;
	border-radius: 0 18px 18px 0;
}

.useful-links h3 {
	margin-top: 0;
}

.useful-links ul {
	margin-bottom: 0;
	padding-left: 1.25rem;
}

.useful-links a {
	color: #b45309;
}

.photo-placeholder {
	min-height: 180px;
	padding: 2rem;
	border: 2px dashed #f1d7b5;
	background-color: #ffedd5;
	text-align: center;
}

.photo-gallery {
	width: 100%;
}

.photo-carousel-viewport {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 420px;
	padding: 1rem;
	background-color: #ffedd5;
	border: 1px solid #f1d7b5;
	border-radius: 18px;
}

.photo-carousel-viewport img {
	display: block;
	width: auto;
	max-width: 100%;
	height: min(420px, 60vh);
	border: 2px solid #f1d7b5;
	object-fit: cover;
}

.photo-carousel-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	margin-top: 1rem;
}

.photo-carousel-button {
	width: 2.5rem;
	height: 2.5rem;
	border: 0;
	border-radius: 50%;
	background-color: #d97706;
	color: #ffffff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.photo-carousel-button:hover,
.photo-carousel-button:focus-visible {
	background-color: #b45309;
}

.photo-carousel-button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.photo-carousel-status {
	min-width: 4rem;
	color: #b45309;
	font-weight: bold;
	text-align: center;
}

.photo-gallery-error {
	min-height: 180px;
	padding: 2rem;
	border: 2px dashed #c96f00;
	background-color: #ffedd5;
	color: #b45309;
	border-radius: 18px;
}

.photo-carousel:focus-visible {
	outline: 3px solid #b45309;
	outline-offset: 4px;
}

@media (max-width: 900px) {
	body:not(.personal-home) header::before {
		background-image: url("Images/LTBHeaderMobile.png");
	}

	body:not(.personal-home) main {
		grid-template-columns: 1fr;
	}

	.navigation-pane {
		padding: 1rem;
	}

	.navigation-pane nav {
		gap: 0.5rem;
	}

	.destinations-menu {
		width: 100%;
	}

	.years-list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.5rem 1rem;
		padding-left: 0.75rem;
	}

	.photo-carousel-viewport {
		min-height: 320px;
	}

	.photo-carousel-viewport img {
		height: min(360px, 55vh);
	}
}

@media (max-width: 600px) {
	body:not(.personal-home) header {
		min-height: 6rem;
	}

	header h1 {
		font-size: 1.5rem;
	}

	.navigation-pane nav {
		align-items: stretch;
	}

	.navigation-pane > nav > a,
	.destinations-menu > summary {
		padding: 0.75rem;
		background-color: #ffe6ad;
	}

	.years-list {
		grid-template-columns: 1fr;
	}

	.body-frame {
		min-height: 28rem;
	}

	.place-page {
		padding: 1rem;
	}

	.place-page section {
		margin-bottom: 1.5rem;
	}

	.place-page h2 {
		font-size: 1.5rem;
	}

	.photo-carousel-viewport {
		min-height: 240px;
		padding: 0.5rem;
	}

	.photo-carousel-viewport img {
		height: min(300px, 48vh);
	}

	.photo-carousel-controls {
		gap: 1rem;
	}

	.photo-carousel-button {
		width: 3rem;
		height: 3rem;
	}

	.useful-links {
		padding: 1rem;
	}

	body:not(.personal-home) footer {
		min-height: 3rem;
		padding: 0.5rem 1rem;
		text-align: center;
	}
}
