/* Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--primary-color: #2c3e50;
	--accent-color: #3498db;
	--text-color: #333;
	--bg-color: #fff;
	--border-color: #ddd;
	--card-bg: #f9f9f9;
	--shadow: 0 2px 8px rgba(0,0,0,0.1);
	--shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

[data-theme="dark"] {
	--primary-color: #1a252f;
	--accent-color: #4a9eff;
	--text-color: #e4e4e4;
	--bg-color: #0d1117;
	--border-color: #30363d;
	--card-bg: #161b22;
	--shadow: 0 2px 8px rgba(0,0,0,0.3);
	--shadow-hover: 0 4px 16px rgba(0,0,0,0.4);
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.6;
	color: var(--text-color);
	background-color: var(--bg-color);
	transition: background-color 0.3s, color 0.3s;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Header */
.site-header {
	background: var(--primary-color);
	color: white;
	padding: 1.5rem 0;
	box-shadow: var(--shadow);
}

.site-header h1 {
	font-size: 2rem;
	margin-bottom: 0.5rem;
	font-family: 'Playfair Display', Georgia, serif;
	text-align: center;
}

.site-header h1 a {
	color: white;
	text-decoration: none;
}

.site-header nav {
	margin-top: 0.5rem;
}

.site-header nav a {
	color: white;
	text-decoration: none;
	margin-right: 1.5rem;
	opacity: 0.9;
	transition: opacity 0.3s;
}

.site-header nav a:hover {
	opacity: 1;
}

/* Theme Toggle */
.theme-toggle {
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: white;
	cursor: pointer;
	padding: 0.5rem 1rem;
	border-radius: 6px;
	font-size: 1.2rem;
	transition: background 0.3s;
	margin-left: 1rem;
}

.theme-toggle:hover {
	background: rgba(255, 255, 255, 0.3);
}

.site-header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.site-header-content {
	flex: 1;
}

/* Main Content */
main {
	padding: 2rem 0;
	min-height: 60vh;
}

/* Home Page */
.home-hero {
	text-align: center;
	padding-bottom: 3rem;
}

.hero-banner {
	position: relative;
	width: 100%;
	max-height: 500px;
	overflow: hidden;
	margin-bottom: 3rem;
}

.hero-image {
	width: 100%;
	height: 500px;
	object-fit: cover;
	display: block;
}

.hero-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
	padding: 3rem 1rem 2rem;
}

.hero-title {
	color: white;
	font-size: 3rem;
	font-weight: bold;
	font-family: 'Playfair Display', Georgia, serif;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
	margin: 0;
}

.home-content {
	font-size: 1.3rem;
	margin: 3rem auto;
	max-width: 700px;
	padding: 0 1rem;
	text-align: center;
	font-family: 'Lora', Georgia, serif;
	line-height: 1.8;
}

.home-content p {
	margin-bottom: 1.5rem;
}

.home-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin: 3rem 0;
	text-align: center;
}

.feature {
	padding: 2rem 1rem;
	background: var(--card-bg);
	border-radius: 12px;
	box-shadow: var(--shadow);
	transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-hover);
}

.feature-icon {
	font-size: 3rem;
	display: block;
	margin-bottom: 1rem;
}

.feature h3 {
	font-size: 1.4rem;
	margin-bottom: 0.5rem;
	color: var(--primary-color);
}

.feature p {
	color: var(--text-color);
	opacity: 0.8;
	line-height: 1.5;
}

.home-cta {
	margin: 3rem 0;
}

.btn-primary {
	display: inline-block;
	background: var(--accent-color);
	color: white;
	padding: 1rem 2rem;
	text-decoration: none;
	border-radius: 6px;
	font-size: 1.1rem;
	transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-hover);
}

/* Gallery Header */
.gallery-header {
	margin-bottom: 2rem;
}

.gallery-header h2 {
	font-size: 2rem;
	margin-bottom: 1rem;
	color: var(--primary-color);
}

.gallery-description {
	font-size: 1.1rem;
	margin-bottom: 1.5rem;
	color: #666;
}

.gallery-controls {
	margin: 1.5rem 0;
}

#searchInput {
	width: 100%;
	max-width: 500px;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	border: 2px solid var(--border-color);
	border-radius: 6px;
	transition: border-color 0.3s;
}

#searchInput:focus {
	outline: none;
	border-color: var(--accent-color);
}

/* Gallery Grid */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
	margin: 2rem 0;
}

.gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: var(--shadow);
	transition: transform 0.3s, box-shadow 0.3s;
	background: var(--card-bg);
}

.gallery-item:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-hover);
}

.gallery-link {
	display: block;
	position: relative;
	text-decoration: none;
	color: inherit;
}

.gallery-item img {
	width: 100%;
	height: 280px;
	object-fit: cover;
	display: block;
	transition: transform 0.3s;
}

.gallery-item:hover img {
	transform: scale(1.05);
}

.gallery-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 0.75rem;
	font-size: 0.9rem;
	transform: translateY(100%);
	transition: transform 0.3s;
}

.gallery-item:hover .gallery-caption {
	transform: translateY(0);
}

.no-images {
	text-align: center;
	font-size: 1.2rem;
	color: #666;
	padding: 3rem 0;
}

/* Lightbox */
.lightbox {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.95);
	animation: fadeIn 0.3s;
}

.lightbox.active {
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox-content {
	position: relative;
	max-width: 90%;
	max-height: 90%;
	text-align: center;
}

.lightbox-content img {
	max-width: 100%;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 4px;
}

#lightboxCaption {
	color: white;
	font-size: 1.1rem;
	padding: 1rem;
	text-align: center;
}

.lightbox-close {
	position: absolute;
	top: 20px;
	right: 40px;
	color: white;
	font-size: 40px;
	font-weight: bold;
	cursor: pointer;
	z-index: 1001;
	transition: opacity 0.3s;
}

.lightbox-close:hover {
	opacity: 0.7;
}

.lightbox-prev,
.lightbox-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.2);
	color: white;
	border: none;
	font-size: 2rem;
	padding: 1rem 1.5rem;
	cursor: pointer;
	transition: background 0.3s;
	border-radius: 4px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
	background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
	left: 20px;
}

.lightbox-next {
	right: 20px;
}

/* Single Page */
.single-page {
	max-width: 800px;
	margin: 0 auto;
}

.single-page h2 {
	font-size: 2rem;
	margin-bottom: 1rem;
	color: var(--primary-color);
}

/* Footer */
.site-footer {
	background: var(--primary-color);
	color: white;
	padding: 2rem 0;
	margin-top: 4rem;
	text-align: center;
}

.site-footer a {
	color: white;
	text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
	.site-header h1 {
		font-size: 1.5rem;
	}
	
	.site-header nav a {
		display: block;
		margin: 0.5rem 0;
	}
	
	.hero-title {
		font-size: 2rem;
	}
	
	.hero-image {
		height: 300px;
	}
	
	.home-features {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
	
	.feature {
		padding: 1.5rem 1rem;
	}
	
	.gallery-grid {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
		gap: 1rem;
	}
	
	.gallery-item img {
		height: 200px;
	}
	
	.lightbox-prev,
	.lightbox-next {
		font-size: 1.5rem;
		padding: 0.5rem 1rem;
	}
	
	.lightbox-close {
		right: 20px;
		font-size: 30px;
	}
}

@media (max-width: 480px) {
	.gallery-grid {
		grid-template-columns: 1fr;
	}
}
