/*
 * Church & Event Child Theme
 * Mobile Header Modern 2.1
 *
 * Zakres: urządzenia poniżej 959 px.
 *
 * Wersja 2.1:
 * - zachowuje układ nagłówka 2.0,
 * - usuwa główny slider/hero wyłącznie na urządzeniach mobilnych,
 * - nie usuwa slidera z desktopu,
 * - nie ingeruje w treść sekcji "Ogłoszenia".
 */


/* =========================================================
   1. GŁÓWNY ZAKRES MOBILNY
   ========================================================= */

@media only screen and (max-width: 958px) {

	/* -----------------------------------------------------
	   MOBILE TOP BAR
	   ----------------------------------------------------- */

	.responsive-layout header.main-header .mobile-top-bar {
		display: flex !important;
		align-items: center;
		justify-content: center;

		box-sizing: border-box;
		width: 100%;
		min-height: 30px;
		height: 30px;

		margin: 0;
		padding: 3px 10px;

		overflow: hidden;
		text-align: center;
		line-height: 1.2;
	}

	.responsive-layout header.main-header .mobile-top-bar a {
		display: inline-flex;
		align-items: center;

		min-height: 20px;

		margin: 0;
		padding: 0;

		white-space: nowrap;
		text-decoration: none;
	}

	.responsive-layout header.main-header .mobile-top-bar > * {
		max-width: 100%;
	}


	/* -----------------------------------------------------
	   GŁÓWNY WIERSZ NAGŁÓWKA
	   ----------------------------------------------------- */

	.responsive-layout header.main-header .first-row,
	.responsive-layout header.main-header .first-row-wrapper,
	.responsive-layout header.main-header .first-row-left {
		box-sizing: border-box;

		width: 100%;
		max-width: 100%;

		height: auto !important;
		min-height: 0 !important;
	}


	/* -----------------------------------------------------
	   OBSZAR LOGO
	   ----------------------------------------------------- */

	.responsive-layout header.main-header .logo-wrapper {
		display: flex !important;
		align-items: center;

		box-sizing: border-box;

		width: 100%;
		max-width: 100%;

		min-height: 70px;
		height: 70px;

		margin: 0;
		padding: 5px 14px 5px 68px !important;

		overflow: hidden;
	}


	/* -----------------------------------------------------
	   LOGO
	   ----------------------------------------------------- */

	.responsive-layout header.main-header .logo-wrapper .logo {
		display: flex !important;
		align-items: center;
		justify-content: center;

		flex: 1 1 auto;

		box-sizing: border-box;

		width: auto !important;
		min-width: 0 !important;

		height: 100%;

		margin: 0;
		padding: 0 !important;

		overflow: hidden;
	}

	.responsive-layout header.main-header .logo-wrapper .logo img {
		display: block;

		width: auto;
		max-width: 100%;
		height: auto;
		max-height: 58px;

		margin: 0 auto;
		padding: 0 !important;
	}


	/* -----------------------------------------------------
	   PRAWA CZĘŚĆ — WYSZUKIWARKA
	   ----------------------------------------------------- */

	.responsive-layout header.main-header .logo-wrapper .mobile-logo-additions {
		display: flex !important;
		align-items: center;
		justify-content: center;

		flex: 0 0 44px;

		box-sizing: border-box;

		width: 44px !important;
		min-width: 44px;

		height: 100%;

		margin: 0;
		padding: 0;
	}

	.responsive-layout header.main-header .logo-wrapper .mobile-logo-additions .header-search {
		display: inline-flex;
		align-items: center;
		justify-content: center;

		box-sizing: border-box;

		width: 42px;
		height: 42px;

		margin: 0;
		padding: 0;
	}


	/* -----------------------------------------------------
	   HAMBURGER
	   ----------------------------------------------------- */

	.responsive-layout header.main-header #mp-menu-trigger {
		position: absolute;

		top: 50%;
		left: 5px;

		z-index: 600;

		box-sizing: border-box;

		width: 58px;
		height: 58px;

		margin-top: -29px;
		padding: 0;
	}

	.responsive-layout header.main-header #mp-menu-trigger::before {
		top: 50%;
		left: 50%;

		width: 34px;
		height: 34px;

		margin-top: -17px;
		margin-left: -17px;

		font-size: 34px;
		line-height: 1;
	}


	/* -----------------------------------------------------
	   OCHRONA PRZED POZIOMYM SCROLLEM
	   ----------------------------------------------------- */

	.responsive-layout header.main-header,
	.responsive-layout header.main-header .first-row,
	.responsive-layout header.main-header .first-row-wrapper,
	.responsive-layout header.main-header .first-row-left,
	.responsive-layout header.main-header .logo-wrapper {
		max-width: 100%;
	}

	.responsive-layout header.main-header img {
		max-width: 100%;
	}


	/* =====================================================
	   2. SLIDER / HERO — TYLKO MOBILE
	   =====================================================

	   Motyw korzysta z zewnętrznego mechanizmu slidera.
	   Ukrywamy typowe kontenery Master Slider / LayerSlider
	   tylko poniżej 959 px.

	   Desktop pozostaje bez zmian.
	   ===================================================== */

	.master-slider,
	.ms-parent,
	#masterslider,
	#master-slider,
	#layerslider,
	.ls-wp-container {
		display: none !important;
	}

	/* Jeżeli wrapper slidera zachował wysokość, usuń ją. */
	.ms-parent,
	.ls-wp-container {
		height: 0 !important;
		min-height: 0 !important;
		max-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden !important;
	}


	/* -----------------------------------------------------
	   PUSTA PRZESTRZEŃ PO SLIDERZE
	   ----------------------------------------------------- */

	#main-content > .limit-wrapper > .ms-parent,
	#main-content > .limit-wrapper > .ls-wp-container {
		margin: 0 !important;
		padding: 0 !important;
	}



	/* -----------------------------------------------------
	   OSTATNIA KOSMETYKA — MNIEJSZA PRZERWA POD NAGŁÓWKIEM
	   ----------------------------------------------------- */

	/* Delikatnie podnosimy pierwszy element treści.
	   Nie zmieniamy jego wielkości ani marginesów wewnętrznych. */
	.responsive-layout #main-content {
		margin-top: -12px;
	}

	/* =====================================================
	   3. MAŁE TELEFONY
	   ===================================================== */

	@media only screen and (max-width: 380px) {

		.responsive-layout header.main-header .mobile-top-bar {
			min-height: 29px;
			height: 29px;
			padding: 3px 8px;
		}

		.responsive-layout header.main-header .logo-wrapper {
			min-height: 67px;
			height: 67px;
			padding: 4px 9px 4px 62px !important;
		}

		.responsive-layout header.main-header .logo-wrapper .logo img {
			max-height: 55px;
		}

		.responsive-layout header.main-header #mp-menu-trigger {
			left: 3px;

			width: 54px;
			height: 54px;

			margin-top: -27px;
		}

		.responsive-layout header.main-header #mp-menu-trigger::before {
			width: 31px;
			height: 31px;

			margin-top: -15.5px;
			margin-left: -15.5px;

			font-size: 31px;
		}

		.responsive-layout header.main-header .logo-wrapper .mobile-logo-additions {
			flex-basis: 40px;
			width: 40px !important;
			min-width: 40px;
		}

		.responsive-layout header.main-header .logo-wrapper .mobile-logo-additions .header-search {
			width: 38px;
			height: 38px;
		}
	}
}

/* =========================================================
   4. CYTATY Z BIBLII — KOREKTA WYSOKOŚCI MOBILE
   Na komputerze bez zmian.
   Sekcja ma kończyć się zaraz po treści cytatu.
   ========================================================= */

@media only screen and (max-width: 958px) {

    .responsive-layout .homepage-bible {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin-top: 18px !important;
        margin-bottom: 0 !important;
        padding-top: 15px !important;
        padding-bottom: 20px !important;
        overflow: hidden !important;
    }

    .responsive-layout .homepage-bible .wpv-parallax-bg-img {
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        background-size: cover !important;
        background-position: center center !important;
    }

    .responsive-layout .homepage-bible .wpv-parallax-bg-content,
    .responsive-layout .homepage-bible .extended-column-inner,
    .responsive-layout .homepage-bible .row,
    .responsive-layout .homepage-bible .homepage-bible-content {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .responsive-layout .homepage-bible .homepage-bible-content {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .responsive-layout .homepage-bible .homepage-bible-content h2 {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .responsive-layout .homepage-bible #dailyVersesWrapper {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}


/* =========================================================
   5. CYTATY Z BIBLII — PRECYZYJNA KOREKTA VAMTAM
   Tylko mobile. Desktop bez zmian.
   ========================================================= */

@media only screen and (max-width: 958px) {

    #wpv-column-5e385bac17d530fc19ac8c93cb14c9a4.homepage-bible {
        min-height: 0 !important;
        height: auto !important;
        padding-top: 15px !important;
        padding-bottom: 20px !important;
    }

    #wpv-column-5e385bac17d530fc19ac8c93cb14c9a4.homepage-bible
    .wpv-parallax-bg-content,
    #wpv-column-5e385bac17d530fc19ac8c93cb14c9a4.homepage-bible
    .extended-column-inner,
    #wpv-column-5e385bac17d530fc19ac8c93cb14c9a4.homepage-bible
    > .wpv-parallax-bg-content > .extended-column-inner > .row {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    #wpv-column-5e385bac17d530fc19ac8c93cb14c9a4.homepage-bible
    .homepage-bible-content {
        height: auto !important;
        min-height: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    #wpv-column-5e385bac17d530fc19ac8c93cb14c9a4.homepage-bible
    .homepage-bible-links {
        height: auto !important;
        min-height: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}
