/* GEF Speakers Grid — matches globaledfest.com (Evently/Mikado theme) design tokens:
   headings in Oswald, speaker names in Nunito 900, meta text in Lato, accent red #ff0000.

   Photo shape (circle / square / rounded) is controlled by --gef-radius, set inline
   per-instance by the shortcode. Card style is selected via a gef-style-* class on
   .gef-speakers-grid: minimal (default), card, overlay, bordered, ribbon. */

.gef-speakers-section {
	width: 100%;
}

.gef-speakers-heading {
	font-family: 'Oswald', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	text-align: center;
	color: #1a1a1a;
	margin: 0 0 40px;
}

.gef-speakers-grid {
	display: grid;
	grid-template-columns: repeat(var(--gef-cols, 5), 1fr);
	gap: 16px;
}

/* ==========================================================================
   Shared card foundation (used by every style)
   ========================================================================== */

.gef-speaker-card {
	text-align: center;
	padding: 8px;
	position: relative;
}

.gef-speaker-photo {
	width: 100%;
	overflow: hidden;
	border-radius: var(--gef-radius, 50%);
	background-color: #eeeeee;
}

.gef-speaker-photo img {
	width: 100%;
	height: auto;
	display: block;
	filter: grayscale(100%);
	transition: filter 0.3s ease, transform 0.3s ease;
}

.gef-speaker-card:hover .gef-speaker-photo img {
	filter: grayscale(0%);
	transform: scale(1.03);
}

.gef-speaker-photo-zoomable {
	cursor: zoom-in;
}

.gef-speaker-photo-zoomable:focus-visible {
	outline: 2px solid #ff0000;
	outline-offset: -2px;
}

.gef-speaker-info {
	padding: 14px 4px 0;
}

.gef-speaker-name {
	font-family: 'Nunito', sans-serif;
	font-size: 16px;
	font-weight: 900;
	color: #1a1a1a;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1.3;
	margin: 0 0 4px;
}

.gef-speaker-designation {
	display: block;
	font-family: 'Lato', sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: #ff0000;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1.4;
}

.gef-speaker-org {
	display: block;
	font-family: 'Lato', sans-serif;
	font-size: 13px;
	color: rgba(26, 26, 26, 0.6);
	line-height: 1.4;
}

/* ==========================================================================
   Style: Card with Shadow (.gef-style-card)
   White card, soft shadow, photo pinned at top with padding, lifts on hover.
   ========================================================================== */

.gef-style-card .gef-speaker-card {
	background-color: #ffffff;
	border-radius: 12px;
	padding: 20px 16px 24px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.gef-style-card .gef-speaker-card:hover {
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
	transform: translateY(-4px);
}

/* ==========================================================================
   Style: Photo Overlay (.gef-style-overlay)
   Photo fills the whole card; name/designation sit on a gradient scrim.
   ========================================================================== */

.gef-style-overlay .gef-speaker-card {
	padding: 0;
	overflow: hidden;
	border-radius: var(--gef-radius, 12px);
	background-color: #eeeeee;
}

.gef-style-overlay .gef-speaker-photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	border-radius: 0;
}

.gef-style-overlay .gef-speaker-card::before {
	content: "";
	display: block;
	padding-top: 125%; /* reserves a 4:5 portrait height since the photo is absolutely positioned */
}

.gef-style-overlay .gef-speaker-info {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 40px 14px 14px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0) 100%);
	text-align: left;
}

.gef-style-overlay .gef-speaker-name,
.gef-style-overlay .gef-speaker-org {
	color: #ffffff;
}

.gef-style-overlay .gef-speaker-designation {
	color: #ff9d9d;
}

/* ==========================================================================
   Style: Bordered Frame (.gef-style-bordered)
   Photo ringed in brand red, name underlined with a short red divider.
   ========================================================================== */

.gef-style-bordered .gef-speaker-photo {
	border: 3px solid #ff0000;
	padding: 4px;
	background-clip: content-box;
}

.gef-style-bordered .gef-speaker-name {
	position: relative;
	padding-bottom: 10px;
}

.gef-style-bordered .gef-speaker-name::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 28px;
	height: 2px;
	background-color: #ff0000;
}

/* ==========================================================================
   Style: Top Accent Ribbon (.gef-style-ribbon)
   Card on a light panel with a solid red strip along the top edge.
   ========================================================================== */

.gef-style-ribbon .gef-speaker-card {
	background-color: #fbf4d7;
	border-radius: 8px;
	padding: 0 14px 20px;
	overflow: hidden;
}

.gef-style-ribbon .gef-speaker-card::before {
	content: "";
	display: block;
	height: 5px;
	margin: 0 -14px 16px;
	background-color: #ff0000;
}

/* ==========================================================================
   Button
   ========================================================================== */

.gef-speakers-button-holder {
	text-align: center;
	margin-top: 48px;
}

.gef-speakers-button {
	display: inline-block;
	font-family: 'Oswald', sans-serif;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	color: #ffffff;
	background-color: #ff0000;
	border: 2px solid #ff0000;
	padding: 14px 40px;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.gef-speakers-button:hover {
	background-color: transparent;
	color: #ff0000;
}

@media screen and (max-width: 1024px) {
	.gef-speakers-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media screen and (max-width: 768px) {
	.gef-speakers-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.gef-speakers-heading {
		margin-bottom: 24px;
	}

	.gef-speakers-button-holder {
		margin-top: 28px;
	}
}

/* ==========================================================================
   Lightbox — click a speaker photo to view it full size
   ========================================================================== */

body.gef-lightbox-open {
	overflow: hidden;
}

.gef-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	padding: 40px;
	background-color: rgba(0, 0, 0, 0.9);
	align-items: center;
	justify-content: center;
}

.gef-lightbox.is-open {
	display: flex;
}

.gef-lightbox-inner {
	max-width: 100%;
	max-height: 100%;
}

.gef-lightbox-inner img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 80px);
	width: auto;
	height: auto;
	margin: 0 auto;
}

.gef-lightbox-close {
	position: fixed;
	top: 20px;
	right: 30px;
	background: none;
	border: none;
	color: #ffffff;
	font-size: 40px;
	line-height: 1;
	cursor: pointer;
	padding: 8px;
}

.gef-lightbox-close:hover {
	color: #ff0000;
}

@media screen and (max-width: 768px) {
	.gef-lightbox {
		padding: 20px;
	}

	.gef-lightbox-close {
		top: 8px;
		right: 12px;
		font-size: 32px;
	}
}
