/* Elementor pages: let the theme's classes and tokens work on Elementor widget markup. */

/* Elementor content spans the full width; its sections handle their own boxed width and padding. */
.elementor-page .wp-block-post-content.has-global-padding { padding-left: 0; padding-right: 0; }
.elementor-page .wp-block-post-content > .elementor { max-width: none; }

/* Paragraph spacing inside text widgets. */
.elementor-widget-text-editor > :last-child,
.elementor-widget-text-editor > * > :last-child { margin-bottom: 0; }
.elementor-widget-text-editor p:first-child { margin-top: 0; }

/* Elementor removes link underlines; keep the theme's underlined links in body text. */
.elementor-widget-text-editor a:not(.elementor-button) { text-decoration: underline; }

/* Elementor buttons take the theme button style. Per-widget colours set in Elementor still win,
   since they use a more specific selector. */
.elementor .elementor-button {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent, #fff);
	border-radius: var(--wp--custom--radius, 0);
	padding: .95rem 1.75rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: .9375rem;
	font-weight: 600;
	line-height: 1.2;
}
.elementor .elementor-button:hover,
.elementor .elementor-button:focus { background-color: var(--wp--preset--color--ink); color: var(--wp--preset--color--base); }

/* Hairline dividers between columns of a strip (class "is-divided" on the column containers). */
@media (min-width: 768px) { .e-con.is-divided { border-left: 1px solid var(--wp--preset--color--line); } }
@media (max-width: 767px) { .e-con.is-divided { border-top: 1px solid var(--wp--preset--color--line); padding-top: var(--wp--preset--spacing--50) !important; } }

/* Image widgets: theme ratios and captions. */
.elementor-widget-image img { width: 100%; }
.elementor-widget-image.ratio-portrait img { aspect-ratio: 4 / 5; object-fit: cover; }
.elementor-widget-image.ratio-wide img { aspect-ratio: 3 / 2; object-fit: cover; }
.elementor-widget-image.ratio-square img { aspect-ratio: 1; object-fit: cover; }
.elementor-widget-image .widget-image-caption { margin-top: .6rem; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); text-align: left; }

/* Image Carousel: even slide heights (4:3 crops); slides open Elementor's lightbox. */
.elementor-image-carousel .swiper-slide-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.elementor-image-carousel a { cursor: zoom-in; }

/* Likha. */
.elementor-widget-image.lk-photo img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.elementor .elementor-button { border-radius: 6px; }
/* Dark and colour sections: Elementor's kit colours give way to the section's text colour. */
/* !important: Elementor writes each heading's colour into a per-widget rule that outranks any class. */
.elementor .lk-on-night .elementor-heading-title, .elementor .lk-on-colour .elementor-heading-title,
.elementor .lk-on-night .elementor-widget-text-editor, .elementor .lk-on-colour .elementor-widget-text-editor { color: inherit !important; }
.elementor .lk-on-night .elementor-widget-text-editor.lk-intro { color: #bdb5a9 !important; }
.lk-on-colour { color: #fff; }
.elementor .lk-on-teal .elementor-button, .elementor .lk-on-magenta .elementor-button { background-color: #fff; color: #16130f; }
/* Section heading rows: Elementor stacks rows centred on phones; keep the left alignment. */
.elementor .e-con.lk-head-row, .elementor .e-con.lk-head-row > .e-con-inner { --justify-content: space-between; --align-items: flex-end; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
.elementor .e-con.lk-head-row .elementor-heading-title, .elementor .e-con.lk-head-row .elementor-widget-text-editor { text-align: left; }
/* Hero: poster type over the duotone photo. */
.elementor .lk-poster .elementor-heading-title { font-size: clamp(4.5rem, 1.5rem + 11vw, 11rem) !important; font-stretch: 50%; font-weight: 900 !important; line-height: .82 !important; color: #f4efe6; }
.elementor .lk-poster .lk-year { color: #f08cb1; }
.elementor .lk-hero-intro p { max-width: 42ch; }
/* Hero band: the countdown sits level with the dates. */
.elementor .lk-hero-band .lk-countdown__num { font-size: clamp(3rem, 2rem + 3vw, 4.5rem); }
.elementor .lk-page-band .elementor-heading-title { font-size: clamp(3.5rem, 1.5rem + 7vw, 8rem) !important; font-weight: 900 !important; line-height: .86 !important; }
.elementor-image-carousel .swiper-slide-image { border-radius: 8px; }
