/* Steps, timeline, media with text and partners. */
/* Steps. */
.wp-block-lsu-blocks-steps {
	padding: clamp(1.5rem, 4vw, 3rem);
	border-radius: 1rem;
}

.uo-steps__heading,
.uo-timeline__heading,
.uo-partners__heading,
.uo-content-grid__heading {
	margin: 0 0 1.5rem;
	color: inherit;
	font-family:var(--lsu-font-heading, "LSU Avant Garde", Arial, sans-serif);
	font-size: clamp(2.25rem, 5vw, 4rem);
	font-weight: 700;
	line-height: 1;
}

.uo-steps__items,
.uo-steps__items > .block-editor-block-list__layout {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	counter-reset: uo-step 0;
}

.has-1-columns .uo-steps__items,
.has-1-columns .uo-steps__items > .block-editor-block-list__layout { grid-template-columns: 1fr; }
.has-2-columns .uo-steps__items,
.has-2-columns .uo-steps__items > .block-editor-block-list__layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.wp-block-lsu-blocks-step {
	position: relative;
	box-sizing: border-box;
	min-width: 0;
	padding: 1.5rem;
	border-radius: 1rem;
	background: rgba(0, 0, 0, 0.06);
	background: color-mix(in srgb, currentColor 8%, transparent);
	counter-increment: uo-step 1 !important;
}

.uo-step__number::before {
	content: counter(uo-step);
}

.uo-step__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--wp--preset--color--brand-red, #5B1356);
	color: #fff;
	font-size: 1.25rem;
	font-weight: 700;
}

.uo-step__heading,
.uo-step__text {
	margin: 0;
	color: inherit;
}

.uo-step__heading { margin-top: 1rem; font-size: 1.4rem; }
.uo-step__text { margin-top: 0.5rem; line-height: 1.55; }


/* Timeline. */
.wp-block-lsu-blocks-timeline {
	padding: clamp(1.5rem, 4vw, 3rem);
	border-radius: 1rem;
}

.wp-block-lsu-blocks-timeline .uo-timeline__heading {
	position: relative;
	z-index: 2;
	max-width: 100%;
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
	overflow-wrap: anywhere;
}

.uo-timeline__items,
.uo-timeline__items > .block-editor-block-list__layout {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 3rem minmax(0, 1fr);
	grid-column: 1 / -1;
	width: 100%;
	row-gap: 2rem;
}

.uo-timeline__items > .block-list-appender,
.uo-timeline__items > .block-editor-block-list__insertion-point,
.uo-timeline__items > .block-editor-block-list__layout > .block-list-appender,
.uo-timeline__items > .block-editor-block-list__layout > .block-editor-block-list__insertion-point {
	grid-column: 1 / -1;
	justify-self: center;
}

.uo-timeline__items::before,
.uo-timeline__items > .block-editor-block-list__layout::before {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 3px;
	background: currentColor;
	content: "";
	opacity: 0.25;
	transform: translateX(-50%);
}

.uo-timeline__items .wp-block-lsu-blocks-timeline-item {
	position: relative;
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 3rem minmax(0, 1fr);
	grid-column: 1 / -1;
	column-gap: 1rem;
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

.uo-timeline-item__dot {
	position: relative;
	z-index: 1;
	display: block;
	grid-column: 2;
	grid-row: 1;
	justify-self: center;
	width: 1.1rem;
	height: 1.1rem;
	box-sizing: content-box;
	margin-top: 1.25rem;
	border: 3px solid currentColor;
	border-radius: 50%;
	background: #fff;
}

.uo-timeline-item__content {
	box-sizing: border-box;
	width: min(100%, 30rem);
	min-width: 0;
	padding: clamp(1rem, 2.5vw, 1.5rem);
	border-radius: 0.9rem;
	overflow-wrap: anywhere;
}

.uo-timeline__items > .wp-block-lsu-blocks-timeline-item:nth-child(odd) .uo-timeline-item__content,
.uo-timeline__items > .block-editor-block-list__layout > .wp-block-lsu-blocks-timeline-item:nth-child(odd) .uo-timeline-item__content,
.uo-timeline__items .wp-block-lsu-blocks-timeline-item.is-side-left .uo-timeline-item__content {
	grid-column: 1;
	justify-self: end;
	text-align: right;
}

.uo-timeline__items > .wp-block-lsu-blocks-timeline-item:nth-child(even) .uo-timeline-item__content,
.uo-timeline__items > .block-editor-block-list__layout > .wp-block-lsu-blocks-timeline-item:nth-child(even) .uo-timeline-item__content,
.uo-timeline__items .wp-block-lsu-blocks-timeline-item.is-side-right .uo-timeline-item__content {
	grid-column: 3;
	justify-self: start;
	text-align: left;
}

.uo-timeline-item__year,
.uo-timeline-item__heading,
.uo-timeline-item__text {
	margin: 0;
	color: inherit;
}

.uo-timeline-item__year {
	color: var(--wp--preset--color--brand-red, #5B1356);
	font-weight: 700;
}

.uo-timeline-item__heading {
	max-width: 100%;
	margin-top: 0.4rem;
	font-size: 1.5rem;
	line-height: 1.15;
}
.uo-timeline-item__text { margin-top: 0.75rem; line-height: 1.55; }

.uo-timeline-item__image {
	display: block;
	width: min(100%, 18rem);
	aspect-ratio: 4 / 3;
	margin-top: 1rem;
	overflow: hidden;
	border-radius: 0.75rem;
	object-fit: cover;
}

.uo-timeline__items > .wp-block-lsu-blocks-timeline-item:nth-child(odd) .uo-timeline-item__image,
.uo-timeline__items > .block-editor-block-list__layout > .wp-block-lsu-blocks-timeline-item:nth-child(odd) .uo-timeline-item__image,
.uo-timeline__items .wp-block-lsu-blocks-timeline-item.is-side-left .uo-timeline-item__image {
	margin-left: auto;
}

/* Keep the alternating desktop timeline, but use one readable side on mobile. */
@media (max-width: 781px) {
	.wp-block-lsu-blocks-timeline {
		padding: 1rem;
	}

	.wp-block-lsu-blocks-timeline .uo-timeline__heading {
		margin-bottom: 1.5rem;
	}

	.uo-timeline__items,
	.uo-timeline__items > .block-editor-block-list__layout {
		grid-template-columns: 1.5rem minmax(0, 1fr);
		row-gap: 1.25rem;
	}

	.uo-timeline__items::before,
	.uo-timeline__items > .block-editor-block-list__layout::before {
		left: 0.75rem;
		transform: none;
	}

	.uo-timeline__items .wp-block-lsu-blocks-timeline-item {
		grid-template-columns: 1.5rem minmax(0, 1fr);
		column-gap: 0.65rem;
	}

	.uo-timeline__items .wp-block-lsu-blocks-timeline-item .uo-timeline-item__dot {
		grid-column: 1;
		width: 0.85rem;
		height: 0.85rem;
		margin-top: 1.1rem;
	}

	.uo-timeline__items .wp-block-lsu-blocks-timeline-item .uo-timeline-item__content {
		grid-column: 2 !important;
		justify-self: stretch !important;
		width: 100%;
		padding: 1rem;
		text-align: left !important;
	}

	.uo-timeline__items .wp-block-lsu-blocks-timeline-item .uo-timeline-item__image {
		width: min(100%, 15rem);
		margin-right: 0;
		margin-left: 0;
	}
}

/* Media and text. */
.wp-block-lsu-blocks-media-text {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	overflow: hidden;
	border-radius: 1rem;
	background: #fff;
}

.wp-block-lsu-blocks-media-text.has-media-right .uo-media-text__media { order: 2; }

.uo-media-text__media {
	min-height: 22rem;
	background: transparent;
}

.uo-media-text__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wp-block-lsu-blocks-media-text.has-image-fit-contain .uo-media-text__image {
	object-fit: contain;
}

.wp-block-lsu-blocks-media-text.has-image-fit-fill .uo-media-text__image {
	object-fit: fill;
}

/* An image is optional: without one, the text content fills the whole block. */
.wp-block-lsu-blocks-media-text:not(:has(.uo-media-text__image)) {
	display: block;
}

.wp-block-lsu-blocks-media-text:not(:has(.uo-media-text__image)) .uo-media-text__media {
	display: none;
}

.uo-media-text__content {
	display: flex;
	box-sizing: border-box;
	align-items: flex-start;
	justify-content: center;
	flex-direction: column;
	gap: 1rem;
	width: 100%;
	padding: clamp(1.5rem, 5vw, 4rem);
}

.uo-media-text__heading,
.uo-media-text__text { margin: 0; color: inherit; }

.uo-media-text__heading {
	font-family:var(--lsu-font-heading, "LSU Avant Garde", Arial, sans-serif);
	font-size: clamp(2.25rem, 5vw, 4.5rem);
	font-weight: 700;
	line-height: 1;
}

.uo-media-text__text { font-size: 1.1rem; line-height: 1.6; }

.uo-media-text__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.7rem 1.3rem;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--brand-red, #5B1356);
	color: #fff;
	font-family:var(--lsu-font-heading, "LSU Avant Garde", Arial, sans-serif);
	font-weight: 700;
	line-height: 1.1;
	text-decoration: none;
	cursor: pointer;
}

.uo-media-text__cta:hover { filter: brightness(0.88); }
.uo-media-text__cta:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

@media (max-width: 781px) {
	.wp-block-lsu-blocks-media-text,
	.wp-block-lsu-blocks-media-text.has-media-right {
		display: flex;
		flex-direction: column;
	}

	.wp-block-lsu-blocks-media-text .uo-media-text__media,
	.wp-block-lsu-blocks-media-text.has-media-right .uo-media-text__media {
		order: 0;
		width: 100%;
		min-height: 18rem;
	}

	.wp-block-lsu-blocks-media-text .uo-media-text__content,
	.wp-block-lsu-blocks-media-text.has-media-right .uo-media-text__content {
		order: 1;
	}
}

/* Partners. */
.wp-block-lsu-blocks-partners {
	padding: clamp(1.5rem, 4vw, 3rem);
	border-radius: 1rem;
}

.uo-partners__grid,
.uo-partners__grid > .block-editor-block-list__layout {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.has-2-columns .uo-partners__grid,
.has-2-columns .uo-partners__grid > .block-editor-block-list__layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.has-3-columns .uo-partners__grid,
.has-3-columns .uo-partners__grid > .block-editor-block-list__layout { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.has-5-columns .uo-partners__grid,
.has-5-columns .uo-partners__grid > .block-editor-block-list__layout { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.has-6-columns .uo-partners__grid,
.has-6-columns .uo-partners__grid > .block-editor-block-list__layout { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.wp-block-lsu-blocks-partner {
	box-sizing: border-box;
	min-width: 0;
	padding: 1rem;
	border: 0;
	border-radius: 0.75rem;
	background: var(--uo-partner-background, transparent);
	color: inherit;
	text-align: center;
}

.uo-partner__link { color: inherit; text-decoration: none; }

.wp-block-lsu-blocks-partner img.uo-partner__image {
	display: block;
	width: 100%;
	height: 7rem;
	max-width: 100%;
	aspect-ratio: auto;
	object-fit: contain;
	object-position: center;
}

.uo-partner__name { margin: 0.75rem 0 0; color: inherit; font-weight: 700; }

/* Keep hidden names available to screen readers and linked logos. */
.has-hidden-partner-names .uo-partner__name {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
@media (max-width: 680px) {
	.wp-block-lsu-blocks-partners .uo-partners__grid,
	.wp-block-lsu-blocks-partners .uo-partners__grid > .block-editor-block-list__layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
	.wp-block-lsu-blocks-partners .uo-partners__grid,
	.wp-block-lsu-blocks-partners .uo-partners__grid > .block-editor-block-list__layout { grid-template-columns: minmax(0, 1fr); }
}

/* Optional card treatment, shared by Gutenberg and the public page. */
.wp-block-lsu-blocks-partners.has-partner-boxes .uo-partner {
 display: flex;
 flex-direction: column;
 justify-content: center;
 min-height: 7rem;
 border: 0;
 background: var(--uo-partner-background, #fff);
 overflow-wrap: anywhere;
}
.wp-block-lsu-blocks-partners.has-partner-boxes .uo-partner__link {
 display: flex;
 flex: 1;
 flex-direction: column;
 justify-content: center;
}
.wp-block-lsu-blocks-partners.has-partner-boxes .uo-partner__name:first-child { margin-top: 0; }
.wp-block-lsu-blocks-partners.has-partner-boxes .uo-partner__link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
