/* ========== News Cards ========== */
body[data-color-scheme="light"] {
	--bg-design: #f5f5f7;
	--bg-tile: #fff;
	--font-tile-color: #1d1d1f;
	--font-accent-color: #6e6e73;
}

body[data-color-scheme="dark"] {
	--bg-design: #141414;
	--bg-tile: #000;
	--font-tile-color: #f5f5f7;
	--font-accent-color: #91918c;
}

h2 + .tiles-list,
h3 + .tiles-list,
p + .tiles-list,
div + .tiles-list {
	margin-top: 1.6em;
}

.tiles-list {
	align-items: stretch;
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
	margin: 0;
	gap: 36px;
}

@media only screen and (max-width: 1068px) {
	.tiles-list {
		gap: 25px;
	}
}

@media only screen and (max-width: 734px) {
	.tiles-list {
		flex-flow: column;
		justify-content: center;
		gap: 36px;
	}
}

.tile-item {
	position: relative;
	list-style: none;
}

.item-hero {
	flex-basis: 100%;
}

@media only screen and (max-width: 734px) {
	.item-hero {
		flex-basis: auto;
	}
}

.tile {
	height: 100%;
	background-color: var(--bg-tile);
	color: var(--font-tile-color) !important;
	display: flex;
	border-radius: 16px;
	border-top-left-radius: 16px;
	border-top-right-radius: 16px;
	border-bottom-right-radius: 16px;
	border-bottom-left-radius: 16px;
	overflow: hidden;
	z-index: 0;
	position: relative;
}

.tile.tile-2up {
	flex-direction: column;
	width: 472px;
}

.tile:hover {
	text-decoration: none;
}

.tile.tile-hero {
	flex-direction: row;
	width: 100%;
}

@media only screen and (max-width: 1068px) {
	.tile.tile-hero {
		max-height: 255px;
	}
}

@media only screen and (max-width: 734px) {
	.tile.tile-hero {
		max-height: unset;
	}
}

@media only screen and (max-width: 1068px) {
	.tile.tile-2up {
		flex-direction: column;
		width: 333px;
	}
}

@media only screen and (max-width: 734px) {
	.tile.tile-2up,
	.tile.tile-hero {
		flex-direction: column;
		width: 100%;
	}
}

/* tile-media */
.tile.tile-hero .tile-media {
	width: 100%;
	height: auto;
	min-height: 362px;
	flex-basis: 643px;
	flex-shrink: 1;
}

@media only screen and (max-width: 1068px) {
	.tile.tile-hero .tile-media {
		min-height: 255px;
		flex-basis: 453px;
		flex-shrink: 1;
	}
}

.tile.tile-2up .tile-media {
	width: 100%;
	height: 266px;
	min-height: auto;
	flex-basis: auto;
	flex-shrink: 1;
}

@media only screen and (max-width: 1068px) {
	.tile.tile-2up .tile-media {
		height: 187px;
	}
}

@media only screen and (max-width: 734px) {
	.tile.tile-2up .tile-media,
	.tile.tile-hero .tile-media {
		width: 100%;
		/* height: 266px; */
		min-height: auto;
		flex-basis: auto;
		flex-shrink: 1;
		height: auto;
	}
}

/* tile-image */
.tile.tile-hero .tile-image {
	background-size: contain;
	height: 100%;
	width: 100%;
	height: auto;
	min-height: 362px;
	background-repeat: no-repeat;
}

@media only screen and (max-width: 1068px) {
	.tile.tile-hero .tile-image {
		min-height: 255px;
	}
}

.tile.tile-2up .tile-image {
	background-size: cover;
	height: 100%;
	width: 100%;
	height: auto;
	min-height: 266px;
	background-repeat: no-repeat;
}

@media only screen and (max-width: 1068px) {
	.tile.tile-2up .tile-image {
		min-height: 187px;
	}
}

@media only screen and (max-width: 734px) {
	.tile.tile-2up .tile-image,
	.tile.tile-hero .tile-image {
		background-size: contain;
		min-height: unset;
		height: unset;
		padding-top: 56.5%;
	}
}

.tile-image {
	transition: 0.4s;
}

@media only screen and (min-width: 1068px) {
	.tile:hover .tile-image {
		transform: scale(1.02);
	}
}

/* tile copy */
.tile .tile-description {
	padding: 32px;
	justify-content: space-between;
	flex-basis: 0;
}
@media only screen and (max-width: 1068px) {
	.tile .tile-description {
		padding: 24px;
	}
}

.tile .tile-description {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	flex-grow: 1;
}

.tile .tile-space-between {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex-grow: 1;
}

.tile-headline {
	font-size: 24px;
	line-height: 1.16667;
	font-weight: 700;
	letter-spacing: 0.009em;
	font-family: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", "Helvetica",
		"Arial", sans-serif;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
	display: -webkit-box;
	overflow: hidden;
}

.tile-hero .tile-headline {
	/* font-size: 32px;
	line-height: 1.125; */
	font-size: 24px;
	line-height: 1.16667;
	font-weight: 700;
	letter-spacing: 0.004em;
	font-family: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", "Helvetica",
		"Arial", sans-serif;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
	display: -webkit-box;
	overflow: hidden;
}

@media only screen and (max-width: 1068px) {
	.tile-hero .tile-headline {
		font-size: 19px;
		line-height: 1.21053;
		letter-spacing: 0.012em;
	}

	.tile-headline {
		font-size: 19px;
		line-height: 1.21053;
		letter-spacing: 0.012em;
	}

	.tile div.typography-body-reduced {
		margin-top: 0.75em !important;
	}
}

.tile-category {
	margin-bottom: 8px;
	font-size: 12px;
	line-height: 1.33337;
	font-weight: 700;
	letter-spacing: -0.01em;
	font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica",
		"Arial", sans-serif;
	color: var(--font-accent-color);
}

.tile-timestamp {
	margin-top: 12px;
	font-size: 14px;
	line-height: 1.28577;
	font-weight: 600;
	letter-spacing: -0.016em;
	font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica",
		"Arial", sans-serif;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	color: var(--font-accent-color);
}

/* .tile-item:hover .tile-link {
	text-decoration: underline;
} */

.news-card-1 {
	background-image: url("/events/images/article-vision-1_2x.jpg");
}

.news-card-2 {
	background-image: url("/events/images/article-vision-2_2x.jpg");
}

.discover-card-3 {
	background-image: url("/events/images/swift-playgrounds-card_2x.jpg");
}
.discover-card-2 {
	background-image: url("/events/images/program-academies_2x.jpg");
}
.discover-card-1 {
	background-image: url("/events/images/program-camp_2x.jpg");
}
