* {
	box-sizing: border-box;
}

html, body {
	overflow-x: hidden;
	max-width: 100%;
}

img {
	max-width: 100%;
	height: auto;
}

img[width][height] {
	height: auto;
}

@media (max-width: 1000px) {

	.stred {
		width: auto;
		max-width: 950px;
		padding-left: 20px;
		padding-right: 20px;
	}

	.hlavicka_logo {
		margin-top: 20px;
	}

	#tlacitka {
		margin: 55px -8px 0px 0px;
	}

	#tlacitka a:link, #tlacitka a:visited {
		padding-left: 8px;
		padding-right: 8px;
		font-size: 14px;
	}

	.obsah hr {
		width: 100%;
		margin-left: 0;
		margin-right: 0;
	}

	.bezova .obr_kostel {
		right: 20px;
	}
}

@media (max-width: 768px) {

	.hlavicka {
		height: auto;
		padding-bottom: 15px;
		background-image: none;
		border-bottom: 3px solid #B40B27;
	}

	.hlavicka .stred {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.hlavicka_logo {
		float: none;
		width: auto;
		max-width: 260px;
		margin: 18px auto 0;
		text-align: center;
	}

	.hlavicka_logo img {
		width: 100%;
		height: auto;
	}

	#tlacitka {
		float: none;
		width: 100%;
		margin: 12px 0 0 0;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}

	#tlacitka li {
		float: none;
	}

	#tlacitka a:link, #tlacitka a:visited {
		float: none;
		display: block;
		padding: 12px 14px;
		font-size: 15px;
	}

	.foto {
		height: 300px;
		background-size: cover;
		background-position: center center;
	}

	h1 {
		font-size: 34px;
		margin-top: 35px;
		margin-bottom: 22px;
	}

	h2 {
		font-size: 30px;
	}

	.cervena {
		font-size: 15px;
	}

	.bezova .obr_kostel {
		position: static;
		display: block;
		float: none;
		margin: 20px auto 0;
	}

	.bezova .stred {
		text-align: center;
	}

	.bezova ul {
		display: inline-block;
		text-align: left;
	}

	.obr_vylety {
		float: none;
		display: block;
		margin: 25px auto 20px;
	}

	.obsah h2[style] {
		margin-top: 25px !important;
	}

	.owl-foto {
		max-width: 100%;
	}

	.owl-foto .owl-item img {
		width: 100%;
		height: auto;
	}

	.owl-foto.owl-theme .owl-nav [class*="owl-"] {
		width: 36px;
		height: 52px;
	}

	.obsah[style] {
		padding: 40px 0 !important;
	}

	.galerie {
		text-align: center;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 8px;
	}

	.galerie > a {
		display: inline-block;
	}

	.galerie img {
		margin: 0;
	}

	.album {
		float: none;
		flex: 0 0 100%;
		display: block;
		width: 100%;
		max-width: 361px;
		margin-left: auto;
		margin-right: auto;
		margin-top: 25px;
	}

	.album img {
		width: 100%;
		height: auto;
	}

	.album .jmeno {
		width: 100%;
		height: auto;
	}

	.obsah table {
		width: 100% !important;
		max-width: 100%;
		border-collapse: collapse;
	}

	.obsah table td {
		width: auto !important;
		display: block;
		text-align: center;
	}

	.obsah table td {
		padding: 1px 0;
		min-height: 0;
		line-height: 150%;
	}

	.obsah table tr {
		display: block;
		padding: 3px 0;
	}

	.obsah table td strong {
		display: block;
		margin-top: 14px;
		padding-top: 12px;
		border-top: 1px solid #E4D9C2;
		color: #B40B27;
		font-size: 16px;
	}

	.zapati {
		text-align: center;
	}

	.zapati table,
	.zapati tbody,
	.zapati tr {
		display: block;
		width: 100% !important;
	}

	.zapati td {
		display: block;
		width: 100% !important;
		text-align: center !important;
		padding: 10px 0;
	}

	.zapati td img {
		display: inline-block;
	}

	a.menu_zapati:link, a.menu_zapati:visited {
		width: auto;
		display: inline-block;
		margin: 0 8px;
	}

	.realizace a:link, .realizace a:visited {
		float: none;
		display: block;
		text-align: center;
		margin-top: 15px;
	}

	.col-2 {
		width: 100%;
		padding-right: 0;
		display: block;
	}

	.formular input[type=submit] {
		width: 100%;
	}

	#mapa_vylety,
	#mapa_kontakt {
		height: 320px;
	}
}

@media (max-width: 560px) {

	body {
		font-size: 15px;
	}

	.stred {
		padding-left: 16px;
		padding-right: 16px;
	}

	#tlacitka a:link, #tlacitka a:visited {
		padding: 11px 12px;
		font-size: 14px;
	}

	.foto {
		height: 200px;
	}

	h1 {
		font-size: 27px;
		text-align: center;
	}

	h2 {
		font-size: 24px;
	}

	.cervena {
		padding: 25px 0;
	}

	.obsah {
		text-align: center;
	}

	.obsah ul {
		display: inline-block;
		text-align: left;
		padding-left: 20px;
		margin-left: auto;
		margin-right: auto;
	}

	.obsah p,
	.obsah h1,
	.obsah h2 {
		text-align: center;
	}

	.owl-foto.owl-theme .owl-nav [class*="owl-"] {
		width: 32px;
		height: 46px;
	}

	.owl-foto.owl-theme .owl-nav [class*="owl-"]::before {
		width: 10px;
		height: 10px;
		border-top-width: 2px;
		border-right-width: 2px;
	}

	.galerie > img,
	.galerie > a > img {
		width: 100%;
		max-width: 180px;
		height: auto;
	}

	.galerie > a {
		flex: 0 0 46%;
		max-width: 180px;
		display: flex;
		justify-content: center;
	}

	.album {
		flex: 0 0 100%;
		width: 100%;
		max-width: 100%;
		margin-top: 30px;
	}

	.album a {
		flex: none;
		max-width: 100%;
		display: block;
	}

	.album img {
		width: 100%;
		max-width: 100%;
	}

	.obsah table td {
		font-size: 15px;
		padding: 2px 0;
	}

	.obsah table td:last-child {
		color: #B40B27;
		font-weight: 500;
	}

	.zapati {
		padding-top: 30px;
	}

	.zapati td {
		border-bottom: 1px solid #D8C39B;
	}

	.zapati td:last-child {
		border-bottom: none;
	}

	.zapati span {
		display: inline-block;
		margin-bottom: 4px;
	}

	#mapa_vylety,
	#mapa_kontakt {
		height: 260px;
	}

	#statistiky {
		text-align: center;
	}
}

@media (max-width: 360px) {

	#tlacitka a:link, #tlacitka a:visited {
		padding: 10px 9px;
		font-size: 13px;
	}

	h1 { font-size: 24px; }
	h2 { font-size: 21px; }

	.galerie img {
		width: 70%;
		max-width: 180px;
	}
}
