.wug {
	position: relative;
	overflow: inherit;
}

.wug__header {
	margin-bottom: 2.5rem;
}

.wug__header__title {
	margin: 0;
}

.wug__header__sub {
	font-weight: 500;
	margin-top: .5rem;
}

.wug__main {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wug-card-gap, 20px);
}

/* Desktop column counts */
@media (min-width: 750px) {
	.wug__main--cols-2 { grid-template-columns: repeat(2, 1fr); }
	.wug__main--cols-3 { grid-template-columns: repeat(3, 1fr); }
	.wug__main--cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Tablet: collapse 3+ cols to 2, keep 2 as 2, 1 stays 1 */
@media (min-width: 530px) and (max-width: 749px) {
	.wug__main--cols-2,
	.wug__main--cols-3,
	.wug__main--cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Leader headshot inline with name (in the article__date slot) */
.wug__leader {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	filter: opacity(1) !important;

}

.wug__leader__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.wug__leader__name {
	font-weight: 600;
	opacity: .5;
}

/* White card with rainbow shadow */
.wug__item.article {
	background: #fff;
	box-shadow:
		0 6px 24px -4px rgba(229, 53, 130, .40),
		-10px 8px 32px -6px rgba(122, 79, 200, .30),
		10px 14px 32px -6px rgba(27, 111, 146, .30),
		0 24px 48px -12px rgba(226, 153, 25, .25);
	transition: transform .3s ease, box-shadow .3s ease;
}

.wug__item.article:hover {
	transform: translateY(-4px);
	box-shadow:
		0 10px 32px -4px rgba(229, 53, 130, .55),
		-14px 12px 40px -6px rgba(122, 79, 200, .40),
		14px 18px 40px -6px rgba(27, 111, 146, .40),
		0 32px 56px -12px rgba(226, 153, 25, .35);
}

/* Popover */
.wug__popover {
	width: min(800px, calc(100% - 2rem));
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 20px 80px 0 rgb(211, 60, 113, .5);
	border: none;
}

.wug__popover::backdrop {
	background: var(--gradient);
	opacity: .8;
}

.wug__popover__content {
	background: #fff;
	padding: 3rem clamp(1rem, 2.5vw, 2rem) clamp(1rem, 2.5vw, 2rem) clamp(1rem, 2.5vw, 2rem);
	border-radius: 10px;
	max-height: 80dvh;
	overflow: auto;
}

button.wug__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	border: 0;
	background: transparent;
	font-size: 30px;
}

.wug__popover__image {
	float: right;
	margin: 0 0 20px 20px;
	width: min(200px, 50%)
	aspect-ratio: 1/1;
	border-radius: 100%;
	box-shadow: 0 5px 15px rgba(0, 0, 0, .2);
	overflow: hidden;
}

.wug__popover__image img {
	display: block;
	object-fit: cover;
	object-position: center;
	width: 100% !important;
	height: 100% !important;
}

.wug__popover .wug__title {
	margin-bottom: 1rem;
	font-size: clamp(26px, 3vw, 40px);
	margin-top: 1rem;
	font-weight: 600;
	font-family: var(--f-secondary);
	color: #314C74;
}

.wug__popover .wug__leader-name {
	color: var(--dpink);
	display: block;
	font-size: 1rem;
	font-weight: 600;
	margin-top: .25rem;
}

.wug__popover__subtitle {
	font-weight: 600;
	color: var(--dpink);
	margin-top: 0;
}

.wug__popover__cta {
	margin-top: 2rem;
}

.wug__join {
	display: inline-block;
	background: var(--gradient);
	color: var(--c-white);
	font-family: var(--f-secondary);
	font-weight: 600;
	text-decoration: none;
	padding: .75rem 1.5rem;
	border-radius: 10px;
	transition: transform .25s ease;
}

.wug__join:hover {
	transform: translateY(-2px);
}

body.popover-open {
	overflow: hidden;
}
