/* Homepage tree-strip dividers (designer's images from ikonos/, made transparent where the curve is):
   1) top of the green "Mažiau rūpesčių" section (843d3cb) - curve at the strip's bottom, the section's green shows
      through it; 2) bottom of the section before the gallery (c3c7cc2) - curve at the top, its #FBF5F0 shows through.
   The strip above the gallery was replaced by the designer (2026-10-05: skirtukas-virs-projekto-galerija-*.png, already
   transparent). Full width, height by the image's ratio (desktop 1920x70 -> 3.6458vw, mobile 1760x212 -> 12.0455vw); the section's
   own top / bottom padding grows by that height so the content keeps its spacing. */
.elementor-192 .elementor-element.elementor-element-843d3cb {
	--padding-top: calc(80px + 3.6458vw) !important;
	background-image: url("skirtukas-medziai-desktop.png?v=2");
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 100% auto;
}

/* a 2px #3F513D band under the strip: the section ends on a fractional pixel, where its light background would
   otherwise show as a thin line between the strip and the gallery */
.elementor-192 .elementor-element.elementor-element-c3c7cc2 {
	--padding-bottom: calc(201px + 3.6458vw) !important;
	background-image: url("skirtukas-medziai2-desktop.png?v=3"), linear-gradient(#3F513D, #3F513D);
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: 100% auto, 100% 2px;
}

@media (max-width: 1024px) {
	.elementor-192 .elementor-element.elementor-element-c3c7cc2 {
		--padding-bottom: calc(100px + 3.6458vw) !important;
	}
}

@media (max-width: 767px) {
	.elementor-192 .elementor-element.elementor-element-843d3cb {
		--padding-top: calc(80px + 12.0455vw) !important;
		background-image: url("skirtukas-medziai-mobile.png?v=2");
	}

	.elementor-192 .elementor-element.elementor-element-c3c7cc2 {
		--padding-bottom: calc(72px + 12.0455vw) !important;
		background-image: url("skirtukas-medziai2-mobile.png?v=3"), linear-gradient(#3F513D, #3F513D);
	}
}

/* Hero bottom (2315e85), as in the mockups: the photo ends in a curve, under it the designer's "šiltas beržas"
   wave (hero-skirtukas-desktop/-mobile.svg) and then the page background. hero-apacia-*.svg = light fill below the
   photo's curve (measured in the mockup; on mobile it is the designer's wave 49px higher) + the beige wave clipped
   to it. Laid over the hero's bottom at full width, scaled with the screen width, the wave reaching into the next
   section (desktop 65/1920 of the width, mobile 49/440) - the hero is lifted above that section for it. */
.elementor-192 .elementor-element.elementor-element-2315e85 {
	z-index: 2;
}

.elementor-192 .elementor-element.elementor-element-2315e85::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(-65 / 1920 * 100vw);
	height: calc(252 / 1920 * 100vw);
	z-index: 1;
	background: url("hero-apacia-desktop.svg?v=1") no-repeat center / 100% 100%;
	pointer-events: none;
}

/* the next section ("Apie projektą", 436175b) starts below the wave, as in the mockups: its top padding grows by
   the part of the wave that reaches into it */
.elementor-192 .elementor-element.elementor-element-436175b {
	--padding-top: calc(148px + 65 / 1920 * 100vw) !important;
}

@media (max-width: 767px) {
	.elementor-192 .elementor-element.elementor-element-436175b {
		--padding-top: calc(70px + 49 / 440 * 100vw) !important;
	}

	.elementor-192 .elementor-element.elementor-element-2315e85::after {
		bottom: calc(-49 / 440 * 100vw);
		height: calc(84 / 440 * 100vw);
		background-image: url("hero-apacia-mobile.svg?v=1");
	}
}

/* Hero framing and mobile layout as in the mockups.
   Desktop (>= 1025px): the render (2560x1440) at 147.47% of the hero width, right-aligned, 56.5% down - found by
   template matching the desktop mockup (hero-image.png is that same crop).
   Mobile (<= 767px): ~90vh tall hero, heading scaled to two lines, text to three lines, "Apie projektą"
   28px at the bottom; the render fills the height (the mockup's extra sky above the house is not in the render). */
/* Hero photo: the "Rinktis butą" render (4096x2304) as AVIF (quality 65; ~0.6 / 1.2 MB instead of the 4.6 MB JPG,
   no visible difference under the overlay) - 3200px wide by default, the full 4096 on wide or high-density desktop
   screens. Browsers without AVIF / image-set type() keep the JPG. Same 16:9 frame, so the percentage framing below
   holds. Preloaded by parko_hero_preload() (frontend.php) - keep the URLs in sync. */
.elementor-192 .elementor-element.elementor-element-2315e85 {
	background-image: url("vizualizacija-namo.jpg") !important;
	background-image: image-set(url("hero-namo-3200.avif") type("image/avif"), url("vizualizacija-namo.jpg") type("image/jpeg")) !important;
}

@media (min-width: 1921px), (min-width: 1025px) and (min-resolution: 1.5dppx) {
	.elementor-192 .elementor-element.elementor-element-2315e85 {
		background-image: image-set(url("hero-namo-4096.avif") type("image/avif"), url("vizualizacija-namo.jpg") type("image/jpeg")) !important;
	}
}

@media (min-width: 1025px) {
	.elementor-192 .elementor-element.elementor-element-2315e85 {
		background-size: 147.47% auto !important;
		background-position: 100% 56.5% !important;
	}
}

@media (max-width: 767px) {
	.elementor-192 .elementor-element.elementor-element-2315e85 {
		min-height: 90vh;
		min-height: 90svh;
		--padding-top: 80px !important;
		--padding-bottom: 64px !important; /* "Apie projektą" 20px higher (user, 2026-10-05; was 44) */
		/* the photo only (no fill): just above the hero height (100% is the furthest it can zoom out and still cover), anchored
		   at the top so the house sits low and the text is in the sky */
		background-size: auto 110% !important;
		background-position: calc(73% - 40px) 0 !important;
	}

	.elementor-192 .elementor-element.elementor-element-a921b6f {
		--width: 100% !important;
		flex-grow: 1;
		--gap: 16px !important;
		--row-gap: 16px !important;
	}

	.elementor-192 .elementor-element.elementor-element-acb4600 .elementor-heading-title {
		/* two lines at any phone width ("Arčiau gamtos," is ~7.2em wide) */
		font-size: min(43px, calc((100vw - 32px) / 9.5)) !important;
		line-height: 1.075 !important;
		letter-spacing: -1px !important;
	}

	.elementor-192 .elementor-element.elementor-element-acb4600 {
		width: 100% !important;
		max-width: 100% !important;
	}

	.elementor-192 .elementor-element.elementor-element-d71c09b,
	.elementor-192 .elementor-element.elementor-element-d71c09b p {
		/* three lines at any phone width */
		font-size: min(20px, calc((100vw - 32px) / 21)) !important;
		line-height: 1.4 !important;
	}

	.elementor-192 .elementor-element.elementor-element-d71c09b {
		width: 100% !important;
		max-width: 100% !important;
	}

	/* three evenly filled lines (no short last line): the browser picks the narrowest width that keeps three lines */
	.elementor-192 .elementor-element.elementor-element-d71c09b p,
	.elementor-192 .elementor-element.elementor-element-d71c09b .elementor-widget-container {
		text-wrap: balance;
	}

	.elementor-192 .elementor-element.elementor-element-7d2e34f {
		margin-top: auto !important;
	}

	.elementor-192 .elementor-element.elementor-element-7d2e34f .elementor-button {
		font-size: 22px !important;
		line-height: 29px !important;
	}
}

/* Video block (daa8709 desktop / 72d2c8f mobile): with the pointer over the video (or a tap on mobile, or keyboard
   focus) the outlined play icon becomes the designer's play-icon-hovered.svg - circle filled white 30%, triangle
   filled white, at full opacity (Elementor shows the icon at 0.8). Elementor renders the icon inline, so the fills are
   switched in CSS. */
.elementor-192 .elementor-widget-video .elementor-custom-embed-play svg {
	transition: opacity 0.25s ease;
}

.elementor-192 .elementor-widget-video .elementor-custom-embed-image-overlay:hover .elementor-custom-embed-play svg,
.elementor-192 .elementor-widget-video .elementor-custom-embed-play:focus-visible svg {
	opacity: 1;
}

.elementor-192 .elementor-widget-video .elementor-custom-embed-play svg circle,
.elementor-192 .elementor-widget-video .elementor-custom-embed-play svg path {
	transition: fill 0.25s ease, fill-opacity 0.25s ease;
}

.elementor-192 .elementor-widget-video .elementor-custom-embed-image-overlay:hover .elementor-custom-embed-play svg circle,
.elementor-192 .elementor-widget-video .elementor-custom-embed-play:focus-visible svg circle {
	fill: #fff;
	fill-opacity: 0.3;
}

.elementor-192 .elementor-widget-video .elementor-custom-embed-image-overlay:hover .elementor-custom-embed-play svg path,
.elementor-192 .elementor-widget-video .elementor-custom-embed-play:focus-visible svg path {
	fill: #fff;
}
