/*
 Theme Name:   Hello Elementor Child
 Theme URI:    https://elementor.com/hello-theme/
 Description:  Child theme for Hello Elementor. Headers and footers are built with Ultimate Addons for Elementor (free Elementor), so this theme does not override header.php or footer.php.
 Author:       Joy Knowledge
 Template:     hello-elementor
 Version:      1.0.8
 Requires at least: 6.0
 Tested up to: 7.0
 Requires PHP: 7.4
 License:      GNU General Public License v3 or later.
 License URI:  https://www.gnu.org/licenses/gpl-3.0.html
 Text Domain:  hello-elementor-child
*/

:root {
	--joy-font: "Sulphur Point", sans-serif;
	--joy-radius: 5px;
}

/*
 * Transparent UAE header over the homepage maintop video.
 * Elementor paints the bar black in post CSS, so that rule is overridden.
 */
.ehf-header #masthead {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	width: 100%;
	background: transparent;
}

.elementor-15 .elementor-element.elementor-element-3ae1a55,
.elementor-15 .elementor-element.elementor-element-3ae1a55:not(.elementor-motion-effects-element-type-background),
.elementor-15 .elementor-element.elementor-element-3ae1a55 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
	background-color: transparent !important;
	background-image: none !important;
}

/*
 * Gallery. Equal square tiles: 4 columns, 2 on phones.
 * Elementor gives this gallery a negative right margin, which is cleared
 * so the grid stays inside the screen.
 */
.elementor-widget-image-gallery .elementor-image-gallery .gallery {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 !important;
	width: 100%;
	max-width: 100%;
	margin: 0 auto !important;
	box-sizing: border-box;
}

.elementor-widget-image-gallery .elementor-image-gallery .gallery br {
	display: none;
}

.elementor-widget-image-gallery .elementor-image-gallery .gallery-item {
	float: none;
	flex: 0 0 25%;
	width: 25% !important;
	max-width: 25%;
	min-width: 0;
	margin: 0 !important;
	padding: 8px !important;
	box-sizing: border-box;
}

.elementor-widget-image-gallery .elementor-image-gallery .gallery-icon {
	width: 100%;
	aspect-ratio: 1;
	overflow: hidden;
}

.elementor-widget-image-gallery .elementor-image-gallery .gallery-icon a,
.elementor-widget-image-gallery .elementor-image-gallery .gallery-icon img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	min-width: 0;
	object-fit: cover;
	object-position: center;
}

@media (max-width: 767px) {
	.elementor-widget-image-gallery .elementor-image-gallery .gallery-item {
		flex: 0 0 50%;
		width: 50% !important;
		max-width: 50%;
	}
}

/*
 * Albums and singles. home.js marks the row so this still works after
 * Elementor assigns a new container ID.
 */
.joy-albums,
.joy-albums-section {
	overflow: visible;
}

.joy-albums .elementor-widget-image img {
	border-radius: var(--joy-radius);
}

/*
 * News list, placed into the existing Elementor News container.
 */
#joy-news-items {
	color: #fff;
}

.elementor-element-1574f91 .elementor-heading-title {
	color: #fff !important;
}

#joy-news-items {
	position: relative;
	z-index: 1;
	width: 100%;
	font-family: var(--joy-font);
}

#joy-news-items .joy-news__item {
	display: flex;
	align-items: center;
	gap: 28px;
	margin: 0 0 72px;
}

.joy-news__item:last-child {
	margin-bottom: 0;
}

.joy-news__thumb,
#joy-news-items .joy-news__image {
	width: 200px;
	height: 200px;
	border-radius: var(--joy-radius);
}

.joy-news__thumb {
	flex: 0 0 200px;
	overflow: hidden;
}

#joy-news-items .joy-news__image {
	display: block;
	max-width: none;
	object-fit: cover;
}

.joy-news__copy {
	flex: 1 1 auto;
	min-width: 0;
}

.joy-news__title {
	margin: 0 0 10px;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.15;
}

.joy-news__title a,
.joy-news__more {
	color: #fff;
	text-decoration: none;
}

.joy-news__excerpt {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.35;
}

.joy-news__more {
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
}

@media (min-width: 768px) and (max-width: 1024px) {
	.joy-news__thumb,
	#joy-news-items .joy-news__image {
		width: 220px;
		height: 220px;
	}

	.joy-news__thumb {
		flex-basis: 220px;
	}

	.joy-news__title {
		font-size: 28px;
	}

	.joy-news__excerpt {
		font-size: 18px;
	}
}

@media (max-width: 767px) {
	#joy-news-items .joy-news__item {
		flex-direction: column;
		align-items: flex-start;
	}

	.joy-news__thumb,
	#joy-news-items .joy-news__image {
		width: 260px;
		height: 260px;
		max-width: 100%;
	}

	.joy-news__thumb {
		flex-basis: 260px;
	}

	.joy-news__copy {
		width: 100%;
	}
}

/*
 * Single posts: article only. Header and footer are hidden.
 */
body.single-post,
body.single-post #page,
body.single-post .site-main {
	background: #000;
	color: #fff;
}

body.single-post #masthead,
body.single-post #colophon,
body.single-post .site-header,
body.single-post .site-footer {
	display: none !important;
}

.joy-article {
	max-width: 770px;
	margin: 0 auto;
	padding: 80px 24px 100px;
	font-family: var(--joy-font);
}

.joy-article__back {
	margin: 0 0 36px;
}

a.joy-article__back-button {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	width: auto;
	padding: 12px 24px;
	border: 1px solid #fff;
	border-radius: 20px;
	background: transparent;
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	line-height: 15px;
	text-decoration: none;
	transition: transform 0.3s ease;
}

a.joy-article__back-button:hover,
a.joy-article__back-button:focus,
a.joy-article__back-button:active {
	color: #fff;
	transform: scale(1.1);
}

.joy-article__back-icon,
.joy-article__back-icon svg {
	display: block;
	width: 15px;
	height: 15px;
}

.joy-article__back-icon {
	flex: 0 0 15px;
}

.joy-article__back-icon svg {
	fill: currentColor;
}

.joy-article__title {
	margin: 0 0 16px;
	color: #ff0000;
	font-size: 64px;
	font-weight: 700;
	line-height: 1.05;
	text-transform: uppercase;
}

.joy-article__meta {
	margin: 0 0 28px;
	color: #fff;
	font-size: 14px;
	font-weight: 300;
}

.joy-article__meta a {
	color: #ff4d4d;
	text-decoration: none;
}

.joy-article__image {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 0 28px;
}

.joy-article__content {
	font-size: 18px;
	line-height: 1.55;
}

.joy-article__content p {
	margin: 0 0 18px;
}

@media (max-width: 767px) {
	.joy-article__title {
		font-size: 40px;
	}
}
