/*!
Theme Name: Amos Andersons Hem
Theme URI: http://underscores.me/
Author: Dog Design & La&La
Author URI: https://lala.fi
Description: WordPress-teema Amos Andersonin kotimuseolle
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: amos


Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Variables 
--------------------------------------------- */

:root {	
	--content-width: 790px;
	--beige: #F6F2ED;
	--grey: #353643;
	--brown: #9E744B;
	--green: #6B867C;
	--red: #B54C36;
}

.has-red-color {
	color: var(--red);
}

.has-gray-color {
	color: var(--grey);
}

.has-brown-color {
	color: var(--brown);
}

.has-green-color {
	color: var(--green);
}

.has-black-color {
	color: #000;
}


/* Typography
--------------------------------------------- */

@font-face {
   font-family: 'Funkis A.1';
   src: url('webfonts/FunkisA.1-Regular.woff2') format('woff2'),
        url('webfonts/FunkisA.1-Regular.woff') format('woff');
   font-weight: normal;
   font-style: normal;
}

@font-face {
   font-family: 'Funkis A.1';
   src: url('webfonts/FunkisA.1-Medium.woff2') format('woff2'),
        url('webfonts/FunkisA.1-Medium.woff') format('woff');
   font-weight: 500;
   font-style: normal;
}

@font-face {
   font-family: 'Funkis A.1';
   src: url('webfonts/FunkisA.1-SemiBold.woff2') format('woff2'),
        url('webfonts/FunkisA.1-SemiBold.woff') format('woff');
   font-weight: 700;
   font-style: normal;
}

@font-face {
   font-family: 'Funkis Normal';
   src: url('webfonts/Funkis-Normal.woff2') format('woff2'),
        url('webfonts/Funkis-Normal.woff') format('woff');
   font-weight: normal;
   font-style: normal;
}

@font-face {
   font-family: 'Funkis Medelfelt';
   src: url('webfonts/Funkis-Medelfet.woff2') format('woff2'),
        url('webfonts/Funkis-Medelfet.woff') format('woff');
   font-weight: normal;
   font-style: normal;
}

@font-face {
   font-family: 'Ivar Headline';
   src: url('webfonts/IvarHeadline-Regular.woff2') format('woff2'),
        url('webfonts/IvarHeadline-Regular.woff') format('woff');
   font-weight: normal;
   font-style: normal;
}

@font-face {
   font-family: 'Ivar Headline';
   src: url('webfonts/IvarHeadline-Italic.woff2') format('woff2'),
        url('webfonts/IvarHeadline-Italic.woff') format('woff');
   font-weight: normal;
   font-style: italic;
}


html {
	font-size: 62.5%; /* 1rem = 10px */
	scroll-behavior: smooth;
}

body,
button,
input,
select,
optgroup,
textarea {
	color: #000;
	font-family: 'Funkis A.1', 'Helvetica Neue', sans-serif;
	font-size: 2rem;
	line-height: 1.5;
	overflow-wrap: break-word;
	word-wrap: break-word;
	-ms-word-break: break-all;
	word-break: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	font-weight: 500;
	margin: 100px 0 40px 0;
	line-height: 1.16;
}

h2 strong, h3 strong, h4 strong {
	font-weight: 500;
}

h1 strong, .nosto h2 strong {
	font-weight: normal;
}

h1, .nosto h2, .home .page-content h2 {
	font-family: 'Funkis Medelfelt', 'Helvetica Neue', sans-serif;
	font-size: 6rem;
	font-weight: normal;
	letter-spacing: 3.6px;
	margin-top: 0;
	margin-bottom: 0;
	text-align: center;
}

h1, .page-content h1 {
	margin: 145px 0 110px 0;
}

h2 {
	font-size: 5rem;

}

h3 {
	font-size: 4rem;
}

h4 {
	font-size: 3rem;
	letter-spacing: 1.8;
}

p {
	margin-bottom: 1.5em;
}

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

blockquote {
	margin: 120px auto !important;
	font-size: 6rem;
	font-family: 'Ivar Headline', serif;
	line-height: 1.16;
	text-align: center;
}

.page-content > blockquote:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
	max-width: 875px;
}

blockquote p {
	margin: 0;
}

cite {
	font-style: normal;
	font-family: 'Funkis A.1', 'Helvetica Neue', sans-serif;
	font-size: 1.5rem;
	margin-top: 0;
	
}

address {
	margin: 0 0 1.5em;
}

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

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

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

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

big {
	font-size: 125%;
}

.amos-ingressi {
	font-weight: 700;
	font-size: 2.4rem;
}

/* Elements
--------------------------------------------- */
body {
    background-color: var(--beige);
}

.site-header, .site-main, .site-footer, .social-feeds {
	padding: 48px 80px;
}

.site-main {
	padding-top: 0;
	padding-bottom: 0;
}

.site-header {
	display: flex;
	align-items:center;
}

.site-header p {
	margin: 0;
	text-align: center;
}

.site-header img {
	display: block;
}

.site-logo a:focus img {
	outline: dotted 2px var(--brown) !important;
	outline-offset: 3px;
}

.site-logo {
	flex-basis: calc(50% - 75px);
}

.site-title {
	margin: 0;
}

.site-logo img {
	width: 216px;
}

.silhouette {
	flex-basis: 150px;
}

.address {
	flex-basis: calc(50% - 131px);
	color: var(--red);
	font-family: 'Funkis Normal', sans-serif;
	letter-spacing: 2px;
}

.address p {
	max-width: 220px;
	margin: 0 auto;
}

.site-footer {
	font-size: 1.5rem;
}

.site-info {
	display: flex;
	justify-content: space-between;
	border-top: 2px solid;
}

.area-1 {
	display: flex;
	width: 100%;
}

.widget {
	flex-basis: 264px;
}

.area-1 .widget {
	margin-right: 48px;
}

.konstsamfundet.widget {
	text-align: right;
}

.site-footer h2 {
	font-size: inherit;
	text-transform: uppercase;
	margin: 30px 0;
	font-family: 'Funkis Normal', sans-serif;
}

.site-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer ul a {
	text-decoration: none;
}

.site-footer ul a:hover {
	text-decoration: underline;
}

.site-footer ul ul {
	padding-left: 30px;
}


hr {
	background-color: #000;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 0;
	padding: 0 0 0 1em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

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

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

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

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

figure {
	margin: 1em 0;
}

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

/* Links
--------------------------------------------- */
a {
	text-decoration: underline;
	color: inherit;
	text-underline-offset: 2px;
}

a:hover,
a:focus,
a:active {
	text-decoration: none;
}

a:focus {
	outline-offset: 3px;
	outline: dotted 2px var(--brown);
}


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

/* Forms
--------------------------------------------- */

form {
	/* max-width: 410px; */
	margin-top: 60px;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.wp-block-button__link,
.wp-block-button__link:active,  
.wp-block-button__link:visited {
    color: #000;
	border: 1px solid;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    display: inline-block;
    font-size: 2rem;
    padding: calc(0.667em + 2px) calc(1.333em + 2px);
    text-align: center;
    text-decoration: none;
    word-break: break-word;
    box-sizing: border-box;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	margin-top: 30px;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
	color: var(--red);
}


button:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus {
	outline: dotted 2px var(--brown);
	outline-offset: 4px;
}

button:active,
input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active {
	outline: none;
	outline-offset: 4px;
}

label {
	font-weight: 500;
}

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: #000;
	border: 0;
	border-radius: 0;
	padding: 10px;
	max-width: 410px;
	margin-top: 7px;
	width: 100%
}

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: #000;
	outline: dotted 2px var(--brown);
	outline-offset: 4px;
}

select {
	border: 0
}

textarea {
	max-width: 410px;
}

.gform_wrapper .gfield_required .gfield_required_text {
	display: none;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	position: relative;
}

.main-navigation .menu-wrapper {
	display: none;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 1.8rem;
}

.languages li {
	display: inline-block;
	font-size: 1.6rem;
	text-transform: uppercase;
	font-family: 'Funkis Medelfelt';
}

.languages li + li a:before {
	content: " / ";
	display: inline-block;
	margin: 0 5px;
}

.languages a {
	display: inline
}

#primary-menu {
	margin: 40px 0;
}

.site-header ul.sub-menu {
	margin-bottom: 10px
}

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

.main-navigation.toggled .menu-wrapper {
	display: block;
}

.main-navigation li {
	margin: 5px 0;
}

.menu-wrapper {
	position: absolute;
	top: 60px;
	right: -80px;
	background: var(--beige);
	width: 264px;
	text-align: center;
	padding: 50px 20px;
}

ul#primary-menu > li > a {
	font-family: 'Funkis Medelfelt';
}

ul#primary-menu .current-menu-item > a,
ul#primary-menu a:hover,
.languages a:hover {
	text-decoration: underline;
}

.menu-toggle {
	padding: 0;
	position: relative;
	background: transparent;
	min-width: initial;
	width: 56px;
	height: 40px;
	border-radius: 0;
	border: 2px solid #000;
	border-left: none;
	border-right: none;
	margin-top: 0;
	margin-right: 20px;
}

.menu-toggle:hover, .menu-toggle:focus {
	border-color: #000;
	cursor: pointer;
}

.main-navigation.toggled .menu-toggle {
	border: none;
	z-index: 1000;
}

.menu-toggle:before {
	content: "";
	width: 56px;
	border-top: 2px solid #000;
	height: 2px;
	position: absolute;
	left: 0;
	top: 17px;
}

.main-navigation.toggled .menu-toggle:before, 
.main-navigation.toggled .menu-toggle:after {
	position: absolute;
	content: "";
	border: none;
	left: 25px;
	top: -10px;
	content: ' ';
	height: 56px;
	width: 2px;
	background-color: #000;
	transform: rotate(45deg);
}

.main-navigation.toggled .menu-toggle:after{
	transform: rotate(-45deg);

}

button.menu-toggle:hover {
	background: inherit;
	color: #000;
}

button.menu-toggle:focus {
	outline-offset: 10px;
}

/* Social menu */ 

.social li {
	display: inline-block;
	/* vertical-align: middle; */
}

.social a {
	display: inline-block;
	padding: 10px 5px;

}

@font-face {
  font-family: 'lala_social';
  src: url('icons/lala_social.eot?30820462');
  src: url('icons/lala_social.eot?30820462#iefix') format('embedded-opentype'),
       url('icons/lala_social.woff2?30820462') format('woff2'),
       url('icons/lala_social.woff?30820462') format('woff'),
       url('icons/lala_social.ttf?30820462') format('truetype'),
       url('icons/lala_social.svg?30820462#lala_social') format('svg');
  font-weight: normal;
  font-style: normal;
}
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
/*
@media screen and (-webkit-min-device-pixel-ratio:0) {
  @font-face {
    font-family: 'lala_social';
    src: url('../icons/lala_social.svg?30820462#lala_social') format('svg');
  }
}
*/
 
 [class^="icon-"]:before, [class*=" icon-"]:before, .social a:before {
  font-family: "lala_social";
  font-style: normal;
  font-weight: normal;
  speak: none;
 
  display: inline-block;
  text-decoration: inherit;
  vertical-align: middle;
  width: 1em;
  margin-right: .2em;
  text-align: center;
  /* opacity: .8; */
 
  /* For safety - reset parent styles, that can break glyph codes*/
  font-variant: normal;
  text-transform: none;
 
  /* fix buttons height, for twitter bootstrap */
  line-height: 1em;

 
  /* you can be more comfortable with increased icons size */
   font-size: 130%; 
 
  /* Font smoothing. That was taken from TWBS */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
 
  /* Uncomment for 3D effect */
  /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}


.icon-flickr:before, .social  a[href*="flickr.com"]:before { content: '\f303'; } 
.icon-flickr-circled:before { content: '\f304'; } 
.icon-vimeo:before, .social  a[href*="vimeo.com"]:before { content: '\f306'; }
.icon-vimeo-circled:before { content: '\f307'; } 
.icon-twitter:before, .social a[href*="twitter.com"]:before  { content: '\f309'; }
.icon-twitter-circled:before { content: '\f30a'; } 
.icon-facebook:before, .social a[href*="facebook.com"]:before   { content: '\f30c'; font-size: 110%; } 
.icon-facebook-circled:before { content: '\f30d'; } 
.icon-linkedin:before, .social a[href*="linkedin.com"]:before { content: '\f318'; } 
.icon-linkedin-circled:before { content: '\f319'; } 
.icon-instagram:before, .social a[href*="instagram.com"]:before  { content: '\f32d'; }
.icon-youtube:before, .social a[href*="youtube.com"]:before { content: '\f167'; }
.icon-pinterest:before, .social a[href*="pinterest.com"]:before { content: '\f312'; } 
.icon-pinterest-circled:before { content: '\f313'; } 
.icon-behance:before, .social a[href*="behance.net"]:before { content: '\f34e'; }
.icon-mail:before { content: '\e800'; } 

 .social a:before {
	 font-size: 180%;
 }

 .social a[href*="facebook.com"]:before   {
	 font-size: 155%; 
} 

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

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */

.post-thumbnail {
	margin-left: -80px;
	margin-right: -80px;
}

.post-thumbnail img {
	width: 100%;
}

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

.page-content {
	margin: 0 0 45px;
}

.page-header {
	max-width: 1000px;
	margin: 125px auto 60px auto;
	text-align: center;
}

article header .wp-block-image {
	margin: 0;
}

.page-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
    max-width: 1000px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.page-content > *, .gfield {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
}

.alignwide {
	max-width: 1440px;
	margin-left: auto;
    margin-right: auto;
}

.alignfull {
	margin-left: -80px;
	margin-right: -80px;
}

.wp-block-columns {
	margin-top: 80px;
	margin-bottom: 80px;
}

.amos-anchor-menu {
	margin-bottom: 120px;
	list-style: none;
	padding: 0;
	text-align: center;
}

.amos-anchor-menu li {
	display: inline-block;
}

.amos-anchor-menu a {
	margin: 20px;
}

/* Home */

.home .page-content blockquote:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
	max-width: 1440px;
}

.social-feeds {
	margin-bottom: -40px;
}

.social-feeds h2 {
	font-family: 'Funkis Normal', sans-serif;
	font-size: 2.5rem;
	text-align: center;
	letter-spacing: 2.5px;
	margin-bottom: 0;
}

#sb_instagram {
	margin: 40px auto;
}

#sb_instagram #sbi_images {
	display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 40px;
}

#sb_instagram.sbi_tab_col_4 #sbi_images .sbi_item {
	width: 100%;
}

#sb_instagram a:focus {
	border: dotted 2px var(--brown) !important;
}

/* Nostot */

.nosto, .iso-nosto:not(.alignfull) {
	max-width: 1440px;
	margin: 80px auto;
}

.nosto h2, .home .page-content h2 {
	font-size: 5rem;
	margin-bottom: 3rem;
}

.home .page-content h2 {
	margin-top: 100px;
}

.nosto h2 {
	margin-top: 0;
}

.wp-block-columns.nosto {
	gap: 11vw;
}

.nosto:nth-of-type(even) .wp-block-column:first-of-type {
    order: 1;
	text-align: right;
}

.nosto p, .read-more, nosto h2{
	text-align: center;
}

.iso-nosto {
	margin-bottom: 150px;
}

.iso-nosto blockquote {
	margin: 65px 0 0 !important;
}

.iso-nosto.alignfull blockquote {
	padding-left: 80px;
	padding-right: 80px;
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: 1600px !important;
}

.iso-nosto .wp-block-image, .nosto .wp-block-image {
	margin: 0;
}

.nosto > * {
	max-width: 630px;
}

/* Henkilot */

.amos-henkilo img {
	max-width: 250px;
}


/* 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 logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

.wp-block-image {
	margin-top: 120px;
	margin-bottom: 120px;
}

.wp-block-image a {
	display: flex;
	justify-content: center
}


/* Captions
--------------------------------------------- */

figcaption, .sl-wrapper .sl-image .sl-caption {
	font-size: 1.5rem;
	margin: 1.5em 0;
}

.alignfull figcaption {
	text-align: center;
	margin: 0.5em;
}

.sl-wrapper .sl-image .sl-caption {
	margin: 0;
	padding-left: 0;
}

/* Galleries
--------------------------------------------- */

figure.wp-block-gallery.has-nested-images {
	gap: 100px;
	margin-top: 120px;
	margin-bottom: 120px;
	justify-content: center;
}

.wp-block-gallery.has-nested-images figure.wp-block-image {
	align-items:center;
	flex-grow: unset;
}

.wp-block-gallery.has-nested-images:not(.is-cropped) figure.wp-block-image:not(#individual-image) {
	margin: 0;
}

.wp-block-gallery.has-nested-images.columns-2 figure.wp-block-image:not(#individual-image),
.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image),
.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2), 
.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2)~figure.wp-block-image:not(#individual-image){
	width: calc(50% - 80px);
}

.wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image:not(#individual-image) {
	width: calc(33.33% - 80px);
}

.wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image) {
	width: calc(25% - 80px);
}

.wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image figcaption {
	display: none;
}


.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	background: transparent;
    color: #000;
    font-size: 1.5rem;
    margin-bottom: 0;
    max-height:initial;
    padding: 0;
    position: static;
    text-align: left;
}

.sl-wrapper .sl-navigation button {
	color: transparent !important;
	border: none;
	border-left: 2px solid #000;
	border-bottom: 2px solid #000;
	background: transparent;
	width: 31px;
	height: 31px;
	transform: rotate(45deg);
	border-radius: 0;
	
}

.sl-wrapper .sl-navigation button.sl-next {
	transform: rotate(-135deg);
	right: 40px
}

.sl-wrapper .sl-navigation button.sl-prev {
	left: 40px;
}

.sl-wrapper button:hover {
	background: transparent;
}

.sl-wrapper .sl-close {
    display: none;
    position: fixed;
    right: 30px;
    top: 30px;
    z-index: 10060;
    margin-top: 0;
    margin-right: 0;
    height: 44px;
    width: 44px;
    line-height: 0;
	color: transparent !important;
}

.sl-wrapper .sl-close:before, 
.sl-wrapper .sl-close:after {
	position: absolute;
	content: "";
	border: none;
	left: 22px;
	top: -1px;
	content: ' ';
	height: 45px;
	width: 2px;
	background-color: #000;
	transform: rotate(45deg);
}

.sl-wrapper .sl-close:after{
	transform: rotate(-45deg);
}



/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--beige);
	border: 1px solid;
	color: #000;
	clip: auto !important;
	clip-path: none;
	display: block;
	font-weight: 500;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

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

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

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

/* Media queries
--------------------------------------------- */

@media screen and (min-width: 1600px) {
	.wp-block-columns.nosto {
		gap: 175px;
	}
}	

@media screen and (max-width: 940px) {
	.site-header, .site-main, .site-footer, .social-feeds {
		padding: 40px 24px;
	}

	.site-main {
		padding-top: 0;
		padding-bottom: 0;
	}

	.site-footer {
		padding-top: 0;
	}

	.address {
		display: none;
	}

	.site-logo {
		flex-basis: calc(50% - 30px)
	}

	.site-logo img {
		width: 104px;
	}

	.silhouette {
		flex-basis: 60px;
		transition: flex-basis 0.5s;
	}

	.main-navigation {
		flex-basis: calc(50% - 30px);
		text-align: right;
	}

	.menu-toggle {
		width: 29px;
		height: 21px;
	}

	.menu-toggle:before {
		width: 29px;
		border-top: 2px solid #000;
		top: 8px;
	}
	
	.main-navigation.toggled .menu-toggle:before, 
	.main-navigation.toggled .menu-toggle:after {
		left: 13px;
		top: -5px;
		height: 29px;
	}

	.menu-wrapper {
	    position: absolute;
	    top: 60px;
	    right: -24px;
	    width: 100vw;
		z-index: 1000;
		padding: 20px 0;
		min-height: 100vh;
	}

	#primary-menu {
		margin: 20px;
	}

	.menu-toggled .site-logo img {
		display: none;
	}

	.menu-toggled .silhouette {
		flex-basis: 70px;
	}	

	.post-thumbnail, .alignfull {
		margin-left: -24px;
		margin-right: -24px;
	}

	header.alignfull .wp-block-image {
		height: 0;
		padding-bottom: 88%;
		position: relative;
	}

	header.alignfull figcaption {
		position: absolute;
		bottom: -20px;
		font-size: 1rem;
		left: 0;
		width: 100%;
		margin: 0;
	}

	header.alignfull .wp-block-image img {
		width: 100%;
	    height: 100%;
	    object-fit: cover;
	    object-position: center;
		position: absolute;
		top: 0;
		left: 0;
	}

	.wp-block-columns {
		display: block !important;
	}

	.wp-block-column {
		margin-left: auto !important;
		margin-right: auto !important;
	}

	.wp-block-image, figure.wp-block-gallery.has-nested-images {
	    margin-top: 70px;
	    margin-bottom: 70px;
	}

	figure.wp-block-gallery.has-nested-images {
		gap: 30px;
	}

	.wp-block-gallery.has-nested-images.columns-2 figure.wp-block-image:not(#individual-image),
	.wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image:not(#individual-image),
	.wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image),
	.wp-block-gallery.has-nested-images.columns-2 figure.wp-block-image:not(#individual-image),
	.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image),
	.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2), 
	.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2)~figure.wp-block-image:not(#individual-image){
		width: 100%;
	}
	.wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image figcaption {
		display: block;
	}

	.wp-block-gallery.has-nested-images figure.wp-block-image {
		align-items: flex-start;
	}

	.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
		font-size: 1rem;
	}

	body,
	button,
	input,
	select,
	optgroup,
	textarea {
		font-size: 1.5rem;
	}
	
	h1,
	h2,
	h3,
	h4,
	h5,
	h6 {
		margin: 60px 0 40px 0;
		line-height: 1.16;
		letter-spacing: 1px;
	}
	
	h1, .nosto h2, .home .page-content h2 {
		font-size: 3rem;
	}

	.nosto h2, .home .page-content h2 {
		margin-top: 3.5rem;
		font-size: 2.5rem
	}
	
	h1, .page-content h1 {
		margin: 60px 24px 40px 24px;
	}
	
	h2 {
		font-size: 2.9rem;
	}
	
	h3 {
		font-size: 2.5rem;
	}
	
	h4 {
		font-size: 2rem;
		letter-spacing: 1.8;
	}

	blockquote {
		margin: 50px auto !important;
		font-size: 2.8rem;
		line-height: 1.25;
	}

	.amos-ingressi {
		font-size: 1.8rem;
	}

	button, input[type="button"], input[type="reset"], input[type="submit"], .wp-block-button__link {
		font-size: 1.5rem;
	}

	.iso-nosto.alignfull blockquote {
	    margin-left: 24px !important;
	    margin-right: 24px !important;
		margin-top: 50px !important;
		padding: 0;
	}

	.nosto, .iso-nosto, .wp-block-columns {
		margin-top: 60px;
		margin-bottom: 60px;
	}

	.amos-anchor-menu li {
		display: block;
		margin-bottom: 10px;
	}

	#sb_instagram #sbi_images {
	    grid-template-columns: repeat(2, 1fr);
	    grid-gap: 7px;
	}

	.site-info, .area-1 {
		display: block;
	}

	.widget {
		margin: 0 0 45px 0;
	}

	.konstsamfundet.widget {
		text-align: left;
	}

	.backtotop a {
		color: transparent !important;
		border: none;
		border-left: 2px solid #000;
		border-bottom: 2px solid #000;
		background: transparent;
		width: 31px;
		height: 31px;
		transform: rotate(135deg);
		display: block;
		margin: 80px auto;
	}



}

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

	.site-logo img {
		width: 90px;
	}
}

