/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Home: image accordion */
.grf-accordion .eael-img-accordion .overlay {
	align-items: stretch;
	padding: 0;
}

.grf-accordion .eael-img-accordion .overlay-inner {
	align-self: stretch;
	position: relative;
	width: 100%;
}

/* Keep the number visible even when its accordion item is not active. */
.grf-accordion .eael-img-accordion .overlay-inner > a,
.grf-accordion .eael-img-accordion .overlay-inner > a .img-accordion-title {
	opacity: 1 !important;
	transform: none !important;
	visibility: visible !important;
}

/* The existing number link becomes the link for the whole accordion item. */
.grf-accordion .eael-img-accordion .overlay-inner > a {
	display: block;
	inset: 0;
	position: absolute;
	z-index: 2;
}

.grf-accordion .eael-img-accordion .overlay-inner > a .img-accordion-title {
	left: 24px;
	margin: 0;
	position: absolute;
	top: 24px;
}

/* The text remains visible only for the active/hovered item, as configured by EAEL. */
.grf-accordion .eael-img-accordion .overlay-inner p:not(:empty) {
	bottom: 24px;
	left: 24px;
	margin: 0;
	pointer-events: none;
	position: absolute;
	right: 24px;
	z-index: 1;
}

.grf-accordion .eael-img-accordion .overlay-inner > a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -7px;
}

/* Keep the first item open at rest; EAEL retains its normal hover behavior. */
.grf-accordion .eael-img-accordion:not(:hover) > .eael-image-accordion-item:first-child {
	flex: 3 1 0% !important;
}

.grf-accordion .eael-img-accordion:not(:hover) > .eael-image-accordion-item:first-child::before {
	background-color: #00000080 !important;
}

.grf-accordion .eael-img-accordion:not(:hover) > .eael-image-accordion-item:first-child .overlay-inner p:not(:empty) {
	opacity: 1 !important;
	transform: none !important;
	visibility: visible !important;
}

/* Mobile: stack all items open; EAEL's hover flex values no longer affect their height. */
@media (max-width: 800px) {
	.grf-accordion .eael-img-accordion {
		display: block;
		height: auto !important;
	}

	.grf-accordion .eael-img-accordion > .eael-image-accordion-item {
		min-height: 280px;
	}

	.grf-accordion .eael-img-accordion > .eael-image-accordion-item::before {
		background-color: #00000080 !important;
	}

	.grf-accordion .eael-img-accordion .overlay-inner p:not(:empty) {
		opacity: 1 !important;
		transform: none !important;
		visibility: visible !important;
	}
}
