/* Complete galleries and the shared sticky-navigation measurement contract.
 * Component styles consume one value; no per-family toolbar overrides.
 */
.clt-site {
	--clt-sticky-top: var(--clt-header-clearance, calc(var(--clt-header-height, 74px) + var(--clt-toolbar-offset, 0px)));
}

@media (min-width: 981px) {
	.clt-occasion-gallery:not(.count-4) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-template-rows: repeat(2, minmax(0, 248px));
	}
	.clt-occasion-gallery:not(.count-4) > a { min-height: 0; }
	.clt-occasion-gallery:not(.count-4) > a:first-child {
		grid-column: 1 / span 2;
		grid-row: 1 / span 2;
	}
	.clt-occasion-gallery:not(.count-4) > a:nth-child(2) {
		grid-column: 3;
		grid-row: 1;
	}
	.clt-occasion-gallery:not(.count-4) > a:nth-child(3) {
		grid-column: 3;
		grid-row: 2;
	}
	.clt-occasion-gallery:not(.count-4) figure {
		height: 100%;
		min-height: 0;
	}
	.clt-occasion-gallery:not(.count-4) > a:nth-child(n+2) figcaption { padding: clamp(20px, 2.2vw, 32px); }
	.clt-occasion-gallery:not(.count-4) > a:nth-child(n+2) h3 { font-size: clamp(21px, 1.7vw, 28px); }
}

@media (prefers-reduced-motion: reduce) {
	.clt-occasion-gallery img { transition: none; }
}
