/* Filters and gallery grid (Vaughan Homes, 2026-10-23). Replaces the WP Grid Builder filters that disappeared with the plugin. */
.vh-filters { width: 100%; padding: 32px 0 0; box-sizing: border-box; font-family: inherit; color: #464646; }
.vh-filters__toggle { display: none; align-items: center; justify-content: center; gap: 8px; height: 40px; margin: 0 auto 8px; padding: 0 24px; border: 1px solid rgba(0,0,0,.1); border-radius: 999px; background: #fff; color: #464646; font: inherit; font-size: 14px; cursor: pointer; }
.vh-plus { width: 10px; height: 10px; position: relative; display: inline-block; }
.vh-plus::before, .vh-plus::after { content: ""; position: absolute; background: #464646; left: 0; right: 0; top: 4px; height: 2px; }
.vh-plus::after { left: 4px; right: auto; top: 0; width: 2px; height: 10px; }
.vh-filters__toggle[aria-expanded="true"] .vh-plus::after { display: none; }
.vh-filters__panel { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.vh-field { display: flex; flex-direction: column; gap: 4px; min-width: 140px; flex: 0 1 170px; }
.vh-field span { font-size: 12px; letter-spacing: .02em; text-transform: uppercase; color: #464646; opacity: .8; }
.vh-field select { height: 40px; padding: 0 36px 0 12px; border: 1px solid rgba(0,0,0,.18); border-radius: 4px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23464646' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; font: inherit; font-size: 15px; color: #182333; cursor: pointer; }
.vh-field select:focus-visible, .vh-clear:focus-visible, .vh-filters__toggle:focus-visible { outline: 2px solid #32760a; outline-offset: 2px; }
.vh-field select:disabled { opacity: .5; }
.vh-clear { height: 40px; padding: 0 20px; border: 1px solid #32760a; border-radius: 999px; background: transparent; color: #32760a; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.vh-clear:hover { background: #32760a; color: #fff; }
.vh-clear[hidden] { display: none; }
.vh-count { margin: 16px 0 0; min-height: 24px; font-size: 15px; color: #464646; }
.vh-count button { all: unset; cursor: pointer; text-decoration: underline; color: #32760a; }
.vh-hidden { display: none !important; }
@media (max-width: 640px) {
	.vh-filters { padding-top: 16px; text-align: center; }
	.vh-filters__toggle { display: flex; }
	.vh-filters__panel { display: none; text-align: left; gap: 10px 12px; margin-bottom: 8px; }
	.vh-filters__panel.is-open { display: grid; grid-template-columns: 1fr 1fr; }
	.vh-field { min-width: 0; flex: initial; }
	.vh-clear { grid-column: 1 / -1; justify-self: start; }
}
/* the gallery: masonry columns, 3 on a desktop, 2 on a tablet, 1 on a phone (as the WordPress grid) */
.vh-gallery { column-count: 3; column-gap: 18px; width: 100%; padding-bottom: 64px; }
.vh-gallery__item { break-inside: avoid; margin: 0 0 18px; border-radius: 4px; overflow: hidden; background: #fff; border: 1px solid rgba(0,0,0,.08); }
.vh-gallery__item a { display: block; }
.vh-gallery__item img { display: block; width: 100%; height: auto; transition: opacity .2s; }
.vh-gallery__item a:hover img { opacity: .9; }
.vh-gallery__item figcaption { padding: 10px 14px 12px; font-size: 14px; font-weight: 600; color: #182333; }
@media (max-width: 992px) { .vh-gallery { column-count: 2; } }
@media (max-width: 576px) { .vh-gallery { column-count: 1; column-gap: 8px; } .vh-gallery__item { margin-bottom: 8px; } }
