/* Project presentation uses the established design tokens; no homepage redesign. */
.majico-featured .majico-project__caption h3 a { color: inherit; text-decoration: none; text-underline-offset: 0.2em; }
.majico-featured .majico-project__caption h3 a:hover { text-decoration: underline; }
.majico-featured .majico-project-context { margin-top: var(--wp--preset--spacing--20); }
.majico-project__images--single { grid-template-columns: 1fr; }
.majico-project-context { font-size: var(--wp--preset--font-size--small); }
.majico-project-context a { text-underline-offset: 0.25em; }
.majico-project-page,
.majico-project-archive { max-width: calc(var(--wp--style--global--wide-size) + var(--wp--style--root--padding-left) + var(--wp--style--root--padding-right)); margin-inline: auto; padding-block: var(--wp--preset--spacing--60); padding-inline: var(--wp--style--root--padding-left) var(--wp--style--root--padding-right); box-sizing: border-box; }
.majico-project-opening { max-width: 58rem; margin-bottom: var(--wp--preset--spacing--60); }
.majico-project-opening .majico-eyebrow { margin-top: 0; }
.majico-project-opening h1 { text-wrap: balance; }
.majico-project-opening > p:last-child { max-width: 44rem; }
.majico-project-hero { margin-block: 0 var(--wp--preset--spacing--60); }
.majico-project-hero.wp-block-post-featured-image img { width: auto; max-width: 100%; height: auto; display: block; margin-inline: auto; }
.majico-project-introduction:not(:has(p, dl)) { display: none; }
.majico-project-content:not(:has(*)) { display: none; }
.majico-project-intro { max-width: 46rem; }
.majico-project-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wp--preset--spacing--40); margin-block: var(--wp--preset--spacing--50); }
.majico-project-details dt { font-weight: 600; }
.majico-project-details dd { margin: var(--wp--preset--spacing--20) 0 0; }
.majico-project-content { margin-top: var(--wp--preset--spacing--60); }
.majico-project-content .wp-block-gallery.has-nested-images { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--wp--preset--spacing--50); align-items: start; margin-block: var(--wp--preset--spacing--50); }
.majico-project-content .wp-block-gallery.has-nested-images figure.wp-block-image { width: 100% !important; margin: 0; flex-grow: 0; }
.majico-project-content .wp-block-gallery.has-nested-images figure.wp-block-image img { width: 100%; height: auto; flex: none; }
.majico-project-adjacent { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--wp--preset--spacing--40); margin-top: var(--wp--preset--spacing--60); }
.majico-project-adjacent a { min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 0.25em; }
.majico-project-enquiry { padding: var(--wp--preset--spacing--60) var(--wp--style--root--padding-right) var(--wp--preset--spacing--60) var(--wp--style--root--padding-left); margin-block: 0; }
.majico-project-enquiry h2 { max-width: 46rem; }
.majico-project-query .wp-block-post-template { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50); }
.majico-project-query .wp-block-post { margin: 0; min-width: 0; }
.majico-project-query .wp-block-post:nth-child(even) { padding-top: var(--wp--preset--spacing--60); }
.majico-project-query .wp-block-post-featured-image { margin: 0 0 var(--wp--preset--spacing--40); }
.majico-project-query .wp-block-post-featured-image img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.majico-project-query .wp-block-post:nth-child(even) .wp-block-post-featured-image img { aspect-ratio: 4 / 3; object-position: 60% 55%; }
.majico-project-query .wp-block-post:nth-child(3n) { grid-column: 1 / -1; }
.majico-project-query .wp-block-post:nth-child(3n) .wp-block-post-featured-image img { aspect-ratio: 16 / 9; object-position: 50% 60%; }
.majico-project-query .wp-block-post-title { font-size: var(--wp--preset--font-size--h-3); margin-block: 0; }
.majico-project-query .wp-block-post-title a { text-decoration: none; text-underline-offset: 0.2em; }
.majico-project-query .wp-block-post-title a:hover { text-decoration: underline; }
.majico-project-query .wp-block-query-pagination { margin-top: var(--wp--preset--spacing--60); }
.majico-project-query .wp-block-query-pagination a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
/* Illustrative service discovery is separate from the genuine Project query. */
.majico-project-service-discovery { margin-top: var(--wp--preset--spacing--70); padding-top: var(--wp--preset--spacing--60); border-top: 1px solid var(--wp--preset--color--stone); }
.majico-project-service-intro { max-width: 48rem; }
.majico-project-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50); margin-top: var(--wp--preset--spacing--60); }
.majico-project-service-preview { min-width: 0; margin: 0; }
.majico-project-service-preview:nth-child(even) { margin-top: var(--wp--preset--spacing--50); }
.majico-project-service-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.majico-project-service-pergola img { object-position: 62% 58%; }
.majico-project-service-flooring img { object-position: 60% 75%; }
.majico-project-service-cladding img { object-position: 25% 50%; }
.majico-project-service-kitchen img { object-position: 50% 60%; }
.majico-project-service-preview h3 { font-size: var(--wp--preset--font-size--h-3); margin-top: var(--wp--preset--spacing--30); }
.majico-project-service-preview h3 a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; text-underline-offset: .2em; }
.majico-project-service-preview h3 a:hover { text-decoration: underline; }
@media (max-width: 767px) {
	.majico-project-query .wp-block-post-template,
	.majico-project-content .wp-block-gallery.has-nested-images,
	.majico-project-details { grid-template-columns: 1fr; }
	.majico-project-query .wp-block-post:nth-child(even) { padding-top: 0; }
	.majico-project-query .wp-block-post:nth-child(even) .wp-block-post-featured-image img { aspect-ratio: 4 / 3; }
	.majico-project-query .wp-block-post:nth-child(3n) { grid-column: auto; }
	.majico-project-query .wp-block-post:nth-child(3n) .wp-block-post-featured-image img { aspect-ratio: 4 / 3; }
	.majico-project-service-grid { grid-template-columns: minmax(0, 1fr); gap: var(--wp--preset--spacing--50); }
	.majico-project-service-preview:nth-child(even) { margin-top: 0; }
}
