/*
 * Rasa June – Homepage Mobile Fix 1.5.0
 * Tik penkios „Utvalgte prosjekter“ kortelės, tik iki 1024 px.
 */

@media (max-width: 1024px) {
	:is(
		.elementor-element-f4c3322,
		.elementor-element-04f6846,
		.elementor-element-fd101dc,
		.elementor-element-2063b5f,
		.elementor-element-fa8bdbf
	) .elementor-image-box-wrapper,
	:is(
		.elementor-element-f4c3322,
		.elementor-element-04f6846,
		.elementor-element-fd101dc,
		.elementor-element-2063b5f,
		.elementor-element-fa8bdbf
	) .elementor-image-box-content {
		display: block !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		overflow: visible !important;
	}

	:is(
		.elementor-element-f4c3322,
		.elementor-element-04f6846,
		.elementor-element-fd101dc,
		.elementor-element-2063b5f,
		.elementor-element-fa8bdbf
	) .elementor-image-box-title {
		position: static !important;
		display: block !important;
		height: auto !important;
		margin: 0 0 4px !important;
		font-size: 22px !important;
		line-height: 1.3 !important;
		overflow-wrap: anywhere;
	}

	:is(
		.elementor-element-f4c3322,
		.elementor-element-04f6846,
		.elementor-element-fd101dc,
		.elementor-element-2063b5f,
		.elementor-element-fa8bdbf
	) .elementor-image-box-description {
		position: static !important;
		display: block !important;
		height: auto !important;
		margin: 0 !important;
		font-size: 16px !important;
		line-height: 1.5 !important;
		overflow: visible !important;
	}

	/*
	 * Tikroji persidengimo priežastis gyvame puslapyje:
	 * po Image Box einančiam pilkam aprašymui buvo nustatyta margin-top: -119px.
	 */
	:is(
		.elementor-element-f4c3322,
		.elementor-element-04f6846,
		.elementor-element-fd101dc,
		.elementor-element-2063b5f,
		.elementor-element-fa8bdbf
	) + p {
		position: static !important;
		transform: none !important;
		display: block !important;
		height: auto !important;
		min-height: 0 !important;
		margin: 14px 0 0 !important;
		clear: both !important;
	}

	/*
	 * Šių keturių kortelių bendras konteineris mobiliajame vaizde turi
	 * papildomą 64 px gap. -50 px palieka tvarkingą 14 px vizualų tarpą.
	 * Kiga Studio neliečiama, nes jos konteinerio gap yra 0 px.
	 */
	:is(
		.elementor-element-04f6846,
		.elementor-element-fd101dc,
		.elementor-element-2063b5f,
		.elementor-element-fa8bdbf
	) + p {
		margin-top: -50px !important;
	}

	/* Elementor redaktorius Paragraph elementą apgaubia papildomu widget DIV. */
	body.elementor-editor-active :is(
		.elementor-element-04f6846,
		.elementor-element-fd101dc,
		.elementor-element-2063b5f,
		.elementor-element-fa8bdbf
	) + .elementor-widget-e-paragraph p {
		position: static !important;
		transform: none !important;
		height: auto !important;
		min-height: 0 !important;
		margin: -50px 0 0 !important;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	/* Planšetės konteinerio gap yra 120 px, todėl paliekame tą patį 14 px tarpą. */
	:is(
		.elementor-element-04f6846,
		.elementor-element-fd101dc,
		.elementor-element-2063b5f,
		.elementor-element-fa8bdbf
	) + p {
		margin-top: -106px !important;
	}

	body.elementor-editor-active :is(
		.elementor-element-04f6846,
		.elementor-element-fd101dc,
		.elementor-element-2063b5f,
		.elementor-element-fa8bdbf
	) + .elementor-widget-e-paragraph p {
		margin-top: -106px !important;
	}
}

@media (max-width: 767px) {
	:is(
		.elementor-element-f4c3322,
		.elementor-element-04f6846,
		.elementor-element-fd101dc,
		.elementor-element-2063b5f,
		.elementor-element-fa8bdbf
	) .elementor-image-box-title {
		font-size: 20px !important;
	}
}
