/*
Theme Name: Döner Harju
Author: Luova toimisto La&La
Text Domain: donerharju
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Normalize
# Typography
# Global elements
# Forms
# Navigation
	## Links
	## Menus
# Accessibility
# Alignments
# Clearings
# Widgets
# Content
	## Posts and pages
	## Asides
	## Comments
# Infinite scroll
# Media
	## Captions
	## Galleries
# Responsive styles
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Normalize
--------------------------------------------------------------*/
html {
	font-family: sans-serif;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust:     100%;
}

body {
	margin: 0;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section,
summary {
	display: block;
}

audio,
canvas,
progress,
video {
	display: inline-block;
	vertical-align: baseline;
}

audio:not([controls]) {
	display: none;
	height: 0;
}

[hidden],
template {
	display: none;
}

a {
	background-color: transparent;
}

a:active,
a:hover {
	outline: 0;
}

abbr[title] {
	border-bottom: 1px dotted;
}

b,
strong {
	font-weight: bold;
}

dfn {
	font-style: italic;
}

mark {
	background: #ff0;
	color: #000;
}

small {
	font-size: 80%;
}

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sup {
	top: -0.5em;
}

sub {
	bottom: -0.25em;
}

img {
	border: 0;
}

svg:not(:root) {
	overflow: hidden;
}

figure {
	margin: 1em 40px;
}

hr {
	box-sizing: content-box;
	height: 0;
}

pre {
	overflow: auto;
}

code,
kbd,
pre,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

button,
input,
optgroup,
select,
textarea {
	color: inherit;
	font: inherit;
	margin: 0;
}

button {
	overflow: visible;
}

button,
select {
	text-transform: none;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
	-webkit-appearance: button;
	cursor: pointer;
}

button[disabled],
html input[disabled] {
	cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
	border: 0;
	padding: 0;
}

input {
	line-height: normal;
}

input[type="checkbox"],
input[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

input[type="search"] {
	-webkit-appearance: textfield;
	box-sizing: content-box;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

fieldset {
	border: 1px solid #c0c0c0;
	margin: 0 2px;
	padding: 0.35em 0.625em 0.75em;
}

legend {
	border: 0;
	padding: 0;
}

textarea {
	overflow: auto;
}

optgroup {
	font-weight: bold;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

td,
th {
	padding: 0;
}

header {
	/*margin-bottom: 30px;*/
	position: relative;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
body,
button,
input,
select,
textarea {
	color: #231F20;
	font-family: "Times New Roman", Times, serif;
	font-weight: 300;
	font-size: 26px;
	font-size: 1.625rem;
	line-height: 1.1;
}

body {
	padding: 30px 0 30px 0;
}

body {
	padding-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	font-size: 26px;
    font-size: 1.625rem;
}

p {
	margin-bottom: 0;
	margin-top: 15px;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", Courier, monospace;
	font-size: 15px;
	font-size: 0.9375rem;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: "Courier New", "Courier", monospace;
	font-size: 15px;
	font-size: 0.9375rem;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/*--------------------------------------------------------------
# Global elements
--------------------------------------------------------------*/
html {
	box-sizing: border-box;
}

*,
*:before,
*:after { /* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
	box-sizing: inherit;
}

body {
	background: #fff;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
	content: "";
}

blockquote,
q {
	quotes: "" "";
}

hr {
	background-color: #000;
	border: 0;
	height: 6px;
}

ul,
ol {
	margin: 15px 0 1.5em 0;
	padding-left: 25px
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: bold;
}

dd {
	margin: 0 1.5em 1.5em;
}

img {
	height: auto; /* Make sure images are scaled correctly. */
	max-width: 100%; /* Adhere to container width. */
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	/*
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 15px 17px rgba(255, 255, 255, 0.5), inset 0 -5px 12px rgba(0, 0, 0, 0.05);
	color: rgba(0, 0, 0, .8);
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1;
	padding: .6em 1em .4em;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
	*/
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	/*
	border-color: #ccc #bbb #aaa;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 15px 17px rgba(255, 255, 255, 0.8), inset 0 -5px 12px rgba(0, 0, 0, 0.02);
	*/
}

button:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus,
button:active,
input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active {
	/*
	border-color: #aaa #bbb #bbb;
	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.5), inset 0 2px 5px rgba(0, 0, 0, 0.15);
	*/
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	width: 100%;
}

input[type="number"] {
	max-width: 150px;
}

select {
	border: 1px solid #ccc;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"] {
	padding: 3px;
	min-width: 170px;	
}

textarea {
	padding-left: 3px;
	width: 100%;
}

.wpcf7, .wpcf7 button, .wpcf7 input, .wpcf7 select, .wpcf7 textarea {
	font-size: 18px;
	font-family: Arial, sans-serif;		
}

.wpcf7 input, .wpcf7 select, .wpcf7 textarea, .wpcf7-list-item-label {
  font-size: 18px;	
	line-height: 1.3;
}

div.wpcf7-response-output {
  margin: 20px 0;
  padding: 0.2em 1em;
}

span.wpcf7-list-item {
    display: block;
    margin: 0 0 0 0.1em;
}

.toimitus span.wpcf7-list-item {
    display: inline-block;
}

span.wpcf7-not-valid-tip {
	font-size: 14px;	
}

.toimitus span.wpcf7-not-valid-tip {
	position: absolute;	
}

input[type="submit"] {
  background-color: #000;
	padding: 10px 5px;
  color: #fff;
}

.grecaptcha-badge {
  display: none !important;
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Links
--------------------------------------------------------------*/
a {
	color: black;
}

a:hover,
a:focus,
a:active {
	color: black;
}

/*--------------------------------------------------------------
## Menus
--------------------------------------------------------------*/
.main-navigation {
	clear: both;
	display: block;
	margin: 20px 30px 0px 30px;

}

.main-navigation.restaurants-navigation {
	margin-top: 0;
	margin-bottom: 10px;
	position: absolute;
	width: calc(100% - 60px);
	max-width: 964px;
	z-index: 50;
	background-color: white;
	padding-bottom: 5px;
}

.main-navigation.restaurants-navigation.fix-restaurants-navigation {
	position: fixed;
	top: 0;
	margin-top: 0px;
	margin-bottom: 10px;
	padding-top: 15px;
	padding-bottom: 5px;
	border-bottom: solid black 6px;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding-left: 0;
	/*display: block;*/
	display: flex;
  align-items: center;
	/*
  justify-content: center;
	*/
}

.main-navigation.restaurants-navigation ul {
	display: flex;
	/*
	align-items: center;
  justify-content: center;
	*/
	flex-wrap:wrap;
	margin-bottom: 0;
}

.main-navigation ul li {
	float: left;
	position: relative;
	/*width: 13%;*/
	margin-right: 0.7em;
	border-bottom: solid black 6px;
	font-weight: bold;
	padding: 5px 5px 0 5px;
	margin-bottom: 0.4em;
	margin-top: 0.4em;
	font-size: 22px;
}

/*
.main-navigation ul li:first-of-type {
	text-transform: uppercase;
	text-align: center;
	border-bottom: none;
	background-color: black;
	padding-top: 5px;
  padding-bottom: 6px;
	-webkit-box-shadow: 4px 4px 6px 1px #bbb;
  -moz-box-shadow:    4px 4px 6px 1px #bbb;
  box-shadow:         4px 4px 6px 1px #bbb;
}

.main-navigation ul li:first-of-type a {
	color: white;
}
*/

.main-navigation.restaurants-navigation li {
	text-transform: uppercase;
	text-align: center;
	border-bottom: none;
	background-color: #ccc;
	font-size: 36px;
	width: auto;
	padding: 7px 10px 7px 10px;
	color: white;
	-webkit-box-shadow: 4px 4px 6px 1px #bbb;
  -moz-box-shadow:    4px 4px 6px 1px #bbb;
  box-shadow:         4px 4px 6px 1px #bbb;
}

.main-navigation.restaurants-navigation li.current-menu-item {
	background-color: black;
}

.home .main-navigation.restaurants-navigation li, .page-template-default  .main-navigation.restaurants-navigation li {
	background-color: black;
}

.main-navigation.restaurants-navigation li a {
	color: white;
}

.main-navigation ul li:last-of-type {
	margin-right: 0;
}

.main-navigation ul li.current-menu-item {
	/*padding-left: 5px;*/
	background-color: black;
}

.main-navigation ul li.current-menu-item a {
	color: white;
}

.main-navigation ul a {
	display: block;
	text-decoration: none;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 1.5em;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul ul li {

}

.main-navigation li:hover > a,
.main-navigation li.focus > a {
}

.main-navigation ul ul :hover > a,
.main-navigation ul ul .focus > a {
}

.main-navigation ul ul a:hover,
.main-navigation ul ul a.focus {
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	left: 100%;
}

.main-navigation .current_page_item > a,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_ancestor > a,
.main-navigation .current-menu-ancestor > a {
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

.main-navigation.toggled li {
	display: block;
	float:none;
	margin-bottom: 5px;
	margin-right: 0;
}

.main-navigation.toggled li:last-of-type {
	margin-bottom: 15px;
}

.menu-toggle {
	margin: 5px 0 15px;
  background: transparent;
	border: none;
	box-shadow: none;
  border-bottom: 5px solid black;
  border-top: 5px solid black;
  position: relative;
  width: 40px;
  height: 25px;
	padding: 0;
}

.menu-toggle:before {
    content: "";
    height: 5px;
    width: 40px;
    background: #ff5858;
    background-image: initial;
    background-position-x: initial;
    background-position-y: initial;
    background-size: initial;
    background-repeat-x: initial;
    background-repeat-y: initial;
    background-attachment: initial;
    background-origin: initial;
    background-clip: initial;
    background-color: black;
    position: absolute;
    left: 0;
    top: calc(50% - 2.5px);
}


.menu-toggle {
	display: none;
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
/* Text meant only for screen readers. */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}

/* Do not show the outline on the skip link target. */
#content[tabindex="-1"]:focus {
	outline: 0;
}

/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
}

.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/*--------------------------------------------------------------
# Clearings
--------------------------------------------------------------*/
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
	content: "";
	display: table;
	table-layout: fixed;
}

.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
	clear: both;
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widget {
	margin: 0 0 1.5em;
}

/* Make sure select elements fit in widgets. */
.widget select {
	max-width: 100%;
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Posts and pages
--------------------------------------------------------------*/

.site-content > h3 {
		margin-bottom: 0;
		/*
		margin-left: 30px;
		margin-right: 30px;
		*/
		text-transform: uppercase;
		font-size: 32px;
}

.sticky {
	display: block;
}

.hentry {
	margin: 0 0 1.5em;
}

.byline,
.updated:not(.published) {
	display: none;
}

.single .byline,
.group-blog .byline {
	display: inline;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 0 0 0;
}

.site {
	max-width: 1024px;
	margin: 0 auto;
}

.site-branding {
	width: 300px;
	height: 171px;
	background-image: url("logo-city.png");
	background-size: 100% 100%;
	margin-left: 30px;
}

.home .site-branding {
	background-image: url("logo.png");
}

.home-content {
	margin: 0 auto;
	font-size: 40px;
	text-align: center;
	max-width: 600px;
}

.slider {
		position: relative;
		clear: both;
		margin: 0 30px;
		margin-top: 80px;
		/*top: 80px;*/
		cursor: pointer;
}

.slider-frame {
	position: absolute;
	overflow: hidden;
  height: 667px;
	width: 964px;
  background: url(logo_white.svg);
	background-size: 40%;
	background-repeat: no-repeat;
	background-position: center 45%;
	z-index: 10;
	/*
	margin-left: 30px;
	margin-right: 30px;
	*/
}

.page-id-3794 .slider-frame {
	background: none;
}



@media screen and (max-width: 1023px) {
	.slider-frame {
		width: 100%;
		height: 0;
	  padding-top: 69%;
	}
}

@media screen and (max-width: 860px) {
	.slider-frame {
		background-size: 50%;
	}
}

@media screen and (max-width: 690px) {
	.slider {
	 margin: 0 20px 20px 20px;
	 margin-top: 75px;
	}
	.slider-frame {
		background-size: 60%;
	}
}

/**
 * (optional) define here the style definitions which should be applied on the slider container
 * e.g. width including further controls like arrows etc.
 */
.slider {
	/*
	margin-left: 30px;
	margin-right: 30px;
	*/
}

.slider .frame {
    /**
     * (optional) wrapper width, specifies width of the slider frame.
     */

    position: relative;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
    white-space: nowrap;
}

.slider .slides {
    display: inline-block;
		padding: 0;
		/*
		transition-delay: 1ms;
		*/
}

.slider li, .lang-menu li {
    position: relative;
    display: inline-block;

    /**
     * (optional) if the content inside the slide element has a defined size.
     */
}

.slider .prev, .slider .next {
    position: absolute;
    top: 50%;
    margin-top: -25px;
    display: block;
    cursor: pointer;
}

.slider .next {
    right: 0;
}

.slider .prev {
    left: 0;
}

.slider .next svg, .prev svg {
    width: 25px;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

.donerharju-logo {
	width: 300px; height: auto;
}

.donerharju-column-container {
	position: relative;
	/*margin: 30px;*/
}

.donerharju-column {
	overflow: auto;
}

.donerharju-column-1 {
	/*
	position: absolute;
	top: 0;
	left: 0;
	*/
	float: left;
	width: 31%;
}

.donerharju-column-2 {
	float: right;
	width: 65%;
	overflow: auto;
}

.page-id-3794 .donerharju-column-2 {
	margin-left: 0;
	width: 100%;
} 
.page-id-3794 .donerharju-column-1 {
	width: 100%;
} 
.wp-block-image {
  margin-top: 0.7em;
	margin-bottom: 0;
}

.donerharju-box {
	margin-bottom: 0px;
	background-color: #fff;
}

.donerharju-box img.wp-post-image {
	display: block;
}

.donerharju-column-2 .donerharju-box-linkit {
	display: none;
}

.lunch-dish {
	font-style: italic;
}

.lunch-price {
	font-weight: 700;
}

.page-template-page-lunch .site-content, .page-template-default .site-content {
	margin: 30px 30px 0 30px;
}

.site-content {
		margin: 0 30px 0px 30px;
}

.menu-divider {
	line-height: 1.5;
}

.restaurant-logos p {
	margin-top: 60px;
	margin-bottom: 60px;
	text-align: center;
}

.restaurant-logos p img {
	max-width: 200px;
}

footer {
		margin: 0 30px 30px 30px;
		font-size: 20px;
		font-size: 1.25rem;
		/*border-top: 6px solid black;*/
}

.footer-1, .footer-2, .footer-3  {
	float: left;
	width: calc(33.3% - 30px);
	margin-right: 30px;
}

.jalleenmyyjat-list-container {
	margin-top: 20px;
	width: 48%;
	float: right;
	overflow: hidden;
}

.jalleenmyyjat-list-container > p {
	margin-top: 0;
}

.jalleenmyyjat-list {
	font-size: 16px;
	display: none;
}

#jalleenmyyjat {
	display: block;
}

.acf-map {
	color: black;
}

.acf-map a, .acf-map a:hover, .acf-map a:visited{
	color: black;
}

.acf-map {
	width: 50%;
	float: left;
	height: 1000px;
	border: none;
	margin: 20px 0;
}

/* fixes potential theme css conflict */
.acf-map img {
   max-width: inherit !important;
}

.acf-map .marker {
	display: none;
}

p.acf-map-info-window {
	font-family: "Times New Roman", Times, serif;
	margin: 0;
	font-size: 18px;
}

.big-text {
	font-size: 175px;
	font-weight:bold;
}

@media screen and (max-width: 900px) {
	.big-text {
		font-size: 130px;
		font-weight:bold;
	}
}

@media screen {
	.page-template-page-lunch .site-content .lunch-menu {
		max-width: 650px;
	}
}

@media print {

	.no-print {
		display: none;
	}

	.donerharju-column {
	    float: right;
	    width: 100%;
	    overflow: auto;
	}

	.donerharju-box-lunch > hr {
		display: none;
	}

	/* Dönerin historia title */
	h3.entry-title {
		margin: 5px 0;
	}

	.page-template-page-restaurant {
		margin: 20px;
	}

	.page-template-page-restaurant {
		line-height: 1.1;
	}

	.page-template-page-restaurant .site-content {
		margin: 0px;
	}

	.page-template-page-restaurant .site-header {
		display: none;
	}

	.page-template-page-restaurant p {
		font-size: 48px;
	}

	.page-template-page-restaurant p.lunch-header {
		font-size: 32px;
	}

	.page-template-page-restaurant p.lunch-header {
		position: fixed;
		top: 0;
	}

	.page-template-page-restaurant p.lunch-menu {
		margin-top: 60px;
	}

	.page-template-page-restaurant p.lunch-footer {
		font-size: 32px;
	}

	.page-template-page-restaurant p.lunch-footer {
		position: fixed;
		bottom: 0;
	}
}

/*--------------------------------------------------------------
## Asides
--------------------------------------------------------------*/
.blog .format-aside .entry-title,
.archive .format-aside .entry-title {
	display: none;
}

/*--------------------------------------------------------------
## Comments
--------------------------------------------------------------*/
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/*--------------------------------------------------------------
# Infinite scroll
--------------------------------------------------------------*/
/* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll .posts-navigation, /* Older / Newer Posts Navigation (always hidden) */
.infinite-scroll.neverending .site-footer { /* Theme Footer (when set to scrolling) */
	display: none;
}

/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

/*--------------------------------------------------------------
## Captions
--------------------------------------------------------------*/
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/
.gallery {
	margin-bottom: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	vertical-align: top;
	width: 100%;
}

.gallery-columns-2 .gallery-item {
	max-width: 50%;
}

.gallery-columns-3 .gallery-item {
	max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
	max-width: 25%;
}

.gallery-columns-5 .gallery-item {
	max-width: 20%;
}

.gallery-columns-6 .gallery-item {
	max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
	max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
	max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	max-width: 11.11%;
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Responsive styles
--------------------------------------------------------------*/

@media screen and (max-width: 820px) {

	.main-navigation li {
			/*font-size: 18px;*/
			margin-right: 15px;
	}
}

@media screen and (max-width: 780px) {

	.menu-toggle {
		display: block;
	}

	.main-navigation ul {
			display: none;
	}

	/*
	.main-navigation ul {
			flex-wrap: wrap;
			 justify-content: flex-start;
	}
	.main-navigation li {
	}
	.main-navigation ul {
			margin-bottom: 10px;
		}
	*/




	.footer-1, .footer-2, .footer-3 {
    float: left;
    /* width: 33.3%; */
	}
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
	margin: 0 0 1.5em;
	overflow: hidden;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	float: left;
	width: 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	float: right;
	text-align: right;
	width: 50%;
}


.lang-menu {
    float: right;
    position: absolute;
    right: 30px;
    top: 20px;
}

.lang-item {
	    border-bottom: solid grey 4px;
}

.lang-item a {
	text-decoration: none;
	font-size: 18px;
	color: grey;
}

.current-lang a {
	font-weight: bold;
}

@media screen and (max-width: 780px) {

	.lang-menu {
	    top: 10px;
	}

	.main-navigation.restaurants-navigation li {
		font-size: 30px;
	}
}

@media screen and (max-width: 690px) {

	.site-content, .main-navigation, footer, .page-template-page-lunch .site-content, .page-template-default .site-content  {
			margin-left: 20px;
			margin-right: 20px;
	}
	
	.main-navigation.restaurants-navigation {
    width: calc(100% - 40px);
	}

	.site-content > h3 {
			margin-top: 0;
	}

	.footer-1, .footer-2, .footer-3 {
	    float: none;
	    width: 100%;
			font-size: 24px;
	}

	.donerharju-column-1 {
		position: static;
		width: 100%;
		/*border-top: solid black 6px;*/
	}
	.donerharju-column-2 {
		margin-left: 0;
		width: 100%;
	}
	.donerharju-column-2 .donerharju-box:first-of-type > hr:first-of-type {
		/*display: none;*/
	}
	.donerharju-column-1 .donerharju-box-linkit {
		display: none;
	}

	.donerharju-column-2 .donerharju-box-linkit {
		display: block;
	}
	
	.acf-map, .jalleenmyyjat-list-container {
		width: 100%
	}
	.jalleenmyyjat-list-container {
		margin-top: 0;
	}
}

@media screen and (max-width: 572px) {
	.main-navigation.restaurants-navigation li {
		font-size: 20px;
		padding: 6px 8px 5px 8px;
		flex: 1;
	}

	.main-navigation.restaurants-navigation ul {
	    justify-content: space-between;
	}
}

@media screen and (max-width: 414px) {
	.main-navigation.restaurants-navigation li {
		font-size: 18px;
		padding: 6px 8px 5px 8px;
	}
}

@media screen and (max-width: 382px) {

	.main-navigation.restaurants-navigation ul {
	    justify-content: flex-start;
	}
	.main-navigation.restaurants-navigation li {
		flex: none;
	}
}
