.community-section-group {
	background: var(--color-porcelain);
	overflow: hidden;
}

.community-section-group__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3rem;
	width: 100%;
}

.community-section-group__part {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	width: 100%;
}

.community-section-group__intro {
	width: 100%;
	max-width: 42rem;
	text-align: center;
}

.community-section-group__intro > *:first-child {
	margin-top: 0;
}

.community-section-group__intro > *:last-child {
	margin-bottom: 0;
}

.community-section-group__testimony {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.75rem;
	width: 100%;
	max-width: 46rem;
	margin-inline: auto;
	padding-inline: 1.5rem;
	min-width: 0;
	box-sizing: border-box;
}

.community-section-group__testimony .community-section-group__photo {
	width: min(12.5rem, 100%);
}

.community-section-group__testimony .community-section-group__note {
	width: min(14rem, 82%);
}

.community-section-group__photo {
	position: relative;
	width: min(16rem, 100%);
	max-width: 100%;
	padding-top: 0.75rem;
	box-sizing: border-box;
}

.community-section-group__frame {
	display: grid;
	width: 100%;
	padding: 0.5rem;
	background: var(--color-white);
	box-shadow: 0 0.7rem 1.8rem rgba(0, 0, 0, 0.14);
}

.community-section-group__patient,
.community-section-group__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.community-section-group__tape {
	position: absolute;
	z-index: 2;
	width: 7.75rem;
	height: auto;
	pointer-events: none;
}

.community-section-group__photo--tape-1 .community-section-group__frame {
	transform: rotate(-2.6deg);
}

.community-section-group__photo--tape-1 .community-section-group__tape {
	top: 1.25rem;
	left: -2.4rem;
	transform: rotate(-220deg);
}

.community-section-group__photo--tape-2 .community-section-group__frame {
	transform: rotate(2.6deg);
}

.community-section-group__photo--tape-2 .community-section-group__tape {
	top: 1rem;
	right: -2.5rem;
	left: auto;
	transform: rotate(38deg) scaleX(-1);
}

.community-section-group__photo--tape-3 .community-section-group__frame {
	transform: rotate(-1.8deg);
}

.community-section-group__photo--tape-3 .community-section-group__tape {
	top: -0.05rem;
	left: 1.15rem;
	transform: rotate(-8deg) scaleX(-1);
}

.community-section-group__photo--tape-4 .community-section-group__frame {
	transform: rotate(1.8deg);
}

.community-section-group__photo--tape-4 .community-section-group__tape {
	top: 0.05rem;
	right: 1.15rem;
	left: auto;
	transform: rotate(12deg);
}

.community-section-group__note {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	min-width: 0;
	mix-blend-mode: darken;
}

.community-section-group__note--desktop {
	display: none;
}

.community-section-group__recipients {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	width: 100%;
}

.community-section-group__recipients-title {
	text-align: center;
}

.community-section-group__recipients-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
	width: 100%;
	max-width: 58rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.community-section-group__recipient {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	padding: 0.95rem 1.1rem;
	border-radius: 0.65rem;
	background: var(--color-white);
	box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.08);
}

.community-section-group__recipient-year {
	flex: 0 0 auto;
	color: var(--color-ocean);
	font-family: var(--font-family-serif);
	font-weight: 600;
	white-space: nowrap;
	font-size: .9rem;
}

.community-section-group__recipient-name {
	flex: 1 1 auto;
	min-width: 0;
	color: var(--color-text);
	font-weight: 600;
	font-size: .9rem;
}

.community-section-group__videos {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	width: 100%;
}

.community-section-group__video-trigger {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	overflow: hidden;
	border-radius: 1rem;
	aspect-ratio: 16 / 9;
	background-color: var(--color-black);
	cursor: pointer;
}

.community-section-group__video-trigger:focus-visible {
	outline: 2px solid var(--color-ocean);
	outline-offset: 4px;
}

.community-section-group__video-thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.community-section-group__video-play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 4rem;
	height: 4rem;
	transform: translate(-50%, -50%);
	pointer-events: none;
	transition: transform 0.25s ease;
}

.community-section-group__video-trigger:hover .community-section-group__video-play,
.community-section-group__video-trigger:focus-visible .community-section-group__video-play {
	transform: translate(-50%, -50%) scale(1.06);
}

.community-section-group__photos {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	width: 100%;
}

.community-section-group__dialog {
	width: 100vw;
	height: 100dvh;
	max-width: 100vw;
	max-height: 100dvh;
	margin: 0;
	padding: 0;
	border: 0;
	background: #000;
}

.community-section-group__dialog[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.community-section-group__dialog::backdrop {
	background: #000;
}

.community-section-group__player {
	width: min(100vw, calc(100dvh * 16 / 9));
	aspect-ratio: 16 / 9;
	max-height: 100dvh;
	background: #000;
}

.community-section-group__player iframe,
.community-section-group__player video {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
}

.community-section-group__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 2;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.community-section-group__close::before,
.community-section-group__close::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1.25rem;
	height: 2px;
	background: #fff;
}

.community-section-group__close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.community-section-group__close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.community-section-group__close:focus-visible {
	outline: 2px solid var(--color-lime);
	outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
	.community-section-group__video-play {
		transition: none;
	}
}

@media (min-width: 768px) {
	.community-section-group__inner {
		gap: 3.5rem;
	}

	.community-section-group__testimony {
		gap: 0.5rem;
		padding-inline: 4rem;
	}

	.community-section-group__testimony .community-section-group__photo {
		width: min(14rem, 100%);
	}

	.community-section-group__testimony .community-section-group__note {
		width: min(15rem, 70%);
	}

	.community-section-group__recipients-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}

	.community-section-group__photo {
		width: min(16.5rem, 100%);
	}

	.community-section-group__videos {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.5rem;
	}

	.community-section-group__photos {
		flex-direction: row;
		justify-content: center;
		align-items: flex-start;
		gap: 2.5rem;
	}
}

@media (min-width: 992px) {
	.community-section-group__inner {
		gap: 4.5rem;
	}

	.community-section-group__part {
		gap: 2.5rem;
	}

	.community-section-group__testimony {
		flex-direction: row;
		align-items: center;
		justify-content: center;
		gap: 0.5rem;
		padding-inline: 6rem;
		max-width: 52rem;
	}

	.community-section-group__testimony .community-section-group__photo {
		width: min(15rem, 40%);
		flex: 0 1 auto;
		max-width: 40%;
		min-width: 0;
	}

	.community-section-group__tape {
		width: 8.5rem;
	}

	.community-section-group__testimony .community-section-group__note {
		flex: 0 1 auto;
		width: auto;
		max-width: min(20rem, 46%);
		min-width: 0;
	}

	.community-section-group__note--desktop {
		display: block;
		max-height: 34vh;
	}

	.community-section-group__testimony:has(.community-section-group__note--desktop) .community-section-group__note--mobile {
		display: none;
	}

	.community-section-group__photo {
		width: min(18.5rem, 30%);
		flex: 0 1 auto;
		max-width: 30%;
		min-width: 0;
	}

	.community-section-group__recipients {
		gap: 2rem;
	}

	.community-section-group__recipients-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.1rem 1.25rem;
	}

	.community-section-group__video-trigger {
		border-radius: 1.25rem;
	}

	.community-section-group__video-play {
		width: 5rem;
		height: 5rem;
	}

	.community-section-group__photos .community-section-group__photo {
		width: min(18.5rem, 42%);
		max-width: 42%;
		flex: 1 1 0;
	}
}
