/*
 * Electro Events — layout only.
 * Fonts, heading styles and text colors are inherited from the Divi Theme Customizer.
 * The one accent color (--ee-accent) is Divi's accent color, set inline by the plugin.
 * The list styles mirror the original hand-built cards on the Schedule of Events page.
 */

/* ---------- List ---------- */
.events-list {
	max-width: 850px;
	margin: 2rem auto;
	padding: 0 1rem;
}
.event-card {
	border-bottom: 1px solid #e2e6e5;
	padding: 1.75rem 1rem;
}
.event-card:last-of-type {
	border-bottom: none;
}
.event-card h5 {
	font-size: 1.05rem;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin: 0 0 0.5rem 0;
}
.event-card h3 {
	font-size: 1.6rem;
	font-weight: bold;
	margin: 0 0 1rem 0;
}
.event-card h3 a {
	color: inherit;
}
.event-card h3 a:hover {
	color: var(--ee-accent);
}
.event-card p {
	margin: 0 0 1rem 0;
	padding-bottom: 0;
}
.event-card ul {
	margin: 0 0 1.25rem 1.25rem;
	padding: 0;
}
.event-card li {
	margin-bottom: 0.4rem;
}
.event-card .sub-topic {
	margin: 1rem 0 0.4rem 0;
}
.ee-location {
	font-style: italic;
}
.ee-card--past {
	opacity: 0.7;
}

/* ---------- Buttons and links ---------- */
.register-button {
	display: inline-block;
	background: var(--ee-accent);
	color: #fff;
	text-decoration: none;
	padding: 0.6rem 1.4rem;
	transition: filter 0.2s ease;
}
.register-button:hover,
.register-button:focus {
	color: #fff;
	filter: brightness(0.88);
}
.ee-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	margin-top: 1rem;
}
.ee-details-link,
.ee-ics-link,
.ee-back a {
	color: var(--ee-accent);
}

/* ---------- Pagination ---------- */
.ee-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5rem 1rem;
	padding: 1.5rem 0 0.5rem;
}
.ee-pagination__pages {
	display: flex;
	gap: 0.35rem;
}
.ee-pagination__pages a,
.ee-pagination__current {
	display: inline-block;
	min-width: 2.2em;
	padding: 0.3em 0.6em;
	text-align: center;
	border: 1px solid #e2e6e5;
}
.ee-pagination__current {
	background: var(--ee-accent);
	border-color: var(--ee-accent);
	color: #fff;
}
.ee-pagination a {
	color: inherit;
}
.ee-pagination a:hover {
	color: var(--ee-accent);
}
.ee-empty {
	text-align: center;
	padding: 1.5rem 0;
}

/* "In-House Training: More Sessions Coming Spring 2027" lines above the list. Divs, not
 * paragraphs, so Divi's paragraph padding rules don't apply. Same width as the list. */
.ee-notices {
	max-width: 850px;
	margin: 1.5rem auto 0;
	padding: 0 1rem;
}
.ee-notices + .events-list {
	margin-top: 0.5rem;
}
.ee-notices__item {
	margin: 0 0 0.5rem;
	padding: 0.75rem 1rem;
	border-left: 4px solid var(--ee-accent);
	background: #f6f6f6;
}
.ee-notices__item:last-child {
	margin-bottom: 0;
}

/* ---------- List | Calendar toggle ---------- */
.ee-toggle {
	display: flex;
	justify-content: center;
	gap: 0;
	margin: 1rem auto 0;
}
.ee-toggle__item {
	padding: 0.45rem 1.4rem;
	border: 2px solid var(--ee-accent);
	color: var(--ee-accent);
}
.ee-toggle__item + .ee-toggle__item {
	border-left: 0;
}
.ee-toggle__item.is-active {
	background: var(--ee-accent);
	color: #fff;
}

/* ---------- Event type filter ---------- */
.ee-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	max-width: 850px;
	margin: 1.25rem auto 0;
	padding: 0 1rem;
}
.ee-filter__item {
	padding: 0.3rem 1rem;
	border: 1px solid #e2e6e5;
	border-radius: 999px;
	color: inherit;
	font-size: 0.95em;
}
.ee-filter__item:hover,
.ee-filter__item:focus {
	border-color: var(--ee-accent);
	color: var(--ee-accent);
}
.ee-filter__item.is-active {
	background: var(--ee-accent);
	border-color: var(--ee-accent);
	color: #fff;
}
.ee-empty a {
	color: var(--ee-accent);
}

/* ---------- Homepage featured events ----------
 * Matches the Smart Slider "Webinars" carousel it replaced: 550px cards with a grey
 * border, photo on the left, "Type | Title" and the date on the right.
 */
.ee-featured {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 550px));
	justify-content: center;
	gap: 50px;
	max-width: 1150px;
	margin: 0 auto;
}
.ee-featured__card {
	display: flex;
	min-height: 352px;
	border: 1px solid #cdcdcd;
	background: #fff;
	color: #000;
	text-decoration: none;
}
.ee-featured__image {
	position: relative;
	flex: 0 0 48%;
	overflow: hidden;
}
.ee-featured__image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.ee-featured__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 20px 50px;
}
.ee-featured__title {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.5;
	color: #000;
	transition: color 0.2s ease;
}
.ee-featured__date {
	margin-top: 10px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	color: #000;
}
.ee-featured__card:hover .ee-featured__title,
.ee-featured__card:focus .ee-featured__title {
	color: var(--ee-accent);
}
.ee-featured__card:hover .ee-featured__image img {
	transform: scale(1.03);
}
.ee-featured-empty {
	text-align: center;
}
@media (max-width: 980px) {
	.ee-featured {
		gap: 30px;
	}
	.ee-featured__card {
		min-height: 280px;
	}
	.ee-featured__body {
		padding: 20px 25px;
	}
}
/* Phones: photo on top, rounded card, like the carousel's mobile layout. */
@media (max-width: 767px) {
	.ee-featured__card {
		flex-direction: column;
		min-height: 0;
		border-radius: 8px;
		overflow: hidden;
	}
	.ee-featured__image {
		flex: none;
		aspect-ratio: 3 / 2;
	}
	.ee-featured__body {
		padding: 20px;
	}
}

/* ---------- Calendar ---------- */
.ee-calendar {
	max-width: 1080px;
	margin: 2rem auto;
	padding: 0 1rem;
}
.ee-calendar__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}
.ee-calendar__title {
	margin: 0;
	padding: 0;
}
.ee-calendar__nav {
	font-size: 1.5rem;
	padding: 0 0.75rem;
	color: var(--ee-accent);
}
.ee-calendar__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	border-top: 1px solid #e2e6e5;
	border-left: 1px solid #e2e6e5;
}
.ee-calendar__weekday {
	padding: 0.5rem;
	font-weight: bold;
	text-align: center;
	border-right: 1px solid #e2e6e5;
	border-bottom: 1px solid #e2e6e5;
}
.ee-calendar__day {
	min-height: 6.5rem;
	padding: 0.4rem;
	border-right: 1px solid #e2e6e5;
	border-bottom: 1px solid #e2e6e5;
	font-size: 0.9em;
	line-height: 1.35;
}
.ee-calendar__day.is-past {
	opacity: 0.55;
}
.ee-calendar__day.is-today .ee-calendar__date {
	background: var(--ee-accent);
	color: #fff;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.9em;
	height: 1.9em;
}
.ee-calendar__date {
	display: inline-block;
	font-weight: bold;
	margin-bottom: 0.25rem;
}
.ee-calendar__dow {
	display: none;
}
.ee-calendar__event {
	display: block;
	margin-top: 0.25rem;
	padding: 0.25rem 0.4rem;
	border-left: 3px solid var(--ee-accent);
	background: rgba(0, 0, 0, 0.04);
	color: inherit;
	word-break: break-word;
}
.ee-calendar__event:hover {
	color: var(--ee-accent);
}
.ee-calendar__time {
	display: block;
	font-size: 0.85em;
	opacity: 0.8;
}

/* Calendar becomes a simple list of days with events on small screens. */
@media (max-width: 767px) {
	.ee-calendar__grid {
		display: block;
		border: 0;
	}
	.ee-calendar__weekday,
	.ee-calendar__day--blank,
	.ee-calendar__day:not(.has-events) {
		display: none;
	}
	.ee-calendar__day {
		min-height: 0;
		border: 0;
		border-bottom: 1px solid #e2e6e5;
		padding: 0.75rem 0;
	}
	.ee-calendar__dow {
		display: inline;
		margin-right: 0.35em;
	}
	.ee-calendar__day.is-today .ee-calendar__date {
		width: auto;
		height: auto;
		border-radius: 0;
		padding: 0 0.4em;
	}
}

/* ---------- Single event ---------- */
.ee-single .ee-back {
	margin-bottom: 1rem;
}
.ee-single .ee-type {
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding-bottom: 0.25rem;
}
/* #left-area prefix beats Divi's "#left-area ul" bullet style. */
#left-area .ee-facts {
	list-style: none;
	margin: 0.5rem 0 1.25rem;
	padding: 0;
}
.ee-facts li {
	padding: 0.15rem 0;
}
.ee-notice {
	border-left: 4px solid var(--ee-accent);
	background: rgba(0, 0, 0, 0.04);
	padding: 0.75rem 1rem !important;
	margin-bottom: 1.25rem;
}
.ee-notice a {
	color: var(--ee-accent);
	margin-left: 0.35rem;
}
/* Event photos: one large, up to two beside it (stacked below on phones). Never taller than
 * --ee-photo-max, however big the uploaded photo is. */
.ee-gallery {
	--ee-photo-max: 450px;
	display: grid;
	gap: 10px;
	margin-bottom: 1.5rem;
}
.ee-gallery__item {
	display: block;
	overflow: hidden;
	cursor: zoom-in;
}
.ee-gallery__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.ee-gallery__item:hover img,
.ee-gallery__item:focus img {
	transform: scale(1.03);
}
/* One photo: its own shape (not cropped), scaled down to fit, left-aligned with the text. */
.ee-gallery--1 {
	justify-items: start;
}
.ee-gallery--1 .ee-gallery__item {
	max-width: 100%;
}
.ee-gallery--1 .ee-gallery__item img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: var(--ee-photo-max);
}
.ee-gallery--2 {
	grid-template-columns: 1fr 1fr;
}
.ee-gallery--2 .ee-gallery__item {
	aspect-ratio: 4 / 3;
	max-height: var(--ee-photo-max);
}
.ee-gallery--3 {
	grid-template-columns: 2fr 1fr;
	grid-template-rows: 1fr 1fr;
	height: min(var(--ee-photo-max), 40vw);
}
.ee-gallery--3 .ee-gallery__item:first-child {
	grid-row: span 2;
}
@media (max-width: 600px) {
	.ee-gallery--3 {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto;
		height: auto;
	}
	.ee-gallery--3 .ee-gallery__item {
		aspect-ratio: 4 / 3;
	}
	.ee-gallery--3 .ee-gallery__item:first-child {
		grid-row: auto;
		grid-column: span 2;
	}
}

/* Enlarged photo (assets/gallery.js). */
.ee-lightbox {
	max-width: 100vw;
	max-height: 100vh;
	width: 100vw;
	height: 100vh;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}
.ee-lightbox::backdrop {
	background: rgba(0, 0, 0, 0.85);
}
.ee-lightbox__frame {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 50px 60px;
	box-sizing: border-box;
}
.ee-lightbox__img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.ee-lightbox button {
	position: absolute;
	padding: 6px 14px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 36px;
	line-height: 1;
	cursor: pointer;
}
.ee-lightbox__close {
	top: 10px;
	right: 10px;
}
.ee-lightbox__prev,
.ee-lightbox__next {
	top: 50%;
	transform: translateY(-50%);
}
.ee-lightbox__prev {
	left: 5px;
}
.ee-lightbox__next {
	right: 5px;
}
.ee-single .entry-content ul {
	margin-bottom: 1.25rem;
}
