body {
	margin: 0;
	padding: 0;
	font-family: Arial, sans-serif;
	background-color: #f5e6d3;
}

.container {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.header {
	background-color: #8B4513;
	padding: 10px 0;
	width: 100%;
	margin-bottom: 20px;
}

.header h1 {
	margin: 0;
	text-align: center;
	color: #f5e6d3;
}

.main-content {
	display: flex;
	flex: 1;
	padding-left: 20px;
}

.sidebar {
	width: 200px;
	border-right: 1px solid #D2691E;
	padding-right: 20px;
	overflow-y: auto;
}

.sidebar a {
	background-color: #DEB887;
	color: #4B3621;
	display: block;
	padding: 12px;
	text-decoration: none;
	margin-bottom: 5px;
	border-radius: 5px;
}

.sidebar a:hover {
	background-color: #D2691E;
	color: #f5e6d3;
}

.sidebar a.active {
	background-color: #8B4513;
	color: #f5e6d3;
}

.content-wrapper {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding-left: 20px;
	overflow-y: auto;
}

.image-container {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 20px;
	max-height: 50vh;
}

.image-container img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.text-content {
	width: 100%;
	padding: 20px;
	background-color: #FAEBD7;
	border-radius: 5px;
	box-sizing: border-box;
	line-height: 1.6;
	color: #4B3621;
	box-shadow: 0 0 10px rgba(139, 69, 19, 0.1);
}

.text-content h2,
.text-content h3 {
	color: #8B4513;
}

.text-content p {
	margin-bottom: 15px;
}

/* Media query for mobile devices */
@media screen and (max-width: 768px) {
	.main-content {
		flex-direction: column;
		padding-left: 0;
	}

	.sidebar {
		width: 100%;
		border-right: none;
		border-bottom: 1px solid #D2691E;
		padding-right: 0;
		padding-bottom: 10px;
		margin-bottom: 20px;
	}

	.sidebar a {
		display: inline-block;
		width: calc(50% - 10px);
		margin: 5px;
		text-align: center;
	}

	.content-wrapper {
		padding-left: 0;
	}

	.image-container {
		max-height: 35vh;
		/* Reduced from 40vh to 35vh for mobile */
	}

	.text-content {
		padding: 15px;
	}
}

.gallery {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 5px;
	padding: 10px;
	background-color: #FAEBD7;
	border-radius: 5px;
	box-shadow: 0 0 10px rgba(139, 69, 19, 0.1);
}

.gallery-item {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 3px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.gallery-item:hover img {
	transform: scale(1.1);
}

.gallery-item.enlarged {
	grid-column: span 4;
	grid-row: span 4;
	z-index: 10;
}

.gallery-item.enlarged img {
	transform: scale(1);
}

.nav-button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color: rgba(0, 0, 0, 0.5);
	color: white;
	border: none;
	font-size: 24px;
	padding: 10px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	display: none;
}

.gallery-item.enlarged .nav-button {
	display: block;
}

.nav-button:hover {
	background-color: rgba(0, 0, 0, 0.8);
}

.nav-prev {
	left: 10px;
}

.nav-next {
	right: 10px;
}

@media screen and (max-width: 1024px) {
	.gallery {
		grid-template-columns: repeat(6, 1fr);
	}

	.gallery-item.enlarged {
		grid-column: span 3;
		grid-row: span 3;
	}
}

@media screen and (max-width: 768px) {
	.gallery {
		grid-template-columns: repeat(4, 1fr);
	}

	.gallery-item.enlarged {
		grid-column: span 2;
		grid-row: span 2;
	}
}

@media screen and (max-width: 480px) {
	.gallery {
		grid-template-columns: repeat(3, 1fr);
	}

	.gallery-item.enlarged {
		grid-column: 1 / -1;
		grid-row: span 1;
	}

	.nav-button {
		font-size: 18px;
		padding: 8px;
	}
}