.md-random-photos {
	position: relative;
	min-height: 480px;
	width: min(100%, 500px);
	margin-inline: auto;
}

.md-random-photo {
	position: absolute;
	display: block;
	width: 72%;
	background: #f1e7d3;
	border: 8px solid #f1e7d3;
	box-shadow: 0 28px 70px rgb(0 0 0 / 38%);
	color: #151210;
	text-decoration: none;
	transition: transform 220ms ease, z-index 0ms;
}

.md-random-photo img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.md-random-photo span {
	display: block;
	padding: 0.65rem 0.45rem 0.2rem;
	font-family: Georgia, serif;
	font-size: 0.88rem;
	font-weight: 700;
}

.md-random-photo--1 {
	left: 2%;
	top: 4%;
	transform: rotate(-5deg);
	z-index: 1;
}

.md-random-photo--2 {
	right: 0;
	top: 25%;
	transform: rotate(4deg);
	z-index: 2;
}

.md-random-photo--3 {
	left: 13%;
	top: 51%;
	transform: rotate(-1deg);
	z-index: 3;
}

.md-random-photo--4,
.md-random-photo--5 {
	display: none;
}

.md-random-photo:hover,
.md-random-photo:focus-visible {
	transform: rotate(0) scale(1.035);
	z-index: 5;
}

.md-random-photos__empty {
	position: absolute;
	inset: 12% 5%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.75rem;
	padding: 2.5rem;
	border: 1px dashed #c09f5b;
	color: #e7d19a;
	text-align: center;
}

.md-auto-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2.5vw, 2rem);
	width: min(100%, 1240px);
	margin: 3rem auto 0;
}

.md-auto-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	background: #fff;
	border-top: 3px solid #aa1830;
	box-shadow: 0 24px 60px rgb(24 17 14 / 12%);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.md-auto-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 30px 70px rgb(24 17 14 / 17%);
}

.md-auto-card__media {
	display: block;
	background: #241d19;
	color: #c09f5b;
	text-decoration: none;
}

.md-auto-card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.md-auto-card__placeholder {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 3;
	font-family: Georgia, serif;
	font-size: 3rem;
	font-weight: 700;
}

.md-auto-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 1.4rem;
}

.md-auto-card__type,
.md-section-kicker {
	color: #aa1830;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.md-auto-card__title {
	margin-block: 0.55rem;
	font-family: Georgia, serif;
	font-size: clamp(1.3rem, 2vw, 1.8rem);
	line-height: 1.12;
}

.md-auto-card__title a {
	color: #151210;
	text-decoration: none;
}

.md-auto-card__link {
	margin-top: auto;
	color: #aa1830;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.md-explorer-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	margin-top: 3rem;
	background: rgb(21 18 16 / 15%);
	border: 1px solid rgb(21 18 16 / 15%);
}

.md-explorer-card {
	display: flex;
	min-height: 350px;
	flex-direction: column;
	padding: clamp(1.5rem, 2.5vw, 2.25rem);
	background: #fff;
}

.md-explorer-card__number {
	color: #aa1830;
	font-family: Georgia, serif;
	font-size: 1.3rem;
}

.md-explorer-card h3 {
	font-size: clamp(1.55rem, 2.2vw, 2.15rem);
	line-height: 1.08;
}

.md-explorer-card h3 a {
	color: #151210;
	text-decoration: none;
}

.md-explorer-card__featured {
	margin-top: auto;
	padding-top: 1.25rem;
	border-top: 1px solid rgb(21 18 16 / 14%);
}

.md-explorer-card__featured span {
	display: block;
	margin-bottom: 0.35rem;
	color: #625a54;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.md-explorer-card__featured a {
	font-family: Georgia, serif;
	font-weight: 700;
}

.md-diane-question {
	position: relative;
	overflow: hidden;
	min-height: 260px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(2rem, 5vw, 4rem);
	border: 1px solid rgb(231 209 154 / 38%);
	background: #241d19;
}

.md-diane-question__label {
	color: #c09f5b;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.md-diane-question__text {
	position: relative;
	z-index: 1;
	margin: 1rem 0 0;
	color: #fff;
	font-family: Georgia, serif;
	font-size: clamp(1.55rem, 3vw, 2.4rem);
	line-height: 1.24;
	text-decoration: none;
}

.md-diane-question__mark {
	position: absolute;
	right: 1rem;
	bottom: -3.5rem;
	color: rgb(255 255 255 / 4%);
	font-family: Georgia, serif;
	font-size: 15rem;
	font-weight: 700;
	line-height: 1;
}

.md-contextual-feed {
	margin-top: clamp(4rem, 8vw, 7rem);
	padding-top: 3rem;
	border-top: 3px solid #aa1830;
}

.md-contextual-feed__heading {
	max-width: 780px;
}

.md-contextual-feed__heading h2,
.md-heritage-details > h2 {
	margin-block: 0.35rem;
	font-family: Georgia, serif;
	font-size: clamp(2rem, 4vw, 3.7rem);
	line-height: 1.05;
}

.md-heritage-details {
	margin-top: clamp(3rem, 6vw, 5rem);
	padding: clamp(1.5rem, 4vw, 3rem);
	background: #f1e7d3;
}

.md-detail-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	margin: 2rem 0 0;
}

.md-detail-row {
	padding: 1rem 0;
	border-bottom: 1px solid rgb(21 18 16 / 15%);
}

.md-detail-row:nth-child(odd) {
	padding-right: 2rem;
}

.md-detail-row dt {
	color: #625a54;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.md-detail-row dd {
	margin: 0.25rem 0 0;
	font-family: Georgia, serif;
	font-size: 1.15rem;
}

.md-related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	margin-top: 2.5rem;
}

.md-related-group {
	padding: 1.25rem;
	background: #fff;
}

.md-related-group h3 {
	margin-top: 0;
}

.md-relation-list {
	margin: 0;
	padding-left: 1.15rem;
}

.md-empty {
	width: min(100%, 1240px);
	margin: 2rem auto 0;
	padding: 2rem;
	border: 1px dashed #c09f5b;
}

@media (max-width: 1000px) {
	.md-explorer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.md-auto-grid,
	.md-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 781px) {
	.md-random-photos {
		min-height: 410px;
	}

	.md-auto-grid,
	.md-explorer-grid,
	.md-related-grid,
	.md-detail-list {
		grid-template-columns: 1fr;
	}

	.md-detail-row:nth-child(odd) {
		padding-right: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.md-random-photo,
	.md-auto-card {
		transition: none;
	}
}
