/**
* CSS
* 
* @version 2.0
* @author Vaska 
*
* There are also some obscure rules in base.css
*/

body {
	font-size: 16px;
	font-family: 'Helvetica Neue', Arial, Helvetica, Verdana, sans-serif;
	background: #fff;
	color: #000;
	line-height: 1.4em;
	/* font-weight: 300; */
}

/* link scheme */
/* you can customize links further down the page too */
a:link { text-decoration: none; color: #000; }
a:visited { text-decoration: none;
	color: #000;
}
a:hover { text-decoration: none;
	background-color: #ffff00;
	color: #000;
}
a:active { text-decoration: none;
	background-color: #ccffcc;
	color: #000;
}
a img { border: none;
	background-color: none;
}

/* general styles */
small { font-size: 9px; }
code { font-family: monospace; }
blockquote { padding-left: 9px; }

/* headings */
h1 { font-size: 16px; margin-bottom: 1em; font-weight: bold; }
h2 { font-size: 16px; margin-bottom: 1em; font-weight: bold; }
h3 { font-size: 16px; margin-bottom: 1em; }
h4 { font-size: 16px; margin-bottom: 1em; }

/* paragraph width */
#index p { margin-bottom: 1em; }
#exhibit p, code, blockquote { max-width: 1200px; width: 100%; margin-bottom: 1em; /* line-height: 1.3em; */ }

/* highlighter style - maybe you want to change colors? */
.highlight { background: #ccffcc; color: #000; }

/* never adjust the margin or padding here unless you seriously know what you are doing */
/* think #index .container and #exhibit .container for only padding adjustments */
#index { width: 215px; background: #fff; /* line-height: 1.3em; */ }
#exhibit { margin: 0 0 0 215px; }

/* styling the index */
#index ul { list-style: none; margin: 0; }
#index ul.section { margin-bottom: 0em; }
#index ul.subsection {  }

/* the follow rules for index are not required */
/* they are mostly for complex customization */
/* for tag display */
#index ul#all_tags { list-style-type: none; margin-bottom: 1em; }
#index ul#all_tags li { display: inline; margin-right: 3px; }
#index ul#all_tags li a {  }

/* styles for the section titles */
#index ul.section span.section_title, 
#index ul.section span.section_title a 
{ color: #333333;
	font-weight: bold;
}

/* active section title */
#index span.active_section_title,
#index span.active_section_title a { font-weight: bold; }

/* active exhibit title parts */
/* color of active exhibit title link and font-weight */
li.active a:link, li a.active, li.active a:hover, li a.active, li.active a:active, li a.active, 
li.active a:visited, li a.active, li span.active, #index ul.section li.active a:link, 
#index ul.section li.active a:hover, #index ul.section li.active a:active, #index ul.section li.active a:visited
{ font-weight: normal;
	background-color: #ccffcc;
}

/* additional #index options */
#index ul li .password a { /* background: url(../img/locked.gif) right center no-repeat; padding-right: 18px; */ }

/* the "new" indicator */
#index ul li sup { color: #0c0; font-weight: bold; text-transform: uppercase; font-size: 8px; vertical-align: top; }
/* end styling for index */

/* links styles only for the #index region */
#index a:link {  } 
#index a:visted {  }
#index a:hover {  } 
#index a:active {  } 

/* links styles only for the #exhibit region */
#exhibit a:link { text-decoration: underline; }
#exhibit a:active {  } 
#exhibit a:hover { text-decoration: none; } 
#exhibit a:visted {  }

/* links styles just for h1 title of site (your name/logo) */
#index h1 a { font-weight: normal; text-decoration: none; color: #000; }

/* this is where you adjust your paddings for #index and #exhibit together */
.container { padding: 34px 9px 25px 35px; }

/* this is where you pad them separately */
#index .container {  }
#exhibit .container {  }

/* size and style of titles and captions (not mobile though) */
.captioning { margin-top: 2px; }
.title { font-size: 14px; line-height: 1.6em; }
.caption { font-size: 12px; font-style: italic; line-height: 1.6em; }
.gallery {
	position: relative;
	margin: 0;
	background: none;
	border: none;
}

/* flexies Diashow */
.gallery figure {
	position: absolute;
	display: inline-block;
	top: 0;
	left: 0;
	z-index: 1;
	animation: wechseln 50s infinite;
}

.gallery:hover figure {
  animation-play-state: paused;
}

@keyframes wechseln {
    0% {opacity: 0;}
    6% {opacity: 1;}
   12% {opacity: 1;}
   18% {opacity: 0;}
  100% {opacity: 0;}
}

.gallery figure:nth-of-type(2) {
	animation-delay: 5s;
	opacity: 0;
}

.gallery figure:nth-of-type(3) {
	animation-delay: 10s;
	opacity: 0;
}
.gallery figure:nth-of-type(4) {
	animation-delay: 15s;
	opacity: 0;
}

.gallery figure:nth-of-type(5) {
	animation-delay: 20s;
	opacity: 0;
}
.gallery figure:nth-of-type(6) {
	animation-delay: 25s;
	opacity: 0;
}

.gallery figure:nth-of-type(7) {
	animation-delay: 30s;
	opacity: 0;
}
.gallery figure:nth-of-type(8) {
	animation-delay: 35s;
	opacity: 0;
}

.gallery figure:nth-of-type(9) {
	animation-delay: 40s;
	opacity: 0;
}

.gallery figure:nth-of-type(10) {
	animation-delay: 45s;
	opacity: 0;
}

/* ==========================================================================
   RESPONSIVE (Flexn5)
   ========================================================================== */

/* fluid media everywhere - overrides any width/height attributes the
   Indexhibit format plugins print inline on <img> tags */
#exhibit img, #exhibit svg, #exhibit video,
#img-container img, #img-container svg, #img-container video {
	max-width: 100%;
	height: auto;
}

/* visual_index / no_thumbs / slideshow all print fixed px inline styles on
   these wrapper elements - cap them at the available width so they never
   overflow a narrow viewport. Specificity from format plugin PHP is inline,
   so !important is required to win. */
#img-container .picture_holder,
#img-container .picture,
.nothumb,
#slideshow-wrapper,
#slideshow {
	max-width: 100% !important;
}

/* hamburger button - hidden on desktop, shown only in the mobile breakpoint below */
#menu-toggle { display: none; }

@media (max-width: 900px) {
	#exhibit p, code, blockquote { max-width: 100%; }

	/* replace the stacked sidebar with a hamburger-triggered overlay menu -
	   the logo (.top) stays pinned top-left at all times and is excluded
	   from the toggle, so it never disappears and never repeats inside
	   the overlay */
	#index {
		position: static;
		width: 100%;
		height: auto;
		overflow: visible;
		background: transparent;
	}
	#index .container { position: static; padding: 0; }

	#index .container .top {
		position: fixed;
		top: 24px; left: 16px;
		z-index: 1950;
	}

	/* !important needed: jquery.indexpand.js calls .show() on the current
	   active section, which sets an inline display:block that would
	   otherwise win over a plain stylesheet rule */
	#index .container > *:not(.top) { display: none !important; }

	#index.menu-open {
		position: fixed;
		top: 0; left: 0; right: 0; bottom: 0;
		z-index: 1900;
		overflow-y: auto;
		background: #fff;
	}
	/* top padding clears the pinned logo so the first nav link (e.g. "Art")
	   isn't covered by it and unclickable */
	#index.menu-open .container { padding: 122px 16px 20px 16px; }
	#index.menu-open .container > *:not(.top) { display: block !important; }

	#exhibit { margin-left: 0; height: auto; }

	#menu-toggle {
		display: block;
		position: fixed;
		top: 16px; right: 16px;
		z-index: 2000;
		width: 49px; height: 43px;
		padding: 0;
		background: transparent;
		border: none;
		cursor: pointer;
	}
	#menu-toggle span {
		display: block;
		width: 100%;
		height: 3px;
		background: #000;
		margin: 12px 0;
		transition: transform .2s ease, opacity .2s ease;
	}
	#menu-toggle.active span:nth-child(1) { transform: translateY(15px) rotate(45deg); }
	#menu-toggle.active span:nth-child(2) { opacity: 0; }
	#menu-toggle.active span:nth-child(3) { transform: translateY(-15px) rotate(-45deg); }

	.container { padding: 20px 16px; }

	/* leave room below the pinned logo so page titles don't run under it */
	#exhibit .container { padding-top: 122px; }

	/* visual_index grid: let columns wrap naturally instead of relying on
	   the fixed pixel "break" width computed server-side.
	   Scoped to format-visual_index only - #img-container is reused by every
	   format's markup (no_thumbs, slideshow, ...) and turning it into a flex
	   container there breaks their block-level text/image layout. */
	body.format-visual_index #img-container { display: flex; flex-wrap: wrap; }
	body.format-visual_index #img-container .picture_holder { height: auto !important; }

	/* no_thumbs: single column on small screens */
	.nothumb { float: none; width: 100%; padding: 0 0 16px 0; }

	/* editors sometimes hardcode large inline font-size (e.g. <big style="font-size:80px">)
	   for display titles - scale those down instead of letting them overflow */
	#exhibit big, #exhibit [style*="font-size"] {
		font-size: clamp(28px, 9vw, 60px) !important;
		line-height: 1.15 !important;
	}
}

@media (max-width: 480px) {
	body { font-size: 15px; }
	.container { padding: 14px 12px; }
}

/* no_thumbs: click a downscaled image to view it at full size */
.nothumb img.zoomable { cursor: zoom-in; }
.zoom-overlay {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0, 0, 0, 0.9);
	z-index: 3000;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: auto;
	cursor: zoom-out;
	padding: 20px;
}
.zoom-overlay img { display: block; margin: auto; max-width: none; }