@import url('/include/scripts/swiper-bundle.min.css');

.d2e-opening {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: end;
	min-height: clamp(20rem, 49svh, 35rem);
	background: #000;
	border-bottom: 1px solid #3d3d3d;
}

.d2e-opening::after,
.d2e-opening-video {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: 1600px;
	margin-inline: auto;
}

.d2e-opening::after {
	content: '';
	z-index: -1;
	background: linear-gradient(0deg, #0d0d0de8, #0d0d0d16 75%);
}

.d2e-opening-video {
	z-index: -2;
	height: 100%;
	object-fit: cover;
}

.d2e-opening [data-opening-toggle]:focus {
	position: absolute;
	top: .75rem;
	left: .75rem;
	z-index: 1;
}

.d2e .d2e-home-featured {
	position: relative;
	z-index: 1;
	margin-top: clamp(-10rem, -11vw, -2.75rem);
	padding-top: 0;
}

@media (max-width: 767.98px) {
	.d2e .d2e-home-featured {
		margin-top: calc(clamp(-10rem, -11vw, -2.75rem) - 100px);
	}
}

.d2e .d2e-home-featured .d2e-event-feature {
	padding-top: 0;
	padding-bottom: 1.25rem;
}

.d2e-upcoming-swiper:not(.swiper-initialized) .swiper-wrapper {
	display: block;
}

.d2e-upcoming-controls {
	justify-content: flex-end;
	padding-bottom: 1.25rem;
}

.d2e-upcoming-controls[hidden] {
	display: none;
}

.d2e-home-updates {
	--d2e-updates-title-size: clamp(2.5rem, 5vw, 4.5rem);
	--d2e-updates-title-gap: 1.25rem;
	display: grid;
	align-items: start;
	gap: 1.5rem;
}

.d2e .d2e-home-updates-title {
	font-size: var(--d2e-updates-title-size);
	line-height: 1;
	margin-bottom: var(--d2e-updates-title-gap);
}

.d2e .d2e-single-update {
	overflow: hidden;
	padding: 0;
}

.d2e-single-update img {
	display: block;
	width: 100%;
	max-width: none;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.d2e-single-update-copy {
	padding: clamp(1.25rem, 3vw, 2rem);
}

.d2e-update-artwork + .d2e-single-update-copy {
	padding-top: clamp(1.75rem, 3.5vw, 2.5rem);
}

.d2e .d2e-single-update-copy h3 {
	font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.d2e-updates .d2e-update-artwork {
	display: block;
	padding: 0;
	border: 0;
}

.d2e .d2e-update-artwork:focus-visible {
	outline-offset: -4px;
}

.d2e-updates .d2e-single-update .btn {
	display: inline-flex;
	padding: .7rem 1.15rem;
	border: 1px solid var(--d2e-border);
}

@media (min-width: 992px) {
	.d2e-home-updates:has(.d2e-updates) {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	}

	.d2e-home-updates:has(.d2e-updates) .d2e-newsletter-sidebar {
		padding-top: calc(var(--d2e-updates-title-size) + var(--d2e-updates-title-gap));
	}

	.d2e-newsletter-wide {
		display: grid;
		grid-template-columns: 1fr 1fr;
		align-items: center;
		gap: 2rem;
	}

	.d2e .d2e-newsletter-wide h2 {
		margin: 0;
	}

	.d2e-newsletter-wide .ml-block-form .subscribe-form {
		display: flex;
		align-items: end;
		gap: .75rem;
	}

	.d2e-newsletter-wide .ml-field-email {
		flex: 1;
	}
}

.d2e-night {
	padding-block: clamp(1.6rem, 4vw, 3rem);
	border-block: 1px solid #353535;
	background: #171717;
}

.d2e-night-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: .6rem 2rem;
	margin-bottom: 1rem;
}

.d2e .d2e-night-heading h2 {
	margin: 0;
}

.d2e-night-photos {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .45rem;
}

.d2e-night-photos img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.d2e-night-photos img:first-child {
	grid-column: 1 / -1;
	aspect-ratio: 2.2;
}

@media (min-width: 992px) {

	.d2e-night-photos {
		grid-template-columns: 1.65fr 1.15fr .75fr;
		grid-auto-rows: clamp(12rem, 19vw, 19rem);
	}

	.d2e-night-photos img,
	.d2e-night-photos img:first-child {
		grid-column: auto;
		height: 100%;
		aspect-ratio: auto;
	}
}
