/**
 * Distressing Tabs (inc/blocks-layout/distress-tabs.php) — centered
 * Headline + gold line, a black tab bar with the active tab in gold, then
 * per tab a Description and a large feature image beside a 2-column grid
 * of thumbnails. Below 900px the tabs stack, the large image goes above
 * the thumbnails, and thumbnails go to 3 across. Same look as the Open
 * HTML version this layout replaced on State-of-the-Art Finishes.
 */

.distress-tabs-block {
	max-width: 75rem;
	margin: 0 auto;
	padding: 4rem 2rem 5rem;
}

.dt-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	margin-bottom: 2.5rem;
	text-align: center;
}

.dt-headline {
	margin: 0;
	font-family: var(--font-primary);
	font-weight: 400;
	font-size: 2rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--room-ink);
}

.dt-line {
	width: 6.25rem;
	height: 3px;
	background: var(--goldHex);
}

.dt-tablist {
	display: flex;
	background: #000000;
}

.dt-tab {
	flex: 1 1 0;
	padding: 1.25rem 1rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	font: inherit;
	color: #bdbdbd;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
}

.dt-tab:hover {
	color: #ffffff;
}

.dt-tab[aria-selected="true"] {
	background: var(--goldHex);
	color: #000000;
	font-weight: 700;
}

.dt-tab:focus-visible,
.dt-thumb:focus-visible {
	outline: 2px solid var(--goldHex);
	outline-offset: 2px;
}

.dt-panel {
	padding: 2.5rem;
	border: 1px solid #e2e2e2;
	border-top: none;
}

.dt-panel[hidden] {
	display: none;
}

.dt-description {
	max-width: 48rem;
	margin: 0 0 2rem;
	font-size: 1.125rem;
	line-height: 1.5;
	color: #333333;
}

.dt-grid {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: 2.5rem;
	align-items: start;
}

.dt-figure {
	margin: 0;
}

.dt-figure[hidden] {
	display: none;
}

.dt-figure img {
	display: block;
	width: 100%;
	height: auto;
}

.dt-caption {
	margin-top: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.dt-thumbs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

.dt-thumb {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 0;
	background: transparent;
	font: inherit;
	font-size: 0.85rem;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.dt-thumb[aria-pressed="true"] {
	border-color: var(--goldHex);
}

.dt-thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 2 / 1;
	object-fit: cover;
}

.dt-thumb-label {
	display: block;
	padding: 0.5rem 0.25rem 0.25rem;
}

@media (max-width: 899.98px) {
	.distress-tabs-block {
		padding: 3rem 0 3.5rem;
	}

	.dt-headline {
		font-size: 1.5rem;
	}

	.dt-tablist {
		flex-direction: column;
	}

	.dt-tab {
		padding: 0.85rem 1rem;
	}

	.dt-panel {
		padding: 1.25rem 1rem;
	}

	.dt-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.25rem;
	}

	.dt-thumbs {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.5rem;
	}

	.dt-thumb-label {
		font-size: 0.75rem;
	}
}
