/*
Theme Name: PBV Divi Child
Description: Child theme pro lokální web Potravinové banky Vysočina.
Template: Divi
Version: 1.0.0
Text Domain: pbv-divi-child
*/

/* Local heading font with complete Czech glyph coverage. */
@font-face {
	font-family: "PBV Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/Inter-VariableFont_slnt,wght.woff2") format("woff2");
}

/* Visible main heading inside the home-page hero section. */
.pbv-home-main-title {
	color: #fff;
	margin: 0 0 clamp(20px, 2vw, 28px);
	padding: 0;
	font-size: clamp(28px, calc(24px + 1.25vw), 42px);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}

/* Let the AJAX-loaded Easy Social Feed determine the Divi Code module height. */
#akt .et_pb_code:has(.efbl_feed_wraper) {
	height: auto;
	min-height: 0;
	max-height: none;
}

#page-container h1,
#page-container h2,
#page-container h3,
#page-container h4,
#page-container h5,
#page-container h6 {
	font-family: "PBV Inter", Helvetica, Arial, sans-serif;
}

/* Brand styles migrated from the former pbv-divi-child Custom CSS object. */
#footer-info a,
#footer-bottom .et-social-facebook a {
	color: #36a4f0;
}

a.glink span {
	margin-right: 3px;
	font-size: 10px;
	vertical-align: middle;
	color: white;
}

#top-menu a {
	color: rgb(124 198 141);
}

.et_color_scheme_green #top-header,
.et_color_scheme_green .et_pb_counters .et_pb_counter_amount,
.et_color_scheme_green .et_pb_featured_table .et_pb_pricing_heading {
	background: #246e39;
}

#et-footer-nav .bottom-nav li.current-menu-item a {
	color: #7cc68d;
}

/* Cílené responzivní pojistky pro první dávku oprav. */
#tym .et_pb_row_inner {
	width: 100% !important;
	max-width: 900px !important;
}

#tym .et_pb_row_inner > .et_pb_column {
	max-width: 100%;
}

#podporovatele .et_pb_text {
	margin-right: 0 !important;
}

#podporovatele .et_pb_row,
#podporovatele .et_pb_gallery,
#podporovatele .et_pb_gallery_items {
	height: auto !important;
	min-height: 0 !important;
}

#podporovatele .et_pb_gallery {
	overflow: visible;
}

#podporovatele .et_pb_gallery_item {
	transform: none !important;
}

#podporovatele .et_pb_gallery_image img {
	height: auto;
	object-fit: contain;
}

#pbvbank {
	height: auto !important;
	min-height: 0 !important;
	margin-top: 0 !important;
}

#media .et_pb_video_slider {
	width: 100% !important;
	max-width: 100% !important;
}

/* Second-batch safeguards for the mobile contact bar and navigation. */
@media (max-width: 980px) {
	.et_pb_side_nav {
		display: none !important;
	}

	#media .et_pb_text,
	#podporovatele .et_pb_text {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		padding-right: 0 !important;
	}

	#main-header .et_mobile_menu {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		overflow-x: visible;
		overflow-y: auto;
	}

	#main-header .et_mobile_menu li a {
		display: flex;
		align-items: center;
		min-height: 44px;
		white-space: normal;
		overflow-wrap: anywhere;
		line-height: 1.35;
	}
}

@media (max-width: 340px) {
	#top-header,
	#main-header {
		position: relative !important;
		top: auto !important;
	}

	#page-container {
		padding-top: 0 !important;
	}

	#top-header #et-info {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 4px;
		padding: 10px 0;
		line-height: 1.35;
	}

	#top-header #et-info-phone,
	#top-header #et-info-email {
		display: block;
		margin: 0;
		white-space: nowrap;
	}
}

/* Third-batch mobile presentation for team profiles and supporter logos. */
@media (max-width: 767px) {
	#tym .et_pb_row_inner > .et_pb_column {
		float: none;
		width: 100% !important;
		max-width: 100%;
		margin-right: 0 !important;
	}

	#tym .et_pb_blurb {
		box-sizing: border-box;
		min-height: 0;
		padding: 24px 18px 20px !important;
	}

	#tym .et_pb_blurb_content {
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 100%;
		max-width: 100%;
	}

	#tym .et_pb_main_blurb_image {
		display: block;
		max-width: 100%;
		margin: 0 auto 16px !important;
	}

	#tym .et_pb_main_blurb_image img {
		width: auto;
		max-width: 100%;
		height: auto;
	}

	#tym .et_pb_blurb_container {
		display: block;
		width: 100%;
		padding-left: 0 !important;
		text-align: center;
	}

	#tym .et_pb_module_header,
	#tym .et_pb_blurb_description,
	#tym .et_pb_column_inner .et_pb_text_inner {
		word-break: normal;
		overflow-wrap: normal;
		hyphens: none;
	}

	#tym .et_pb_column_inner .et_pb_text {
		min-height: 0 !important;
		margin-top: 0 !important;
		text-align: center;
	}

	#tym .et_pb_column_inner + .et_pb_column_inner {
		margin-top: 20px;
	}

	#podporovatele .et_pb_gallery_item,
	#podporovatele .et_pb_gallery_image {
		text-align: center;
	}

	#podporovatele .et_pb_gallery_image img {
		display: block;
		max-width: 100%;
		margin-right: auto;
		margin-left: auto;
	}
}
