/* ================================================
   GLOBAL LAYOUT FIXES
   ================================================ */

/* Ensure body accommodates fixed header */
body {
	margin: 0;
	padding: 0;
}

/* Reset theme container padding for full-width hero */
.site-main {
	margin: 0;
	padding: 0;
}

/* Account for fixed header height */
body:not(.admin-bar) .site-main {
	margin-top: 0;
}

/* ================================================
   HERO SECTION - Full Width Background
   ================================================ */

.hero-section {
	position: relative;
	width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	height: 500px;
	min-height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-image: url('/wp-content/uploads/untamed-art-banner.png');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	margin-top: 78px;
}

.hero-background {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 1;
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.3);
	z-index: 2;
}

.hero-content {
	position: relative;
	z-index: 3;
	text-align: center;
	color: #ffffff;
	padding: 20px;
}

.hero-title {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 64px;
	font-weight: 400;
	margin: 0;
	padding: 0;
	line-height: 1.2;
	letter-spacing: 1px;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
	font-size: 20px;
	font-weight: 300;
	margin: 15px 0 0 0;
	opacity: 0.95;
	letter-spacing: 0.5px;
}

/* ================================================
   MASONRY GALLERY LAYOUT
   ================================================ */

.artwork-gallery-section {
	padding: 80px 0 100px;
	background: #ffffff;
}

.gallery-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 40px;
}

.masonry-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 25px;
	width: 100%;
}

.masonry-item {
	position: relative;
	overflow: hidden;
	border-radius: 3px;
	background: #f5f5f5;
}

.masonry-item:hover {
	z-index: 2;
}

.masonry-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.masonry-image-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.masonry-image {
	width: 100%;
	height: auto;
	display: block;
}

/* Overlay on hover */
.masonry-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
	opacity: 0;
	transition: opacity 0.4s ease;
	display: flex;
	align-items: flex-end;
	padding: 20px;
}

.masonry-item:hover .masonry-overlay {
	opacity: 1;
}

.masonry-info {
	color: #ffffff;
	transform: translateY(10px);
	transition: transform 0.4s ease;
}

.masonry-item:hover .masonry-info {
	transform: translateY(0);
}

.artwork-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 5px 0;
	line-height: 1.3;
	color: #ffffff;
}

.artwork-artist {
	font-size: 14px;
	margin: 0 0 3px 0;
	opacity: 0.9;
	font-style: italic;
}

.artwork-year {
	font-size: 13px;
	margin: 0;
	opacity: 0.8;
}

/* No artworks message */
.no-artworks {
	text-align: center;
	padding: 60px 20px;
	color: #666;
	font-size: 18px;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 1200px) {
	.masonry-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
	
	.gallery-container {
		padding: 0 30px;
	}
}

@media (max-width: 768px) {
	.hero-section {
		height: 400px;
	}
	
	.hero-title {
		font-size: 48px;
	}
	
	.hero-subtitle {
		font-size: 18px;
	}
	
	.artwork-gallery-section {
		padding: 50px 0 60px;
	}
	
	.gallery-container {
		padding: 0 20px;
	}
	
	.masonry-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}
}

@media (max-width: 480px) {
	.hero-section {
		height: 350px;
	}
	
	.hero-title {
		font-size: 36px;
	}
	
	.masonry-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	
	.masonry-overlay {
		padding: 15px;
	}
	
	.artwork-title {
		font-size: 16px;
	}
	
	.artwork-artist {
		font-size: 13px;
	}
}

/* ================================================
   SEARCH RESULTS PAGE
   ================================================ */

.search-results-header {
	background: #f9f9f9;
	padding: 60px 20px 40px;
	margin-top: 78px;
}

.search-results-header .container {
	max-width: 1400px;
	margin: 0 auto;
}

.search-results-header .page-title {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 42px;
	font-weight: 400;
	margin: 0 0 30px 0;
	color: #333333;
}

.search-results-header .page-title span {
	color: #000000;
	font-weight: 600;
}

.search-results-header .search-form {
	max-width: 600px;
	display: flex;
	gap: 10px;
}

.search-results-header .search-field {
	flex: 1;
	padding: 14px 18px;
	border: 2px solid #dddddd;
	font-size: 16px;
	border-radius: 3px;
	transition: border-color 0.3s ease;
}

.search-results-header .search-field:focus {
	outline: none;
	border-color: #333333;
}

.search-results-header .search-submit {
	padding: 14px 24px;
	background: #000000;
	color: #ffffff;
	border: none;
	font-size: 15px;
	cursor: pointer;
	border-radius: 3px;
	transition: background 0.3s ease;
	display: flex;
	align-items: center;
	gap: 8px;
}

.search-results-header .search-submit:hover {
	background: #333333;
}

.search-results-content {
	padding: 50px 20px 80px;
}

.search-results-content .container {
	max-width: 1400px;
	margin: 0 auto;
}

.search-results-count {
	font-size: 18px;
	color: #666666;
	margin: 0 0 40px 0;
	padding: 0 40px;
}

.search-results-count strong {
	color: #000000;
	font-weight: 600;
}

/* No Results */
.no-results {
	max-width: 800px;
	margin: 0 auto;
	padding: 60px 40px;
	text-align: center;
}

.no-results h2 {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 36px;
	font-weight: 400;
	margin: 0 0 20px 0;
	color: #333333;
}

.no-results > p {
	font-size: 18px;
	color: #666666;
	margin: 0 0 40px 0;
	line-height: 1.6;
}

.search-suggestions {
	background: #f9f9f9;
	padding: 30px;
	border-radius: 5px;
	margin: 40px 0;
	text-align: left;
}

.search-suggestions h3 {
	font-size: 20px;
	margin: 0 0 15px 0;
	color: #333333;
}

.search-suggestions ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.search-suggestions li {
	padding: 8px 0;
	color: #666666;
	position: relative;
	padding-left: 25px;
}

.search-suggestions li:before {
	content: '→';
	position: absolute;
	left: 0;
	color: #999999;
}

.browse-all {
	margin: 40px 0 0 0;
}

.browse-all .button {
	display: inline-block;
	padding: 14px 32px;
	background: #000000;
	color: #ffffff;
	text-decoration: none;
	border-radius: 3px;
	font-size: 16px;
	transition: background 0.3s ease;
}

.browse-all .button:hover {
	background: #333333;
}

/* Pagination */
.pagination {
	margin: 60px 0 0 0;
	text-align: center;
}

.pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.pagination a,
.pagination span {
	display: inline-block;
	padding: 10px 16px;
	background: #f5f5f5;
	color: #333333;
	text-decoration: none;
	border-radius: 3px;
	transition: background 0.3s ease;
}

.pagination a:hover {
	background: #000000;
	color: #ffffff;
}

.pagination .current {
	background: #000000;
	color: #ffffff;
}

@media (max-width: 768px) {
	.search-results-header {
		padding: 40px 15px 30px;
		margin-top: 78px;
	}
	
	.search-results-header .page-title {
		font-size: 32px;
	}
	
	.search-results-header .search-form {
		flex-direction: column;
	}
	
	.search-results-header .search-submit {
		width: 100%;
		justify-content: center;
	}
	
	.no-results {
		padding: 40px 20px;
	}
	
	.no-results h2 {
		font-size: 28px;
	}
}
