/* Gallery Archive — Layout, Filters, Grid, Load More */

.gfc-wrap {
	display: flex;
	align-items: flex-start;
	gap: 32px;
	font-family: 'Inter', sans-serif;
	max-width: 1280px;
	margin: 0 auto;
	padding: 32px 16px;
	box-sizing: border-box;
}

.gfc-wrap *,
.gfc-wrap *::before,
.gfc-wrap *::after {
	box-sizing: border-box;
}

/* Sidebar */
.gfc-sidebar {
	flex: 0 0 270px;
	width: 270px;
	background: #F4F2F2;
	border-radius: 8px !important;
	padding: 28px 24px;
	box-shadow: 0 4px 16px rgba(11, 31, 58, 0.03);
}

.gfc-filter-heading {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 16px;
	margin-bottom: 18px;
	border-bottom: 1px solid rgba(11, 31, 58, 0.1);
}

.gfc-filter-heading h3 {
	font-family: 'Cormorant', serif;
	font-size: 24px;
	font-weight: 600;
	color: #0b1f3a;
	margin: 0;
	letter-spacing: 0.01em;
}

.gfc-filter-icon svg {
	display: block;
}

.gfc-filter-group {
	border-bottom: 1px solid rgba(11, 31, 58, 0.08);
	padding-bottom: 14px;
	margin-bottom: 14px;
}

.gfc-filter-group:last-of-type {
	border-bottom: none;
	margin-bottom: 6px;
	padding-bottom: 4px;
}

.gfc-filter-group-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #0b1f3a;
	padding: 4px 0 12px;
	user-select: none;
}

.gfc-toggle-arrow {
	font-size: 9px;
	color: rgba(11, 31, 58, 0.55);
	transition: transform 0.25s ease;
}

.gfc-filter-group.gfc-collapsed .gfc-toggle-arrow {
	transform: rotate(180deg);
}

.gfc-filter-group.gfc-collapsed .gfc-filter-list {
	display: none;
}

.gfc-filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 260px;
	overflow-y: auto;
}

.gfc-filter-list::-webkit-scrollbar {
	width: 5px;
}

.gfc-filter-list::-webkit-scrollbar-thumb {
	background: rgba(11, 31, 58, 0.2);
	border-radius: 4px;
}

.gfc-filter-item {
	margin-bottom: 2px;
}

/* Custom checkbox */
.gfc-filter-item label {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 6px 7px 30px;
	border-radius: 7px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.gfc-filter-item label:hover {
	background-color: rgba(11, 31, 58, 0.05);
}

.gfc-filter-item input[type='checkbox'] {
	position: absolute !important;
	inset: 0 !important;
	opacity: 0 !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	margin: 0 !important;
	width: 100% !important;
	height: 100% !important;
	cursor: pointer !important;
	z-index: 2 !important;
}

.gfc-checkbox-ui {
	position: absolute !important;
	left: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px !important;
	height: 16px !important;
	border: 1.5px solid rgba(11, 31, 58, 0.28) !important;
	border-radius: 3px !important;
	background: #ffffff !important;
	transition: background-color 0.2s ease, border-color 0.2s ease;
	z-index: 1;
	flex-shrink: 0;
	pointer-events: none;
	display: block !important;
}

.gfc-filter-item input:checked ~ .gfc-checkbox-ui {
	background: #0b1f3a !important;
	border-color: #0b1f3a !important;
}

.gfc-checkbox-ui::after {
	content: '' !important;
	position: absolute !important;
	left: 4.5px;
	top: 1px;
	width: 4px;
	height: 8px;
	border: solid #ffffff !important;
	border-width: 0 2px 2px 0 !important;
	transform: rotate(45deg) scale(0);
	transition: transform 0.15s ease;
	display: block !important;
}

.gfc-filter-item input:checked ~ .gfc-checkbox-ui::after {
	transform: rotate(45deg) scale(1) !important;
}

.gfc-checkbox-label {
	position: relative;
	z-index: 1;
	font-size: 14px;
	font-weight: 400;
	color: #0b1f3a;
	line-height: 1.3;
}

/* Clear filters button */
.gfc-clear-filters {
	display: inline-flex !important;
	align-items: center !important;
	gap: 7px !important;
	background: transparent !important;
	border: 1.5px solid #0b1f3a !important;
	border-radius: 5px !important;
	padding: 9px 20px !important;
	margin-top: 10px !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	color: #0b1f3a !important;
	cursor: pointer !important;
	text-decoration: none !important;
	transition: background-color 0.25s ease, color 0.25s ease !important;
}

.gfc-clear-filters:hover {
	background: #be9047 !important;
	border-color: #be9047 !important;
	color: #ffffff !important;
}

.gfc-clear-icon {
	font-size: 14px;
	display: inline-block;
	transition: transform 0.4s ease;
}

.gfc-clear-filters:hover .gfc-clear-icon {
	transform: rotate(-180deg);
}

/* Content area / top bar */
.gfc-content {
	flex: 1 1 auto;
	min-width: 0;
}

.gfc-top-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 16px;
	margin-bottom: 22px;
}

.gfc-showing-count {
	font-size: 14px;
	color: rgba(11, 31, 58, 0.65);
	white-space: nowrap;
}

.gfc-sort-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #0b1f3a;
	flex-shrink: 0;
	white-space: nowrap;
}

.gfc-sort-wrap label {
	white-space: nowrap;
}

.gfc-sort-wrap select {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: #0b1f3a;
	border: 1px solid rgba(11, 31, 58, 0.18);
	border-radius: 6px;
	padding: 7px 12px;
	background: #ffffff;
	cursor: pointer;
	white-space: nowrap;
}

/* Grid */
.gfc-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
	transition: opacity 0.2s ease;
}

.gfc-grid.gfc-loading {
	opacity: 0.4;
	pointer-events: none;
}

.gfc-no-results {
	grid-column: 1 / -1;
	text-align: center;
	color: rgba(11, 31, 58, 0.6);
	font-size: 15px;
	padding: 50px 0;
}

/* Load more */
.gfc-load-more-wrap {
	text-align: center;
	margin-top: 36px;
}

.gfc-load-more-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px !important;
	min-width: 160px;
	border: none !important;
	border-radius: 5px !important;
	background: #0b1f3a !important;
	color: #ffffff !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.04em !important;
	padding: 13px 28px !important;
	cursor: pointer !important;
	transition: background-color 0.25s ease, opacity 0.2s ease !important;
}

.gfc-load-more-btn:hover {
	background: #be9047 !important;
	opacity: 1 !important;
}

.gfc-load-more-btn:disabled {
	cursor: not-allowed !important;
	opacity: 0.75 !important;
}

.gfc-spinner {
	display: none;
	width: 15px;
	height: 15px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: gfc-spin 0.7s linear infinite;
}

@keyframes gfc-spin {
	to {
		transform: rotate(360deg);
	}
}

/* -----------------------------------------------------------
 * Gallery Card
 * -------------------------------------------------------- */
.gfc-card {
	background: #ffffff;
	border-radius: 7px !important;
	border: 1px solid rgba(11, 31, 58, 0.08);
	overflow: hidden;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
	display: flex;
	flex-direction: column;
}

.gfc-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 40px rgba(11, 31, 58, 0.08);
}

.gfc-card-image {
	position: relative;
	overflow: hidden;
	background: #f2f4f7;
}

.gfc-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
	transition: transform 0.5s ease;
}

.gfc-card:hover .gfc-card-image img {
	transform: scale(1.06);
}

.gfc-card-image-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, #eef1f5 0%, #e6e9ee 100%);
}

.gfc-card-content {
	padding: 18px !important;
	display: flex !important;
	flex-direction: column !important;
	flex-grow: 1 !important;
	text-align: left !important;
	align-items: flex-start !important;
	border-top: 3px solid #be9047 !important;
}

.gfc-card-title {
	color: #0b1f3a !important;
	font-family: 'Cormorant', serif !important;
	font-size: 22px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	text-align: left !important;
	margin: 0 0 6px !important;
	width: 100% !important;
}

/* gallery_category label — #be9047, uppercase, as requested */
.gfc-card-category {
	color: #be9047 !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 12.5px !important;
	font-weight: 600 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
	text-align: left !important;
	margin: 0 0 10px !important;
	width: 100% !important;
}

.gfc-icon {
	color: rgba(11, 31, 58, 0.5) !important;
	font-size: 14px !important;
	flex-shrink: 0 !important;
}

.gfc-card-link {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 6px !important;
	color: #0b1f3a !important;
	font-family: 'Inter', sans-serif !important;
	font-weight: 600 !important;
	font-size: 13px !important;
	letter-spacing: 0.5px !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	text-align: left !important;
	position: relative !important;
	width: fit-content !important;
	margin: auto 0 0 !important;
}

a.gfc-card-link,
a .gfc-card-link {
	color: #0b1f3a !important;
}

.gfc-arrow {
	transition: transform 0.3s ease !important;
}

.gfc-card:hover .gfc-arrow {
	transform: translateX(5px) !important;
}

.gfc-card-link::after {
	content: '' !important;
	position: absolute !important;
	left: 0 !important;
	right: auto !important;
	margin: 0 !important;
	bottom: -4px !important;
	width: 0 !important;
	height: 2px !important;
	background: #be9047 !important;
	transition: width 0.3s ease !important;
}

.gfc-card:hover .gfc-card-link::after {
	width: 32px;
}

/* Responsive */
@media (max-width: 1024px) {
	.gfc-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.gfc-sidebar {
		flex: 0 0 230px;
		width: 230px;
	}
}

@media (max-width: 768px) {
	.gfc-wrap {
		flex-direction: column;
		padding: 20px 12px;
	}

	.gfc-sidebar {
		width: 100%;
		flex: 1 1 auto;
	}

	.gfc-grid {
		grid-template-columns: 1fr;
	}

	.gfc-top-bar {
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 10px;
	}
}




/* Gallery Post Type: Masonry gallery + Lightbox */
.ggm-gallery {
	column-count: 3;
	column-gap: 16px;
	width: 100%;
	font-family: 'Inter', sans-serif;
}

.ggm-gallery-item {
	position: relative;
	margin: 0 0 16px;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
}

.ggm-gallery-item img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.3s ease;
}

.ggm-gallery-item:hover img {
	transform: scale(1.03);
}

@media (max-width: 600px) {
	.ggm-gallery {
		column-count: 1;
	}
}


/* Academy Facilities: hover overlay + caption on grid images */
.ggm-gallery-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

.ggm-gallery-item:hover .ggm-gallery-overlay {
	opacity: 1;
}

.ggm-gallery-overlay-text {
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: #fff;
	text-align: center;
	line-height: 1.5;
}


/* Academy Facilities Lightbox: overlay */
.ggm-lb-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px 0;
	background: rgba(8, 9, 12, 0.94);
	font-family: 'Inter', sans-serif;
}

.ggm-lb-overlay.is-open {
	display: flex;
}

.ggm-lb-top {
	box-sizing: border-box;
	width: 100%;
	max-width: 1100px;
	display: flex;
	justify-content: flex-end;
	padding: 0 20px;
}

.ggm-lb-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 2px solid transparent !important;
	border-radius: 50% !important;
	color: #fff;
	font-size: 0;
	cursor: pointer;
	outline: none;
	transition: background 0.15s ease;
}

button.ggm-lb-close {
	color: #fff !important;
	border-color: transparent !important;
}

.ggm-lb-close,
.ggm-lb-close:focus,
.ggm-lb-close:active,
.ggm-lb-close:hover {
	background-color: transparent !important;
	color: #fff;
	border-color: transparent !important;
	outline: none !important;
	box-shadow: none !important;
}

.ggm-lb-close:hover {
	background-color: rgba(255, 255, 255, 0.12) !important;
}


/* Academy Facilities Lightbox: image stage */
.ggm-lb-stage {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 1100px;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 0 56px;
}

.ggm-lb-img-wrap {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ggm-lb-img {
	max-width: 100%;
	max-height: 70vh;
	object-fit: contain;
	border-radius: 8px;
	background: #111;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.ggm-lb-img.is-loaded {
	opacity: 1;
}

.ggm-lb-spinner {
	position: absolute;
	display: none;
	width: 34px;
	height: 34px;
	border: 3px solid rgba(255, 255, 255, 0.25);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ggm-spin 0.7s linear infinite;
}

.ggm-lb-img-wrap.is-loading .ggm-lb-spinner {
	display: block;
}

@keyframes ggm-spin {
	to {
		transform: rotate(360deg);
	}
}

.ggm-lb-overlay .ggm-lb-arrow.ggm-lb-arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 46px;
	height: 46px;
	border: 2px solid transparent !important;
	border-radius: 50% !important;
	-webkit-border-radius: 50% !important;
	overflow: hidden;
	cursor: pointer;
	outline: none;
	transform: translateY(-50%);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ggm-lb-overlay .ggm-lb-arrow.ggm-lb-arrow,
.ggm-lb-overlay .ggm-lb-arrow.ggm-lb-arrow:focus,
.ggm-lb-overlay .ggm-lb-arrow.ggm-lb-arrow:active,
.ggm-lb-overlay .ggm-lb-arrow.ggm-lb-arrow:hover {
	border-color: transparent !important;
	outline: none !important;
	box-shadow: none !important;
}

.ggm-lb-overlay .ggm-lb-arrow.ggm-lb-arrow,
.ggm-lb-overlay .ggm-lb-arrow.ggm-lb-arrow:focus,
.ggm-lb-overlay .ggm-lb-arrow.ggm-lb-arrow:active {
	background-color: #dcdee221 !important;
	color: #fff !important;
}

.ggm-lb-overlay .ggm-lb-arrow.ggm-lb-arrow:hover {
	background-color: #ffffff !important;
	color: #111111 !important;
}

.ggm-lb-overlay .ggm-lb-arrow.ggm-prev {
	left: 0;
}

.ggm-lb-overlay .ggm-lb-arrow.ggm-next {
	right: 0;
}


/* Academy Facilities Lightbox: caption */
.ggm-lb-caption {
	box-sizing: border-box;
	width: 100%;
	max-width: 1100px;
	min-height: 1.4em;
	padding: 14px 20px 0;
	color: #f1f1f1;
	font-size: 0.98rem;
	line-height: 1.5;
	text-align: center;
}

.ggm-lb-counter {
	margin-top: 4px;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.82rem;
	text-align: center;
}


/* Academy Facilities Lightbox: thumbnails */
.ggm-lb-thumbs {
	box-sizing: border-box;
	width: 100%;
	max-width: 1100px;
	display: flex;
	justify-content: center;
	gap: 4px;
	padding: 16px 20px 0;
	overflow-x: auto;
	scrollbar-width: thin;
}

.ggm-lb-thumbs::-webkit-scrollbar {
	height: 6px;
}

.ggm-lb-thumbs::-webkit-scrollbar-thumb {
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.25);
}

.ggm-lb-thumb {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border: 2px solid transparent !important;
	border-radius: 5px !important;
	overflow: hidden;
	background-color: #000 !important;
	opacity: 0.55;
	cursor: pointer;
	outline: none;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}

.ggm-lb-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ggm-lb-thumb,
.ggm-lb-thumb:focus,
.ggm-lb-thumb:active {
	box-shadow: none;
}

.ggm-lb-thumb:hover {
	opacity: 0.85;
	border-color: transparent !important;
}

.ggm-lb-thumb.is-active,
.ggm-lb-thumb.is-active:hover {
	opacity: 1;
	border-color: #fff !important;
}


/* Academy Facilities Lightbox: responsive */
@media (max-width: 600px) {
	.ggm-lb-stage {
		padding: 0 44px;
	}

	.ggm-lb-img {
		max-height: 55vh;
	}

	.ggm-lb-overlay .ggm-lb-arrow.ggm-lb-arrow {
		width: 38px;
		height: 38px;
	}

	.ggm-lb-thumb {
		flex-basis: 50px;
		width: 50px;
		height: 50px;
	}

	.ggm-lb-caption {
		font-size: 0.88rem;
	}
}




/* Gallery Related Programs — Carousel + Card */

.grp-carousel {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	font-family: 'Inter', sans-serif;
	box-sizing: border-box;
	/* Establishes a query context so .grp-slide and .grp-arrow below can
	   respond to THIS component's actual rendered width — not the browser
	   window's width. This is what makes the layout correct regardless of
	   whether the carousel sits in a 100% column, a 60% column, a sidebar,
	   etc. */
	container-type: inline-size;
}

.grp-carousel *,
.grp-carousel *::before,
.grp-carousel *::after {
	box-sizing: border-box;
}

/* Arrows — bare chevrons, no button chrome. Hidden by default; JS adds
   .grp-has-arrows on the carousel only when there are actually more items
   than fit in the current view. */
.grp-arrow {
	display: none;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: auto;
	height: auto;
	padding: 10px;
	margin: 0 !important;
	line-height: 1 !important;
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #0b1f3a !important;
	cursor: pointer !important;
	transition: color 0.25s ease, transform 0.25s ease !important;
}

.grp-carousel.grp-has-arrows .grp-arrow {
	display: flex;
}

.grp-arrow svg {
	display: block;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

.grp-arrow:hover:not(:disabled) {
	color: #be9047 !important;
	transform: scale(1.15);
}

.grp-arrow:disabled {
	opacity: 0.3 !important;
	cursor: not-allowed !important;
}

.grp-arrow:disabled:hover {
	transform: none;
}

/* Viewport / track */
.grp-viewport {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	/* Padding gives the card's hover shadow room to render before it hits
	   the clip boundary; the matching negative margin cancels the padding
	   back out so it doesn't add extra visible space around the carousel. */
	padding: 24px 10px 56px;
	margin: -24px -10px -56px;
}

.grp-track {
	display: flex;
	gap: 16px;
	transition: transform 0.4s cubic-bezier(0.22, 0.9, 0.3, 1);
}

/* Mobile-first default: 1 item per view */
.grp-slide {
	flex: 0 0 100%;
	min-width: 0;
}

/* Container query: once the carousel itself has at least ~600px of room,
   switch to the 2-up desktop/tablet layout — regardless of viewport size. */
@container (min-width: 600px) {
	.grp-track {
		gap: 26px;
	}

	.grp-slide {
		flex: 0 0 calc((100% - 26px) / 2);
	}
}

@container (max-width: 599px) {
	.grp-arrow svg {
		width: 18px;
		height: 18px;
	}

	.grp-arrow {
		padding: 6px;
	}

	.grp-carousel {
		gap: 6px;
	}
}

/* Fallback for browsers without container query support: approximate with
   a standard viewport media query so the component still degrades sanely. */
@supports not (container-type: inline-size) {
	.grp-track {
		gap: 26px;
	}

	.grp-slide {
		flex: 0 0 calc((100% - 26px) / 2);
	}

	@media (max-width: 767px) {
		.grp-track {
			gap: 16px;
		}

		.grp-slide {
			flex: 0 0 100%;
		}

		.grp-arrow svg {
			width: 18px;
			height: 18px;
		}

		.grp-arrow {
			padding: 6px;
		}

		.grp-carousel {
			gap: 6px;
		}
	}
}

/* -----------------------------------------------------------
 * Program Card (ported from Programs archive .pa-card)
 * -------------------------------------------------------- */
.grp-card {
	background: #ffffff;
	border-radius: 8px !important;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 8px rgba(11, 31, 58, 0.05);
	transition: transform 0.45s cubic-bezier(0.22, 0.9, 0.3, 1),
		box-shadow 0.45s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.grp-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 18px 32px rgba(11, 31, 58, 0.10);
}

.grp-card-image {
	position: relative;
	display: block !important;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #F4F2F2;
	line-height: 0;
	font-size: 0;
}

.grp-card-image img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	object-fit: cover !important;
	display: block !important;
	vertical-align: top !important;
	margin: 0 !important;
	transition: transform 0.7s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.grp-card:hover .grp-card-image img {
	transform: scale(1.09);
}

.grp-card-image::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(11, 31, 58, 0.32), transparent 55%);
	opacity: 0;
	transition: opacity 0.45s ease;
}

.grp-card:hover .grp-card-image::after {
	opacity: 1;
}

.grp-card-image-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #F4F2F2, #e9e6e0);
}

.grp-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
	margin: 0 !important;
}

.grp-card-category {
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #be9047;
	margin-bottom: 10px;
}

.grp-card-title {
	margin: 0 0 14px;
}

.grp-card-title a {
	font-family: 'Cormorant', serif !important;
	font-size: 28px !important;
	font-weight: 600 !important;
	line-height: 35px !important;
	color: #0b1f3a !important;
	text-decoration: none !important;
}

.grp-card-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	row-gap: 8px;
	column-gap: 20px;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(11, 31, 58, 0.08);
}

.grp-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 300;
	color: #0b1f3a;
	white-space: nowrap;
}

.grp-meta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #0b1f3a;
	line-height: 0;
}

.grp-meta-icon svg {
	width: 17px;
	height: 17px;
	fill: #0b1f3a;
}

.grp-meta-icon i {
	font-size: 16px;
}

.grp-card-link {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.04em !important;
	color: #0b1f3a !important;
	text-decoration: none !important;
	margin-top: auto;
	width: fit-content;
}

.grp-card-arrow {
	transition: transform 0.35s ease;
}

.grp-card:hover .grp-card-arrow {
	transform: translateX(6px);
}




/* Display Gallery Related Events */

.gre-events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;

    /* Shows roughly 3 items before scrolling kicks in */
    max-height: 380px;
    overflow-y: auto;
    padding-right: 10px;

    /* Sleek modern scrollbar — Firefox */
    scrollbar-width: thin;
    scrollbar-color: #be9047 transparent;
}

/* Sleek modern scrollbar — WebKit (Chrome, Edge, Safari) */
.gre-events-list::-webkit-scrollbar {
    width: 6px;
}

.gre-events-list::-webkit-scrollbar-track {
    background: transparent;
}

.gre-events-list::-webkit-scrollbar-thumb {
    background-color: #be9047;
    border-radius: 10px;
}

.gre-events-list::-webkit-scrollbar-thumb:hover {
    background-color: #a67a3a;
}

.gre-event-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.gre-event-item {
    width: 100%;
}

.gre-event-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    width: 100%;
}

/* Date block */
.gre-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 70px;
    padding: 14px 8px;
    background-color: #0b1f3a;
    border-radius: 14px;
}

.gre-event-day {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #ffffff;
    line-height: 1.1;
}

.gre-event-month {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.gre-event-year {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #ffffff;
    line-height: 1.3;
}

/* Details block */
.gre-event-details {
    flex: 1;
    min-width: 0;
}

.gre-event-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #0b1f3a;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.gre-event-venue {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: #0b1f3a;
    margin: 0 0 4px 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gre-event-time {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: #0b1f3a;
    margin: 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gre-event-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    flex-shrink: 0;
}

.gre-event-icon {
    font-size: 14px;
    line-height: 1;
    color: #0b1f3a;
}

/* Image block */
.gre-event-image {
    flex-shrink: 0;
    width: 140px;
}

.gre-event-image img {
    border-radius: 10px !important;
}

.gre-event-img,
.gre-event-img-placeholder {
    width: 100%;
    height: 90px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    display: block;
}

.gre-event-img-placeholder {
    background-color: #e6e9ee;
}

/* Tablet: keep same row layout */
@media (max-width: 1024px) and (min-width: 768px) {
    .gre-event-image {
        width: 120px;
    }

    .gre-event-img,
    .gre-event-img-placeholder {
        height: 80px;
    }
}

/* Mobile: reverse order, stack vertically */
@media (max-width: 767px) {
    .gre-events-list {
        max-height: 520px;
    }

    .gre-event-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .gre-event-image {
        width: 100%;
        order: 1;
    }

    .gre-event-img,
    .gre-event-img-placeholder {
        width: 100%;
        height: 180px;
        border-radius: 8px;
    }

    .gre-event-details {
        order: 2;
    }

    .gre-event-date {
        order: 3;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        width: auto;
        padding: 10px 16px;
    }

    .gre-event-day {
        font-size: 22px;
    }
}