@charset "UTF-8";
/*
	Feature fader (rows/feature-fader.tpl)
	The Feature grid's layout under its own names: a photo running to one edge and text beside
	it, its Photo side option giving .faderRevleft/right, .faderGradleft/right and
	.faderBoxleft/right. Its photos and texts are stacked, one shown at a time;
	feature-fader.js adds the dots and fades them on by itself.
	In the rows layer that main.css declares, so main.css must load first.
*/
@layer rows {
	/* The layout: photo above the text on phones, beside it from 1024px */
	.faderBlock {display:grid; grid-template-columns:1fr; grid-template-areas:"fader1 fader2" "fader3 fader4"; grid-auto-rows:auto;}
	.faderBlock > * {display:flex; flex-direction:column; justify-content:center;}
	.fader1 {grid-area:fader1; grid-column:1 / -1; position:relative;}
	.fader2 {grid-area:fader2; grid-column:1 / -1; position:relative; z-index:1;}
	.fader3 {grid-area:fader3; grid-column:1 / -1; position:relative; z-index:1;}
	.fader4 {grid-area:fader4; grid-column:1 / -1; position:relative;}
	.faderBoxleft, .faderBoxright {padding:var(--lo-padding-lrg) var(--lo-padding-mid);}
	.faderSpacer {padding:var(--lo-padding-lrg); min-height:350px;}
	.faderGradleft, .faderGradright {position:relative; overflow:hidden;}
	@media (width >= 1024px) {
		.faderBlock {grid-template-columns:1fr min(50% - var(--lo-padding-mid), 700px) min(50% - var(--lo-padding-mid), 700px) 1fr; grid-template-areas:"fader1 fader2 fader3 fader4";}
		.fader1 {grid-column:1 / 3;}
		.fader2 {grid-area:fader2;}
		.fader3 {grid-area:fader3;}
		.fader4 {grid-column:3 / -1;}
		.faderRevright {grid-template-areas:"fader4 fader3 fader2 fader1";}
		.faderRevright .fader1 {grid-area:fader1; grid-column:3 / -1;}
		.faderRevright .fader4 {grid-area:fader4; grid-column:1 / 3;}

		.faderBoxleft, .faderBoxright {display:flex; flex:1; flex-direction:column; min-height:350px; position:relative;}
		.faderBoxleft {padding:var(--lo-padding-lrg) 0 var(--lo-padding-lrg) var(--lo-padding-mid);}
		.faderBoxright {padding:var(--lo-padding-lrg) var(--lo-padding-mid) var(--lo-padding-lrg) 0;}

		/* The photo fades into the row's background on the text's side */
		.faderGradleft::before, .faderGradright::before {
			--grad-stops: #000 0, #000 10px, rgba(0,0,0,.8) 10px, rgba(0,0,0,.8) 20px, rgba(0,0,0,.6) 20px, rgba(0,0,0,.6) 30px, rgba(0,0,0,.4) 30px, rgba(0,0,0,.4) 40px, rgba(0,0,0,.2) 40px, rgba(0,0,0,.2) 50px, transparent 50px;
			content:""; position:absolute; inset:0; pointer-events:none; background-color:inherit;
		}
		.faderGradright::before {mask-image:linear-gradient(90deg, var(--grad-stops));}
		.faderGradleft::before {mask-image:linear-gradient(270deg, var(--grad-stops));}
	}

	/* Photos: stacked over the photo half, under the fade into the background */
	.fader1 {isolation:isolate;}
	.fader1::before {z-index:2;}
	.faderImg {position:absolute; inset:0; z-index:1; background-position:center; background-size:cover; background-repeat:no-repeat; opacity:0; transition:opacity 1s ease;}
	.faderImg.is-active {opacity:1;}

	/* Texts: in one grid cell, so the box keeps the height of the longest */
	.faderTexts {display:grid;}
	.faderText {grid-area:1 / 1; opacity:0; visibility:hidden; transition:opacity .8s ease, visibility 0s linear .8s;}
	.faderText.is-active {opacity:1; visibility:visible; transition:opacity .8s ease .2s, visibility 0s;}

	.faderDots {display:flex; gap:16px; margin-top:var(--lo-padding-mid);}
	/* In the row's text colour (white on blue, dark blue on white and grey): a ring, filled for the slide in view */
	.faderDots button {width:12px; height:12px; padding:0; border:2px solid currentColor; border-radius:50%; background-color:transparent; color:inherit; cursor:pointer;}
	.faderDots button:hover, .faderDots button[aria-current="true"] {background-color:currentColor;}
	.faderDots button:focus-visible {outline:3px solid deepskyblue; outline-offset:3px;}
	/* One slide: nothing to move between */
	.faderBlock.is-single .faderDots {display:none;}
	@media (prefers-reduced-motion: reduce) {.faderImg, .faderText, .faderText.is-active {transition:none;}}
}
