/*
Theme Name: CSSK Main
Theme URI: https://www.cssk.ca/
Author: Jindřich "Hank" Mika
Author URI: https://www.hankmika.com
Description: A custom WordPress theme for the CSAC.
Version: 1.0
License: Proprietary License
License URI: N/A
Text Domain: cssk-main
*/

:root {
	--blue: #152F86;
	--blue-dark: #0F1A3F;
	--blue-light: #E5EBFF;
	--red: #D11725;
	--red-dark: #8F0D16;
	--grey: #444444;
	--grey-alt: #878c9f;
}

/* general */

* {
	box-sizing: border-box;
}

/* Reset styles for input and textarea */
input,
textarea {
	all: unset; /* Resets most styles */
	box-sizing: border-box;
	width: 100%;
	font-family: inherit;
	font-size: inherit;
	color: inherit;
	background: none;
	border: none;
	outline: none;
	padding: 0;
	margin: 0;
	resize: none;
}

html, body {
	background-color: var(--blue-dark);
	color: var(--blue);
	padding: 0;
	margin: 0;
	font-family: 'Onest', sans-serif;
}

body {
	min-width: 360px;
}

h1 {
	font-size: 3em;
	font-weight: 600;
}

h2 {
	margin-top: 0;
	font-size: 2em;
}

a, a:hover {
	color: var(--blue);
}

a:hover {
	text-decoration: none;
}

a.button {
	display: inline-block;
	text-decoration: none;
	padding: 0.25em 1em;
	margin: 0 0.5em;
	border: 1px solid var(--blue);
	border-radius: 2em;

	transition: all 0.2s ease-in-out;
}

a.button:hover {
	text-decoration: none;
	background-color: var(--blue);
	color: #fff;
}

a.button.red {
	color: #fff;
	background-color: var(--red);
	border-color: var(--red);
}

a.button.red:hover {
	background-color: var(--red-dark);
	border-color: var(--red-dark);
}

a.button.cta {
	padding: 0.75em 2em;
}

nav ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

#single article {
	margin: 0 auto;
	max-width: 750px;
}

#single article h1 {
	margin-top: 1rem;
}

#single article small.date {
	display: inline-block;
	margin-top: 3rem;
}

#single article .post-thumbnail {
	border-radius: 1.5rem;
	overflow: hidden;
	max-height: 480px;
	font-size: 0px;
	margin: 2rem 0;
}

#single article .post-thumbnail img {
	width: 100%;
	height: auto;
}

#single article p {
	font-size: 1.125em;
	line-height: 1.5;
}

.wrapper {
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	padding: 2rem 2rem;
	position: relative;
}

.nolist {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

.nolist li {
	margin: 0.25rem 0.25rem 0.25rem 0;
	padding: 0;
	display: inline-block;
}

.btn-outline {
	border: 1px solid var(--blue);
	color: var(--blue);
	border-radius: 2em;
	display: inline-block;
	padding: 0.4em 1.2em;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.btn-outline:hover, .btn-outline.selected {
	background-color: var(--blue);
	color: #fff;
}

.filter {
	margin: 2rem 0;
}

.filter strong {
	font-weight: 500;
}

.filter ul {
	margin: 1rem 0;
}

.postlist {
	display: flex;
	justify-content: flex-start;
	gap: 1rem;
	flex-wrap: wrap;
}

.postlist .post {
	border: 1px solid var(--blue-light);
	border-radius: 1em;
	display: inline-block;
	transition: background 0.2s;

	width: calc(33.333% - 0.7rem);
}

.postlist .post:hover {
	background-color: var(--blue-light);
}

.postlist .post a {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	padding: 0.6em;
	height: 100%;
}

.postlist .post .post-texts {
	padding: 0.6em 0.5em;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.postlist .post .post-texts h2 {
	margin: 1rem 0;
	font-size: 1.5em;
	font-weight: 500;
}

.postlist .post .post-meta {
	display: flex;
	justify-content: space-between;
}

.postlist .post .post-thumbnail {
	line-height: 0;
}

.postlist .post .post-thumbnail img {
	border-radius: 0.6em;
	width: 100%;
	max-height: 12em;
	min-height: 100%;
	object-fit: cover;
}

.events-header {
	font-weight: 500;
	padding: 1em 0;
	text-transform: uppercase;
}

.event {
	border-top: 1px solid var(--blue);
}

.event:last-child {
	border-bottom: 1px solid var(--blue);
}

.event a {
	text-decoration: none;
	display: block;
	padding: 1em 0;
	position: relative;
}

.event a::after {
	content: "";
	background: linear-gradient(90deg, transparent 0%, var(--blue-light) 50%, transparent 100%);
	opacity: 0;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transition: opacity 0.2s;
}

.event a:hover {
	text-decoration: none;
}

.event a:hover::after {
	opacity: 1;
}

.event .event-texts, .events-header.event-texts {
	display: flex;
	position: relative;
	z-index: 1;
}

/* Define the flex widths */
.events-date, .event-date {
	flex: 0.5; /* Date column */
	text-align: left;
}

.events-title, .event-title {
	flex: 2; /* Event column */
	text-align: left;
	padding: 0 0.5rem;
}

.events-venue, .event-venue {
	flex: 1; /* Venue column */
	text-align: left; /* Changed from right to left */
}

/* HEADER */

header {
	background-color: #fff;
	border-bottom: 1px solid var(--blue-light);
	font-weight: 500;

	width: 100%;
	position: fixed;
	z-index: 100;
}

header .wrapper {
	padding: 1rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 5rem;
}

header nav {
	display: flex;
}

header nav ul {
	margin: 0 2em;
	font-size: 0;
}

header nav ul li {
	display: inline-block;
	margin: 0; /* 0.5em; */
	font-size: 1rem;
}

header nav a {
	text-decoration: none;
	padding: 0.3em 1em;
	position: relative;
}

header nav a:after {
	content: '';
	border-bottom: 1px solid var(--blue);
	display: block;
	position: absolute;
	width: calc(100% - 2rem);
	bottom: 0;
	left: 1rem;
	opacity: 0;
	transition: opacity 0.2s;
}

header nav a:hover:after {
	opacity: 1;
}

header ul.primary-menu-items li:last-child a {
	border: 1px solid var(--blue);
	border-radius: 2em;
	transition: background 0.2s;
	margin: 0 0.5rem
}

header ul.primary-menu-items li:last-child a:hover {
	background-color: var(--blue);
	color: #fff;
}

header ul.primary-menu-items li:last-child a:after {
	display: none;
}

header a.home {
	display: block;
	max-width: 175px;
	width: 50%;
}

header a.home img {
	max-width: 100%;
	max-height: 42px;
}

/* Hamburger Button */
header .menu-toggle {
	display: none;
	width: 40px;
	height: 40px;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 1000;
}

/* Hamburger Icon */
header .menu-icon {
	display: block;
	width: 30px;
	height: 3px;
	background: var(--blue);
	position: relative;
	transition: all 0.3s ease-in-out;
}

header .menu-icon::before,
header .menu-icon::after {
	content: "";
	position: absolute;
	width: 30px;
	height: 3px;
	background: var(--blue);
	transition: all 0.3s ease-in-out;
	display: block;
}

header .menu-icon::before {
	top: -8px;
}

header .menu-icon::after {
	top: 8px;
}

/* Dropdowns */

header .dropdown {
	position: relative;
	display: inline-block;
	display: flex;
}

header .dropbtn {
	background-color: #fff;
	color: var(--blue);
	font-size: 1em;
	font-weight: 500;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 0 1rem;
	text-transform: uppercase;
}

header .dropbtn span.arrow {
	margin-top: -2px;
}

header .dropbtn span.arrow {
	transition: transform 0.2s;
}

header .dropbtn:hover span.arrow {
	transform: translateY(2px);
}

header .dropbtn span img {
	vertical-align: middle;
}

header .dropdown-content {
	display: none;
	position: absolute;
	background-color: white;
	min-width: 80px;
	box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
	z-index: 1;
	font-size: 0.9em;
	margin-top: 1.8rem;
}

header .dropdown-content a {
	padding: 0.5rem 1rem;
	text-decoration: none;
	display: block;
	transition: color 0.1s, background 0.1s;
}

header .dropdown-content a:hover {
	background-color: var(--blue);
	color: #fff;
}

header .dropdown-content a:hover::after {
	display: none;
}

header .dropdown:hover .dropdown-content {
	/*display: block;*/
}

main {
	background-color: #fff;
	padding-top: 5.5rem;
	padding-bottom: 1rem
}

div.split {
	display: flex;
	justify-content: flex-start;
	margin-top: 2rem;
}

div.split h1 {
	margin-top: 0;
}

/* SINGLE */
#single .share {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 2rem 0 0 0;
	padding: 2rem 0;
	border-top: 1px solid var(--blue-light);
}

#single .share a {
	display: inline-block;
	margin-left: 1rem;
}

#single .event-details {
	margin: 2rem 0;
	padding: 0;
}

#single .event-details li {
	list-style-type: none;
	padding: 1rem 0;
	border-top: 1px solid var(--blue-light);
}

#single .event-details li:last-child {
	border-bottom: 1px solid var(--blue-light);
}

#single .event-details li figure {
	display: inline-block;
	vertical-align: middle;
	margin: 0;
	margin-right: 1rem;
}

#single .event-details li figure img {
	height: 1.1em;
	max-width: 1.1em;
}

/* HOME */

#intro {
	text-align: center;
	width: 100%;
	height: calc(100vh - 12rem);
}

#intro h1 {
	font-size: 3em;
	line-height: 1em;
	margin: 1.5rem 0;
}

#intro h2 {
	font-size: 1.2em;
	font-weight: 500;
	margin: 1.5rem 0;
}

#intro p {
	font-size: 1em;
	margin: 1.5rem 0;
}

#intro .wrapper {
	max-width: 44em;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
}

#intro .intro-content {

}

#shuffle {
	font-size: 2em;
	margin: 0 auto;
	position: relative;
	height: 1.3em;
	width: 10em;
	overflow: hidden;
}

#shuffle span {
	position: absolute;
	opacity: 0;
	transition: all 0.5s ease-in-out;
	left: 0;
	right: 0;
}

#map .wrapper .banner {
	margin: 0;
}

#map .map-interactive {
	width: 60%; 
	position: relative;
}

#map .banner .wrapper {
	align-items: flex-start;
}

#map .text {
	width: 40%;
}

#map .banner .text .wrapper {
	display: block;
	padding-right: 0;
}

#map .banner .text .map-branches, #joinus .joinus-branches {
	margin: 1rem 0;
}

#map .banner .text a, #joinus .banner .text a {
	font-size: 0.9em;
	display: inline-block;
	margin: 0.2rem 0.2rem;
}

#map .banner .text a:hover, #joinus .banner .text a:hover {
	color: #fff;
}

#map .banner .text a::after, #joinus .banner .text a::after {
	display: none;
}

#map .banner .text .white-box ul {
	padding: 0;
	margin: 1rem 0;
}

#map .banner .text .white-box ul li {
	list-style-type: none;
	display: flex;
	justify-content: space-between;
	border-bottom: 1px solid var(--blue);
	padding: 1rem 0;
}

#map .banner .text .white-box .btn {
	font-size: 0.8em;
}

#map .map-point {
	display: block; 
	position: absolute; 
	width: 0.7em; 
	height: 0.7em; 
	background-color: var(--blue); 
	border-radius: 2em;
	outline: 0.5em solid rgba(255, 255, 255, 0.5);
	transition: outline 0.2s, background 0.2s;
}

#map .map-point:hover, #map .map-point.selected {
	background-color: var(--red); 
	outline: 0.5em solid rgba(255, 255, 255, 0.8);
}


/* CONTACT */

.branch-contacts ul {
	padding: 0;
	margin: 0;
	border-top: 1px solid var(--blue);
}

.branch-contacts ul li {
	list-style-type: none;
	border-bottom: 1px solid var(--blue);
	padding: 2rem 0;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.branch-contacts ul li h3 {
	margin-top: 0;
	width: 20%;
}

.branch-contacts .branch-contact-text {
	width: 50%;
}

.branch-contacts .branch-contact-text span {
	display: flex;
	align-items: flex-start;
	margin-bottom: 1rem;
}

.branch-contacts .branch-contact-text span:last-child {
	margin-bottom: 0;
}

.branch-contacts .branch-contact-text span figure {
	display: inline-block;
	vertical-align: middle;
	margin: 0;
	margin-right: 1rem;
}

.branch-contacts .branch-contact-text span figure img {
	transform: translateY(1px);
}

.branch-contacts .branch-contact-text span p {
	margin: 0;
}

/* Our community */

#our_community #branches ul.branchlist {
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 1rem;
}

#our_community #branches ul li.branch {
	list-style-type: none;
	display: inline-block;
	border-radius: 1rem;
	border: 1px solid var(--blue-light);
	width: calc(20% - 1rem);
	overflow: hidden;
}

#our_community #branches ul li.branch div.branch_content {
	padding: 1.5rem;
}

#our_community #branches ul li.branch img.hero {
	width: 100%;
	max-height: 95px;
}

#our_community #branches ul li.branch h3 {
	margin-top: 0;
}

#our_community #branches ul li ul {
	padding-left: 1rem;
}

#our_community #branches ul li ul li {
	list-style-type: disc;
}

#our_community #branches ul li.branch.current {

}

#our_community #useful_links ul {
	padding: 0;
	margin: 0;
}

#our_community #useful_links ul li {
	list-style-type: none;
	border-top: 1px solid var(--blue);
}

#our_community #useful_links ul li:last-child {
	border-bottom: 1px solid var(--blue);
}

#our_community #useful_links ul li a {
	text-decoration: none;
	padding: 1rem 0;
	display: block;
}

#our_community #charter .related .banner {
	width: calc(33.33% - 0.5rem);
}

#our_community #charter .related .banner a.wrapper {
	padding: 1rem
}

#our_community #charter .related .banner .arrow.topvoid {
	margin-top: 3rem;
}

/* BANNERS AND BUTTONS */

.white-box {
	border: 1px solid white;
	border-radius: 0.5rem;
	background-color: rgba(255,255,255,0.5);
	padding: 1.5rem;
	margin: 1.5rem 0 0 0;
	box-shadow: 0 0 2rem rgba(15,26,63,0.1);
}

.white-box label {
	font-weight: 500;
	font-size: 0.9em;
}

.white-box input[type=text], .white-box input[type=email], .white-box textarea {
	border-bottom: 1px solid var(--blue);
	margin: 1rem 0 2rem 0;
}

.banner {
	border-radius: 1.5em;
	overflow: hidden;
	/*margin: 2rem 0;*/
	position: relative;
}

.banner h2 {
	font-size: 3.5em;
	margin: 0;
	line-height: 100%;
	font-weight: 600;
}

.banner p {
	font-weight: 300;
	margin: 2em 0;
}

.banner a {
	display: block;
	text-decoration: none;
	color: inherit;
	position: relative;
}

.banner a:after {
	content: '';
	background: #000;
	opacity: 0;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	transition: opacity 0.2s;
	z-index: -1;
}

.banner.lighteffect a:after {
	opacity: 0.4;
	background: #fff;
}

.banner a:hover {
	text-decoration: none;
	color: inherit;
}

.banner a:hover:after {
	opacity: 0.2;
}

.banner.lighteffect a:hover:after {
	opacity: 0;
}

.banner figure {
	display: flex;
	flex-direction: column;
	justify-content: end;
	margin: 0;
	margin-right: 2rem;
	margin-bottom: -2rem;
	max-width: 45%;
}

.banner .wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	z-index: 2;
	height: 100%;
	width: 100%;
}

.banner .text {
	padding: 2rem;
}

.banner .alt h2 {
	font-size: 2em;
}

.banner .alt p {
	margin: 1em 0;
	font-size: 1.5em;
}

.banner .arrow.topvoid {
	margin-top: 10rem;
}

.banner .arrow {
	display: inline-block;
	position: relative;
	width: 5rem;
	height: 3px;
	background-color: var(--blue);
	transition: width 0.2s;
	margin: 1rem 0;
}

.banner .arrow:after, .banner .arrow:before {
	content: '';
	display: block;
	width: 1.6rem;
	height: 3px;
	background-color: var(--blue);
	position: absolute;
	right: -1px;
}

.banner .arrow:after {
	transform: rotateZ(45deg);
	transform-origin: right;
	top: 1px;
}

.banner .arrow:before {
	transform: rotateZ(-45deg);
	transform-origin: right;
	top: -1px;
}

.banner a:hover .arrow {
	width: 7rem;
}

.banner.bg-blue .btn-blue-inv {
	background: #fff;
}

.banner.bg-blue .btn-blue-inv:hover {
	background: var(--blue-light);
	color: var(--blue);
}

.ocanada {
	background: url('./img/canada_min_red.jpg');
	background-size: cover;
	background-position: center;
}

.ocanada .noisy:before {
	opacity: 0.1;
}

.masaryk {
	background: url('./img/tgm_blue.jpg');
	background-size: cover;
	background-position: center;
}

.masaryk .noisy:before {
	opacity: 0.1;
}

.noisy:before {
	content: '';
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="1" stitchTiles="stitch" seed="30"/><feColorMatrix type="saturate" values="0"/><feColorMatrix type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 25 -10"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="1"/></svg>');
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	opacity: 0.2;
	z-index: -1;
}

.bg-blue-light {
	background-color: var(--blue-light);
	color: var(--blue);
}

.bg-blue {
	background-color: var(--blue);
	color: #fff;
}

.bg-red-dark {
	background-color: var(--red-dark);
	color: #fff;
}


.related {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}

.related .half {
	width: calc(50% - 0.5rem);
}

.related .half .text {
	padding: 1rem;
}

.related .banner .text {
	display: flex;
	justify-content: space-between;
	flex-direction: column;
}

.related .banner h2 {
	font-size: 3em;
}

.half {
	width: 50%;
}

.btn {
	display: inline-block;
	padding: 1rem 2rem;
	border-radius: 2rem;
	font-weight: 500;
	width: auto;
	cursor: pointer;
}

.btn-blue-inv {
	background: transparent;
	border: 1px solid var(--blue);
	color: var(--blue);
	transition: background 0.2s, color 0.2s;
}

.btn-blue-inv:hover {
	background: var(--blue);
	color: #fff;
}

.btn-blue {
	background: var(--blue);
	color: #fff;
	border: 1px solid var(--blue);
	transition: background 0.2s, color 0.2s;
}

.btn-blue:hover {	
	background: transparent;
	color: var(--blue);
}

.btn-red-inv {
	background: #fff;
	color: var(--red);
	transition: background 0.2s, color 0.2s;
}

.btn-red-inv:hover {
	background: var(--red);
	color: #fff;
}

.btn-red {
	background: var(--red);
	color: #fff;
	border: 1px solid var(--red);
	transition: background 0.2s, color 0.2s;
}

.btn-red:hover {
	background: #fff;
	color: var(--red);
}



/* FOOTER */

footer {
	background-color: var(--blue-dark);
	color: var(--grey-alt);
	font-size: 0.9em;
}

footer h2 {
	font-weight: 400;
	margin: 0;
	font-size: 0.9em;
}

footer nav {
	padding-left: 2em;
}

footer nav h2 {
	text-transform: uppercase;
}

footer nav ul li {
	margin: 1em 0;
}

footer .wrapper {
	padding: 3rem 2rem;
}

footer div.navigation {
	display: flex;
	justify-content: space-between;
	align-items: normal;
}

footer div.start {
	display: flex;
	justify-content: space-between;
	align-items: normal;
}

footer div.contact img {
	width: 100%;
	max-width: 20em;
	margin-bottom: 4em;
}

footer div.branch {
	margin: 2em 0 0 0;
}

footer div.branch h2 {
	font-weight: 700;
	margin-bottom: 1em;
}

footer div.branch a,footer div.branch a:hover {
	color: var(--grey-alt);
}

footer a, footer a:hover {
	color: #fff;
	text-decoration: none;
}

footer div.end {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid var(--grey-alt);
	padding-top: 2em;
	margin-top: 3em;
}

footer div.end ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

footer div.end ul li {
	display: inline-block;
	margin: 0 0.5em;
}

footer div.end a, footer div.end a:hover {
	color: var(--grey-alt);
}

@media only screen and (min-width: 1201px) {

}

@media only screen and (max-width: 1024px) {
	header .menu-toggle {
		display: block;
	}

	header .dropbtn {
		margin: 0 0.5rem;
	}

	header .dropdown-content {
		margin-top: 2.4rem;
	}

	header .primary-menu-container {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
		position: fixed;
		width: 100%;
		top: -800px;
		left: 0;
		padding: 2rem;
		background: rgba(255,255,255,0.8);
		z-index: -1;
		overflow: hidden;
		opacity: 0;
		transition: opacity 0.3s, transform 0.3s;
		border-bottom: 1px solid var(--blue-light);
		backdrop-filter: blur(15px);
		margin-top: 3.5rem;
	}

	header .primary-menu-container.open {
		top: unset;
		opacity: 1;
		/*transform: translateZ(-10em);*/
	}

	header nav ul li {
		display: block;
		padding: 0.5rem;
		font-size: 1.2rem;
	}

	header nav ul li a {
		display: inline-block;
	}

	header ul.primary-menu-items li:last-child a {
		margin: 0.5rem 0;
	}

	/* Transform hamburger to 'X' */
	header .menu-toggle.open .menu-icon {
		background: transparent;
	}

	header .menu-toggle.open .menu-icon::before {
		transform: rotate(45deg);
		top: 0;
	}

	header .menu-toggle.open .menu-icon::after {
		transform: rotate(-45deg);
		top: 0;
	}

	.banner .text {
		padding: 1rem;
	}

	.banner h2, .related .banner h2 {
		font-size: 2em;
	}

	.banner.half h2 {
		font-size: 1.5em;
	}

	.banner .alt p {
		font-size: 1.2em;
	}

	.branch-contacts .btn.btn-outline {
		font-size: 0.9em;
	}
}

@media only screen and (max-width: 768px) {
	footer div.end {
		flex-direction: column;
	}

	h1 {
		margin-top: 0;
	}

	#intro h1, h1 {
		font-size: 2.5em;
	}

	#map .map-interactive {
		display: none;
	}

	#map .text {
		width: 100%;
	}

	#map .banner .text .wrapper {
		padding-right: 2rem;
	}

	#our_community #branches ul li.branch {
		width: calc(33.33% - 1rem)
	}

	#our_community #charter .related {
		font-size: 0.7em;
	}

	div.split {
		flex-direction: column;
	}

	div.split .half{
		width: 100%;
	}

	.postlist .post {
		width: calc(50% - 0.5rem);
	}

	.banner .half {
		width: 100%;
	}

	.banner .alt h2 {
		font-size: 1.5em;
	}

	.banner .alt p {
		font-size: 1em;
	}

	.banner figure {
		display: none;
	}

	.branch-contacts ul li {
		flex-direction: column;
	}

	.branch-contacts ul li h3, .branch-contacts .branch-contact-text {
		width: 100%;
	}
}

@media only screen and (max-width: 480px) {
	header a.home {
		max-width: 150px;
	}

	header .wrapper {
		padding: 1rem;
	}
		
	header .dropbtn {
		margin: 0 0.2rem;
		font-size: 0.8em;
	}

	header .dropdown-content {
		font-size: 0.8em;
		margin-top: 2.3rem;
	}

	header .dropbtn:hover span.arrow {
		transform: none;
	}

	footer {
		font-size: 0.8em;
	}

	footer .wrapper {
		padding: 1rem;
	}

	footer div.contact img {
		max-width: 15em;
	}

	#our_community #branches ul li.branch {
		width: calc(50% - 1rem)
	}

	#our_community #charter .related .banner {
		width: 100%;
	}

	#our_community #charter .related {
		gap: 1rem;
	}

	#intro h1, h1 {
		font-size: 2em;
	}

	#intro h2 {
		font-size: 1.1em;
	}

	a.button.cta {
		font-size: 0.9em;
	}

	#shuffle {
		font-size: 1.5em;

	}

	#map .banner .text .wrapper {
		padding-right: 1rem;
	}

	.wrapper {
		padding: 2rem 1rem;
	}

	.banner .text {
		padding: 1rem;
	}

	.related {
		gap: 1rem;
	}

	.related .half {
		width: 100%;
	}

	.related .banner .arrow.topvoid {
		margin-top: 3rem;
	}

	.postlist .post {
		width: 100%;
	}

	.filter {
		font-size: 0.9em;
	}

	.filter ul {
		margin: 0.5rem 0;
	}

	.event a:hover::after {
		opacity: 0;
	}

	.events-header.event-texts {
		display: none;
	}

	.event .event-texts {
		flex-direction: column;
	}

	.events-date, .event-date {
		flex: unset;
	}

	.events-title, .event-title {
		flex: unset;
		font-size: 1.2em;
		font-weight: 500;
		margin: 0.5rem 0;
		padding: 0;
	}

	.events-venue, .event-venue {
		flex: unset;
	}

	.branch-contacts .btn {
		margin-top: 1rem;
	}
}