/* Keep removed sections available when the page is opened in Elementor. */
body:not(.elementor-editor-active) #ildp-seminar-registration-preview,
body:not(.elementor-editor-active) #ildp-about-contact,
body:not(.elementor-editor-active) #ildp-contact-location,
body:not(.elementor-editor-active) #ildp-president-message,
body:not(.elementor-editor-active) #ildp-contact-preview,
body:not(.elementor-editor-active) #ildp-leadership,
body:not(.elementor-editor-active) #ildp-gallery-training.e-con,
body:not(.elementor-editor-active) #ildp-gallery-engagement.e-con,
body:not(.elementor-editor-active) #ildp-gallery-community.e-con {
	display: none !important;
}

#ildp-home [data-ildp-hero-image-block] {
	margin-bottom: 24px !important;
}

/* Let the homepage photo card fit its contents instead of stretching to the copy. */
body #ildp-home .e-con[data-ildp-home-photo-frame] {
	--min-height: 0px;
	--height: auto;
	--align-self: center;
	min-height: 0 !important;
	height: auto !important;
	align-self: center !important;
	flex-grow: 0 !important;
	padding: 24px !important;
}

body #ildp-home [data-ildp-home-photo-frame] [data-ildp-hero-image-block] {
	padding: 8px !important;
}

@media (max-width: 600px) {
	body #ildp-home .e-con[data-ildp-home-photo-frame] {
		padding: 20px !important;
	}
	body #ildp-home [data-ildp-home-photo-frame] [data-ildp-hero-image-block] {
		padding: 6px !important;
	}
}

.ildp-editorial-illustrated {
	background-color: #ffffff !important;
}

.ildp-editorial-art {
	order: -2;
	flex: 0 0 auto;
	width: 100%;
	min-width: 0;
	height: 176px;
	margin: 0 0 20px;
	overflow: hidden;
	background: #ffffff;
	border-radius: 12px;
	pointer-events: none;
}

.ildp-editorial-art img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: 100%;
	margin: 0;
	object-fit: cover;
	object-position: center;
}

#ildp-trust-bar .ildp-editorial-illustrated .ildp-premium-trust-icon {
	display: none !important;
}

#ildp-trust-bar .ildp-editorial-illustrated {
	--justify-content: flex-start;
	justify-content: flex-start !important;
}

#ildp-registration-steps .ildp-editorial-art,
#ildp-values .ildp-editorial-art,
#ildp-industry-milestones .ildp-editorial-art {
	height: 186px;
}

/* Milestone text was white on the original dark cards. Keep it readable on art cards. */
#ildp-industry-milestones .ildp-editorial-illustrated {
	border-radius: 18px;
	border-top: 4px solid #ffe500;
	overflow: hidden;
}

#ildp-industry-milestones .ildp-editorial-illustrated .elementor-heading-title {
	color: #282168 !important;
}

#ildp-industry-milestones .ildp-editorial-illustrated .elementor-widget-text-editor,
#ildp-industry-milestones .ildp-editorial-illustrated .elementor-widget-text-editor p {
	color: #626475 !important;
}

.ildp-editorial-portrait {
	--flex-direction: column;
	--align-items: stretch;
	--justify-content: flex-end;
	flex-direction: column !important;
	align-items: stretch !important;
	justify-content: flex-end !important;
	min-height: 420px !important;
	padding: 28px !important;
	overflow: hidden;
	background: linear-gradient(145deg, #171342, #332b79) !important;
	border-radius: 20px !important;
}

.ildp-editorial-portrait > .e-con-inner {
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-end;
}

/* The Home portrait should fit its contents rather than stretch to the message. */
#ildp-president-message .e-con.ildp-editorial-portrait {
	--height: auto;
	--min-height: 0px;
	--align-self: flex-start;
	--justify-content: flex-start;
	align-self: flex-start !important;
	flex-grow: 0 !important;
	height: auto !important;
	min-height: 0 !important;
	justify-content: flex-start !important;
}

#ildp-president-message .e-con.ildp-editorial-portrait > .e-con-inner {
	height: auto !important;
	min-height: 0 !important;
	flex-grow: 0 !important;
	justify-content: flex-start !important;
}

.ildp-editorial-president {
	position: relative;
	z-index: 1;
	order: -1;
	display: block;
	flex: 0 0 auto;
	align-self: center;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: none;
	margin: 0 auto 24px !important;
	object-fit: cover;
	object-position: center;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 12px;
	box-shadow: 0 14px 34px rgba(7, 5, 27, 0.2);
}

.ildp-editorial-portrait .elementor-heading-title,
.ildp-editorial-portrait .elementor-widget-text-editor,
.ildp-editorial-portrait .elementor-widget-text-editor p {
	position: relative;
	z-index: 1;
	color: #ffffff !important;
}

@media (max-width: 767px) {
	.ildp-editorial-art,
	#ildp-registration-steps .ildp-editorial-art,
	#ildp-values .ildp-editorial-art,
	#ildp-industry-milestones .ildp-editorial-art {
		height: 160px;
		margin-bottom: 16px;
	}

	.ildp-editorial-portrait {
		padding: 24px !important;
	}
}
