.tabbed-stories {
	position: relative;
	z-index: 2;
	padding: 26px 15px 35px;
	margin-bottom: 60px;
	color: var(--white);
	
	.background {
		position: absolute;
		inset: 0;
		z-index: -1;
		background:
			linear-gradient(0deg, rgba(93, 105, 81, 0.00) 0%, rgba(93, 105, 81, 0.75) 100%),
			var(--background) no-repeat center center / cover;
		pointer-events: none;
		
		&::before {
			position: absolute;
			inset: 0;
			z-index: 2;
			display: block;
			content: '';
			background: rgba(93, 105, 81, 0.5);
			pointer-events: none;
		}
	}
	
	.header {
		margin-bottom: var(--space-5);
	}

	.title {
		margin-bottom: 17px;
		font-family: var(--font-display);
		font-weight: var(--font-weight-bold);
		font-size: var(--text-3xl);
		line-height: 1;
		text-align: center;
		color: inherit;
	}

	.tabs-row {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-wrap: wrap;
		gap: 3px 10px;
	}

	.tab-button {
		display: inline-block;
		padding: 3px 10px;
		margin: 0;
		font-family: var(--font-body);
		font-weight: var(--font-weight-bold);
		font-size: var(--text-sm);
		line-height: 1.4;
		text-transform: uppercase;
		text-align: center;
		color: inherit;
		background-color: transparent;
		border: none;
		border-radius: 0;
		transition: background-color var(--transition-appendix);

		&.active {
			background-color: var(--gold);
		}
	}

	.view-all-row {
		display: flex;
		justify-content: end;
		margin-top: 30px;
	}

	.view-all-row .button-link.view-all {
		font-size: var(--text-sm); 
		line-height: 1.3;
	}

	@media (hover: hover) {
		.tab-button:hover {
			color: inherit;
			background-color: var(--gold);
		}
	}

	@media (min-width: 64em) {
		display: grid;
		grid-template:
			'tabs title' auto
			'tabs slides' auto
			'tabs viewall' / 175px minmax(0, 1fr);
		align-items: start;
		gap: var(--space-10) 55px;
		padding: 0 70px 0 0;
		margin-bottom: 120px;

		.background {
			background-attachment: fixed;
		}

		.header {
			display: contents;
		}
		
		.title {
			grid-area: title;
			width: calc(100% - 175px);
			padding-top: 46px;
			margin: 0;
			font-size: 2.875rem;
		}

		.tabs-row {
			position: sticky;
			top: 0;
			grid-area: tabs;
			flex-direction: column;
			flex-wrap: nowrap;
			align-items: start;
			gap: var(--space-3);
			min-height: 100vh;
		}

		.tab-button {
			padding: 7px 15px;
			font-size: var(--text-base);
		}

		&:not(:has(.view-all-row)) .stories {
			padding-bottom: 70px;
		}

		&:not(:has(.title)) .stories {
			padding-top: 46px;
		}

		.view-all-row {
			grid-area: viewall;
			margin-top: var(--space-5);
			padding-bottom: 70px;
		}
	}
}