/* =====================================================
   CLEAN OPTIMIZED CSS - ONLY 150 LINES
   This replaces your 4000+ line CSS
   All your custom features preserved
   ===================================================== */
/* ============================================
   1. PROJECT FILTER BUTTONS
   ============================================ */
.project-filter {
	margin-bottom: 20px;
	text-align: center;
}

.project-filter button {
	margin: 5px;
	padding: 6px 14px;
	background: #eee;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: all .3s ease;
}

.project-filter button.active {
	background: #333;
	color: #fff;
}

.project-filter button:hover {
	background: #ddd;
}

.project-tag-hidden {
	display: none !important;
}

/* ============================================
   2. COVER BLOCK HOVER EFFECTS
   ============================================ */
.wp-block-cover {
	overflow: hidden;
	position: relative;
	transition: transform .4s ease;
}

/* Orange overlay that slides from bottom */
.wp-block-cover::before {
	content: "";
	position: absolute;
	bottom: -100%;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 75, 51, 0.9);
	z-index: 1;
	transition: bottom .4s ease;
}

/* Text container - hidden by default */
.wp-block-cover .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
	opacity: 0;
	transition: opacity .3s ease .2s;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	height: 100%;
}

/* Hover triggers */
.wp-block-cover:hover::before {
	bottom: 0;
}

.wp-block-cover:hover .wp-block-cover__inner-container {
	opacity: 1;
}

.wp-block-cover:hover img {
	transform: scale(1.1);
}

/* Cover images - proper background behavior */
.wp-block-cover__image-background,
.wp-block-cover img {
	object-fit: cover !important;
	object-position: center center !important;
	height: 100% !important;
	width: 100% !important;
	position: absolute !important;
	top: 0;
	left: 0;
	transition: transform .4s ease;
}

/* ============================================
   3. ORANGE HEADER & FOOTER BRANDING
   ============================================ */
/* Hide home page title */
.home .entry-title {
	display: none;
}

/* Orange header background */
.navigation-top {
	background-color: #FF4B33 !important;
	border-top: none !important;
	border-bottom: none !important;
	margin-top: 0 !important;
}

.site-header {
	margin-bottom: 0 !important;
	background-color: #FF4B33 !important;
}

/* White menu links */
.main-navigation a,
.navigation-top a {
	color: #ffffff !important;
	transition: color .3s ease;
}

.main-navigation a:hover,
.navigation-top a:hover {
	color: #dddddd !important;
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.navigation-top .current-menu-item > a,
.navigation-top .current_page_item > a {
	color: #eeeeee !important;
}

/* Remove link underlines in content */
.entry-content a,
.entry-content a:hover,
.entry-content a:focus {
	box-shadow: none !important;
	text-decoration: none !important;
}

/* Orange footer */
.site-footer {
	background-color: #FF4B33 !important;
	color: #ffffff !important;
	border-top: none !important;
}

.site-footer a {
	color: #ffffff !important;
}

.site-footer a:hover {
	color: #dddddd !important;
}

.site-footer .widget-title {
	color: #ffffff !important;
}

/* ============================================
   4. FULL WIDTH CONTENT
   ============================================ */
.wrap,
.site-content,
.entry-content,
.page .entry-content,
.site-content-contain {
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 10px;
	margin: 0 auto;
}

/* Full width for all page types */
.page:not(.twentyseventeen-front-page) #primary,
.single-post:not(.has-sidebar) #primary,
.archive:not(.has-sidebar) #primary {
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 10px;
}

/* Images respect container width */
.page .entry-content img {
	max-width: 100%;
	height: auto;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/* =====================================================
   FINAL MOBILE FIX - ADD TO BOTTOM
   Fixes all mobile issues
   ===================================================== */
@media screen and (max-width: 768px) {
	/* STOP HORIZONTAL SCROLLING */
	html {
		overflow-x: hidden !important;
		width: 100vw !important;
	}
	
	body {
		overflow-x: hidden !important;
		max-width: 100vw !important;
		width: 100% !important;
	}
	
	* {
		max-width: 100vw !important;
	}
	
	/* FIX HEADER IMAGE - KEEP AS BACKGROUND */
	.custom-header,
																						    .custom-header-media {
		position: relative !important;
		height: 350px !important;
		overflow: hidden !important;
	}
	
	.custom-header-media img,
																						    .custom-header img {
		position: absolute !important;
		top: 0 !important;
		left: 0 !important;
		width: 100% !important;
		height: 100% !important;
		object-fit: cover !important;
	}
	
	.site-branding {
		position: relative !important;
		z-index: 10 !important;
		padding: 2em 1em !important;
	}
	
	/* FIX MENU BUTTON */
	.menu-toggle {
		display: block !important;
		width: 100% !important;
		text-align: center !important;
		background-color: transparent !important;
		color: #ffffff !important;
		padding: 15px !important;
		font-size: 16px !important;
		border: 1px solid rgba(255,255,255,0.3) !important;
	}
	
	.menu-toggle .icon {
		margin-right: 5px !important;
	}
	
	/* FIX MENU WHEN OPEN */
	.main-navigation.toggled-on ul {
		display: block !important;
		background: #ffffff !important;
		padding: 10px !important;
		border-top: 2px solid #FF4B33 !important;
	}
	
	.main-navigation.toggled-on li {
		width: 100% !important;
		text-align: left !important;
		border-bottom: 1px solid #eee !important;
		padding: 10px !important;
	}
	
	.main-navigation.toggled-on a {
		color: #222 !important;
		padding: 10px !important;
		display: block !important;
	}
	
	/* ALL IMAGES FIT SCREEN */
	img {
		max-width: 100% !important;
		height: auto !important;
	}
	
	/* FIX CONTENT WIDTH */
	.wrap,
																						    .site-content,
																						    .entry-content,
																						    #page {
		width: 100% !important;
		max-width: 100% !important;
		padding-left: 10px !important;
		padding-right: 10px !important;
		margin: 0 !important;
	}
	
	/* PROJECT IMAGES - 2 COLUMNS ON MOBILE */
	.wp-block-columns {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 10px !important;
		margin-bottom: 15px !important;
	}
	
	.wp-block-column {
		width: 100% !important;
		margin: 0 !important;
	}
	
	/* ALL PROJECT IMAGES SAME SIZE */
	.wp-block-cover {
		height: 180px !important;
		min-height: 180px !important;
		max-height: 180px !important;
		width: 100% !important;
	}
	
	/* MOBILE: REMOVE ORANGE OVERLAY - SHOW PHOTOS CLEARLY */
	@media screen and (max-width: 768px) {
	/* MOBILE: SHOW PHOTOS CLEARLY - NO OVERLAY, NO BACKGROUND */
	@media screen and (max-width: 768px) {
	/* Remove orange overlay completely */
	.wp-block-cover::before {
		display: none !important;
	}
	
	/* Show text with strong shadow - no background */
	.wp-block-cover .wp-block-cover__inner-container {
		opacity: 1 !important;
		font-size: .85rem !important;
		padding: .8em !important;
		line-height: 1.3 !important;
		background: none !important;
	/* No dark background */
		position: absolute !important;
		bottom: 0 !important;
		left: 0 !important;
		right: 0 !important;
		text-align: center !important;
	}
	
	/* Text styling - white with heavy shadow for readability */
	.wp-block-cover .wp-block-cover__inner-container h2,
																						    .wp-block-cover .wp-block-cover__inner-container h3,
																						    .wp-block-cover .wp-block-cover__inner-container p {
		color: #ffffff !important;
		text-shadow: 2px 2px 4px rgba(0,0,0,0.9), -1px -1px 2px rgba(0,0,0,0.8), 1px 1px 3px rgba(0,0,0,0.9) !important;
		font-size: .85rem !important;
		font-weight: 700 !important;
	/* Bold text */
		margin: .2em 0 !important;
	}
}

```
    
    /* READABLE TEXT */
    body {
	font-size: 16px !important;
	line-height: 1.6 !important;
}

h1, .entry-title {
	font-size: 24px !important;
}

h2 {
	font-size: 20px !important;
}

p {
	font-size: 16px !important;
}

/* FOOTER */
.site-footer {
	padding: 20px 10px !important;
	text-align: center !important;
}

.site-footer img {
	max-width: 100% !important;
	height: auto !important;
}

/* FORMS */
input[type="text"],
    input[type="email"],
    textarea {
	width: 100% !important;
	font-size: 16px !important;
}

button,
    .button {
	min-height: 44px !important;
	padding: 12px 20px !important;
}	
}

/* VERY SMALL PHONES - SINGLE COLUMN */
@media screen and (max-width: 400px) {
	.wp-block-columns {
		grid-template-columns: 1fr !important;
	}
	
	.wp-block-cover {
		height: 200px !important;
	}
}

/* FIX TEAM PHOTO SPECIFICALLY - SHOW CLEARLY ON MOBILE */
@media screen and (max-width: 768px) {
	/* Target all cover blocks including Team photo */
	.wp-block-cover,
																						    .entry-content .wp-block-cover {
		position: relative !important;
	}
	
	/* Make sure overlay is removed from ALL cover blocks */
	.wp-block-cover::before,
																						    .entry-content .wp-block-cover::before {
		display: none !important;
		opacity: 0 !important;
	}
	
	/* Text styling for ALL cover blocks (including Team) */
	.wp-block-cover .wp-block-cover__inner-container,
																						    .entry-content .wp-block-cover .wp-block-cover__inner-container {
		background: none !important;
		opacity: 1 !important;
		padding: .8em !important;
		position: absolute !important;
		bottom: 0 !important;
		left: 0 !important;
		right: 0 !important;
		text-align: center !important;
	}
	
	/* Strong text shadow for readability */
	.wp-block-cover .wp-block-cover__inner-container *,
																						    .entry-content .wp-block-cover .wp-block-cover__inner-container * {
		color: #ffffff !important;
		text-shadow: 2px 2px 6px rgba(0,0,0,1), -1px -1px 3px rgba(0,0,0,0.9), 1px 1px 4px rgba(0,0,0,1) !important;
		font-weight: 700 !important;
		background: none !important;
	}
	
	/* Remove any gradient overlays */
	.wp-block-cover__gradient-background {
		display: none !important;
	}
}

```

/* =====================================================
   FINAL FIXED GRID & IMAGE CONTROL
   ===================================================== */
@media screen and (min-width: 769px) {
/* 1. THE GRID LAYOUT */
	grid-template-columns: 1fr 1fr !important;
	gap: 25px !important;
	width: 100% !important;
	max-width: 1600px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 0 !important;
	margin-bottom: 25px !important;
}

/* 2. THE COLUMNS */
.entry-content .wp-block-column,
.wp-block-column {
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* 3. THE MASTER IMAGE RULE (Fixed Shape/Ratio) */
.wp-block-column img,
.wp-block-column .wp-block-image img,
.wp-block-column .wp-block-cover,
.wp-block-cover,
figure.wp-block-image img,
.wp-block-cover__image-background {
	width: 100% !important;
/* DELETE the fixed 500px height */
	height: auto !important;
	min-height: auto !important;
	max-height: none !important;


/* No Position setting -> Focal Point works */
	display: block !important;
	margin: 0 !important;
}

figure.wp-block-image {
	width: 100% !important;
	margin: 0 !important;
}

.page .entry-content,
.entry-content {
	padding-left: 40px !important;
	padding-right: 40px !important;
}	
}



/* ============================================
   9. THE FINAL POLISH - PERFECT RIGHT SQUARE
   ============================================ */

/* Force the Footer area to be a 'Flex' box for perfect alignment */
.site-footer .wrap .widget-column {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important; /* Centers text vertically with the map */
    max-width: 100% !important;
    padding: 20px 0 !important;
}

/* Force the Map into a PERFECT 450px Square */
.footer-square-map {
    width: 450px !important;
    height: 450px !important;
    flex: 0 0 450px !important; /* Locks the size so it can't stretch */
    margin-left: auto !important; /* Keeps it on the far right */
    display: block !important;
    border: 1px solid rgba(255,255,255,0.3) !important; /* Elegant thin border */
}

/* Ensure the map inside obeys the 450px square frame */
.footer-square-map .wp-block-map,
.footer-square-map iframe {
    width: 100% !important;
    height: 100% !important;
}

/* Fix for mobile: Center the square under the text */
@media screen and (max-width: 1000px) {
    .site-footer .wrap .widget-column {
        flex-direction: column !important;
        text-align: center !important;
    }
    .footer-square-map {
        margin: 30px auto !important;
        width: 320px !important;
        height: 320px !important;
        flex: 0 0 320px !important;
    }
}
/* ============================================
   12. HOMEPAGE GRID - WIDE UNIFORM PHOTOS
   ============================================ */

.home .wp-block-columns img, 
.home .wp-block-column .wp-block-image img,
.home .wp-block-cover img {
    width: 200% !important;
    /* 1. LOCK THE SHAPE: '2 / 1' is very wide and not tall */
    aspect-ratio: 4 / 3 !important; 
    /* 2. FILL THE BOX: Keeps all 4 photos the exact same size */
    object-fit: cover !important; 
    /* 3. SHOW THE BEST PART: Centers the architecture in the frame */
    object-position: center !important; 
    height: auto !important;
    border-radius: 2px !important;
}



/* Specific fix for Team Page only */
.page-id-team .wp-block-column img,
.team-photo-grid .wp-block-column img {
    max-width: 280px !important; /* This keeps the faces small */
    aspect-ratio: 3 / 4 !important; /* This makes them professional portraits */
    object-fit: cover !important; /* This keeps the faces centered */
    margin: 0 auto !important; /* This centers the photo in the column */
}