/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Normalize
# Typography
# Elements
# Forms
# Navigation
	## Links
	## Menus
# Accessibility
# Alignments
# Clearings
# Widgets
# Content
	## Posts and pages
	## Comments
# Infinite scroll
# Media
	## Captions  
	## Galleries
*/
/*--------------------------------------------------------------
# Normalize
--------------------------------------------------------------*/
/* normalize.css v8.0.0 | 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;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
}

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

/**
 * 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;
  /* 1 */
  height: 0;
  /* 1 */
  overflow: visible;
  /* 2 */
}

/**
 * 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;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/* 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;
  /* 1 */
  text-decoration: underline;
  /* 2 */
  text-decoration: underline dotted;
  /* 2 */
}

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

/**
 * 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;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/**
 * 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;
  /* 1 */
  font-size: 100%;
  /* 1 */
  line-height: 1.15;
  /* 1 */
  margin: 0;
  /* 2 */
}

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

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
  /* 1 */
  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;
  /* 1 */
  color: inherit;
  /* 2 */
  display: table;
  /* 1 */
  max-width: 100%;
  /* 1 */
  padding: 0;
  /* 3 */
  white-space: normal;
  /* 1 */
}

/**
 * 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;
  /* 1 */
  padding: 0;
  /* 2 */
}

/**
 * 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;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/**
 * 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;
  /* 1 */
  font: inherit;
  /* 2 */
}


/* 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;
}

/* Inherit box-sizing to make it easier to change the property
 * for components that leverage other behavior.*/
 
 /*
*,
*::before,
*::after {
    box-sizing: inherit;
}
*/


/*--------------------------------------------------------------
# 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: #eeeeee;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.3);
	clip: auto !important;
	clip-path: none;
	color: #000000;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
	text-transform: uppercase;
}

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


/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
html {
  font-size: 16px;
}

body,
button,
input,
select,
optgroup,
textarea  {
  color: #000;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* to fix slider issue with letter-spacing: */
.slider {
  letter-spacing: 0.0;
}
.slider .slide {
  letter-spacing: 0.03em;
}

h1, h2, h3, h4, h5, h6 {
  clear: both;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
}

h1 {
  font-size: 48px;
  line-height: 1.3;
}

@media screen and (max-width: 1023px) {
    h1 {
    	font-size: 35px;
    }
}

@media screen and (max-width: 732px) {
    h1 {
    	font-size: 25px;
    }
}

@media screen and (max-width: 320px) {
    h1 {
    	font-size: 24px;
    }
}


h2 {
  font-size: 25px;
}

section.header h2, .artists h2 {
  font-size: 35px;
  font-size: 2.187rem;
  line-height: 1em;
}

.artists h2 {
  font-size: 48px;
  font-size: 3rem;
}

.work-author {
  font-size: 18px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.5em;
}

.slider .work-author {
  font-size: 15px;
    margin-top: 15px;
}

.browser .work-author {
  font-size: 14px;
}

.small-text {
  font-size: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.small-capitals {
  font-size: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
}

header.small-capitals {
  font-weight: 400;
  letter-spacing: 0.08em;
}

/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/

/* 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;
	scroll-behavior: smooth;
}

body {
	background: #fff;
}

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

ul,
ol {
	margin: 0 0 1.5em 3em;
}

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;
}

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

figure {
	margin: 0 0 1em 0;
	text-align: center;
}

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

.lds-grid {
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-grid div {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #000;
  animation: lds-grid 1.2s linear infinite;
}
.lds-grid div:nth-child(1) {
  top: 8px;
  left: 8px;
  animation-delay: 0s;
}
.lds-grid div:nth-child(2) {
  top: 8px;
  left: 32px;
  animation-delay: -0.4s;
}
.lds-grid div:nth-child(3) {
  top: 8px;
  left: 56px;
  animation-delay: -0.8s;
}
.lds-grid div:nth-child(4) {
  top: 32px;
  left: 8px;
  animation-delay: -0.4s;
}
.lds-grid div:nth-child(5) {
  top: 32px;
  left: 32px;
  animation-delay: -0.8s;
}
.lds-grid div:nth-child(6) {
  top: 32px;
  left: 56px;
  animation-delay: -1.2s;
}
.lds-grid div:nth-child(7) {
  top: 56px;
  left: 8px;
  animation-delay: -0.8s;
}
.lds-grid div:nth-child(8) {
  top: 56px;
  left: 32px;
  animation-delay: -1.2s;
}
.lds-grid div:nth-child(9) {
  top: 56px;
  left: 56px;
  animation-delay: -1.6s;
}
@keyframes lds-grid {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}


.browser-loading-icon {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 10;
  /*
  background-color: #ffffffaa;
  padding: 10px;
  border-radius: 10px;
  */
}



.browser-loading .browser-loading-icon {
  display: block;
}

header {
  /* max-width: 1500px; */
  margin: 0 auto;
}

header .contact {
  max-width: calc(1140px + 36px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 18px;
  padding-right: 18px;
}

/* icons */
header .contact span {
  font-size: 16px;
  font-size: 1rem;
}

header .contact .tel span {
  font-size: 18px;
  font-size: 1.125rem;
}

header .contact .tel span:before {
  vertical-align: -2px;
}

header .contact .address span {
  font-size: 18px;
  font-size: 1.125rem;
}

header .contact .social span {
  font-size: 26px;
  font-size: 1.125rem;
}

header .contact .social span:before {
	margin-right: 0;
}

header .contact .social a + a span {
	margin-left: .5em;
}

header .langs {
	display: none; /* kunnes kieliversiot ajankohtaisia */
}

header .contact .lang {
  font-weight: 700;
}

header .separator {
  width: 100%;
  border-bottom: dotted #9C9C9C 4px;
}

.title a {
  font-weight: 800;
  letter-spacing: 0.15em;
  font-size: 24px;
  line-height: 1.3;
}

header .logos .exit {
  font-size: 10px;
  font-size: 0.625rem;
  text-align: right;
  display: none; /* kunnes valtakunnallinen taidelainaamo on julki */
}

header .logos .exit:hover a {
	color: #f36861
}

header .logos .icon-logout {
  font-size: 18px;
  font-size: 1.125rem;
  margin-left: 5px;
} 

header .logos {
  max-width: calc(1140px + 36px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 18px;
  padding-right: 18px;
  height: 150px;
}

header .logos > div {
  width: 33.3%;
  max-width: 300px;
 text-align: right;
  display: flex;
  align-items: center;
}

header .logos .title {
  /* justify-content: center; */
  order: 1;
}

header .logos > div:last-of-type {
  /*justify-content: flex-end;*/
}

header .logo {
  /* padding-right: 30px; */
  order: 2;
}

header .logo a {
  width: 100%;
  height: 80%;
}

header .logo img {
  max-width: 100%;
  max-height: 70px;
}

section.main {
  /* max-width: 1500px; */
  margin: 0 auto;
  overflow: hidden;
}

/* footer */

#site-footer {
	background: #000;
	color: #fff;
	font-size: 13px;
	font-size: 0.7rem;
	padding: 18px;
}

.footer-inner a {
	color: #fff;
	text-decoration: underline;
}

.footer-inner {
	max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-content: flex-start;
    flex-wrap: wrap;
}

.footer-inner > * {
	width: 50%;
	padding: 18px 0;
}

.footer-links {
	text-align: right;
}

@media screen and (max-width: 800px) { 
	.footer-inner > * {
		width: 100%;
	}
	.footer-links {
		text-align: left;
	}
}

/* home */

.header-image {
  width: 100%;
  height: 0;
  padding-bottom: 28%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.header-image-text {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-weight: 800;
  background-color: rgba(0,0,0, 0.2);
}

.header-image-text h1 {
	max-width: 1140px;
	  font-size: 41px;
}

@media screen and (min-width: 1400px) { 
	.header-image {
	  padding-bottom: 28%;
	}

}


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

	.header-image {
		background-position: top;
		/* background-size: contain; */
		padding-bottom: 0;
		padding-top: 60%;
		margin-bottom: 50px;
		height: auto;
	}

    .header-image-text {
    	/* display: block; */
    	/* position: static; */
    	/* padding: 50px 0 0 0; */
    	padding: 0 20px; 
    	/* color: #000; */
    	/* background-color: transparent; */
    	line-height: 1.2;
    	/* text-align: left; */
    	margin: 0;
		overflow-wrap: break-word;
		word-wrap: break-word;
		-ms-word-break: break-all;
		word-break: break-word;
		/* Adds a hyphen where the word breaks, if supported (No Blink) */
		-ms-hyphens: auto;
		-moz-hyphens: auto;
		-webkit-hyphens: auto;
		hyphens: auto;
    }

    .header-image-text h1 {
    	font-size: 32px;
    }

}

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

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  background-color: #fff;
  border: #000 1px solid;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 12px;
  font-size: 0.75rem;
  padding: 8px 20px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

input[type="button"],
input[type="reset"],
input[type="submit"] {
}	

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	color: #f16860;
	border-color: #f16860;
	transition: all 0.3s;
}

input[type="submit"]:disabled {
	color: grey;
	border-color: grey;
  cursor: default;
}

button:active, button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
}

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 {
	border: #000 1px solid;
	border-radius: 0;
	padding: 5px 10px 6px;
	width: 100%;
	margin-bottom: 10px;
  font-size: 13px;
  font-size: 0.8125rem;
}

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,
select:focus,
input[type="checkbox"]:focus,
input[type="radio"]:focus {
	border: 1px solid #FF6F66;
	outline: none;
}

/* class applies to select element itself, not a wrapper element */
select {
	display: block;
	width: 100%;
	max-width: 100%; /* useful when width is set to anything other than 100% */
	box-sizing: border-box;
  font-size: 13px;
  font-size: 0.8125rem;
  padding: 5px 10px 6px;
	margin: 0;
	border: 1px solid #000;
	border-radius: 0;
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	background-color: #fff;
	/* note: bg image below uses 2 urls. The first is an svg data uri for the arrow icon, and the second is the gradient. 
		for the icon, if you want to change the color, be sure to use `%23` instead of `#`, since it's a url. You can also swap in a different svg icon or an external image reference
		
	*/
  
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220%22%20y%3D%220%22%20width%3D%22432%22%20height%3D%22288%22%20viewBox%3D%220%2C%200%2C%20432%2C%20288%22%3E%3Cg%20id%3D%22Layer_1%22%20transform%3D%22translate%28-144%2C%20-288%29%22%3E%3Cpath%20d%3D%22M360%2C576%20L576%2C360%20L504%2C288%20L360%2C432%20L216%2C288%20L144%2C360%20L360%2C576%20z%22%20fill%3D%22%23000000%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E');
  
	background-repeat: no-repeat, repeat;
	/* arrow icon position (1em from the right, 50% vertical) , then gradient position*/
	background-position: right .7em top 50%, 0 0;
	/* icon size, then gradient */
	background-size: 0.75em auto, 100%;
}
/* Hide arrow icon in IE browsers */
.select-css::-ms-expand {
	display: none;
}
/* Hover style */
.select-css:hover {
	border-color: #888;
}
/* Focus style */
.select-css:focus {
	border-color: #aaa;
	/* It'd be nice to use -webkit-focus-ring-color here but it doesn't work on box-shadow */
	box-shadow: 0 0 1px 3px rgba(59, 153, 252, .7);
	box-shadow: 0 0 0 3px -moz-mac-focusring;
	color: #222; 
	outline: none;
}

select option { color: #000; }
select option:first-child{
  color: grey;
}

select + select {
  margin-top: 12px;
}

textarea {
	width: 100%;
}

.form-checkbox {
  display: inline-block;
}

.form-checkbox input[type="checkbox"] {
    position:absolute;
    clip: rect(0,0,0,0);
    clip: rect(0 0 0 0);
}

.form-checkbox label::before{
    content: "";
    display: inline-block;
    
    height: 25px;
    width: 25px;
    
    background-color: #fff;   
}

.form-checkbox label::after {
  display: inline-block;
  font-family: "taidelainaamo";
  content: '\e804';
}

.form-checkbox label {
    position: relative;
    display: flex;
    align-items: center;
}

.form-checkbox label::after {
    position: absolute;
}

.form-checkbox label::after {
    left: 6px;
    top: 4px;
}

.form-checkbox label span {
  margin-left: 8px;
  font-weight: 400;
}

.form-checkbox input[type="checkbox"] + label::after {
    content: none;
}

.form-checkbox input[type="checkbox"]:checked + label::after {
    content: '\e804';
}

/*
.filter-similar label {
    position: relative;
}
.filter-similar label::before,
.filter-similar label::after {
    position: absolute;
}
.filter-similar label::before {
    top: 3px;
}
.filter-similar label::after {
    left: 4px;
    top: 7px;
}
*/

/*
.filter-similar {
}

.filter-similar input[type="checkbox"] {
    position:absolute;
    clip: rect(0,0,0,0);
    clip: rect(0 0 0 0);
}

.filter-similar input[type="checkbox"] + label {
}

.filter-similar input[type="checkbox"] + label .checked {
  display: inline-block;
  width: 15px;
  height: 15px;
  background-color: #fff;  
  padding: 5px;
}

.filter-similar input[type="checkbox"]:checked + label .checked::after {
  font-family: "taidelainaamo";
  content: '\e804';
}
*/

/*
.browser-header-similar-parameters {
  display: flex;
}

.filter-similar input[type="checkbox"]:checked + label .checked::after {
  width: 15px;
  font-family: "taidelainaamo";
  content: '\e804';
  line-height: 0;
}

.filter-similar input[type="checkbox"]:focus + label::before {
  content: '';
  position: absolute;
  border: solid #5FA0F7 2px;
  width: 21px;
  height: 21px;
}
*/

.filter-color input[type="checkbox"] {
    position:absolute;
    clip: rect(0,0,0,0);
    clip: rect(0 0 0 0);
}

.filter-color input[type="checkbox"] + label {
  display: block;
  width: 25px;
  height: 25px;
  background-color: black;  
  padding: 5px;
}

.filter-color input[type="checkbox"]:checked + label .checked {
  width: 20px;
  height: 20px;
  border-radius: 10px;
  background-color: #fff;
  clear: both;
  text-align: center;
  margin-left: -2px;
  margin-top: -3px;
}

.filter-color input[type="checkbox"]:checked + label .checked::after {
  width: 22px;
  font-family: "taidelainaamo";
  content: '\e804';
  line-height: 1.5;
  vertical-align: top;
}

.filter-color input[type="checkbox"]:focus + label::before {
  /* content: ''; */
  position: absolute;
  left: 0;
  top: 0;
  border: solid #5FA0F7 2px;
  width: 31px;
  height: 31px;
  margin-top: -5px;
  margin-left: -5px;
}

#filter-color > div {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/*
46: Harmaa
*/
.filter-color input[type="checkbox"] + label[for="color-46"] {
  background-color: grey;  
}
/*
675: Hopea
*/
.filter-color input[type="checkbox"] + label[for="color-675"] {
  background-image: linear-gradient(to right, Silver , white);
}
/*
47: Keltainen
*/
.filter-color input[type="checkbox"] + label[for="color-47"] {
  background-color: yellow;  
}
/*
674: Kulta
*/
.filter-color input[type="checkbox"] + label[for="color-674"] {
  background-image: linear-gradient(to right, Gold , white);
}
/*
48: Maavari/okra
*/
.filter-color input[type="checkbox"] + label[for="color-48"] {
  background-color: GoldenRod;  
}
/*
49: Musta
*/
.filter-color input[type="checkbox"] + label[for="color-49"] {
  background-color: black;  
}
/*
50: Mustavalkoinen
http://www.patternify.com/
https://www.urlencoder.org/
*/
.filter-color input[type="checkbox"] + label[for="color-50"] {
  background-color: grey;
  background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2270%22%20height%3D%2270%22%20viewBox%3D%220%2C%200%2C%2070%2C%2070%22%3E%0A%20%20%3Cg%20transform%3D%22translate%280%2C%20-245%29%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M0%2C245%20L35%2C245%20L35%2C280%20L0%2C280%20L0%2C245%20z%22%20fill%3D%22%23424242%22%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M35%2C245%20L70%2C245%20L70%2C280%20L35%2C280%20L35%2C245%20z%22%20fill%3D%22%23000000%22%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M35%2C280%20L70%2C280%20L70%2C315%20L35%2C315%20L35%2C280%20z%22%20fill%3D%22%23CCCCCC%22%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M0%2C280%20L35%2C280%20L35%2C315%20L0%2C315%20L0%2C280%20z%22%20fill%3D%22%23878787%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
/*
51: Oranssi
*/
.filter-color input[type="checkbox"] + label[for="color-51"] {
  background-color: orange;  
}
/*
678: Pastelli
*/
.filter-color input[type="checkbox"] + label[for="color-678"] {
  background-color: white;
  background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2270%22%20height%3D%2270%22%20viewBox%3D%220%2C%200%2C%2070%2C%2070%22%3E%0A%20%20%3Cg%20transform%3D%22translate%280%2C%20-245%29%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M0%2C245%20L35%2C245%20L35%2C280%20L0%2C280%20L0%2C245%20z%22%20fill%3D%22%23E1C7DC%22%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M35%2C245%20L70%2C245%20L70%2C280%20L35%2C280%20L35%2C245%20z%22%20fill%3D%22%2374FBD0%22%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M35%2C280%20L70%2C280%20L70%2C315%20L35%2C315%20L35%2C280%20z%22%20fill%3D%22%23BDEEFD%22%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M0%2C280%20L35%2C280%20L35%2C315%20L0%2C315%20L0%2C280%20z%22%20fill%3D%22%23F7C9C8%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
/*
1513: pinkki
*/
.filter-color input[type="checkbox"] + label[for="color-1513"] {
  background-color: pink;  
}
/*
676: Pronssi
*/
.filter-color input[type="checkbox"] + label[for="color-676"] {
  background-image: linear-gradient(to right, DarkGoldenRod , white);
}
/*
52: Punainen
*/
.filter-color input[type="checkbox"] + label[for="color-52"] {
  background-color: red;  
}
/*
53: Ruskea
*/
.filter-color input[type="checkbox"] + label[for="color-53"] {
  background-color: #60340E;  
}
/*
1525: Siniharmaa
*/
.filter-color input[type="checkbox"] + label[for="color-1525"] {
  background-color: LightSteelBlue;  
}
/*
54: Sininen
*/
.filter-color input[type="checkbox"] + label[for="color-54"] {
  background-color: blue;  
}
/*
55: Tumma
*/
.filter-color input[type="checkbox"] + label[for="color-55"] {
  background-color: #404040;
  background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2270%22%20height%3D%2270%22%20viewBox%3D%220%2C%200%2C%2070%2C%2070%22%3E%0A%20%20%3Cg%20id%3D%22Layer_1%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M62.497%2C5.493%20C61.901%2C3.996%2060.197%2C3.936%2059.483%2C5.35%20C56.181%2C11.807%2050.27%2C15.832%2043.518%2C15.832%20L34.997%2C15.832%20C23.707%2C15.832%2014.548%2C26.134%2014.548%2C38.832%20C14.548%2C39.671%2014.633%2C40.473%2014.707%2C41.288%20C21.503%2C35.813%2031.312%2C31.165%2045.222%2C31.165%20C46.159%2C31.165%2046.926%2C32.028%2046.926%2C33.082%20C46.926%2C34.136%2046.159%2C34.999%2045.222%2C34.999%20C18.446%2C34.999%207.092%2C53.459%204.578%2C60.395%20C3.876%2C62.348%204.706%2C64.576%206.442%2C65.378%20C8.189%2C66.193%2010.17%2C65.247%2010.894%2C63.306%20C11.054%2C62.875%2013.12%2C57.568%2018.552%2C52.453%20C22.003%2C57.712%2028.564%2C62.731%2037.18%2C61.701%20C53.902%2C60.335%2065.671%2C43.468%2065.671%2C22.816%20C65.671%2C16.802%2064.521%2C10.573%2062.497%2C5.493%20z%22%20fill%3D%22%23000000%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center; 
}
/*
1514: turkoosi
*/
.filter-color input[type="checkbox"] + label[for="color-1514"] {
  background-color: turquoise;  
}
/*
56: Vaalea
*/
.filter-color input[type="checkbox"] + label[for="color-56"] {
  background-color: #C0C0C0;
  background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2270%22%20height%3D%2270%22%20viewBox%3D%220%2C%200%2C%2070%2C%2070%22%3E%0A%20%20%3Cg%20id%3D%22Layer_1%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M62.497%2C5.493%20C61.901%2C3.996%2060.197%2C3.936%2059.483%2C5.35%20C56.181%2C11.807%2050.27%2C15.832%2043.518%2C15.832%20L34.997%2C15.832%20C23.707%2C15.832%2014.548%2C26.134%2014.548%2C38.832%20C14.548%2C39.671%2014.633%2C40.473%2014.707%2C41.288%20C21.503%2C35.813%2031.312%2C31.165%2045.222%2C31.165%20C46.159%2C31.165%2046.926%2C32.028%2046.926%2C33.082%20C46.926%2C34.136%2046.159%2C34.999%2045.222%2C34.999%20C18.446%2C34.999%207.092%2C53.459%204.578%2C60.395%20C3.876%2C62.348%204.706%2C64.576%206.442%2C65.378%20C8.189%2C66.193%2010.17%2C65.247%2010.894%2C63.306%20C11.054%2C62.875%2013.12%2C57.568%2018.552%2C52.453%20C22.003%2C57.712%2028.564%2C62.731%2037.18%2C61.701%20C53.902%2C60.335%2065.671%2C43.468%2065.671%2C22.816%20C65.671%2C16.802%2064.521%2C10.573%2062.497%2C5.493%20z%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center; 
}
/*
1512: vaaleanpunainen
*/
.filter-color input[type="checkbox"] + label[for="color-1512"] {
  background-color: pink;  
}
/*
677: Valkoinen
*/
.filter-color input[type="checkbox"] + label[for="color-677"] {
  background-color: white;  
}
/*
57: Vihrea
*/
.filter-color input[type="checkbox"] + label[for="color-57"] {
  background-color: #61C34B;  
}
/*
58: Violetti
*/
.filter-color input[type="checkbox"] + label[for="color-58"] {
  background-color: #9042CD;  
}
/*
59: Varikas
*/
.filter-color input[type="checkbox"] + label[for="color-59"] {
  background-color: grey;  
  background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2270%22%20height%3D%2270%22%20viewBox%3D%220%2C%200%2C%2070%2C%2070%22%3E%0A%20%20%3Cg%20transform%3D%22translate%280%2C%20-245%29%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M0%2C245%20L35%2C245%20L35%2C280%20L0%2C280%20L0%2C245%20z%22%20fill%3D%22%23ff0000%22%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M35%2C245%20L70%2C245%20L70%2C280%20L35%2C280%20L35%2C245%20z%22%20fill%3D%22%239042CD%22%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M35%2C280%20L70%2C280%20L70%2C315%20L35%2C315%20L35%2C280%20z%22%20fill%3D%22%2361C34B%22%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M0%2C280%20L35%2C280%20L35%2C315%20L0%2C315%20L0%2C280%20z%22%20fill%3D%22%23FFFD56%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/*
.filter-color input[type="checkbox"]:checked + label::before {
  content: '\e800';
}
*/

.filter-dimensions label {
  width: 65px;
  flex-shrink: 0;
}

.filter-dimensions > div, .filter-price > div {
  display: flex;
  justify-content: flex-start;
}

.filter-dimensions input, .filter-price input {
  width: 50px;
  flex-shrink: 0;
}

::placeholder {
  font-size: 13px;
  font-style: italic;
}  

form.taidelainaamo-form .taidelainaamo-grey-form {
  margin-top: 30px;
  padding: 50px 70px;
  background-color: #E6E6E6;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.page-contact form.taidelainaamo-form .taidelainaamo-grey-form {
  padding: 20px 70px;
  margin-top: 0;
}

form.taidelainaamo-form .taidelainaamo-form-footer {
  padding: 30px 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

form.taidelainaamo-form .taidelainaamo-form-footer > *{
  padding-left: 15px;
  padding-right: 15px; 
}

.taidelainaamo-grey-form input[type="text"],
.taidelainaamo-grey-form input[type="email"],
.taidelainaamo-grey-form input[type="url"],
.taidelainaamo-grey-form input[type="password"],
.taidelainaamo-grey-form input[type="search"],
.taidelainaamo-grey-form input[type="number"],
.taidelainaamo-grey-form input[type="tel"],
.taidelainaamo-grey-form input[type="range"],
.taidelainaamo-grey-form input[type="date"],
.taidelainaamo-grey-form input[type="month"],
.taidelainaamo-grey-form input[type="week"],
.taidelainaamo-grey-form input[type="time"],
.taidelainaamo-grey-form input[type="datetime"],
.taidelainaamo-grey-form input[type="datetime-local"],
.taidelainaamo-grey-form input[type="color"],
.taidelainaamo-grey-form textarea,
.taidelainaamo-grey-form select {
	border: #e6e6e6 1px solid;
  font-size: 14px;
  font-size: 0.875rem;
}

.taidelainaamo-grey-form input[type="text"]:focus,
.taidelainaamo-grey-form input[type="email"]:focus,
.taidelainaamo-grey-form input[type="url"]:focus,
.taidelainaamo-grey-form input[type="password"]:focus,
.taidelainaamo-grey-form input[type="search"]:focus,
.taidelainaamo-grey-form input[type="number"]:focus,
.taidelainaamo-grey-form input[type="tel"]:focus,
.taidelainaamo-grey-form textarea:focus {
	border: #000 1px solid;
}

form.taidelainaamo-form h2 {
  width: 100%;
  font-size: 20px;
  font-size: 1.25rem;
  text-transform: uppercase;
  font-weight: 800;
  text-align: center;
  margin-top: 20px;
  letter-spacing: 0.04em;
  padding:0 70px;
}

form.taidelainaamo-form p {
  text-align: center;
  padding:0 70px;
}

.page-contact form.taidelainaamo-form h2 {
	margin-bottom: 30px;
}

form.taidelainaamo-form input.half-width,
form.taidelainaamo-form select.half-width,
form.taidelainaamo-form textarea.half-width {
  width: calc(50% - 10px);
}

form.taidelainaamo-form .taidelainaamo-grey-form > * {
  margin-bottom: 20px;
}

form.taidelainaamo-form .taidelainaamo-grey-form label {
  margin-bottom: 0;
  width: 100%;
}

form.taidelainaamo-form .taidelainaamo-grey-form .half-width {
  width: calc(50% - 10px);
}

form.taidelainaamo-form textarea {
  height: 110px;
}

form.taidelainaamo-form .taidelainaamo-grey-form > div {
  width: 100%;
}

form.taidelainaamo-form input[type="submit"] {
  float: right;
}

form.taidelainaamo-form .label-text {
    padding-left: 3px;
}

.taidelainaamo-form-radios {
  padding: 30px 70px 0px 70px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  background-color: #fff;
}

.taidelainaamo-form-radios div {
  display: flex;
}

.taidelainaamo-form-radios label {
  margin-left: 15px;
}

.taidelainaamo-form-radios label {
  display: inline;
}

.taidelainaamo-form-radios div {
  position: relative;
}

.taidelainaamo-form-radios div+div {
  margin-top: 40px;
}

.taidelainaamo-form-radios div label {
  margin-left: 40px;
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  font-weight: 400;
  font-size: 13px;
}

.taidelainaamo-form-radios div label span {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 15px;
}

.taidelainaamo-form-radios div label span span {
  font-style: italic;
  font-weight: 600;
}

.taidelainaamo-form-radios div input {
    height: 40px;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    width: 40px;
}

.taidelainaamo-form .collection-url {
    width: 100%;
    background: #fff;
    border: #e6e6e6 1px solid;
    font-size: 14px;
    font-size: 0.875rem;
    padding: 5px 10px 6px;
    min-height: 35px;
}

.taidelainaamo-form-radios div input + label::before {
    border: 2px solid;
    content: "";
    height: 30px;
    left: 0;
    position: absolute;
    top: 0;
    width: 30px;
  border-radius: 50%;
}

/*radio pseudo element styles*/
.taidelainaamo-form-radios div input + label::after {
    content: "";
    opacity: 0;
    border: 8px solid;
    border-radius: 50%;
    position: absolute;
    left: 7px;
    top: 7px;
}

/*reveal check for 'on' state*/
.taidelainaamo-form-radios div input:checked + label::after {
    opacity: 1;
}

/*focus styles*/
.taidelainaamo-form-radios div input:focus + label::before {
  box-shadow: 0 0 0 2px #5FA0F7;  
  outline: 3px solid transparent; /* For Windows high contrast mode. */
}

.filter-color input[type="checkbox"]:focus + label {
  position: relative;
  z-index: 2;
  outline: 1px dotted #000;  ; /* For Windows high contrast mode. */
}

.taidelainaamo-form-feedback-ok {
  display: none;
}

.taidelainaamo-form-feedback-not-ok {
  display: none;
}


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

	.page-contact  form.taidelainaamo-form h2 {
		padding: 0 20px;
	}

	.page-contact form.taidelainaamo-form .taidelainaamo-grey-form {
		padding: 20px 20px;
	}

  
}


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

	form.taidelainaamo-form h2,
	form.taidelainaamo-form p {
		padding: 0 20px;
	}

	form.taidelainaamo-form .taidelainaamo-grey-form,
	.page-contact form.taidelainaamo-form .taidelainaamo-grey-form {
		padding: 20px 20px;
	}

  
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/

/* navigation container */
.nav {
  width: 100%;
  background-color: #fff;
  height: auto;
  position: fixed;
  z-index: 3;
}

/* navigation with toggle button */
.nav nav {
  height: 100%;
}

/* navigation menu */
.site-navigation-menu {
  max-width: calc(1140px + 36px);
  margin: 0 auto;
  height: 100%; 
  display: none;
  padding-left: 18px;
  padding-right: 18px;
  font-weight: 400;
}

/* mobile */
.desktop-header {
  display: none;
}
.toggled .site-navigation-menu {
  display: flex;
  align-items: center;
  flex-direction: column;
  z-index: 3;
  height: 100vh;
  width: 100%;
  background-color: #fff;
  margin-top: 36px;
}

.nav nav a {
  font-size: 14px;
  font-size: 0.875rem;
  text-transform: none;
  color: #000;
  letter-spacing: 0.05em;
  transition: color 0.4s;
}

.nav nav a.current, .nav nav a:hover {
    color: #FF6F66;
}

body.page-saved-collection .nav nav a.current {
    color: #fff;
}

.nav nav a.search-shortcut {
	position: absolute;
	top: 13px;
	left: 12px;
	z-index: 1000;
	font-size: 1.5rem;
	line-height: 1;
}


.menu-toggle {
  display: block;
  border: none;
  background: transparent;
  padding: 0;
    z-index: 4;
    top: 17px;
    right: 15px;
  position: absolute;
  width: 30px;
  height: 25px;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  cursor: pointer;
}

.menu-toggle:focus {
	outline: none;
}

.menu-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #000;
  border-radius: 0;
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .25s ease-in-out;
  -moz-transition: .25s ease-in-out;
  -o-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
}

.menu-toggle span:nth-child(1) {
  top: 0px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

.menu-toggle span:nth-child(2) {
  top: 8px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

.menu-toggle span:nth-child(3) {
  top: 16px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

.toggled .menu-toggle span:nth-child(1) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
  top: -1px;
  left: 4px;
}

.toggled .menu-toggle span:nth-child(2) {
  width: 0%;
  opacity: 0;
}

.toggled .menu-toggle span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
  top: 20px;
  left: 4px;
}

.mobile.title h1 {
	position: absolute;
	top: 0;
	left: 0;
	margin: 0;
	line-height: 1;
	background-color: #fff;
	padding: 17px;
	width: 100%;
	text-align: center;
	font-size: 18px;
	border-bottom: dotted #9C9C9C 4px;
}

.toggled .mobile.title h1 {
	border-bottom: dotted #fff 4px;
}

nav .mobile.title h1 a {
	font-size: 18px;
	text-transform: uppercase;
}

.mobile.logo {
	margin: 90px 0 0 0;
	width: 100%;
	padding: 0;
}

.mobile.logo:after {
	margin-bottom: 50px;
}

.mobile.logo img {
	display: block;
	max-width: 250px;
	max-height: 60px;
	margin: 0 auto;
}

.sticky .mobile.logo, 
.sticky .mobile.logo:before, 
.sticky .mobile.logo:after  {
	display: none;
}

.toggled .sticky .mobile.logo,
.toggled .sticky .mobile.logo:before, 
.toggled .sticky .mobile.logo:after  {
	display: block;
}


.toggled .site-navigation-menu {
	margin-top: 40px;	
}
.toggled .site-navigation-menu a {
	  font-size: 1.3rem;
	  margin-bottom: 5px;
	  font-weight: 700;
}

.mobile.langs {
	margin-top: 40px;
}

.mobile.langs a {
	margin-top: 40px;
    font-size: 1rem;
    font-weight: 400;
}

.mobile.langs a:after {
	content: " / ";
}

.mobile.langs a:last-of-type:after {
	content: "";
}

.mobile.social {
	margin-top: 40px;
}

@media screen and (min-width: 1024px) {
  
    div.nav {
        position: static;
        background: #000;
        height: 42px;
    }
    
    .menu-toggle {
    	display: none;
    }
    
    .site-navigation-menu {
    	display: flex;
        max-width: calc(1140px + 36px);
        margin: 0 auto;
        height: 100%;    
        justify-content: space-between;
        align-items: center;
        padding-left: 18px;
        padding-right: 18px;
    }
    
    .desktop-header {
        display: block;
    }
    
    .mobile {
        display: none;
    }
    
    div.nav nav a {
        color: #fff;
    }
	
}

/*--------------------------------------------------------------
	## Links
--------------------------------------------------------------*/
a {
  color: #000;
  border-bottom: none;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover, a.button:hover, a.button.button-inverse:hover  {
    color: #FF6F66;	
    border-color: #FF6F66;
}

h2 > a:hover {
  text-decoration: underline;
  color: #000;
}

p a {
   text-decoration: underline;
}

a.button {
  display: inline-block;
  border: 1px solid #fff;
  padding: 9px 18px;
  background-color: #000;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: border-color 0.3s;
}

a.button:hover {
   border-color: #fff;
}

a.button.button-inverse {
  border-color: #000;
  background-color: #fff;
  color: #000;
  transition: border-color 0.3s;
}


/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/

/* Section */

section {
  margin-bottom: 50px;
}

.main section {
	padding-left: 18px;
    padding-right: 18px;
}

/* Section header */

section.header {
  margin: 70px auto 40px auto;
  /* max-width: 1500px; */
  padding-left: 18px;
  padding-right: 18px;
}

section.header h1, section.header h2 {
  margin: 0;
  line-height: 1;
}

section.header + section.header {
  margin-top: 0px;
} 


.header-inner {
  max-width: 1140px;
  margin: 0 auto; 
}

@media screen and (max-width: 1023px) { 
	section.main {
		padding-top: 150px;
	}

	.header-image {
        margin-top: 35px;
	}
	
	section.header {
		margin-top: 30px;
	}
	section.header.slider-header, 
	section.header.browser-header {
		margin-top: 40px;
	}

	section.header.slider-header h2,
	section.header.browser-header h2 {
		font-size: 25px;
	}


}

/* Section text content */

section.text-content-menu {
    margin-bottom: 40px;
}

.text-content-menu-inner {
  max-width: 1140px;
  margin: 0 auto;  
}

.text-content-menu-inner a::after {
  content: ' | ';
  margin: 0 5px;
}

.text-content-menu-inner a:last-of-type::after {
  content: '';
}

.text-content-inner {
  max-width: 1140px;
  margin: 0 auto;  
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.text-content-inner > div {
  width: 100%;
}

/* Section contact */

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

	section.contact {
	  margin-top: 80px;
	}
	.contact-inner > *,
	.text-content-inner > div {
	  width: calc(50% - 25px);
	}

}

.contact-inner {
  max-width: 1140px;
  margin: 0 auto; 
  display: flex;
  justify-content: space-between;
  flex-wrap:wrap;
}

.contact-inner > * {
	margin-bottom: 40px;
}

.contact-inner p:first-of-type {
  margin-top: 0;
}


/* Browser */

section.header.browser-header {
	/* margin-bottom: 20px; voidaan palauttaa kun ylimaaraiset elementit siivottu pois */
}

.header-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  /* align-items: flex-start; */
  align-items: center;
}

.browser-header-count {
  font-size: 14px;
  font-size: 0.875rem;
  text-align: center;
}

.mobile-filter {
	display: none;
}

select.browser-sort {
  min-width: 210px;
  background-color: #EEEEEE;
  border: 1px solid #EEEEEE;
 
}

.browser-header-similar-parameters {
  font-weight: 400;
  width: 100%;
  margin-top: 40px;
  margin-right: -20px;
}

.browser-header-similar-parameters .filter-similar {
  margin-right: 20px;
  margin-bottom: 15px;
}

.browser {
  /* max-width: 1500px; */
  margin: 0 auto;
  background-color: #eee;
  padding: 25px 18px;
}

.browser-inner {
  max-width: 1140px;
  margin: 0 auto; 
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.browser-filter {
  flex-shrink: 0;
  width: 250px;
  font-size: 14px;
}

.browser-filter-component-wrapper {
  padding: 15px 20px;
  background-color: #fff;
}

.browser-filter-component-wrapper, .browser-filter-info-statuses {
  line-height: 2em;
}

.browser-filter h3 {
  margin: 0;
  font-weight: 600;
}

.browser-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

a.browser-filter-close {
	display: none;
}

a.browser-filter-clear, a.browser-filter-close, a.browser-filter-update {
  font-size: 12px;
  margin-top: 5px;
  text-decoration: underline;
}

/*
.filter-dimensions > div.browser-filter-update-container {
  justify-content: center;
}
*/

a.browser-filter-update {
  margin-top: -5px;
}

.browser-filter-component:first-of-type {
  margin-top: 20px;
}

.browser-filter-component > a {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 400;
}

.browser-filter-component > div {
  transition-duration: 0.5s;
  margin-bottom: 20px;
}

.browser-filter-closed + div {
  display: none;
  transition-duration: 0.5s;  
}

.browser-filter-closed span.icon-up-open:before {
  content: '\e809';
}

.browser-filter-component input, .browser-filter-component select {
    margin-bottom: 10px;
}

.browser-container {
  flex-grow: 1;
  display: flex;
  margin: 0 auto;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  position: relative;
  align-items: flex-start;
  /*padding: 10px 5px 0;*/
}

.browser-container h2.work-author {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 20px;
}

.browser-container p {
  font-size: 16px;
  letter-spacing: 0.5px;
}

.browser-item {
  margin-bottom: 18px;
  margin-left: 18px;
}

.browser-item-image {
  width: 204.5px;
  height: 235px;
  max-height: 50vw;
  padding-top: 25px;
  padding-bottom: 50px;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.browser-item-image:focus {
	outline: 0;
}

.browser-item-image:hover {
	transform:scale(1.01,1.01);
}

.browser-item-image:focus {
	transform:scale(1.02,1.02);
}

.browser-item-caption {
  position: absolute;
  bottom: 10px;
  width: 100%;
  padding: 0 15px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 11px;
  line-height: 1.5;
}

.browser-item-header {
  position: absolute;
  top: 5px;
  width: 100%;
  padding: 0 5px;
  display: flex;
  justify-content: space-between;
}

.browser-item-header .work-status {
  margin-top: 0;
  line-height: 0;
}

.browser-item-header .work-status::before {
    height: 12px;
    width: 12px;
}

.browser .item-details .work-status {
  margin-top: 1em;
}

.item-details {
  font-size: 14px;
}

.item-details .work-title {
  font-style: italic;
}

.item-details .work-price {
  margin-top: 1em;
  font-weight: 700;
}
.item-details .work-texts {
  color: #585858;
}

.item-details .work-texts span {
  font-weight: bold;
}

.item-details .work-link {
  margin-top: 20px;
}

.browser-item-image-wrapper {
  height: calc(100% - 0px);
  width: calc(100% - 30px);
  display: block;
}

.browser-item-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.browser-item-desc {
  display: none;
}

.browser-selected {
  /*box-shadow: inset 0 0 10px #000000;*/
}

.browser-item-desc-inner {
  display: none;
  padding: 15px;
}

.browser-selected .browser-item-desc {
  display: block;
  height: 428px;
  background-color: transparent;
  /* margin-bottom: 10px; */
}

.browser-selected .browser-item-desc-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  position: absolute;
  width: calc(100%  - 18px);
  margin-top: 18px;
  height: 410px;
  left: 18px;
  background-color: #fff;
  overflow: hidden;
  /*border: solid black 1px;*/
}

.page-collection .browser-item-desc-inner, 
.page-work .browser-item-desc-inner,
.page-artist .browser-item-desc-inner {
  width: calc(100%  - 29.38px);
  left: 29.38px;
}

.browser-selected .browser-item-desc-inner .item-details h2 {
  margin-top: 0;
}

.browser-item-id {
  position: absolute;
  top: 0;
  right: 0;
  padding: 10px 15px;
  color: #666;
}

.browser-selected .browser-item-image::before {
  content: '';
  width: 0; 
  height: 0; 
  left: calc(50% - 20px);
  bottom: -20px;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  
  border-bottom: 20px solid #fff;
  position: absolute;
}

/*
.selected .item-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    border: solid #ddd 1px;
}
*/

.browser-item-desc-image {
  width: calc(50% - 9px);
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.browser-item-desc-image:before {
  flex: 3;
  content: '';
}

.browser-item-desc-image:after {
 flex: 5;
  content: '';
}


.browser-item-desc-image img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.browser .item-details {
  /* min-width: 500px; */
  /*padding: 70px 40px;*/
  width: calc(50% - 27px);
  margin-left: 36px;
}

.browser-filter-info {
  margin-top: 18px;
  display: flex;
  background-color: #fff;
  padding: 28px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: normal;
}

.browser-filter-info div:first-of-type {
  width: 25px;
  flex-grow: 0;
  flex-shrink: 0;
}

.browser-filter-info-icon {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.browser-filter-info p {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: normal;

}

.browser-filter-info a {
	color: inherit;
	text-decoration: underline;
}

.browser-filter-info-statuses span {
  display: block;
}

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

	section.header.slider-header h2,
	section.header.browser-header h2 {
		font-size: 25px;
	}

	section.header.browser-header {
		margin-bottom: 25px;
	}

	.browser {
		margin-top: 0;
	}

	section.header.browser-header .header-inner {
		align-items: flex-end;
	}
	section.header.browser-header .header-inner .browser-header-count,
  section.header.browser-header .header-inner .browser-header-sort {
		/* width: 46%; */
	}
	.browser-header-count {
		text-align: right;
	}
	.browser-header-sort {
		margin-top: 20px;
	}
	section.header.browser-header#related-works,
	.page-artist section.header.browser-header,
	.page-collection section.header.browser-header  {
		margin-bottom: 0;
	}

}


@media screen and (max-width: 1177px) {
  .page-works .browser-container,
  .page-home .browser-container {
    max-width: 668px;
  }
  
  /*
  .browser-selected .browser-item-desc-inner {
    height: 980px;
  }
  
  .browser-selected .browser-item-desc {
    height: 1020px;
  }
  
  .browser .item-details {
      padding: 18px;
  }
  
  .browser-item-desc-image {
    height: 410px;
  }
  */
}

@media screen and (max-width: 708px) {
  .page-works .browser-container,
  .page-home .browser-container {
    max-width: 445px;
  }
  .browser-item-desc-image {
    display: none;
    width: 100%;
    margin-bottom: 20px;
  }
  .browser .item-details {
    width: 100%;
    margin-left: 18px;
  }
  .browser-selected .browser-item-desc-inner {
    height: 370px;
  }
  .browser-selected .browser-item-desc {
    height: 388px;
  }
}

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

  .mobile-filter-open .main {
    height: 0;
  }  

  .browser-filter {
  	width: 100%;
  	margin-top: 0;
  }

  .browser-filter-component-wrapper {
    width: 100%;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    background-color: #fff;
    height: 100vh;
    padding-top: 20px;
  } 
  .browser-inner {
    flex-wrap: wrap;
  } 
  .page-works .browser-container,
  .page-home .browser-container {
    margin-top:18px;
    max-width: 668px;
    justify-content: space-between;
  }
  .browser-item {
    margin-left: 0;
    margin-right: 0;
  }
  .browser-selected .browser-item-desc-inner {
    left: 0;
    width: 100%;
  }
  	.header-inner, #related-works.browser-header .header-inner  {
		display: block;
		width: 100%;
	}

	section.header.browser-header {
		margin-bottom: 20px;
	}

	.browser {
		margin-top: 20px;
	}

	.browser-header .header-inner {
		display: flex;
	}

	.header-inner .browser-header-count {
		margin-top: 40px;
		margin-bottom: -50px;
	}

	.mobile-filter, 
	#related-works .browser-header-similar-parameters,
	a.browser-filter-close {
		display: block;
	}

	.browser-filter-info {
		margin-top: 0;
	}

	h3.mobile-filter {
		margin-top: 20px;
		margin-bottom: 0;
		width: 48%;
	}

	.mobile-filter .button {
		width: 100%;
		text-align: center;
	}

	.mobile-filter-open a.button.browser-filter-close {
		position: fixed;
		bottom: 20px;
		left: 0;
		width: calc(100% - 36px);
		margin: 0 18px;
		text-align: center;
		text-decoration: none;
	}

	section.header.browser-header .header-inner .browser-header-count,
    section.header.browser-header .header-inner .browser-header-sort {
        text-align: right;
		margin-bottom: 0;
		margin-top: 0;
		width: 48%;
	}

	.page-collection section.header.browser-header .header-inner .browser-header-sort,
	.page-artist section.header.browser-header .header-inner .browser-header-sort {
		margin-bottom: 20px;
	}

	#related-works.browser-header .header-inner .browser-header-count,
	.page-artist section.header.browser-header .header-inner .browser-header-count,
	.page-collection section.header.browser-header .header-inner .browser-header-count  {
        margin-bottom: 20px;
         text-align: left;
    }

    #related-works.browser-header .header-inner .browser-header-count {
        text-align: left;
        width: 100%;
        font-size: 17px;
        font-size: 1.062rem; 
        margin-top: 0;
        margin-bottom: 20px;
     }

	section.header.browser-header .header-inner .browser-sort {
		padding: 8px 10px 9px 10px;
		min-width: unset;
	}
}

@media screen and (max-width: 692px) {
  .page-works .browser-container,
  .page-home .browser-container {
    max-width: 100%;
  }
  .browser-item {
    width: calc(50% - 9px);
  }
  .browser-item-image {
    width: 100%;
  }
}

@media screen and (max-width: 475px) {
	h3.mobile-filter, section.header.browser-header .header-inner .browser-header-sort {
		width: 100%;
	}
  
  section.header.browser-header .header-inner .browser-header-sort {
		margin-top: 18px;
	}

	.mobile-filter .button {
		padding: 9px;
	}

}
/*
@media screen and (max-width: 1270px) {
  .browser-container {
    max-width: 930px;
  }

  .browser-selected .browser-item-desc-inner {
    height: 980px;
  }
  .browser-selected .browser-item-desc {
    height: 1020px;
  }
  .browser .item-details {
    min-width: 500px;
    padding: 20px 40px;
  }
}

@media screen and (max-width: 960px) {
  .browser-container {
    max-width: 620px;
  }
}
*/

/* Artists */

section.artists_menu {
  max-width: 1176px; /* 1140 + margins */
  margin: 0 auto;
}

section.artists_menu a {
  display: inline-block;
  font-size: 30px;
  font-size: 1.875rem;
  font-weight: 700;
  margin-right: 20px;
}

section.artists {
   max-width: 1176px; /* 1140 + margins */
  margin-left: auto;
  margin-right: auto;
}

.artists > div {
  margin-top: 100px;
}

.artist-letter-authors {
  display: flex;
  flex-wrap: wrap;
  letter-spacing: normal;
} 

.artist-letter-author {
    font-size: 18px;
  font-size: 1.125rem;
  width: 100%;
}

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

	.artist-letter-author {
	  width: 285px;
	}

}

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

	.artists > div {
		margin-top: 60px;
	}

}

/* Artist */

.artist-header .header-inner {
  align-items: flex-start;
}

.artist-header .header-inner > div {
  display: flex;
  flex-direction: column;
}

.artist-header .header-inner > div:nth-last-of-type(2) {
 max-width: 450px;  
}

.artist-header .header-inner > div div {
  margin-top: 15px;
}

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

.artist-header-social {
  text-align: right;
}

}

.artist-header .header-inner > div:last-of-type div + div {
  margin-right: -.5em;
}

.page-artist .browser-filter
,.page-work .browser-filter
,.page-collection .browser-filter
{
  display: none;
}

.page-artist .browser-header
,.page-work .browser-header
,.page-collection .browser-header
{
  background-color: #eee;
  margin-bottom: 0;
  padding-top: 40px;
  padding-bottom: 15px;
}

/* Artist/work browser adjustments */

.page-artist .browser-header h2
,.page-work .browser-header h2
,.page-collection .browser-header h2
{
  display: none;
}

.page-artist .browser-header-count
,.page-work .browser-header-count
,.page-collection .browser-header-count
{
  font-size: 1.5rem;
  font-size: 24px;
  font-weight: 600;
  text-align: left;
}

.page-artist .browser
,.page-work .browser 
,.page-collection .browser 
{
  margin-top: 0;
  /* to prevent flickering when loading works with ajax: */
  min-height: 395px;
}

.page-collection .browser.empty-browser
{
  margin-top: 0;
  min-height: 0;
}

.page-artist select.browser-sort
,.page-work select.browser-sort
,.page-collection select.browser-sort
{
    min-width: 210px;
    background-color: #fff;
    border: 1px solid #fff;
}

.page-artist .browser-container
,.page-work .browser-container
,.page-collection .browser-container
{
    margin-left: -29.38px;
}

.page-artist .browser-item
,.page-work .browser-item 
,.page-collection .browser-item 
{
    margin-bottom: 29.38px;
    margin-left: 29.38px;
}

/*
.page-artist .browser-item-image
,.page-work .browser-item-image 
,.page-collection .browser-item-image 
{
    width: 255px;
    height: 295px;
    padding-top: 32px;
    padding-bottom: 60px;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
*/

/*
.page-artist .browser-selected .browser-item-desc-inner
,.page-work .browser-selected .browser-item-desc-inner
,.page-collection .browser-selected .browser-item-desc-inner
{
    width: calc(100% - 40px);
    height: 430px;
    left: 40px;
}
*/

@media screen and (max-width: 692px) {
  
  .page-artist .browser-container
  ,.page-work .browser-container
  ,.page-collection .browser-container
  {
      margin-left: 0px;
      justify-content: space-between;
  }
  
  .page-artist .browser-item
  ,.page-work .browser-item 
  ,.page-collection .browser-item 
  {
      margin-left: 0px;
      margin-bottom: 18px;
  }
  
  .page-artist .browser-item-image,
  .page-work .browser-item-image,
  .page-collection .browser-item-image {
    width: 100%;
  }
}

/*
@media screen and (max-width: 692px) {
  .page-artist .browser-item-image
  ,.page-work .browser-item-image 
  ,.page-collection .browser-item-image 
  {
      max-height: 295px;
  }
}
*/

/* Collection */

.collection-details {
	max-width: 1140px;
    margin: 60px auto;
}

.collection-description {
	margin-top: 40px;
}

#collection-link .taidelainaamo-form-footer a {
  display: none;
}

/* Slider */

.slider {
  max-width: 1300px;
  margin: 0 auto 0;
  overflow: hidden;
  margin-top: -18px;
}



.slider > div::before {
  content: '';
  background-image: linear-gradient(to right,#ffffffff,#ffffff00);
  position: absolute;
  z-index: 1;
  width: 230px;
  height: 100%;
  top: 0;
  left: -20px;
}

.slider > div::after {
  content: '';
  background-image: linear-gradient(to left,#ffffffff,#ffffff00);
  position: absolute;
  z-index: 1;
  width: 230px;
  height: 100%;
  top: 0;
  right: -20px;
}


.slider > div {
  position: relative;
}

.slider-next, .slider-prev {
  position: absolute;
  top: calc(50% - 30px);
  width: 25px;
  height: 25px;
  border-top: 2px solid #000;
  border-left: 2px solid #000;
  z-index: 2;
  cursor: pointer;
}

.slider-next {
  right: 20px;
  transform: rotate(135deg);
}

.slider-prev {
  left: 20px;
  transform: rotate(315deg);
}

.slider-next:focus, .slider-prev:focus {
	outline: none;
}

@media screen and (max-width: 500px) { 
	.slider > div::before,.slider > div::after {
		width: 60px;
	}
	.slider-next {
	  right: 0px;
	}

	.slider-prev {
	  left: 0px;
	}

}

.tns-ovh {
  overflow: visible;
}

.slider .slides {
  overflow: visible;
}

.slide .item-details {
	margin-top: 18px;
  max-width: calc(100vw - 70px);
  margin: 0 auto;
}

.slide .item-details > * {
	padding-left: 5px;
}

.slide > a {
  display: block;

}

.slide > a:hover {
   color: inherit;
}

.slide > a:hover img {
   color: inherit;
   transform:scale(1.01,1.01);
}


.slide img {
  height: 240px;
  width: auto;
  display: block;
  margin: 0 auto;
}

@media screen and (max-width: 692px) {
  .slide img {
    height: 260px;
  }
}

/* Work status */

.work-status {
  text-transform: uppercase;
  font-size: 12px;
  margin-top: 0.5em;
}

.work-status::before, .browser-filter-info-status::before {
  content: '';
  height: 16px;
  width: 16px;
  margin-bottom: -1px;
  margin-right: 10px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
}

.work-status-available::before, .browser-filter-info-status-available::before {
	background-color: #82FFAD;
	background-image: url(../img/vapaa.svg)
}

.work-status-away::before, .browser-filter-info-away-sold::before {
	background-color: #66a600;	
}

.work-status-reserved::before, .browser-filter-info-status-reserved::before {
	background-color: #FF8A78;
	background-image: url(../img/varattu.svg?v=2)
}

.work-status-rented::before, .browser-filter-info-status-rented::before {
	background-color: #FF8A78;
	background-image: url(../img/lainattu.svg)
}

.work-status-sold::before, .browser-filter-info-status-sold::before {
	background-color: #E20010;
	background-image: url(../img/myyty.svg)
}

.work-status-created::before, .browser-filter-info-status-created::before {
	background-color: #2a2a2a;
}

.work-status-missing::before, .browser-filter-info-status-missing::before {
	background-color: #3573C4;
}

.work-status-void::before, .browser-filter-info-status-void::before {
	background-color: #868686;
}

.work-status-away::before, .browser-filter-info-status-away::before {
	background-color: #D4FFEB;
	background-image: url(../img/tilattavissa.svg)
}

/* work like */
.work-like {
  line-height: 0;
  position: relative;
  z-index: 2;
}
.browser-item .work-like.icon-heart-empty::before,
.browser-item .work-like.icon-heart::before {
  margin-right: 0;
}

.work-like-remove-text {
  display: none;
}

/* Featured */

.featured {
  max-width: 1140px;
  margin: 50px auto 80px;  
  overflow: visible;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.featured > div {
  padding: 40px;
  color: #fff;
  background-color: #000;
  text-align: center;
  width: 100%;
}


.featured > div + div{
  border-left: dotted #fff 4px;
}

@media screen and (max-width: 767px) { 
  .featured {
        flex-wrap: wrap;
		margin-bottom: 20px;
	}

  .featured > div {
	  width: 100%;
	  padding: 40px;
	  color: #fff;
	  background-color: #000;
	  text-align: center;
	}
	.featured > div + div {
	  border-left: none;
	  border-top: dotted #fff 4px;
	}

}

.featured h2 {
  text-transform: uppercase;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.1em;
}

.featured p {
  margin-top: 2.5em;
}

/* work */

.page-work section.work {
  max-width: 1140px;
  margin: 0 auto;
}

.page-work .work-header {
  margin-top: 40px;
}

@media screen and (max-width: 860px) {
	.page-work section.work {
	  max-width: 450px;
	  margin: 0 auto;
	}

	.page-work .work-header {
		margin-bottom: 30px;
	}
	.page-work section.work .item-details {
	  margin-left: 0;
	  margin-top: 30px;
	}
}

.page-work .work-item-desc .work-status {
    margin-top: 20px;
}

.work-status {
  text-transform: uppercase;
  font-size: 16px;
  margin-top: 0.5em;
  letter-spacing: 0.1em;
} 

.page-work .work-item-desc-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  /* border: solid black 1px; */
}

.page-work .work-item-desc h2.work-author {
  font-size: 1.875rem;
  font-size: 30px;
  font-weight: 400;
  margin-top: 0;
  line-height: 1;
}

.page-work .work-item-desc .item-details {
  margin-left: 50px;
  margin-bottom: 50px;
  max-width: 450px;
}

.page-work .work-item-desc .work-link a {
  margin-bottom: 15px;
  min-width: 180px;
  text-align: center;
}

.page-work .work-item-desc .work-image-slides-container {
  width: 412px;
  overflow: hidden;
}

.page-work .work-item-desc .work-item-desc-image {
  overflow: hidden;
  width: 412px;
  height: 412px;
}

.page-work .work-item-desc .work-item-desc-image a {
  display: block;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/*
.page-work .work-item-desc-image {
  overflow: hidden;
  width: 410px;
  height: 410px;
  display: flex;
  justify-content: center;
  align-items: center;
}
*/

.page-work .work-item-desc .work-item-desc-image img {
  max-height: 100%;
  max-width: 100%;
}

.page-work .work-item-desc .work-item-desc-image .work-slider-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.work-item-desc-image-scale {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-work .work-item-desc .work-item-desc-image img.work-item-desc-image-scale-person {
  position: absolute;
  max-width: none;
  max-height: none;
  height: 80%;  
  left: 0; 
  bottom: 0;
  transform-origin: bottom center;
  
}

.page-work .work-item-desc .work-item-desc-image img.work-item-desc-image-scale-person.scale-person-align-top {
  top: 15%;
  bottom: auto;
  left: -5%;
  transform-origin: top left;
}

.page-work .work-item-desc .work-item-desc-image  img.work-item-desc-image-scale-art.scale-art-align-right {
  /*
  position: absolute;
  transform-origin: top left;
  left: 50%;
  top: 20%;
  */
  position: absolute;
  transform-origin: top right;
  right: 0%;
  top: 20%;
}

/*
.page-work .work-item-desc .work-item-desc-image  img.work-item-desc-image-scale-art {
  position: absolute;
  max-width: none;
  max-height: none;
  height: 100%;  
  width: auto;
  left: 0; 
  bottom: 0;
  transform-origin: center center;
  transform: translateY(50%);
}
*/

.page-work .work-item-desc .work-slider-controls {
  display: flex;
  justify-content: space-between;
}

.page-work .work-item-desc .slider-next, .page-work .work-item-desc .slider-prev {
  position: static;
  width: 10px;
  height: 10px;
  margin: 5px;
  margin-top: 30px;
  margin-bottom: 20px;
}

.work-slider-controls .small-capitals {
    margin-top: 30px;
    margin-bottom: 20px;
}

.page-work .work-item-desc .slider-next {
  transform: rotate(135deg);
}

.page-work .work-item-desc .slider-prev {
  transform: rotate(315deg);
}

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

	.create-collection, .work-header .work-like {
		margin-top: 40px;
		display: inline-block;
	}

	.collection-header, .work-header {
		text-align: center;
	}
	
}

@media screen and (max-width: 440px) { 
	.page-work .work-item-desc .work-image-slides-container {
	  width: 339px;
	  margin-left: auto;
	  margin-right: auto;
	}

	.page-work .work-item-desc .work-item-desc-image {
	  width: 339px;
	  height: 339px;
	}


}

@media screen and (max-width: 320px) { 
	.page-work .work-item-desc .work-image-slides-container {
	  width: 284px;
	  margin-left: auto;
	  margin-right: auto;
	}

	.page-work .work-item-desc .work-item-desc-image {
	  width: 284px;
	  height: 284px;
	}


}


/* modal */

.blocker {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    z-index: 5;
    padding: 20px 0;
    box-sizing: border-box;
    background-color: #000;
    background-color: rgba(0,0,0,0.75);
    text-align: center;
}

.blocker:before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -0.05em;
}

.modal {
    display: none;
    vertical-align: middle;
    position: relative;
    z-index: 2;
    max-width: 660px;
    box-sizing: border-box;
    width: 90%;
    background: #fff;
    padding-top: 50px;
    text-align: left;
}

.modal a.close-modal {
    display: block;
    text-indent: -9999px;
}

a.close-modal {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 30px;
  height: 30px;
}
a.close-modal:before, a.close-modal:after {
  position: absolute;
  left: 15px;
  content: ' ';
  height: 30px;
  width: 2px;
  background-color: #000;
}
a.close-modal:before {
  transform: rotate(45deg);
}
a.close-modal:after {
  transform: rotate(-45deg);
}


/*
.page-work .work-item-desc-image {
  width: 500px;
}
*/

/* Lightbox */

.sl-overlay {
  background: #fff;
  opacity: 0.9;
}

.sl-wrapper .sl-navigation button {
    border-top: 4px solid #000;
    border-left: 4px solid #000;
    transform: rotate(315deg);
}

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

.sl-wrapper .sl-navigation button {
  height: 39px !important;
  width: 39px !important;
}

@media (min-width: 50em) {
  .sl-wrapper .sl-navigation button.sl-next {
      right: 80px;
  }
}

@media (min-width: 50em) {
  .sl-wrapper .sl-navigation button.sl-prev {
      left: 80px;
  }
}

/* client color */

/* fix nav on mobile */
@media screen and (max-width: 1023px) {
  div.nav.client-primary-background-color {
    background-color: #fff !important;
  }
}