/* ==========================================
   EVENTS SECTION
========================================== */

.prime-events {
	background: #f5f7fa;
	padding: 82px 24px 88px;
}

.prime-events__container {
	width: min(100%, 1120px);
	margin-inline: auto;
}

/* ==========================================
   SECTION HEADER
========================================== */

.prime-events__header {
	max-width: 660px;
	margin: 0 auto 46px;
	text-align: center;
}

.prime-events__eyebrow {
	margin: 0 0 10px;

	color: var(--color-gold);
	font-size: 0.68rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.prime-events__title {
	position: relative;
	display: inline-block;

	margin: 0;

	color: #151b26;
	font-family: var(--font-heading);
	font-size: clamp(2.1rem, 3.2vw, 3rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.03em;
}

.prime-events__title::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -10px;

	width: 42px;
	height: 2px;

	background: var(--color-gold);
	transform: translateX(-50%);
}

.prime-events__intro {
	max-width: 560px;
	margin: 28px auto 0;

	color: #667085;
	font-size: 0.82rem;
	line-height: 1.65;
}

/* ==========================================
   EVENT GRID
========================================== */

.prime-events__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.prime-event-card {
	overflow: hidden;

	background: #ffffff;
	border: 1px solid rgba(15, 23, 42, 0.06);
	border-radius: 4px;

	box-shadow:
		0 7px 22px rgba(15, 23, 42, 0.07);

	transition:
		transform 180ms ease,
		box-shadow 180ms ease;
}

.prime-event-card:hover {
	transform: translateY(-5px);

	box-shadow:
		0 18px 36px rgba(15, 23, 42, 0.12);
}

/* ==========================================
   CARD IMAGE
========================================== */

.prime-event-card__image-button {
	display: block;
	width: 100%;
	padding: 0;

	background: transparent;
	border: 0;
	cursor: pointer;
	text-align: left;
}

.prime-event-card__image-wrap {
	position: relative;
	overflow: hidden;

	aspect-ratio: 16 / 9;

	background: #dfe3e8;
}

.prime-event-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;

	transition: transform 350ms ease;
}

.prime-event-card:hover .prime-event-card__image {
	transform: scale(1.045);
}

.prime-event-card__placeholder {
	width: 100%;
	height: 100%;

	display: flex;
	align-items: center;
	justify-content: center;

	color: #7b8493;
	font-size: 0.8rem;
}

.prime-event-card__badge {
	position: absolute;
	top: 14px;
	left: 14px;

	padding: 6px 10px;

	background: var(--color-gold);
	color: #101720;

	border-radius: 2px;

	font-size: 0.55rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.prime-event-card__gallery-label {
	position: absolute;
	right: 14px;
	bottom: 14px;

	padding: 6px 9px;

	background: rgba(16, 23, 32, 0.82);
	color: #ffffff;

	border-radius: 2px;

	font-size: 0.55rem;
	font-weight: 500;
	line-height: 1;
}

/* ==========================================
   CARD CONTENT
========================================== */

.prime-event-card__content {
	padding: 22px 22px 20px;
}

.prime-event-card__title {
	margin: 0 0 12px;

	color: #151b26;
	font-family: var(--font-heading);
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.35;
}

.prime-event-card__excerpt {
	margin: 0 0 18px;

	color: #5f6b7c;
	font-size: 0.82rem;
	font-weight: 400;
	line-height: 1.65;
}

.prime-event-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
}

.prime-event-card__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;

	color: #707b8d;
	font-size: 0.68rem;
	font-weight: 500;
	line-height: 1.4;
}

.prime-event-card__meta-item svg {
	width: 14px;
	height: 14px;

	fill: none;
	stroke: var(--color-gold);
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.prime-event-card__gallery-button {
	margin-top: 18px;
	padding: 0;

	display: inline-flex;
	align-items: center;
	gap: 8px;

	background: transparent;
	border: 0;

	color: var(--color-gold);

	font-size: 0.68rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.05em;
	text-transform: uppercase;

	cursor: pointer;
}

.prime-event-card__gallery-button span {
	transition: transform 180ms ease;
}

.prime-event-card__gallery-button:hover span {
	transform: translateX(4px);
}

/* ==========================================
   VIEW ALL BUTTON
========================================== */

.prime-events__footer {
	margin-top: 42px;
	text-align: center;
}

.prime-events__view-all {
	display: inline-flex;
	align-items: center;
	gap: 9px;

	padding: 12px 18px;

	color: var(--color-gold);
	border: 1px solid var(--color-gold);

	font-size: 0.68rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;

	transition:
		background 180ms ease,
		color 180ms ease;
}

.prime-events__view-all:hover {
	background: var(--color-gold);
	color: #101720;
}

/* ==========================================
   EVENT MODAL
========================================== */

.prime-event-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;

	display: none;
	align-items: center;
	justify-content: center;

	padding: 24px;
}

.prime-event-modal.is-open {
	display: flex;
}

.prime-event-modal__backdrop {
	position: absolute;
	inset: 0;

	background: rgba(5, 9, 15, 0.82);
	backdrop-filter: blur(4px);
}

.prime-event-modal__dialog {
	position: relative;
	z-index: 1;

	width: min(100%, 980px);
	max-height: calc(100vh - 48px);
	overflow-y: auto;

	padding: 36px;

	background: #ffffff;
	border-radius: 4px;

	box-shadow:
		0 30px 80px rgba(0, 0, 0, 0.3);
}

.prime-event-modal__close {
	position: absolute;
	top: 12px;
	right: 14px;

	width: 38px;
	height: 38px;

	background: transparent;
	border: 0;

	color: #151b26;
	font-size: 2rem;
	line-height: 1;

	cursor: pointer;
}

.prime-event-modal__header {
	padding-right: 42px;
	margin-bottom: 22px;
}

.prime-event-modal__title {
	margin: 0 0 8px;

	color: #151b26;
	font-family: var(--font-heading);
	font-size: clamp(1.8rem, 3vw, 2.5rem);
	line-height: 1.2;
}

.prime-event-modal__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;

	color: #7a8494;
	font-size: 0.7rem;
}

.prime-event-modal__description {
	margin-bottom: 24px;

	color: #667085;
	font-size: 0.82rem;
	line-height: 1.7;
}

.prime-event-modal__description p:last-child {
	margin-bottom: 0;
}

.prime-event-modal__gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.prime-event-modal__image-button {
	display: block;
	padding: 0;

	overflow: hidden;

	aspect-ratio: 4 / 3;

	background: #e5e7eb;
	border: 0;
	border-radius: 3px;

	cursor: zoom-in;
}

.prime-event-modal__image {
	width: 100%;
	height: 100%;
	object-fit: cover;

	transition: transform 250ms ease;
}

.prime-event-modal__image-button:hover .prime-event-modal__image {
	transform: scale(1.04);
}

/* ==========================================
   FULL IMAGE LIGHTBOX
========================================== */

.prime-image-lightbox {
	position: fixed;
	inset: 0;
	z-index: 11000;

	display: none;
	align-items: center;
	justify-content: center;

	padding: 24px;
}

.prime-image-lightbox.is-open {
	display: flex;
}

.prime-image-lightbox__backdrop {
	position: absolute;
	inset: 0;

	background: rgba(0, 0, 0, 0.94);
}

.prime-image-lightbox__content {
	position: relative;
	z-index: 1;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 100%;
	height: 100%;
}

.prime-image-lightbox__image {
	display: block;

	max-width: 94vw;
	max-height: 90vh;

	object-fit: contain;
}

.prime-image-lightbox__close {
	position: fixed;
	top: 18px;
	right: 22px;
	z-index: 2;

	width: 42px;
	height: 42px;

	background: rgba(255, 255, 255, 0.12);
	border: 0;
	border-radius: 50%;

	color: #ffffff;
	font-size: 2rem;
	line-height: 1;

	cursor: pointer;
}

body.prime-modal-open {
	overflow: hidden;
}

/* ==========================================
   MOBILE and tablet
========================================== */

@media (max-width: 960px) {

	.prime-events__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {

	.prime-events {
		padding: 58px 18px 62px;
	}

	.prime-events__header {
		margin-bottom: 34px;
	}

	.prime-events__eyebrow {
		font-size: 0.62rem;
	}

	.prime-events__title {
		font-size: 2rem;
	}

	.prime-events__intro {
		margin-top: 24px;
		font-size: 0.76rem;
	}

	.prime-events__grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.prime-event-card__content {
		padding: 20px;
	}

	.prime-event-modal {
		padding: 12px;
	}

	.prime-event-modal__dialog {
		max-height: calc(100vh - 24px);
		padding: 28px 18px 22px;
	}

	.prime-event-modal__gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
	}
}

@media (max-width: 420px) {

	.prime-event-card__title {
		font-size: 1.1rem;
	}

	.prime-event-modal__gallery {
		grid-template-columns: 1fr;
	}

	.prime-event-modal__image-button {
		aspect-ratio: 16 / 10;
	}
}