/* ============================================================
   RD Popup — BMA Spring Gala
   ============================================================ */

/* ---- Overlay ---- */

.rd-popup__overlay {
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba( 0, 0, 0, 0.6 );
	padding: 1rem;

	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.rd-popup__overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

/* ---- Popup card ---- */

.rd-popup {
	position: relative;
	width: min( 380px, calc( ( 100vh - 2rem ) * 1654 / 2318 ) );
	aspect-ratio: 1654 / 2318;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 24px 64px rgba( 0, 0, 0, 0.45 );
	background-image: url( '../bma-spring-gala-invitation.jpg' );
	background-size: cover;
	background-position: center;

	transform: translateY( 16px );
	transition: transform 0.25s ease;
}

.rd-popup__overlay.is-visible .rd-popup {
	transform: translateY( 0 );
}

/* ---- Close button ---- */

.rd-popup__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba( 0, 0, 0, 0.35 );
	color: #ffffff;
	cursor: pointer;
	transition: background 0.15s ease;
}

.rd-popup__close:hover,
.rd-popup__close:focus-visible {
	background: rgba( 0, 0, 0, 0.6 );
}

/* ---- Body (pinned to bottom) ---- */

.rd-popup__body {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 1.5rem;
}

/* ---- CTA button ---- */

.rd-popup__cta {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 0.625rem 1.25rem;
	background: #ffffff;
	color: #111827;
	border: none;
	border-radius: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
}

.rd-popup__cta:hover {
	background: #f3f4f6;
}

.rd-popup__cta:active {
	transform: scale( 0.98 );
}

