/**
Theme Name: Pride Safari
Author: Ugly Duckling Designs
Author URI: https://duckling.media/
Description: Child theme for the Pride Safari Namibia rebuild. Uses Hello Elementor as the parent so layouts stay in Elementor, with this theme holding post types, ACF, and site CSS.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pride-safari
Template: hello-elementor
*/

/*
 * Test page hero.
 * "Roam with the Pride" is a fixed two-line title, 70px on 70px,
 * so the block is 140px tall. Its top edge sits on the one-third
 * line of the screen. The tailor-made line keeps the 12px gap
 * under it, so the two move together.
 */
body.elementor-page-414 #hero-title,
body.elementor-page-414 #hero-subtitle {
	position: absolute;
	left: 0;
	right: 0;
	height: auto;
	z-index: 3;
}

body.elementor-page-414 #hero-title {
	top: calc(100vh / 3);
	bottom: auto;
	--padding-top: 0px;
	padding-top: 0;
}

body.elementor-page-414 #hero-subtitle {
	top: calc(100vh / 3 + 152px);
	bottom: auto;
}

body.elementor-page-414 #hero-title > .e-con-inner {
	padding-top: 0;
}

/*
 * Ultra-wide screens. The header content is an 1800px box, centered,
 * and the last letter of Contact sits 83px inside the right edge
 * of that box. From 2500px up, the right edge of both hero lines
 * ends on that letter.
 */
@media (min-width: 2500px) {
	body.elementor-page-414 #hero-title,
	body.elementor-page-414 #hero-subtitle {
		left: auto;
		right: calc(50vw - 817px);
		width: max-content;
		max-width: calc(50vw + 777px);
		--padding-right: 0px;
		--padding-left: 0px;
		--padding-inline-end: 0px;
		--padding-inline-start: 0px;
		padding-right: 0;
		padding-left: 0;
		--justify-content: flex-end;
		justify-content: flex-end;
	}

	body.elementor-page-414 #hero-title > .e-con-inner,
	body.elementor-page-414 #hero-subtitle > .e-con-inner {
		max-width: none;
		width: max-content;
		margin-left: 0;
		margin-right: 0;
	}

	body.elementor-page-414 #hero-title h2,
	body.elementor-page-414 #hero-subtitle .elementor-widget-heading,
	body.elementor-page-414 #hero-subtitle .elementor-heading-title {
		text-align: end;
	}
}

/*
 * Phones only: center both lines. The italic line under the title is
 * Cormorant at weight 400, which disappears on the photograph. Use the
 * bold italic, and open the leading so the lines do not collide.
 */
@media (max-width: 767px) {
	body.elementor-page-414 #hero-title,
	body.elementor-page-414 #hero-subtitle {
		--padding-right: 24px;
		--padding-left: 24px;
		--padding-inline-end: 24px;
		--padding-inline-start: 24px;
		padding-right: 24px;
		padding-left: 24px;
	}

	body.elementor-page-414 #hero-title h2,
	body.elementor-page-414 #hero-subtitle .elementor-widget-heading,
	body.elementor-page-414 #hero-subtitle .elementor-heading-title {
		text-align: center;
		width: 100%;
	}

	body.elementor-page-414 #hero-subtitle .elementor-heading-title {
		font-weight: 700;
		line-height: 1.35;
	}
}

/*
 * Front page only. Above 1200px, show the title and the line under it.
 * The type stays the one already set for that heading.
 */
@media (min-width: 1201px) {
	body.elementor-page-414 #hero-title .e-5e1faa3-70cda5f,
	body.elementor-page-414 #hero-subtitle .elementor-element-f9f77b8 {
		display: block;
	}
}

/*
 * Container overlays. Elementor paints a background overlay as ::before
 * across the whole box, and that layer sits above the heading and the
 * button. A click lands on the overlay, so the link never fires.
 */
.e-con::before {
	pointer-events: none;
}

/*
 * Section rules.
 * A heading sits above Elementor's short divider. Hide that divider
 * and draw the line on the heading, which is only as wide as its words.
 * The 8px is the old 20px gap minus the divider's 12px upward shift.
 * This is every page, including ones created later. The line under the
 * wordmark in the header is a different divider and stays.
 */
:is(h1, h2, h3, h4).e-heading-base:has(+ hr.e-divider-base) {
	padding-bottom: 8px;
	border-bottom: 1px solid #000;
}

:is(h1, h2, h3, h4).e-heading-base + hr.e-divider-base {
	display: none;
}

.elementor-widget-heading.elementor-widget:has(+ .elementor-widget-divider) {
	width: fit-content;
	max-width: 100%;
}

.elementor-widget-heading:has(+ .elementor-widget-divider) .elementor-heading-title {
	padding-bottom: 8px;
	border-bottom: 1px solid #000;
}

.elementor-widget-heading + .elementor-element.elementor-widget-divider {
	display: none;
}

/*
 * Our Pride team cards.
 * Closed cards in a row share one height, and the BIO control sits
 * on the bottom edge. Opening a card reveals that person's bio
 * underneath, so only that card grows.
 */
.pride-bio-slot {
	width: 100%;
	padding-top: 8px;
	text-align: center;
}

.pride-person > .elementor-widget-html {
	width: 100%;
	margin-top: auto;
}

.elementor-kit-7 button.pride-bio-toggle,
.elementor-kit-7 button.pride-bio-toggle:hover,
.elementor-kit-7 button.pride-bio-toggle:focus,
.elementor-kit-7 button.pride-bio-toggle:focus-visible {
	appearance: none;
	background: transparent;
	background-color: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	cursor: pointer;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-style: italic;
	font-weight: 500;
	font-size: 18px;
	letter-spacing: 0.14em;
	color: #bd6f11;
	text-decoration: underline;
	text-underline-offset: 5px;
}

.pride-bio {
	display: none;
	margin-top: 18px;
	text-align: center;
	font-family: "EB Garamond", Georgia, serif;
	font-size: 17px;
	line-height: 1.5;
	color: #2e2d2b;
}

.pride-person.is-open .pride-bio {
	display: block;
}

.pride-bio p {
	margin: 0;
}
