/*
Theme Name: Hajdúhagyományok
Theme URI: https://hajduhagyomanyok.hu
Description: A Hajdúhagyományok weboldalának alapértelmezett sablonja
Author: Hajdúhagyományok
Author URI: https://hajduhagyomanyok.hu
Version: 1.0
*/

*{
margin: 0;
padding: 0;
border: 0;
text-decoration: none; 
}

*, *:after, *::before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }

body { font-family: 'PT Sans', sans-serif; font-size: 18px; font-weight: 400; color: #575757; line-height: 1.6; background: #f0f0f0; overflow-x: hidden; }
body.negativecontrast { color: yellow !important; background: black !important; }
body.negativecontrast ::placeholder { color: yellow !important; }
body.negativecontrast :-ms-input-placeholder { color: yellow !important; }
body.negativecontrast ::-ms-input-placeholder { color: yellow !important; }

textarea, input, select, button { font-family: 'PT Sans', sans-serif; font-size: 17px; outline: none; }

h1, h2, h3, h4 { font-weight: normal; line-height: 100%; }

hr { margin: 30px 0; border-top: 5px solid #efefed; }
hr.white { border-top-color: rgba(255,255,255,0.2); }

/* Classes */
.left { float: left; }
.right { float: right; }
.clear { clear: both; }
.inner { max-width: 1000px; margin-left: auto; margin-right: auto; position: relative; }
.inner_800 { max-width: 800px; }
.alignleft { margin: 0 20px 5px 0; float: left; }
.alignright { margin: 0 0 5px 20px; float: right; }
.aligncenter { margin: 0 auto 20px auto; display: block; }
.vertical_middle { top: 50%; position: relative; -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%); transform: translateY(-50%); }
.uppercase { text-transform: uppercase; }
.center { text-align: center; }
.hide { display: none !important; }
.red { color: #e31e24; }
.yellow { color: #ffed00; }
.green { color: #009846; }
.blue { color: #1876ad; }
.p_l_50 { padding-left: 50px; }
.b_r_5 { -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; }
.b_r_50p { -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%; }

/* Cols */
.row { font-size: 0; }
.row .col { font-size: 18px; vertical-align: top; display: inline-block; }
.row .col_50 { width: 50%; }
.row .col_33 { width: 33.3333333333%; }
.row .col_25 { width: 25%; }

.row.row_table { width: 100%; display: table; table-layout: fixed; }
.row.row_table .col { display: table-cell; }

/* Animation */
.anim, #header ul.menu li a:after { -webkit-transition: all 0.2s ease-out; -moz-transition: all 0.2s ease-out; -o-transition: all 0.2s ease-out; transition: all 0.2s ease-out; }
.anim_cubic { -webkit-transition: all 1s cubic-bezier(0.19, 1, 0.22, 1); -moz-transition: all 1s cubic-bezier(0.19, 1, 0.22, 1); -o-transition: all 1s cubic-bezier(0.19, 1, 0.22, 1); transition: all 1s cubic-bezier(0.19, 1, 0.22, 1); }

/* Button */
.button { height: 50px; padding: 0 20px; font-size: 17px !important; font-weight: 700; text-transform: uppercase; text-decoration: none !important; text-align: center; color: white !important; line-height: 50px; background: #1876ad; display: inline-block; position: relative; cursor: pointer; -webkit-border-radius: 25px; -moz-border-radius: 25px; border-radius: 25px; -webkit-transition: all 0.2s ease-out; -moz-transition: all 0.2s ease-out; -o-transition: all 0.2s ease-out; transition: all 0.2s ease-out; }
.button:hover { background: #111; }
.button:disabled { color: white; background: #ccc; }

.button.button_small { height: 40px; padding: 0 10px; font-size: 16px !important; line-height: 40px; }

.button_blue { background: #1876ad; }
.button_blue:hover { background: #162d5a; }

/* Checkbox and radio */
input[type="checkbox"], 
input[type="radio"] { width: 24px; height: 24px; margin: -4px 4px 0 0 !important; padding: 0 !important; text-align: center !important; background-color: white; border: 1px solid #828282; clear: none; cursor: pointer; display: inline-block; line-height: 0; outline: 0; vertical-align: middle !important;  -webkit-appearance: none; -webkit-box-shadow: none; box-shadow: none; -webkit-transition: .05s border-color ease-in-out; transition: .05s border-color ease-in-out; }
input[type="radio"] { -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%; }

input[type="radio"]:checked:before { width: 14px; height: 14px; left: 4px; top: 4px; text-align: center; background: #1876ad; position: relative; border-radius: 8px; display: block; content: ''; }
input[type="checkbox"]:checked:before { width: 14px; height: 14px; left: 4px; top: 4px; text-align: center; background: #1876ad; position: relative; display: block; content: ''; }

/* ID */
#website { max-width: 1200px; margin: auto; background: white; position: relative; }
body.negativecontrast #website { background: black; }


/*
--------------
	MODAL
--------------
*/
.mfp-content .modal_wcag { width: 100%; max-width: 500px; margin: auto; background: white; display: block; opacity: 0; -ms-transform: scale(0.7, 0.7); -webkit-transform: scale(0.7, 0.7); transform: scale(0.7, 0.7); }

.mfp-content .modal_wcag .mfp-close { width: 50px; height: 50px; right: -25px; top: -25px; background: white; opacity: 1; -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%; }

.mfp-content .modal_wcag .modal_header { height: 60px; padding: 0 20px 0 60px; font-size: 25px; font-weight: 700; color: white; line-height: 60px; background: #1b75bc url(images/icon_wcag_white.svg) no-repeat 20px center; background-size: auto 30px; }
.mfp-content .modal_wcag .modal_settings p { font-size: 16px; font-weight: 700; color: #000; line-height: 1.5; }
.mfp-content .modal_wcag .modal_settings .option { padding: 20px; border-bottom: 1px solid #ddd; display: block; }
.mfp-content .modal_wcag .modal_settings .option.last { border-bottom: none !important; }
.mfp-content .modal_wcag .modal_settings .option a { height: 40px; padding-left: 50px; font-size: 20px; font-weight: 700; color: #000; line-height: 40px; display: block; position: relative; }
.mfp-content .modal_wcag .modal_settings .option a:before { width: 40px; height: 40px; left: 0; top: 0; font-size: 20px; font-weight: normal; text-align: center; border: 1px solid black; position: absolute; content: ''; }
.mfp-content .modal_wcag .modal_settings .option a.active:before { content: '✔'; }

.mfp-ready .mfp-content .modal_wcag { opacity: 1; -ms-transform: scale(1, 1); -webkit-transform: scale(1, 1); transform: scale(1, 1); }

/* WCAG */
body.negativecontrast .mfp-content .mfp-close { color: yellow; background: black; }

body.negativecontrast .mfp-content .modal_wcag { color: yellow; background: black; border: 1px solid yellow; }
body.negativecontrast .mfp-content .modal_wcag .modal_header { padding-left: 20px; color: black; background: yellow; }
body.negativecontrast .mfp-content .modal_wcag .modal_settings p { color: yellow; }
body.negativecontrast .mfp-content .modal_wcag .modal_settings .option { border-bottom-color: yellow; }
body.negativecontrast .mfp-content .modal_wcag .modal_settings .option a { color: yellow; }
body.negativecontrast .mfp-content .modal_wcag .modal_settings .option a:before { border-color: yellow; }

body.biggerfont .mfp-content .modal_wcag .modal_header { font-size: 150%; }
body.biggerfont .mfp-content .modal_wcag .modal_settings p { font-size: 130%; }
body.biggerfont .mfp-content .modal_wcag .modal_settings .option a { font-size: 150%; }


/*
-------------------
	NAVIGATION
-------------------
*/
#rwd_menu { font-size: 18px; color: white; background: #1b75bc; display: none; }

/* Menu */
#rwd_menu ul li { padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,0.2); }
#rwd_menu ul li.menu-item-has-children.open { background: white; }
#rwd_menu ul li a { padding: 10px 0; font-size: 20px; color: white; display: block; position: relative; }
#rwd_menu ul li.menu-item-has-children.open a { color: #000; }
#rwd_menu ul li.menu-item-has-children > a:after { width: 30px; height: 30px; right: 0; top: 10px; background: rgba(255,255,255,0.1) url(images/icon_arrow_down_open_white.svg) no-repeat right center; background-size: cover; position: absolute; content: ''; -webkit-transition: all 0.3s ease-out; -moz-transition: all 0.3s ease-out; -o-transition: all 0.3s ease-out; transition: all 0.3s ease-out; -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%; }
#rwd_menu ul li.menu-item-has-children.open > a:after { background-color: #000; ms-transform: rotate(180deg); -webkit-transform: rotate(180deg); transform: rotate(180deg); }
#rwd_menu ul li ul { padding: 0 0 10px 0; display: none; }
#rwd_menu ul li ul li { padding: 0; list-style: none; }
#rwd_menu ul li ul li a { padding: 0 10px; font-size: 18px; text-transform: none; }
#rwd_menu ul li ul li > a:after { width: 20px !important; height: 20px !important; top: 5px !important; right: 5px !important; background-color: transparent !important; background-image: url(images/icon_arrow_down_open.svg) !important; }
#rwd_menu ul li ul li ul li a { padding: 2px 20px; font-size: 18px; text-decoration: underline; color: #777 !important; }
#rwd_menu ul li ul li ul li a:hover { color: #333 !important; }


/*
---------------
	HEADER
---------------
*/
#header { height: 120px; }
#header .inner { height: 100%; }

/* Logo */
#header .logo { width: 330px; height: 70px; left: 0; display: block; position: absolute; }
#header .logo img { width: auto; height: 100%; display: block; }
#header .logo .text { font-size: 40px; font-weight: 700; color: yellow; line-height: 1; }

/* Language switcher */
#header .switcher-list { width: 40px; height: 40px; top: 40px; margin-left: 10px; padding-top: 40px; background: #f0f0f0; float: right; position: relative; overflow: hidden; -webkit-border-radius: 20px; -moz-border-radius: 20px; border-radius: 20px; }
#header .switcher-list li { width: 100%; height: 40px; text-align: center; cursor: pointer; }
#header .switcher-list li.active { left: 0; top: 0; position: absolute; }
#header .switcher-list li a, 
#header .switcher-list li span { width: 100%; height: 100%; display: block; }
#header .switcher-list li img { top: 50%; margin: auto !important; display: block; position: relative; -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%); transform: translateY(-50%); }
#header .switcher-list:hover { height: auto; }

/* Search form */
#header .search_form { width: 300px; height: 50px; font-size: 0; float: right; }
#header .search_form input[type=text] { width: calc(100% - 50px); height: 50px; padding-left: 15px; vertical-align: top; border: 1px solid #ddd; border-right: none; display: inline-block; }
#header .search_form input[type=submit] { width: 50px; height: 50px; vertical-align: top; background: #1876ad url(images/icon_search_white.svg) no-repeat center; background-size: auto 20px; display: inline-block; cursor: pointer; }
#header .search_form input[type=submit]:hover { background-color: #333; }

/* Social media */
#header .social_media { height: 40px; font-size: 0; }
#header .social_media a { width: 40px; height: 40px; margin-left: 10px; vertical-align: top; background-color: #333; background-repeat: no-repeat; background-position: center; background-size: auto 20px; display: inline-block; }
#header .social_media a:hover { background-color: #222 !important; }
#header .social_media a.facebook { background-color: #4267b2; background-image: url(images/icon_facebook_white.svg); }
#header .social_media a.twitter { background-color: #27aae1; background-image: url(images/icon_twitter_white.svg); }
#header .social_media a.youtube { background-color: #ff0000; background-image: url(images/icon_youtube_white.svg); }
#header .social_media a.instagram { background-color: #d10869; background-image: url(images/icon_instagram_white.svg); }

/* WCAG button */
#header .wcag { width: 40px; height: 40px; margin-left: 10px; background: url(images/icon_wcag.svg) no-repeat center; background-size: 100%; display: block; float: right; }

/* RWD menu */
#header .rwd_button { width: 40px; height: 40px; right: 20px; background: transparent; position: absolute; cursor: pointer; }
#header .rwd_button .burg { width: 30px; height: 2px; left: 5px; background: black; display: block; position: relative; -moz-transition: 0.2s; -o-transition: 0.2s; -webkit-transition: 0.2s; transition: 0.2s; }

#header .rwd_button .burg:before, 
#header .rwd_button .burg:after { width: 30px; height: 2px; background: black; position: absolute; content: ''; -moz-transition: 0.2s; -o-transition: 0.2s; -webkit-transition: 0.2s; transition: 0.2s; }

#header .rwd_button .burg:before { top: -8px; left: 0; }
#header .rwd_button .burg:after { top: 8px; right: 0; }

body.rwd_menu__opened #header .rwd_button .burg { background: transparent; }
body.rwd_menu__opened #header .rwd_button .burg:before { top: 0; -webkit-transform: rotate(45deg); }
body.rwd_menu__opened #header .rwd_button .burg:after { top: 0; -webkit-transform: rotate(-45deg); }

/* WCAG */
body.negativecontrast #header .logo img { display: none; }
body.negativecontrast #header .logo .text { display: block !important; }

body.negativecontrast #header .switcher-list { background: white; }

body.negativecontrast #header .search_form input[type=text] { color: yellow; background: transparent; border-color: white; }
body.negativecontrast #header .search_form input[type=submit] { background-color: yellow !important; background-image: url(images/icon_search.svg); }


/*
------------
	MENU
------------
*/
#menu { height: 50px; background: #666; }
#menu ul { height: 100%; font-size: 0; }
#menu ul li { height: 100%; padding: 0 20px; vertical-align: top; display: inline-block; position: relative; }
#menu ul li:first-child { padding-left: 0; }
#menu ul li:last-child { padding-right: 0; }
#menu ul li:after { width: 1px; height: 20px; right: 0; top: 15px; background: white; position: absolute; content: ''; opacity: 0.3; }
#menu ul li:last-child:after { display: none; }
#menu ul li a { font-size: 20px; color: #ccc; line-height: 50px; display: block; }
#menu ul li a:hover { color: white; }

#menu ul li.current-menu-parent a, 
#menu ul li.current-menu-item a { color: white; }

/* WCAG */
body.negativecontrast #menu { background: transparent; }
body.negativecontrast #menu ul li:after { display: none; }
body.negativecontrast #menu ul li a { color: yellow !important; }

body.biggerfont #menu ul li a { font-size: 25px; }


/*
--------------
	SLIDER
--------------
*/
#slider_wrapper { margin-bottom: 30px; position: relative; }

/* Intro */
#intro { width: 100%; height: 100%; left: 0; top: 0; background: #3b3b3b url(images/bgr_intro.png) no-repeat center; background-size: cover; position: absolute; z-index: 10; animation: 3s ease 0s normal forwards 1 fadein; -webkit-animation: 8s ease 0s normal forwards 1 fadein; opacity: 1; }
#intro .inner { height: 160px; padding-left: 200px; }
#intro .title { font-size: 45px; line-height: 1.5; }
#intro .title span { width: 100%; color: white; float: left; -webkit-clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 80%); clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 80%); transform: translateY(-50px); opacity: 0; animation-name: titleAnimation; animation-timing-function: ease; animation-duration: 5s; }
#intro .title.title_1 span { animation-delay: 1.6s; -webkit-animation-fill-mode: forwards; }
#intro .title.title_1 span:first-child { animation-delay: 1.7s; }
#intro .title.title_1 span:last-child { animation-delay: 1.5s; }

#intro .title.title_2 { top: 0; position: absolute; }
#intro .title.title_2 span { animation-delay: 6.1s; -webkit-animation-fill-mode: forwards; }
#intro .title.title_2 span:first-child { animation-delay: 6.2s; }
#intro .title.title_2 span:last-child { animation-delay: 6s; }

@keyframes titleAnimation {
	0% {
		transform: translateY(-50px);
		opacity: 0;
		-webkit-clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 80%);
		clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 80%);
	}
	20% {
		transform: translateY(0);
		opacity: 1;
		-webkit-clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 15%);
		clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 15%);
	}
	80% {
		transform: translateY(0);
		opacity: 1;
		-webkit-clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 15%);
		clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 15%);
	}
	100% {
		transform: translateY(50px);
		opacity: 0;
		-webkit-clip-path: polygon(100% 0, 100% 0%, 0 100%, 0 100%);
		clip-path: polygon(100% 0, 100% 0%, 0 100%, 0 100%);
	}
}

@keyframes fadein { 
	0%	{ opacity: 1; }
	80% { opacity: 1; }
	100% { opacity: 0; }
}

@-webkit-keyframes fadein { 
    0%	{ opacity: 1; }
    80%	{ opacity: 1; }
    100% { opacity: 0; }
}

body.negativecontrast #intro { display: none !important; }

/* The slider */
#slider .slick-list, 
#slider .slick-track, 
#slider .slick-slide { height: 100%; position: relative; }
#slider .slick-slide { background-repeat: no-repeat; background-position: center; background-size: cover; }
#slider .slick-slide:after { min-height: 250px; padding-top: 35%; display: block; content: ''; }


/*
----------------------------
	FRONTPAGE CATEGORIES
----------------------------
*/
#frontpage_categories { margin-bottom: 30px; }
#frontpage_categories .categories_wrapper { margin-left: -15px; margin-right: -15px; font-size: 0; }
#frontpage_categories .categories_wrapper article { width: 33.3333333333%; padding-left: 15px; padding-right: 15px; vertical-align: top; display: inline-block; }
#frontpage_categories .categories_wrapper article a { font-size: 15px; font-weight: 700; text-decoration: none; color: #333; }
#frontpage_categories .categories_wrapper article a .thumbnail { background: url(images/icon_eye.svg) no-repeat center; background-size: auto 30px; }
#frontpage_categories .categories_wrapper article a .thumbnail img { width: 100%; height: auto; margin-top: 10px; display: block; }
#frontpage_categories .categories_wrapper article a:hover .thumbnail img { opacity: 0.8; }

/* WCAG */
body.negativecontrast #frontpage_categories .categories_wrapper article a { color: yellow !important; }
body.biggerfont #frontpage_categories .categories_wrapper article a { font-size: 25px; }


/*
-----------------------
	FRONTPAGE PAGES
-----------------------
*/
#frontpage_pages .inner { margin-top: 30px; padding-top: 30px; border-top: 1px solid #ddd; }
#frontpage_pages h3 { margin-bottom: 20px; font-size: 20px; font-weight: 700; }
#frontpage_pages h3.yellow { -webkit-text-stroke-width: 1px; -webkit-text-stroke-color: rgba(0,0,0,0.6); }
#frontpage_pages ul { list-style: none; }
#frontpage_pages ul li { padding-left: 15px; position: relative; }
#frontpage_pages ul li:before { width: 4px; height: 4px; left: 0; top: 12px; background: #333; position: absolute; content: ''; }
#frontpage_pages ul li a { font-size: 17px; text-decoration: none; color: #333; }
#frontpage_pages ul li a:hover { text-decoration: underline; color: #1876ad; }

/* WCAG */
body.negativecontrast #frontpage_pages h3 { color: yellow !important; }
body.negativecontrast #frontpage_pages ul li { padding-left: 0; }
body.negativecontrast #frontpage_pages ul li a { color: yellow !important; }
body.negativecontrast #frontpage_pages ul li:before { display: none; }

body.biggerfont #frontpage_pages h3 { font-size: 25px; }
body.biggerfont #frontpage_pages ul li a { font-size: 20px; }


/*
----------------------
	BEFORE CONTENT
----------------------
*/
#before_content { padding: 10px 0; font-size: 15px; font-weight: 700; color: #333; border-bottom: 1px solid #ddd; }
#before_content a { font-weight: normal; text-decoration: underline; color: #687792; }
#before_content a:hover { color: #1876ad; }

/* WCAG */
body.negativecontrast #before_content { display: none; }


/*
----------------
	CONTENT
----------------
*/
#container { padding-bottom: 50px; position: relative; }
#container .inner:after { width: 1px; height: 100%; right: 250px; top: 0; background: #ddd; position: absolute; content: ''; }

#container.fullwidth .inner:after, 
body.home #container .inner:after { display: none; }

#container a { text-decoration: underline; color: #1876ad; }
#container a:hover { color: #333; }

#content { width: calc(100% - 250px); padding: 30px 50px 30px 0; float: left; }
.fullwidth #content { width: 100%; padding: 30px 0; float: none; }

#content .datetime { margin-bottom: 5px; font-size: 14px; color: #999; line-height: 1; }

#content h1 { margin-bottom: 30px; font-size: 50px; color: #1876ad; line-height: 1; }
#content h3 { margin-bottom: 10px; font-size: 25px; font-weight: 700; color: #1876ad; line-height: 1; }

#content p { margin-bottom: 20px; }

#content ul { margin-bottom: 20px; margin-left: 20px; }
#content ol { margin-bottom: 20px; margin-left: 20px; list-style: decimal; }
#content ol li { margin-bottom: 10px; }
#content ol li:last-child { margin-bottom: 0; }

#content ul.nomargin { margin-left: 0; }
#content ul.nomargin li { list-style: none; }

#content ul.archive li { min-height: 170px; padding-bottom: 20px; padding-left: 170px; border-bottom: 1px solid #ddd; position: relative; }
#content ul.archive li img { width: 150px; height: 150px; left: 0; top: 0; display: block; position: absolute; }
#content ul.archive li .entry a { font-size: 18px; font-weight: 700; line-height: 1.2; display: block; }
#content ul.archive li .entry .fb-like { margin-top: 10px; }

/* Gallery */
#content ul.gallery { max-width: none; margin-left: -10px !important; margin-right: -10px !important; font-size: 0; }
#content ul.gallery li { width: 25%; margin-bottom: 20px; padding-left: 10px; padding-right: 10px; vertical-align: top; display: inline-block; list-style: none; }
#content ul.gallery li .gallery_wrapper { background: white; position: relative; z-index: 2; -moz-box-shadow: 0 2px 4px rgba(0,0,0,0.2); -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.2); box-shadow: 0 2px 4px rgba(0,0,0,0.2); }

#content ul.gallery li .gallery_wrapper:before, 
#content ul.gallery li .gallery_wrapper:after { height: 0; left: 0; right: 0; top: 0; background: #ccc; position: absolute; content: ''; z-index: -1; -webkit-transition: all 0.2s ease-out; -moz-transition: all 0.2s ease-out; -o-transition: all 0.2s ease-out; transition: all 0.2s ease-out; }
#content ul.gallery li .gallery_wrapper:before { opacity: 0.4; }
#content ul.gallery li .gallery_wrapper:after { opacity: 0.3; }
#content ul.gallery li:hover .gallery_wrapper:before { height: 5px; left: 7px; right: 7px; top: -5px; }
#content ul.gallery li:hover .gallery_wrapper:after { height: 10px; left: 14px; right: 14px; top: -10px; }

#content ul.gallery li .gallery_content { height: 300px; position: relative; }
#content ul.gallery li .gallery_content .image_wrapper { left: 10px; top: 10px; right: 10px; bottom: 10px; position: absolute; background-repeat: no-repeat; background-position: center; background-size: cover; }
#content ul.gallery li .gallery_title { height: 70px; padding: 0 40px 0 15px; font-size: 16px; font-weight: bold; color: #111; line-height: 16px; background: #f4f4f4; position: relative; }
#content ul.gallery li .gallery_title .count { height: 20px; right: 15px; top: 25px; font-size: 16px; font-weight: normal; color: #1876ad; line-height: 20px; position: absolute; }

/* Single gallery */
#content ul.single_gallery { max-width: none; margin-left: -10px !important; margin-right: -10px !important; font-size: 0; }
#content ul.single_gallery li { width: 20%; margin-bottom: 20px; padding-left: 10px; padding-right: 10px; vertical-align: top; display: inline-block; }
#content ul.single_gallery li a { padding: 4px; border: 1px solid #f3ece4; display: block; }
#content ul.single_gallery li a:hover { border-color: #444; }
#content ul.single_gallery li a img { width: 100%; height: auto; margin: 0 !important; display: block; }

#content ul.single_gallery_running { max-width: 800px; margin: auto; }
#content ul.single_gallery_running li { margin-bottom: 30px; text-align: center; }
#content ul.single_gallery_running li img { display: inline-block; }
#content ul.single_gallery_running .caption { margin: 10px 30px 0 30px; padding: 10px 0 10px 10px; font-size: 16px; font-style: italic; text-align: left; color: #333; line-height: 18px; border-left: 3px solid #111; }
#content .gallery_desc { margin-bottom: 30px; font-style: italic; }

/* Tags */
#content .tags { padding: 10px; font-size: 15px; font-weight: 700; color: #000; background: #f0f0f0; }
#content .tags a { font-weight: normal; }

/* Iframe wrapper */
#content .iframe_wrapper { height: 0; margin-bottom: 30px; padding-bottom: 56.25%; padding-top: 25px; position: relative; }
#content .iframe_wrapper iframe { width: 100%; height: 100%; left: 0; top: 0; position: absolute; }

/* WCAG */
body.negativecontrast #container .inner:after { display: none; }
body.negativecontrast #content { width: 100%; float: none; }

body.negativecontrast #content h1, 
body.negativecontrast #content h3 { color: yellow; }


/*
--------------
	EVENTS
--------------
*/
.the_events { margin-left: -15px; margin-right: -15px; }
.the_events article { width: 33.333333%; padding-left: 15px; padding-right: 15px; vertical-align: top; display: inline-block; }
.the_events article .thumbnail { margin-bottom: 10px; display: block; }
.the_events article .thumbnail img { width: 100%; height: auto; display: block; }

.the_events article h3 { height: 66px; }
.the_events article h3 a { font-size: 22px; text-decoration: none !important; line-height: 1; display: block; }
.the_events article .meta.calendar .date a { font-size: 14px; text-decoration: none !important; color: #999 !important; }
.the_events article .button {  }


/*
---------------
	SIDEBAR
---------------
*/
#sidebar { width: 250px; padding: 30px 0 0 30px; float: right; }
#sidebar .widget { margin-bottom: 30px; font-size: 15px; line-height: 20px; }
#sidebar .widget .widget_title { margin-bottom: 10px; font-size: 16px; font-weight: 700; text-transform: uppercase; color: #000; line-height: 1; }
#sidebar .widget ul { margin-left: 15px; }

/* WCAG */
body.negativecontrast #sidebar { display: none; }


/*
---------------
	FOOTER
---------------
*/
#footer { font-size: 17px; color: #ccc; background: #333; }

/* Footer top */
#footer .footer_top { padding-top: 50px; }
#footer .footer_top ul { padding-bottom: 20px; font-size: 0; border-bottom: 1px solid rgba(255,255,255,0.2); display: inline-block; }
#footer .footer_top ul li { margin: 0 10px; vertical-align: top; display: inline-block; }
#footer .footer_top ul li a { font-size: 17px; color: #ccc; }
#footer .footer_top ul li a:hover { color: white; }

/* Footer bottom */
#footer .footer_bottom { padding: 30px 0; }
#footer .footer_bottom .law { max-width: 400px; margin: 30px auto 0; font-size: 14px; color: white; line-height: 1.4; }

/* WCAG */
body.negativecontrast #footer { color: yellow; background: transparent; }
body.negativecontrast #footer .footer_top ul { border-bottom-color: white; }
body.negativecontrast #footer .footer_top ul li a { color: yellow !important; }
body.negativecontrast #footer .footer_bottom .law { color: yellow; }

body.biggerfont #footer { font-size: 20px; }
body.biggerfont #footer .footer_top ul li a { font-size: 20px; }
body.biggerfont #footer .footer_bottom .law { font-size: 20px; }


/*
--------------
	FORM
--------------
*/
.form_row { margin-bottom: 10px !important; }
.form_row.form_row_first { width: calc(50% - 5px); float: left; }
.form_row.form_row_last { width: calc(50% - 5px); float: right; }
.form_row.form_row_wide { width: 100%; float: none; clear: both; }

.form_row a { text-decoration: underline; color: #333; }
.form_row a:hover { color: #000; }
.form_row br { display: none; }
.form_row label { font-size: 17px; font-weight: 700; text-align: left; color: #333; display: block; }
.form_row label.bold { margin-bottom: 20px; font-size: 18px; text-align: center; }

.form_row select,
.form_row textarea,
.form_row input[type=tel],
.form_row input[type=text],
.form_row input[type=email],
.form_row input[type=number],
.form_row input[type=password] { width: 100%; height: 50px; padding-left: 10px; font-size: 16px; background: #f6f6f6; border: 1px solid #ddd; }

.form_row select:focus,
.form_row textarea:focus,
.form_row input[type=tel]:focus,
.form_row input[type=text]:focus,
.form_row input[type=email]:focus,
.form_row input[type=number]:focus,
.form_row input[type=password]:focus { border-color: #1876ad; -moz-box-shadow: 0 0 10px rgba(24,118,173,0.5); -webkit-box-shadow: 0 0 10px rgba(24,118,173,0.5); box-shadow: 0 0 10px rgba(24,118,173,0.5); }

.form_row textarea { height: 150px; padding: 10px; resize: vertical; }


/*
-------------------
	RWD DESIGN
-------------------
*/
@media only screen and (max-width: 1440px) { 

	/* HEADER */
	#header { height: 100px; }
	
	/* HEADER: Language switcher */
	#header .switcher-list { top: 30px; }
}

@media only screen and (max-width: 1200px) { 

	/* SLIDER: Intro */
	#intro .inner { padding-left: 100px; }
	#intro .title { font-size: 40px; }
}

@media only screen and (max-width: 1000px) { 

	/* DISPLAY: None */
	.hide_in_1000 { display: none !important; }
	
	/* DEFAULT */
	.p_l_30 { padding-left: 20px; }
	.p_r_30 { padding-right: 20px; }
	
	/* HEADER: Logo */
	#header .logo { left: 20px; }
}
	
@media only screen and (max-width: 960px) { 

	/* DISPLAY: None */
	.hide_in_960 { display: none !important; } 
	
	/* DISPLAY: Block */
	.show_in_960 { display: block !important; }
	
	/* HEADER */
	#header .inner { padding-right: 80px; }
	
	/* SLIDER: Intro */
	#intro .inner { padding-left: 50px; }
	#intro .title { font-size: 35px; }
	
	/* BEFORE CONTENT */
	#before_content { background: #f0f0f0; }
	
	/* CONTENT */
	#container .inner:after { display: none; }
	#content { width: 100%; padding: 30px 0; float: none; }
	
	/* CONTENT: Gallery */
	#content ul.gallery li { width: 33.3333333333%; }
}

@media only screen and (max-width: 768px) { 

	/* HEADER: Logo */
	#header .logo { width: 240px; height: 50px; }
	
	/* SLIDER: Intro */
	#intro .inner { padding-left: 30px; }
	#intro .title { font-size: 30px; }
	
	/* FRONTPAGE PAGES */
	#frontpage_pages .col { width: 50%; margin-bottom: 30px; }
	#frontpage_pages .col:nth-last-child(-n+2) { margin-bottom: 0; }	
	
	/* CONTENT */
	#container { padding-bottom: 30px; }
	
	#content h1 { font-size: 7vw; }
	
	/* CONTENT: Gallery */
	#content ul.gallery li { width: 50%; }
	
	/* CONTENT: Single gallery */
	#content ul.single_gallery li { width: 25%; }
	
	/* FOOTER: Footer top */
	#footer .footer_top { padding-top: 30px; }
}

@media only screen and (max-width: 640px) { 

	/* DISPLAY: None */
	.hide_in_640 { display: none !important; }
	
	/* FRONTPAGE CATEGORIES */
	#frontpage_categories .categories_wrapper { margin-left: 0; margin-right: 0; }
	#frontpage_categories .categories_wrapper article { width: 100%; max-width: 480px; margin: 0 auto 30px; padding-left: 0; padding-right: 0; display: block; }
	
	/* CONTENT */
	#content h1 { font-size: 8vw; }
	
	/* CONTENT: Single gallery */
	#content ul.single_gallery li { width: 33.3333333333%; }
	
	/* FOOTER: Footer top */
	#footer .footer_top ul li { margin: 10px 0; display: block; }
}

@media only screen and (max-width: 480px) { 

	/* DISPLAY: None */
	.hide_in_480 { display: none !important; }

	/* HEADER */
	#header { height: 80px; }
	
	/* Logo */
	#header .logo { width: 190px; height: 40px; }

	/* HEADER: Language switcher */
	#header .switcher-list { top: 20px; }

	/* FRONTPAGE PAGES */
	#frontpage_pages .col { width: 100%; }
	#frontpage_pages .col:nth-last-child(-n+2) { margin-bottom: 30px; }
	#frontpage_pages .col:last-child { margin-bottom: 0; }
	
	/* CONTENT */
	#content h1 { font-size: 10vw; }
	
	/* CONTENT: Archive */
	#content ul.archive li { min-height: 100px; padding-left: 100px; }
	#content ul.archive li img { width: 80px; height: 80px; }
	
	/* CONTENT: Gallery */
	#content ul.gallery { margin-left: 0 !important; margin-right: 0 !important; }
	#content ul.gallery li { width: 100%; padding-left: 0; padding-right: 0; display: block; }
	
	/* CONTENT: Single gallery */
	#content ul.single_gallery li { width: 50%; }
}