.rsvp-theme-features {
	display: grid;
	gap: 24px;
	margin: 32px auto;
	max-width: 920px;
	color: var(--rsvp-feature-ink, inherit);
}

.rsvp-theme-features[hidden],
.rsvp-feature-section[hidden] {
	display: none !important;
}

.rsvp-feature-section {
	min-width: 0;
	border: 1px solid var(--rsvp-feature-line, rgba(100, 116, 139, 0.22));
	border-radius: var(--rsvp-feature-radius, 18px);
	background: var(--rsvp-feature-surface, rgba(255, 255, 255, 0.74));
	padding: clamp(20px, 4vw, 32px);
	box-shadow: 0 14px 34px var(--rsvp-feature-shadow, rgba(15, 23, 42, 0.08));
}

.rsvp-feature-section--image {
	overflow: hidden;
	padding: 0;
}

.rsvp-feature-cover-link,
.rsvp-feature-gallery a,
.rsvp-feature-payment-image {
	display: block;
	overflow: hidden;
}

.rsvp-feature-cover {
	display: block;
	width: 100%;
	max-height: 520px;
	object-fit: cover;
}

.rsvp-feature-heading {
	margin: 0 0 18px;
	color: var(--rsvp-feature-accent, currentColor);
	font-family: var(--rsvp-feature-heading-font, inherit);
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
}

.rsvp-feature-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.rsvp-feature-card,
.rsvp-feature-faq details,
.rsvp-feature-gift {
	min-width: 0;
	border: 1px solid var(--rsvp-feature-line, rgba(100, 116, 139, 0.2));
	border-radius: calc(var(--rsvp-feature-radius, 18px) * 0.72);
	background: var(--rsvp-feature-card, rgba(255, 255, 255, 0.68));
	padding: 16px;
}

.rsvp-feature-card strong,
.rsvp-feature-card span,
.rsvp-feature-gift strong,
.rsvp-feature-gift span {
	display: block;
}

.rsvp-feature-card span,
.rsvp-feature-card p,
.rsvp-feature-gift span,
.rsvp-feature-note,
.rsvp-feature-faq p {
	margin: 6px 0 0;
	color: var(--rsvp-feature-muted, inherit);
	line-height: 1.65;
}

.rsvp-feature-timeline {
	display: grid;
	gap: 12px;
}

.rsvp-feature-timeline .rsvp-feature-card {
	position: relative;
	padding-left: 24px;
}

.rsvp-feature-timeline .rsvp-feature-card::before {
	position: absolute;
	top: 20px;
	left: 11px;
	width: 5px;
	height: 5px;
	border-radius: 999px;
	background: var(--rsvp-feature-accent, currentColor);
	content: "";
}

.rsvp-feature-time {
	color: var(--rsvp-feature-accent, currentColor) !important;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.rsvp-feature-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.rsvp-feature-gallery a {
	border-radius: calc(var(--rsvp-feature-radius, 18px) * 0.65);
	aspect-ratio: 1 / 1;
	background: var(--rsvp-feature-card, rgba(255, 255, 255, 0.68));
	transition: transform 300ms ease-out;
}

.rsvp-feature-gallery img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rsvp-feature-payment-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 180ms ease;
}

@media (hover: hover) {
	.rsvp-feature-gallery a:hover {
		transform: scale(1.02);
	}
}

.rsvp-feature-payment-image:hover img {
	transform: scale(1.025);
}

.rsvp-feature-swatches {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}

.rsvp-feature-swatch-wrap {
	display: grid;
	justify-items: center;
	gap: 7px;
	font-size: 0.75rem;
}

.rsvp-feature-swatch {
	width: 46px;
	height: 46px;
	border: 3px solid var(--rsvp-feature-surface, #fff);
	border-radius: 999px;
	box-shadow: 0 0 0 1px var(--rsvp-feature-line, rgba(100, 116, 139, 0.25));
}

.rsvp-feature-map {
	display: block;
	width: 100%;
	min-height: 300px;
	border: 0;
	border-radius: calc(var(--rsvp-feature-radius, 18px) * 0.72);
}

.rsvp-feature-gifts {
	display: grid;
	gap: 12px;
}

.rsvp-feature-gift {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
}

.rsvp-feature-gift a:not(.rsvp-feature-payment-image) {
	display: inline-flex;
	margin-top: 10px;
	color: var(--rsvp-feature-accent, currentColor);
	font-weight: 700;
}

.rsvp-feature-payment-image {
	width: 96px;
	height: 96px;
	border-radius: 12px;
}

.rsvp-feature-faq {
	display: grid;
	gap: 10px;
}

.rsvp-feature-faq summary {
	cursor: pointer;
	color: var(--rsvp-feature-accent, currentColor);
	font-weight: 700;
}

@media (max-width: 640px) {
	.rsvp-theme-features {
		gap: 16px;
		margin: 24px auto;
	}

	.rsvp-feature-grid,
	.rsvp-feature-gift {
		grid-template-columns: 1fr;
	}

	.rsvp-feature-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rsvp-feature-payment-image {
		width: min(100%, 220px);
		height: auto;
		aspect-ratio: 1 / 1;
	}

	.rsvp-feature-map {
		min-height: 240px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rsvp-feature-gallery a,
	.rsvp-feature-payment-image img {
		transition: none;
	}
}
