@media screen and (max-width: 1680px) {
	header .swiper-slide img {
		width: 100%;
	}
}

@media screen and (max-width: 1199px) {
	.container {
		max-width: 94%;
	}
	#main img {
		max-width: 100%;
		height: auto;
		display: block;
		margin: 0;
	}
	.navbar-nav>li {
		margin-left: 20px;
	}
	.navbar-nav a {
		font-size: 0.8rem;
	}
	.logo {
		flex-direction: column;
		align-items: flex-start;
	}
	.logo img {
		margin-right: 0;
		margin-bottom: 10px;
	}
	.logo span em, .logo span strong {
		display: inline;
	}
	.logo span {
		font-size: 1.1rem;
	}
	#navbar.affix .logo span {
		line-height: 1em;
		font-size: 0.8rem;
	}
	#fotorelacje .grid a .caption {
		padding: 90px 15px 15px;
		width: calc(100% - 30px);
	}
	.sub article #events h4 {
		margin-top: 15px;
		font-size: 1rem;
	}
	.table-responsive {
		width: 100%;
		overflow-x: auto;
	}
	header .swiper-container, header .swiper-slide a {
		height: 100%;
	}
	header .swiper-slide a img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center;
	}
}

@media screen and (max-width: 1023px) {
	.navbar__toggler {
		display: block;
		padding: 4px;
		border: 1px solid transparent;
		background: transparent;
		-webkit-transition: all 0.2s;
		transition: all 0.2s;
	}
	.navbar__toggler span {
		width: 30px;
		height: 3px;
		display: block;
		background: #fff;
		margin: 4px;
		-webkit-transition: all 0.2s;
		transition: all 0.2s;
	}
	.navbar__toggler.show {
		border-color: transparent;
		padding: 0;
	}
	.navbar__toggler.show span:nth-child(2) {
		opacity: 0;
		height: 0;
	}
	.navbar__toggler.show span:first-child {
		-webkit-transform: rotate(-45deg) translateY(4.5px);
		transform: rotate(-45deg) translateY(4.5px);
	}
	.navbar__toggler.show span:last-child {
		-webkit-transform: rotate(45deg) translateY(-4.5px);
		transform: rotate(45deg) translateY(-4.5px);
	}
	.navbar-nav {
		display: block;
		position: absolute;
		top: 0;
		left: 0;
		width: 50vw;
		min-width: 270px;
		height: 100vh;
		overflow-y: auto;
		background: rgba(0, 0, 0, 0.9);
		-webkit-box-shadow: 10px 0 15px rgba(0, 0, 0, 0.1);
		box-shadow: 10px 0 15px rgba(0, 0, 0, 0.1);
		-webkit-transition: all 0.2s;
		transition: all 0.2s;
		-webkit-transform-origin: left;
		transform-origin: left;
		-webkit-transform: scaleX(0);
		transform: scaleX(0);
		opacity: 0;
	}
	.navbar-nav.show {
		-webkit-transform: scaleX(1);
		transform: scaleX(1);
		opacity: 1;
	}
	.navbar-nav a, .navbar-nav li {
		display: block;
		width: 100%;
		margin: 0;
	}
	.navbar-nav a::after, .navbar-nav li::after {
		display: none;
	}
	.navbar-nav a {
		width: calc(100% - 30px);
		padding: 15px;
		border-top: 1px solid rgba(255, 255, 255, 0.2);
		color: #fff;
	}
	.navbar-nav a.active, .navbar-nav a:focus, .navbar-nav a:hover {
		background: #00afd7;
		color: #fff;
	}
	.navbar-nav .dropdown {
		position: relative;
		top: 0;
		left: 0;
		width: 100%;
		-webkit-box-shadow: none;
		box-shadow: none;
		background: rgba(0, 0, 0, 0.05);
		max-height: 0;
	}
	.navbar-nav .dropdown a.active, .navbar-nav .dropdown a:focus, .navbar-nav .dropdown a:hover {
		background: #00647b !important;
		color: #fff;
	}
	.navbar-nav li:hover>.dropdown {
		max-height: 100%;
	}
	.sub article.col-8, .sub article.col-9, .sub aside.col-3, .sub aside.col-4 {
		width: 100%;
		max-width: 100%;
		-ms-flex-preferred-size: 100%;
		flex-basis: 100%;
		margin-right: 0;
	}
	aside.col-4 #events .card_img {
		width: 20%;
	}
	.has_aside {
		display: flex;
		flex-direction: column-reverse;
	}
	#subPages .col-4, #subPages .col-8 {
		width: 100%;
		max-width: 100%;
		flex-basis: 100%;
		margin-right: 0;
		margin-left: 0;
	}
}

@media screen and (max-width: 800px) {
	#main .col-3, #main .col-9, article.col-7, aside.col-4 {
		width: 100%;
		max-width: 100%;
		-ms-flex-preferred-size: 100%;
		flex-basis: 100%;
		margin-right: 0;
	}
	aside.col-4 {
		margin-top: 30px;
	}
	.home #events .card_img, aside #news .card_img {
		width: 20%;
	}
	#events .card .place {
		margin-top: 15px;
		padding-top: 15px;
	}
	#fotorelacje .grid {
		grid-template-columns: repeat(4, 1fr);
	}
	#fotorelacje .grid a {
		grid-column: span 2;
	}
	#fotorelacje .grid a:first-child {
		grid-column: span 4;
	}
	header .swiper-slide img {
		width: 100%;
		height: 250px;
		object-fit: cover;
		object-position: center;
	}
	header .swiper-slide a strong {
		bottom: 15px;
		left: 15px;
		font-size: 1.2rem;
	}
	header .col-4 a {
		font-size: 1rem;
	}
	#newsletter .ic {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
	}
	.newsletter_title {
		margin-right: 0;
		margin-bottom: 15px;
	}
}

@media screen and (max-width: 768px) {
	#main .col-4, #main .col-8 {
		width: 100%;
		max-width: 100%;
		-ms-flex-preferred-size: 100%;
		flex-basis: 100%;
		margin-right: 0;
	}
	.grid-4 .col-3 {
		width: calc(99.99% * 6 / 12 - (30px - 30px * 6 / 12));
		max-width: calc(99.99% * 6 / 12 - (30px - 30px * 6 / 12));
		-ms-flex-preferred-size: calc(99.99% * 6 / 12 - (30px - 30px * 6 / 12));
		flex-basis: calc(99.99% * 6 / 12 - (30px - 30px * 6 / 12));
		margin-right: 30px;
	}
	.grid-4 .col-3:nth-child(2n) {
		margin-right: 0;
	}
}

@media screen and (max-width: 640px) {
	.five-cols a {
		max-width: calc(100% * 1 / 3 - (30px - 30px * 1 / 3));
		width: calc(100% * 1 / 3 - (30px - 30px * 1 / 3));
		-ms-flex-preferred-size: calc(100% * 1 / 4 - (30px - 30px * 1 / 2));
		flex-basis: calc(100% * 1 / 3 - (30px - 30px * 1 / 3));
		margin-right: 30px;
	}
	.five-cols a:nth-child(5n) {
		margin-right: 30px;
	}
	.five-cols a:nth-child(3n) {
		margin-right: 0;
	}
	footer .col-4, header .col-4, header .col-8 {
		width: 100%;
		max-width: 100%;
		flex-basis: 100%;
		margin-right: 0;
		margin-bottom: 30px;
		text-align: center;
	}
	header .col-4 {
		margin-bottom: 0;
	}
	header .col-4 a {
		font-size: 1rem;
		padding: 10px;
		display: block;
		height: 50px;
		text-align: left;
	}
	header .row.istr {
		align-items: flex-start;
	}
	.home header {
		height: auto;
	}
	header .col-4 {
		display: block;
	}
	header .col-4 a strong {
		display: flex;
		max-width: 35%;
		align-items: center;
		height: 100%;
	}
}

@media screen and (max-width: 600px) {
	.four-cols a {
		max-width: calc(100% * 1 / 2 - (30px - 30px * 1 / 2));
		width: calc(100% * 1 / 2 - (30px - 30px * 1 / 2));
		-ms-flex-preferred-size: calc(100% * 1 / 4 - (30px - 30px * 1 / 2));
		flex-basis: calc(100% * 1 / 2 - (30px - 30px * 1 / 2));
		margin-right: 30px;
	}
	.four-cols a:nth-child(2n) {
		margin-right: 0;
	}
	form fieldset.col {
		width: 100%;
		max-width: 100%;
		-ms-flex-preferred-size: 100%;
		flex-basis: 100%;
		margin-right: 0;
	}
	#main .col-5, #main .col-7 {
		width: 100%;
		max-width: 100%;
		-ms-flex-preferred-size: 100%;
		flex-basis: 100%;
		margin-right: 0;
	}
	header .swiper-slide img {
		width: 100%;
		height: 40vh;
		-o-object-fit: cover;
		object-fit: cover;
		-o-object-position: center;
		object-position: center;
	}
	/* article .card.horizontal {
		flex-direction: column-reverse;
		align-items: flex-start;
		justify-content: flex-start;
	}
	article .card.horizontal .card_img {
		width: 100%;
		overflow: hidden;
		margin: 0 0 15px;
	} */
	article #news .card.horizontal:first-of-type .card_body {
		background: #f2f2f2;
		padding: 15px;
		width: calc(100% - 30px);
	}
	article .card.horizontal {
		align-items: flex-start;
	}
}

@media screen and (max-width: 480px) {
	.three-cols a {
		max-width: calc(100% * 1 / 2 - (30px - 30px * 1 / 2));
		width: calc(100% * 1 / 2 - (30px - 30px * 1 / 2));
		-ms-flex-preferred-size: calc(100% * 1 / 4 - (30px - 30px * 1 / 2));
		flex-basis: calc(100% * 1 / 2 - (30px - 30px * 1 / 2));
		margin-right: 30px;
	}
	.three-cols a:nth-child(3n) {
		margin-right: 30px;
	}
	.three-cols a:nth-child(2n) {
		margin-right: 0;
	}
	.five-cols a {
		max-width: calc(100% * 1 / 2 - (30px - 30px * 1 / 2));
		width: calc(100% * 1 / 2 - (30px - 30px * 1 / 2));
		-ms-flex-preferred-size: calc(100% * 1 / 4 - (30px - 30px * 1 / 2));
		flex-basis: calc(100% * 1 / 2 - (30px - 30px * 1 / 2));
		margin-right: 30px;
	}
	.five-cols a:nth-child(3n) {
		margin-right: 30px;
	}
	.five-cols a:nth-child(2n) {
		margin-right: 0;
	}
	#main .col-6 {
		width: 100%;
		max-width: 100%;
		-ms-flex-preferred-size: 100%;
		flex-basis: 100%;
		margin-right: 0;
	}
	footer .cb {
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		-ms-flex-direction: column;
		flex-direction: column;
	}
	.madeby {
		margin-top: 15px;
	}
	.sub .h1, .sub h1 {
		font-size: 2.8rem;
	}
	#newsletter {
		padding: 20px;
	}
	.newsletter_form .form-group input {
		max-width: 100%;
	}
	.newsletter_form .form-group button {
		padding: 0 10px;
		font-size: 0.9rem;
	}
	.fb_iframe_widget_fluid {
		display: block !important;
		margin: 15px auto 30px;
		position: relative;
		right: -11px;
	}

	.tools {
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
}

@media screen and (max-width: 435px) {
	#fotorelacje .grid a {
		grid-column: span 4;
		grid-row: span 1 !important;
		overflow: hidden;
		max-height: 30vh;
	}
	#fotorelacje .grid a:first-child {
		max-height: 60vh;
	}
	#partners {
		padding: 30px 0;
	}
	#partners .row .col-3 {
		width: 100%;
		max-width: 100%;
		flex-basis: 100%;
		margin-right: 0;
		margin: 15px 0;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	#main .col-12 {
		margin-right: 0;
	}
	.sub #main .thumbnail.col-4 {
		width: 100% !important;
		max-width: 666% !important;
		margin: 0 0 15px !important;
		float: none;
	}
	article .card.horizontal .card_img {
		max-width: 100px;
		margin-left: 15px;
	}
}

@media screen and (max-width: 414px) {
	.container {
		max-width: 90%;
	}
	.navbar_buttons a img {
		height: 20px;
	}
	.logo img {
		margin-right: 10px;
	}
	.home #events .card_img, aside #news .card_img {
		width: 35%;
	}
	.grid-4 .col-3 {
		width: 100%;
		max-width: 100%;
		flex-basis: 100%;
		margin-right: 0;
	}
	.grid-4 .col-3:nth-child(2n) {
		margin-right: 0;
	}
	.sub .h1, .sub h1 {
		font-size: 2.3rem;
	}
}

@media screen and (max-width: 375px) {
	.downloads a {
		padding: 15px;
		width: calc(100% - 30px);
		margin-bottom: 15px;
	}
	.downloads .text strong {
		line-height: 1.3em;
	}
	.downloads a img {
		max-width: 25px;
		margin-right: 15px;
	}
	.logo span {
		font-size: 0.9rem !important;
		line-height: 1.3em;
	}
	.logo img {
		height: 55px;
	}
	article .card.horizontal h3 a {
		font-size: 1rem;
	}
	article .card.horizontal small {
		font-size: 0.8rem;
	}
}