/** Gallery and native editorial layouts. Loaded only on their routes. */
body.page-template-page-gallery #page, body.blog #page, body.single-post #page, body.category #page { max-width: none; margin: 0; }
body.page-template-page-gallery #content, body.blog #content, body.single-post #content, body.category #content { padding: 0; display: block; }
body.page-template-page-gallery #primary, body.blog #primary, body.single-post #primary, body.category #primary { width: 100%; }
.avg-editorial-page .site-main { margin: 0; }
.avg-editorial-page h1, .avg-editorial-page h2, .avg-editorial-page h3 { color: var(--avg-color-charcoal); font-weight: 750; line-height: 1.18; letter-spacing: -.04em; }
.avg-editorial-page h2 { font-size: var(--avg-font-size-heading); margin-bottom: 1.5rem; }
.avg-editorial-page p { margin-bottom: 1.5rem; }
.avg-editorial-hero { background: #fcfbf7; padding: 2rem 0 4rem; }
.avg-editorial-hero .avg-breadcrumbs { margin-bottom: 3rem; }
.avg-editorial-hero h1 { font-size: clamp(2.4rem, 4.3vw, 4.2rem); max-width: 65rem; margin-bottom: 1.7rem; }
.avg-editorial-hero .avg-lead { max-width: 48rem; color: #51594b; }
.avg-editorial-page .avg-photo-note { font-size: .78rem; color: #596050; max-width: 44rem; }
.avg-gallery-filters, .avg-blog-categories { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.avg-gallery-filters button, .avg-blog-categories a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .7rem 1.25rem; border: 1px solid #c9cebf; border-radius: 30px; color: var(--avg-color-charcoal); background: white; font: 650 .85rem var(--avg-font-body); text-decoration: none; cursor: pointer; }
.avg-gallery-filters button[aria-pressed="true"], .avg-gallery-filters button:hover, .avg-blog-categories a[aria-current="page"], .avg-blog-categories a:hover { background: var(--avg-color-blue); color: white; border-color: var(--avg-color-blue); }
.avg-gallery [hidden] { display: none !important; }
.avg-gallery-status { font-size: .8rem; color: #596050; }
.avg-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.avg-gallery-item { margin: 0; min-width: 0; }
.avg-gallery-item > a { display: block; position: relative; border-radius: 7px; }
.avg-gallery-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 7px; }
.avg-photo-expand { display: grid; place-items: center; position: absolute; bottom: .8rem; right: .8rem; width: 40px; height: 40px; background: white; color: var(--avg-color-charcoal); border-radius: 50%; box-shadow: 0 2px 8px #0002; }
.avg-photo-expand .avg-icon { width: 18px; height: 18px; }
.avg-gallery-item figcaption { padding-top: 1rem; }
.avg-gallery-item figcaption span { font-size: .68rem; color: var(--avg-color-blue); display: block; font-weight: 700; margin-bottom: .3rem; }
.avg-gallery-item figcaption strong { font-size: .95rem; line-height: 1.5; display: block; }
.avg-lightbox { width: min(94vw, 1100px); max-width: 94vw; max-height: 94vh; padding: 1rem 1.5rem; border: 0; border-radius: 8px; background: #22251f; color: white; }
.avg-lightbox::backdrop { background: #10130ee6; }
.avg-lightbox-toolbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: .7rem; }
.avg-lightbox-toolbar p { font-size: .85rem; margin: 0; }
.avg-lightbox button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .7rem; border: 1px solid #68705d; background: transparent; color: white; border-radius: 5px; font: 600 .85rem var(--avg-font-body); padding: .6rem 1rem; }
.avg-lightbox button:hover { background: #3f4735; }
.avg-lightbox button:focus-visible { outline-color: var(--avg-color-yellow); }
.avg-lightbox button:disabled { opacity: .4; cursor: default; }
.avg-lightbox button .avg-icon { width: 20px; height: 20px; }
.avg-lightbox figure { margin: 0; }
.avg-lightbox img { width: 100%; height: 60vh; object-fit: contain; display: block; }
.avg-lightbox figcaption { text-align: center; font-size: .9rem; padding-block: 1rem; line-height: 1.5; }
.avg-lightbox-controls { display: flex; justify-content: space-between; gap: 1rem; }
.avg-instagram { background: var(--avg-color-beige); }
.avg-instagram-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 4rem; }
.avg-instagram .avg-button .avg-icon { width: 18px; height: 18px; }
.avg-instagram-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.avg-instagram-mosaic img { display: block; width: 100%; height: 190px; object-fit: cover; border-radius: 6px; }
.avg-instagram-mosaic img:first-child { grid-row: span 2; height: 100%; }
.avg-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.avg-post-card { min-width: 0; border: 1px solid #dde1d3; border-radius: 8px; overflow: hidden; background: white; }
.avg-post-image { display: block; text-decoration: none; }
.avg-post-image > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.avg-editorial-placeholder { background: #eeeeda; color: var(--avg-color-blue); min-height: 220px; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .6rem; padding: 1.5rem; }
.avg-editorial-placeholder > span { font-size: clamp(5rem, 12vw, 9rem); font-weight: 800; letter-spacing: -.08em; line-height: 1; }
.avg-editorial-placeholder small { font-size: .55rem; letter-spacing: .13em; font-weight: 700; text-align: center; }
.avg-post-card-copy { padding: 1.5rem; }
.avg-post-card h2 { font-size: 1.5rem; line-height: 1.3; margin: 1rem 0; }
.avg-post-card h2 a { color: inherit; text-decoration: none; }
.avg-post-card h2 a:hover { color: var(--avg-color-blue); text-decoration: underline; }
.avg-post-card-copy > p { font-size: .9rem; }
.avg-post-card .avg-text-link { font-size: .8rem; }
.avg-post-card .avg-text-link .avg-icon { width: 18px; height: 18px; }
.avg-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; font-size: .75rem; }
.avg-post-meta a { color: var(--avg-color-blue); font-weight: 700; }
.avg-post-meta time { color: #5d6457; }
.avg-post-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); margin-bottom: 1rem; background: #f8f8f1; }
.avg-post-featured .avg-post-image > img, .avg-post-featured .avg-editorial-placeholder { height: 100%; min-height: 340px; aspect-ratio: auto; }
.avg-post-featured .avg-post-card-copy { padding: clamp(1.5rem, 3vw, 3rem); align-self: center; }
.avg-post-featured h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.avg-blog-empty { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; gap: 4rem; padding-top: 2.5rem; }
.avg-blog-empty .avg-editorial-placeholder { border-radius: 8px; }
.avg-blog-empty .avg-text-link .avg-icon { width: 20px; height: 20px; }
.avg-editorial-page .pagination { margin-top: 3rem; }
.avg-editorial-page .pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.avg-editorial-page .page-numbers { display: inline-flex; min-height: 44px; min-width: 44px; padding: .6rem 1rem; justify-content: center; align-items: center; border: 1px solid #cdd3c2; border-radius: 4px; text-decoration: none; }
.avg-editorial-page .page-numbers.current { color: white; background: var(--avg-color-blue); border-color: var(--avg-color-blue); }
.avg-article-heading { padding-block: 2rem 3rem; max-width: 65rem; }
.avg-article-heading h1 { font-size: clamp(2.35rem, 4.2vw, 4.1rem); margin: 1.5rem 0; }
.avg-article-heading .avg-lead { max-width: 55rem; }
.avg-draft-notice { border-left: 3px solid var(--avg-color-yellow); padding: .7rem 1rem; font-size: .8rem; background: #faf7de; }
.avg-article-visual { max-width: 65rem; }
.avg-article-visual > img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 8px; }
.avg-article-visual .avg-editorial-placeholder { min-height: 270px; max-height: 400px; border-radius: 8px; }
.avg-article-content { width: min(100% - var(--avg-container-gutter) * 2, 47rem); margin: 3rem auto; font-size: 1.05rem; line-height: 1.85; overflow-wrap: anywhere; }
.avg-article-content h2 { margin-top: 2.5rem; font-size: 2rem; }
.avg-article-content h3 { margin-top: 2rem; font-size: 1.45rem; }
.avg-article-content ul, .avg-article-content ol { margin-left: 1.4rem; }
.avg-article-content li { margin-bottom: .7rem; }
.avg-article-content table { width: 100%; font-size: .95rem; }
.avg-article-content th, .avg-article-content td { text-align: left; padding: .7rem; border-bottom: 1px solid #d8ddcf; }
.avg-article-back { max-width: 65rem; padding-bottom: 3rem; }
.avg-article-back .avg-icon { width: 20px; height: 20px; }
.avg-related { background: #f7f7ef; }
@media (max-width: 1024px) {
	.avg-gallery-grid, .avg-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.avg-instagram-layout { gap: 2rem; }
}
@media (max-width: 768px) {
	.avg-editorial-hero h1 { font-size: clamp(2.3rem, 6vw, 3.4rem); }
	.avg-instagram-layout, .avg-blog-empty, .avg-post-featured { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
	.avg-post-featured { gap: 0; }
	.avg-post-featured .avg-post-image > img, .avg-post-featured .avg-editorial-placeholder { min-height: 250px; }
	.avg-blog-empty { gap: 2rem; }
	.avg-instagram-mosaic img { height: 160px; }
}
@media (max-width: 540px) {
	.avg-gallery-grid, .avg-post-grid { grid-template-columns: minmax(0, 1fr); }
	.avg-gallery-filters { gap: .5rem; }
	.avg-gallery-filters button { padding-inline: .9rem; font-size: .8rem; }
	.avg-lightbox { padding: .8rem; }
	.avg-lightbox img { height: 52vh; }
	.avg-lightbox button { padding-inline: .7rem; font-size: .75rem; }
	.avg-instagram .avg-button { font-size: .85rem; gap: .7rem; }
	.avg-article-content { font-size: 1rem; }
}
/* Intrinsic aspect ratios must not make editorial placeholders wider than mobile columns. */
.avg-editorial-placeholder { width: 100%; max-width: 100%; min-width: 0; }
.avg-editorial-placeholder small { max-width: 100%; overflow-wrap: anywhere; }
.avg-blog-empty > *, .avg-post-featured > *, .avg-instagram-layout > * { min-width: 0; }
.avg-pagination { margin-top: 3rem; }
.avg-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; border: 0; padding: 0; margin: 0; list-style: none; }
.avg-pagination li { margin: 0; }

/* Compact news page only; category archives and the global shell keep their spacing. */
body.blog .avg-blog-hero { padding-block: 1.25rem 1.5rem; }
body.blog .avg-blog-hero .avg-breadcrumbs { margin-bottom: 1.25rem; }
body.blog .avg-blog-hero .avg-eyebrow { margin-bottom: .75rem; }
body.blog .avg-blog-hero h1 { margin-bottom: 1rem; }
body.blog .avg-blog-hero .avg-lead { margin-bottom: 0; }
body.blog .avg-blog-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 1.25rem; }
body.blog .avg-blog-index .avg-section { padding-top: 1.5rem; }
.avg-news-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.avg-news-toolbar .avg-blog-categories { margin-bottom: 0; gap: .5rem; }
.avg-news-toolbar .avg-blog-categories a { padding-inline: 1rem; }
.avg-news-search { display: flex; flex: 0 0 17rem; min-width: 0; border: 1px solid #c9cebf; border-radius: 30px; background: white; overflow: hidden; }
.avg-news-search:focus-within { outline: 2px solid var(--avg-color-blue); outline-offset: 2px; }
.avg-news-search input[type="search"] { width: 100%; min-width: 0; border: 0; background: transparent; padding: .7rem 0 .7rem 1rem; font: inherit; font-size: .85rem; color: var(--avg-color-charcoal); }
.avg-news-search button { display: grid; place-items: center; flex: 0 0 46px; min-height: 46px; border: 0; padding: 0; background: transparent; color: var(--avg-color-blue); cursor: pointer; }
.avg-news-search button:hover { background: #f3f4ee; }
@media (max-width: 1100px) {
 .avg-news-toolbar { flex-wrap: wrap; }
 .avg-news-search { flex: 1 1 17rem; }
}
@media (max-width: 768px) {
 body.blog .avg-blog-hero-grid { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
 body.blog .avg-blog-hero { padding-bottom: .75rem; }
 body.blog .avg-blog-index .avg-section { padding-top: 1rem; }
 .avg-news-toolbar { align-items: stretch; }
 .avg-news-search { flex-basis: 100%; }
}

/* News archive: balanced hero and four equal cards, scoped away from related posts. */
.avg-blog-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 4vw, 4rem); }
.avg-blog-hero-copy, .avg-blog-hero-art, .avg-blog-index .avg-post-card { min-width: 0; }
.avg-blog-hero-art img { display: block; width: 100%; height: auto; }
.avg-blog-index .avg-post-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.avg-blog-index .avg-post-image > img { aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.avg-blog-index .avg-post-card { display: flex; flex-direction: column; }
.avg-blog-index .avg-post-card-copy { flex: 1; display: flex; flex-direction: column; }
.avg-blog-index .avg-post-card-copy > .avg-text-link { margin-top: auto; }
@media (max-width: 1024px) {
 .avg-blog-index .avg-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
 .avg-blog-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
 .avg-blog-hero-art { max-width: 34rem; width: 100%; margin-inline: auto; }
}
@media (max-width: 540px) {
 .avg-blog-index .avg-post-grid { grid-template-columns: minmax(0, 1fr); }
}
