/* Section: Page top, big photo or photo circles with the page H1 */
.wr-page-top__title { font-size: 6rem; text-wrap: balance; margin-bottom: 1.6rem; }
.wr-page-top__message { font-size: 1.9rem; line-height: 1.5; margin-bottom: 0; text-wrap: pretty; }
.wr-page-top__button { margin: 2.4rem 0 0; }
.wr-page-top__button .button { margin: 0; }
.wr-page-top__text--center { text-align: center; }
.wr-page-top__text--center .wr-page-top__message { max-width: 84rem; margin-inline: auto; }

/* One big photo: full width, 4:3 on phones, 16:9 capped on desktop */
.wr-page-top-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #F5F5EE; }
.wr-page-top-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.wr-page-top-photo--top img { object-position: center 20%; }
.wr-page-top-photo--bottom img { object-position: center 80%; }
.wr-page-top-photo + .wr-section--page-top > .grid-container { padding-top: 3.2rem; }

/* Photo circles: the homepage montage look, laid out for 2 to 8 photos */
.wr-section .image-montage.wr-page-top__circles { padding-bottom: 0; aspect-ratio: 100 / 86; container-type: inline-size; max-width: 40rem; margin: 0 auto 2.4rem; }
.wr-section .image-montage.wr-page-top__circles .image { margin: 0; left: calc(var(--x) * 1%); top: calc(var(--y) * 1cqw); width: calc(var(--d) * 1%); }
.wr-page-top__circles .image .circle-distressed img { display: block; aspect-ratio: 1; object-fit: cover; }
.wr-page-top__circles .image:nth-child(n+9) { display: none; }
.wr-page-top__circles[data-count="2"] .image:nth-child(1) { --x: 0; --y: 0; --d: 58; }
.wr-page-top__circles[data-count="2"] .image:nth-child(2) { --x: 54; --y: 40; --d: 44; }
.wr-page-top__circles[data-count="3"] .image:nth-child(1) { --x: 0; --y: 4; --d: 52; }
.wr-page-top__circles[data-count="3"] .image:nth-child(2) { --x: 54; --y: 0; --d: 40; }
.wr-page-top__circles[data-count="3"] .image:nth-child(3) { --x: 50; --y: 46; --d: 38; }
.wr-page-top__circles:is([data-count="4"], [data-count="5"], [data-count="6"]) .image:nth-child(1) { --x: 2; --y: 2; --d: 46; }
.wr-page-top__circles:is([data-count="4"], [data-count="5"], [data-count="6"]) .image:nth-child(2) { --x: 52; --y: 6; --d: 34; }
.wr-page-top__circles:is([data-count="4"], [data-count="5"], [data-count="6"]) .image:nth-child(3) { --x: 8; --y: 52; --d: 32; }
.wr-page-top__circles:is([data-count="4"], [data-count="5"], [data-count="6"]) .image:nth-child(4) { --x: 46; --y: 44; --d: 40; }
.wr-page-top__circles:is([data-count="5"], [data-count="6"]) .image:nth-child(5) { --x: 86; --y: 40; --d: 13; }
.wr-page-top__circles[data-count="6"] .image:nth-child(6) { --x: 38; --y: 74; --d: 12; }
.wr-page-top__circles:is([data-count="7"], [data-count="8"]) .image:nth-child(1) { --x: 4; --y: 2; --d: 44; }
.wr-page-top__circles:is([data-count="7"], [data-count="8"]) .image:nth-child(2) { --x: 50; --y: 14; --d: 30; }
.wr-page-top__circles:is([data-count="7"], [data-count="8"]) .image:nth-child(3) { --x: 82; --y: 8; --d: 14; }
.wr-page-top__circles:is([data-count="7"], [data-count="8"]) .image:nth-child(4) { --x: 12; --y: 50; --d: 32; }
.wr-page-top__circles:is([data-count="7"], [data-count="8"]) .image:nth-child(5) { --x: 44; --y: 46; --d: 15; }
.wr-page-top__circles:is([data-count="7"], [data-count="8"]) .image:nth-child(6) { --x: 58; --y: 46; --d: 38; }
.wr-page-top__circles:is([data-count="7"], [data-count="8"]) .image:nth-child(7) { --x: 1; --y: 48; --d: 12; }
.wr-page-top__circles[data-count="8"] .image:nth-child(8) { --x: 44; --y: 68; --d: 13; }

@media print, screen and (min-width: 47.5em) {
	.wr-page-top__title { font-size: 8rem; }
	.wr-page-top__message { font-size: 2.2rem; }
	.wr-page-top-photo { aspect-ratio: 16 / 9; max-height: min(42vh, 48rem); width: 100%; }
	.wr-page-top-photo + .wr-section--page-top > .grid-container { padding-top: 4rem; }
	.wr-section--page-top[data-style="circles"] > .grid-container { padding-top: 4.8rem; }
	.wr-section .image-montage.wr-page-top__circles { max-width: 52rem; margin: 0; }
	.wr-section--page-top[data-style="circles"] .wr-page-top__text { padding-left: 2.4rem; }
}

/* Navy circles: today's homepage hero (white text, big cluster bleeding off the left edge) */
.wr-section--page-top.wr-bg--navy { z-index: 3; }
.wr-section--page-top.wr-bg--navy .wr-page-top__title { color: #fff; font-size: 6.4rem; }
.wr-section--page-top.wr-bg--navy .wr-page-top__message { color: rgba(255, 255, 255, .8); font-size: 1.8rem; }
.wr-bg--navy .wr-page-top__circles:is([data-count="7"], [data-count="8"]) { max-width: none; aspect-ratio: 100 / 49.4; margin: 0 -1.6rem 2.4rem; }
.wr-bg--navy .wr-page-top__circles:is([data-count="7"], [data-count="8"]) .image:nth-child(1) { --x: -5.3; --y: 13.7; --d: 29; }
.wr-bg--navy .wr-page-top__circles:is([data-count="7"], [data-count="8"]) .image:nth-child(2) { --x: 29.4; --y: 25.9; --d: 19.3; }
.wr-bg--navy .wr-page-top__circles:is([data-count="7"], [data-count="8"]) .image:nth-child(3) { --x: 24.5; --y: 17.9; --d: 9.7; }
.wr-bg--navy .wr-page-top__circles:is([data-count="7"], [data-count="8"]) .image:nth-child(4) { --x: 33.9; --y: 5.4; --d: 19.3; }
.wr-bg--navy .wr-page-top__circles:is([data-count="7"], [data-count="8"]) .image:nth-child(5) { --x: 48.4; --y: 23.1; --d: 9.7; }
.wr-bg--navy .wr-page-top__circles:is([data-count="7"], [data-count="8"]) .image:nth-child(6) { --x: 54.8; --y: 0; --d: 29; }
.wr-bg--navy .wr-page-top__circles:is([data-count="7"], [data-count="8"]) .image:nth-child(7) { --x: 79; --y: 19.7; --d: 26.1; }
.wr-bg--navy .wr-page-top__circles:is([data-count="7"], [data-count="8"]) .image:nth-child(8) { --x: 54.6; --y: 30.1; --d: 19.3; }

@media print, screen and (min-width: 47.5em) {
	.wr-section--page-top.wr-bg--navy[data-style="circles"] > .grid-container { padding-top: 1.6rem; padding-bottom: 1.6rem; }
	.wr-section--page-top.wr-bg--navy .wr-page-top__title { font-size: 10.5rem; line-height: .9; }
	.wr-section--page-top.wr-bg--navy .wr-page-top__message { font-size: 2.4rem; }
	.wr-bg--navy .wr-page-top__circles:is([data-count="7"], [data-count="8"]) { aspect-ratio: 100 / 131.8; margin: 0; }
	.wr-bg--navy .wr-page-top__circles:is([data-count="7"], [data-count="8"]) .image:nth-child(1) { --x: 7.8; --y: 5.7; --d: 50; }
	.wr-bg--navy .wr-page-top__circles:is([data-count="7"], [data-count="8"]) .image:nth-child(2) { --x: 52.7; --y: 36.7; --d: 33.3; }
	.wr-bg--navy .wr-page-top__circles:is([data-count="7"], [data-count="8"]) .image:nth-child(3) { --x: 7.8; --y: 53.7; --d: 16.7; }
	.wr-bg--navy .wr-page-top__circles:is([data-count="7"], [data-count="8"]) .image:nth-child(4) { --x: 23.6; --y: 57.8; --d: 33.3; }
	.wr-bg--navy .wr-page-top__circles:is([data-count="7"], [data-count="8"]) .image:nth-child(5) { --x: 58.8; --y: 71.6; --d: 16.7; }
	.wr-bg--navy .wr-page-top__circles:is([data-count="7"], [data-count="8"]) .image:nth-child(6) { --x: -24; --y: 69.8; --d: 50; }
	.wr-bg--navy .wr-page-top__circles:is([data-count="7"], [data-count="8"]) .image:nth-child(7) { --x: 22.6; --y: 93.8; --d: 45; }
	.wr-bg--navy .wr-page-top__circles:is([data-count="7"], [data-count="8"]) .image:nth-child(8) { --x: 69.8; --y: 81.8; --d: 33.3; }
}

/* Big photo with the title over it: navy fade at the bottom keeps white text readable */
.wr-page-top-hero { position: relative; display: flex; align-items: flex-end; min-height: 34rem; overflow: hidden; background: #1C3653; }
.wr-page-top-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.wr-page-top-hero.wr-page-top-photo--top > img { object-position: center 20%; }
.wr-page-top-hero.wr-page-top-photo--bottom > img { object-position: center 80%; }
.wr-page-top-hero:after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28, 54, 83, .9) 0%, rgba(28, 54, 83, .55) 40%, rgba(28, 54, 83, 0) 75%); }
.wr-page-top-hero__inner { position: relative; z-index: 1; width: 100%; padding-top: 9rem; padding-bottom: 5.6rem; }
.wr-page-top-hero .wr-page-top__title { color: #fff; margin-bottom: .8rem; }
.wr-page-top-hero .wr-page-top__message { color: rgba(255, 255, 255, .92); }
.wr-page-top-hero .wr-page-top__text { max-width: 96rem; margin-inline: auto; }
@media print, screen and (min-width: 47.5em) {
	.wr-page-top-hero { min-height: min(54vh, 46rem); }
	.wr-page-top-hero__inner { padding-bottom: 6.4rem; }
}

/* Breadcrumbs and search sit on the photo, which runs up to the menu */
.wr-hero-top .site-main { position: relative; padding-top: 0; }
.wr-hero-top .breadcrumbs-container { position: absolute; top: 0; left: 0; right: 0; z-index: 4; padding-top: 1.2rem; }
.wr-hero-top .breadcrumbs-container #breadcrumbs, .wr-hero-top .breadcrumbs-container #breadcrumbs a { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.wr-hero-top .breadcrumbs-container #breadcrumbs a:hover { color: #79D2F7; }
.wr-hero-top .wr-page-top-hero:before { content: ""; position: absolute; inset: 0 0 auto; height: 12rem; z-index: 1; background: linear-gradient(rgba(28, 54, 83, .6), rgba(28, 54, 83, 0)); }
