/* NOTES

IMAGE VERTICAL ASPECT RATIO:
	The gallery-item class r5-r9, r0 is required to define the aspect ratio of a vertical image.
	r0 is square or horizontal image. r5 is a vertical image 2:1 where width is 50% of height.

IMAGE THUMBNAIL CROPPING:
	The gallery-image x0-p (p=10) and y0-p positions the thumbnail in the collapsed bar.
	x0-x4 crops from the right, xp-x6 crops from the left, x5 crops from the center.
	y0-y4 crops from the bottom, yp-y6 crops from the top, x5 crops from the center.

*/

/* GENERAL STYLING */

body.preload * {
	animation-duration: 0s !important;
	transition-duration: 0s !important;
}
.jsonly {
	display: none;
}
.hidden {
	visibility: hidden;
}
HTML, body {
	font-family: Arial, sans-serif;
	font-size: 16px;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	-webkit-tap-highlight-color: transparent;
	margin: 0;
	padding: 0;
	border: 0;
}
h1, h2, h3, h4, h5, p, a, ul, li {
    text-decoration: none;
    margin: 0;
    padding: 0;
}
body {
	-webkit-text-size-adjust: none;
	max-height: 100vh;
	margin: 0;
}


/* SIZE SLIDER VARIABLES */

:root {
	--slider_left: 27px;
	--gallery-item_basis: 260px;
	--aspect-width: 0%;
}
[data-theme='small'] {
	--slider_left: 1px;
	--gallery-item_basis: 130px;
	--aspect-width: 0%;
}
[data-theme='medium'] {
	--slider_left: 27px;
	--gallery-item_basis: 260px;
	--aspect-width: 0%;
}
[data-theme='large'] {
	--slider_left: 53px;
	--gallery-item_basis: 640px;
	--aspect-width: 100%;
}


/* HEADER */

#header {
	position: fixed;
	top: 0;
	width: 100%;
	height: 46px;  /* "header-title" height + margin + border */
	margin: 0;
	padding: 0;
}
.header-title {
	display: inline-block; 
	background: #65638d;
	top: 0;
	width: 100%;
	height: 36px;
	margin: 7px 0 0 0;
	border-style: solid;
	border-width: 1px 0 2px 0;
	border-radius: 0 0 0 6px;
}
.back-home {
	display: inline-block; 
	position: relative;
	top: -8px;
	left: 0px;
	width: 232px;
	height: 50px;
}


/* HEADER - LOGO */

.header-logo::after {
	content: "";
	width: 100%;
	height: 100%;
	z-index: -1;
}
.header-logo, 
.header-logo::after, 
.header-title h1 {
	position: absolute;
}
.header-logo, 
.header-logo::after {
	border-radius: 40px;
}
.header-logo {
	top: -7px;
	left: -14px;
}


/* HEADER - SIG */

.header-title h1 {
	display: none;
}
.header-sig {
	display: block;
	position: relative;
	top: 50%;
	transform: translateY(-50%);
	margin-top: 12px;
	margin-left: 62px;
	font-size: 1.5rem;
	font-weight: bolder;
}


/* HEADER - SUB TITLE */

.header-title h2 {
	position: absolute;
	text-align: left;
	bottom: 1px;
	left: 232px;
	font-size: 1.2em;
	font-weight: 600;
}
.header-title h2 span {
	margin-left: 3px;
}
#btn_top {
	position: relative; 
	top: .4em;
	margin-left : .4em;
	display: inline-block; 
	width: .5em;
	height: .5em;
	border-style: solid;
	border-width: 2px 0 0 2px;
	transform: rotate(45deg);
	border-radius: 2px;
	opacity: 0;
}
#btn_top::before {
	content: " ";
	display: inline-block;
	width: 1em;
	height: 1em;
	border-right: solid 3px;
	border-radius: 1em;
	margin-left: -.8em;
}


/* HEADER - HAMBURGER BUTTON */

.menu-button {
	display: flex;
	position: absolute;
	align-items: center;
	cursor: pointer;
	top: 17px;
	right: 18px;
	width: 22px;
	height: 22px;
}
#menu-button-toggle { opacity: 0; position: fixed; right: 0; top: 0;	}
#menu-button-toggle:checked ~ .menu-button > span { transform: rotate(45deg); }
#menu-button-toggle:checked ~ .menu-button > span::before { top: 0; transform: rotate(0); height: 3px; }
#menu-button-toggle:checked ~ .menu-button > span::after { top: 0; transform: rotate(90deg); }

.menu-button > span::before { content: ''; top: -6px; } /* Hamburger line spacing */
.menu-button > span::after  { content: ''; top:  7px; }

#menu-button-toggle:not(:checked) ~ .menu-button > span, 
#menu-button-toggle:not(:checked) ~ .menu-button > span::before, 
#menu-button-toggle:not(:checked) ~ .menu-button > span::after { box-shadow: 1px 2px #363550; }
#menu-button-toggle:checked ~ .menu-button > span::after { box-shadow: 1px -2px #363550; z-index: -1; }

.menu-button > span, 
.menu-button > span::before, 
.menu-button > span::after {
	display: block;
	position: absolute;
	width: 100%;
	height: 3px;
	border-radius: 1px;
	transition-duration: .125s;
}
.menu-button > span::before {
	height: 2px;
}


/* MENU */

.menu-box {
	position: fixed;
	top: 46px;
	right: -15em;	
	width: 13em;
	padding-bottom: 10px;
	padding-left: 10px;
	border-bottom: 2px solid;
    border-left: 3px solid;
	border-radius: 6px 0 28px 10px;
}
.menu-box,
#menu-button-toggle:checked ~ .menu-box {
	height: 24em;
}
#menu-button-toggle:checked ~ .menu-box {
	right: -1em;
}
.menu-box-inset {
	height: 100%;
	width: 100%;
	margin-top: 0;
	padding-top: 0;
	
	border-bottom: 1px solid;
	border-left: 1px solid;
	border-radius: 4px;
}
.menu-box ul {
	position: relative;
	list-style: none;
	top: 1em;
	width: 9.4em;
	margin: 0 0 1em 20px;
	padding: .2em 0;
	border: 1px solid;
	border-radius: 6px;
}
.menu-item {	
	display: block;
	height: 1.2em;
	padding: .3em 10px;
	text-decoration: none;
	font-weight: 600;
	font-size: 1.2em;
}
.menu-box li:hover .arrow, 
.selected .arrow {
	position: absolute;
	box-sizing: border-box;
	transform-origin: 0 0;
	transform: rotate(-135deg);
	left:  -.6em; /* Horizontal align arrow */
	margin-top: 2em;
	border: .6em solid;
	border-radius: 3px;
}
.menu-item:hover, 
.selected .menu-item {
    font-size: 1.3em;
	margin-top: -.15em;
}


/* MENU - ANIMATION */

#menu-button-toggle:checked ~ .menu-box {
	animation: bump-menu-out .2s ease-out 0s 1 normal; }
	@keyframes bump-menu-out {
		0%   { right: -15em;	transform: scale(1); }
		20%  { 					transform: scale(1.4, 1); }
		50%  { right: 0em; }
		70%  { 					transform: scale(1); }		
		100% { right: -1em;		transform: scale(1); }
}
.menu-box li:hover .arrow {
	animation: arrow-in .2s ease-in-out 0s 1 normal; }
	@keyframes arrow-in {
		0%   { left: -1em; }
		30%  { left: -.5em; }
		100% { left: -.6em; }
}


/* SIZE SLIDER */

.size-disabled {
	width: 20px;
	height: 20px;
}
#toggle_radio > * {
	float: left;
}
#toggle_radio input[type=radio]{
	display: none;
}
#toggle_radio {
	position: absolute;
	overflow: hidden;
	top: 15px;
	right: 50px;
	margin: 0;
	padding: 4px 0px;
	border: 2px solid;
	border-radius: 9px;
}
#toggle_radio label span {
	display: block;
	margin: 2px 7px;
}
.toggle_option_slider {
	position: absolute;
	top: 1px;
	left: var(--slider_left);
	width: 22px;
	height: 20px;
	border: 1px solid;
	border-radius: 6px;
	transition: all .2s ease;
}


/* SIZE SLIDER ICONS */

.icon-small, 
.icon-small::after, 
.icon-small::before {
    box-sizing: border-box;
    position: relative;
    display: block;
    width: 12px;
    height: 12px;
}
.icon-small::after, 
.icon-small::before {
    content: "";
    position: absolute;
    width: 5px;
    border-top: 5px solid;
    border-bottom: 5px solid;
    border-radius:  1px;
}
.icon-small::after {
    right: 0;
}
.icon-medium {
    box-sizing: border-box;
    position: relative;
    display: block;
    width: 12px;
    height: 12px;
    padding-top: 3px;
}
.icon-medium::after, 
.icon-medium::before {
    content: "";
    position: absolute;
    width: 5px;
    border-top: 4px solid;
    border-bottom: 3px solid;
    border-radius:  1px;
}
.icon-medium::after {
    right: 1px;
}
.icon-large {
    box-sizing: border-box;
    position: relative;
    display: block;
    width: 12px;
    height: 12px;
    background: currentColor;
    border-radius: 1px;
}


/* CONTENT */

#matte, 
.matte-shadow {
	min-height: calc(100vh - 13em);
}
#matte {
	position: relative; 
	overflow-x: hidden;
	width: 94%;
	margin-right: auto;
	margin-left: auto;
	padding: 68px 3% 16px 3%;
	border-style: solid;
	border-width: 0 0 2px 0;
	border-radius: 0;
}


/* FOOTER */

#footer {
	text-align: center; 
	padding: .5em;
}
#footer p {
	padding-bottom: 1em;
	font-size: .8em;
}
#footer li {
	display: inline;
	position: relative;
}
#footer li a {
	font-size: .9em;
}
#footer li:not(:last-child):after {
	content: ' | '; 
	font-size: .6em;
}
#footer ul ~ ul {
	margin-top: .4em;
	padding-bottom: 1em;
	font-size: .8em;
}


/* GALLERY - EXPAND BUTTON */

.expand-bar {
	margin-top: 5px;
	margin-right: 2%;
	margin-left: 1%;
}
.gallery-content .expand-bar {
	position: absolute;
	bottom: -22px;
	left: 0;
	width: 100%;
	height: 22px;
	margin: 0;
	border: 1px solid;
    border-radius: 0 0 8px 8px;
}
.gallery-content .expand-button {
	margin: 6px auto 0 auto;
}
.expand-button {
	display: block;
	width: 10px;
	height: 10px;
	transform: rotate(45deg);
	border-style: solid;
	border-width: 4px 0 0 4px;
	border-radius: 2px;
}
.expand-button-toggle {
	display: block; 
	position: relative;
	opacity: 0;
	top: 0;
	width: 100%; 
	height: 50px;
	margin: 0;
	padding: 0;
}
.expand-button-toggle.disabled {
	cursor: auto;
	pointer-events: none;
}
.expand-button-toggle.disabled + .gallery-head .expand-button {
	display: none;
}


/* GALLERY - HEADER */

.gallery-head {
	display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 24px;
	margin: -50px 0 0 0;
	padding: 6px;
	border: 2px solid;
}
.gallery-head .logo-bg {
	display: block;
	position: relative;
	top: -15px;
	left: -12px;
	margin-right: 6px;
	border-radius: 50%;
}
.gallery-head .logo {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.gallery-head-title h2 {
	font-size: .85em;
}
.gallery-head-title p {
	font-size: .75em;
}
.gallery-head-title h2, 
.gallery-head-title p {
	max-height: 40px;
	margin: 0 0 0 44px;
}
.gallery-head-title h2 {
	margin-top: -50px;
}
.gallery-head .nologo .logo-bg {
	visibility: hidden;
}
.gallery-head .nologo {
	margin-left: -40px;
}


/* GALLERY - CONTENT */

.gallery {
	position: relative;
	margin-bottom: 16px;
	margin-left: 0;
	border-radius: 12px 4px 8px 8px;
}
.gallery-content, 
.gallery-content * {
    box-sizing: border-box;
}
.gallery-content, 
.imgset {
	display: flex;
	align-items: center;
	flex-direction: row;
	flex-wrap: wrap;
	width: 100%;
}
.gallery-content {
	margin: 0 0 46px 0;
	padding: 10px 1.5%; 
	border-style: solid;
	border-radius: 0;
	border-width: 0px 2px 1px 2px;
}
.expand-button-toggle.disabled ~ .gallery-content {
	margin-bottom: 30px;
	border-bottom-width: 2px;
	border-radius: 0 0 8px 8px;
}
.gallery-item,
.gallery-content .spcr ~ span {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 0 260px;
	flex-basis: var(--gallery-item_basis);
	max-width: calc(100% - 4px);
	padding: 4px;
	margin: 2px;
	border-radius: 5px;
}
.gallery-content .spcr ~ span {
	height: 0;
	padding-top: 0;
	padding-bottom: 0;

	margin: 0 .75%; /* .75% side margin fixes scale issue with bottom row */
	visibility: hidden;
}
.gallery-item:not(.video) a {
	max-width: 100%;
	padding: 1px;
	margin-left: 1px;
	border: 1px solid;
}
.gallery-image {
	border: 2px solid;
	width: 100%;
}
.gallery-item.r5 a { width: calc(var(--aspect-width) + 50%); }
.gallery-item.r6 a { width: calc(var(--aspect-width) + 60%); }
.gallery-item.r7 a { width: calc(var(--aspect-width) + 70%); }
.gallery-item.r8 a { width: calc(var(--aspect-width) + 80%); }
.gallery-item.r9 a { width: calc(var(--aspect-width) + 90%); }
.gallery-item.r0 a { width: 100%; }



/* GALLERY - DIRECTORY ICON */

.gallery-item a {
	position: relative;
}

.gallery-item.dir .icon-bg,
.gallery-item.dir .icon-fg {
	position: absolute;
	width: 12%;
	max-width: 60px;
	min-width: 24px;
	top: 3px;
	right: 3px;
	border-radius: 0 3px 0 0;
	transition-duration: 0s;
}
.gallery-item.dir .icon-bg {
	transition-duration: .1s;

}
.gallery-item.dir:hover .icon-fg {
	width: 16%;
	max-width: 80px;
	min-width: 32px;
	top: 2px;
	right: 2px;
	transition-duration: .1s;
}
.gallery-item.dir:hover .icon-bg {
	width: 20%;
	max-width: 100px;
	min-width: 36px;
	transition-duration: .15s;
}


	/* Directory Icons Collapse */

.expand-button-toggle:checked ~ .gallery-content .icon-fg, 
.expand-button-toggle:checked ~ .gallery-content .icon-bg {
	display: none;
}



/* GALLERY VIDEO */

.gallery-item.video {
	display: block; 
	flex: 0 1 260px;
	flex-basis: calc(var(--gallery-item_basis) * 1.5);
	margin: 1% auto;
	font-size: .8em;
}
.gallery-item.video .gallery-image {
	display: none;
}
.gallery-item.video p {
	text-align: left;
	width: 100%;
	margin: 6px auto 0 auto;
	padding: 0 8px;
}
video,
.gallery-app,  
.gallery-item.video p.video-error {
	margin: 3px auto;
	border: 2px solid;
}
.gallery-item.video p.video-error {
	background-color: #4C3233;
	background-image: linear-gradient(to bottom, rgba(60, 40, 40, .5), rgba(60, 40, 40, .6)), url(../_style/wood_dark.jpg);
	color: #8D7171;
}
video::-webkit-media-controls-overlay-play-button {
	transform: scale(.6, .6);
	opacity: .6;
}
.video {
	cursor: pointer;
}


/* GALLERY - INFO */

.no-bullet li {
	list-style-type: none;
}
.gallery-content.info {
	padding: 16px 4%;
	width: 100%;
}
.info-block {
	width: 97%;
	min-width: 40%;
	max-width: 40em;
	margin: 0 auto;
}
.info-block:not(.no-bg) {
	border: 1px solid;
	padding: 6px 1em 0 1em;
}
.info-block p {
	max-width: 36em
}
.gallery-content:not(.info) .info-block {
	min-width: 96%;
	max-width: 96%;
	margin-top: .5em;
	margin-bottom: .5em;
}
.gallery-content .thumb {
	display: none;
}

	/* Info block headers */

.info-block h3,
.info-block h4, 
.info-block h5, 
.info-block p, 
.info-block ul {
	margin-bottom: 1em;
}
.info-block h5 {
	margin: 0;
}
.info-block h3 {
	font-size: .9em;
	font-weight: 600;
	width: calc(100% + .75em);
	padding: 4px 8px;
	margin-left: -.5em;
	border-style: solid;
	border-width: 1px 0 0 1px;
}
.info-block h4,
.info-block h5 {
	font-size: .9em;
	font-weight: 600;
}
.info-block h5:not(.pre) {
	margin-top: -.75em;
	margin-bottom: 1em;
}
.info-block b {
	font-size: .9em;
}
.info-block h4 i,
.info-block ul ul li span {
	display: inline-block;
	font-style: italic;
	font-size: .85em;
	font-weight: 400;
}
.info-block h4:first-child, 
.info-block p:first-child,
.info-block ul:first-child {
	margin-top:.5em;
}

	/* Info block bullet list */

.info-block ul {
	margin-bottom: 1.5em;
}
.info-block ul li {
	margin-left: 1em;
	margin-bottom: .5em;
}
.info-block ul li,
.info-block p {
	clear: left;
}

	/* Info block logo list */

.logo-bullet {
	float: left;
	width: 2.5em;
	margin-right: .5em;
	margin-top: -.4em;
}
.info-block ul ul {
	font-size: 1em;
}
.info-block ul ul {
	font-size: .9em;
	vertical-align: top;
	margin-left: 1em;
	margin-bottom: .25em;
}
.info-block ul ul li {
	list-style-type: none;
	vertical-align: top;
	line-height: .9em;
	min-height: 2.5em;
	margin-left: 0;
	margin-bottom: .25em;
}
.info-block ul ul li i {
	vertical-align: middle;
}
.info-block ul ul li i::after {
	content: "\a";
	white-space: pre;
}
.date {
	font-size: .85em; 
}

	/* Info block media */
	
.info-item {
	width: 99%;
	margin: 1em .5%;
}
.info-item.video {
	max-width: calc(var(--gallery-item_basis) * 3);
}
.info-item.size-small {
	max-width: 400px;
}
.info-item.size-med {
	max-width: calc(var(--gallery-item_basis) * 2.4);
}
.info-item.size-large {
	max-width: 800px;
}
.info-image {
	display: block;
	width: 100%;
	margin: 0 auto;
	padding: 1px;
	border: 1px solid;
}

/* INFO WIDE (Multi column list) */

@media only screen and (min-width: 35em) {
	.info-block ul ul li {
		display: inline-block; 
		width: 48%;
	}
}
@media only screen and (min-width: 981px) {
	.gallery-content info .info-block {
		min-width: 40em;
	}
}


/* TIMELAPSE SLIDER */

.timelapse-container {
	display: flex;
	position: relative;

	flex-direction: column-reverse;
	width: calc(99% + 2em);
	margin-left: -1em;
	margin-bottom: -1em;
}
.chart {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	transition-duration: .4s;
}
.chart.selected {
	opacity: 1;
}
.timelapse-image {
	position: relative;
	width: 100%;
	cursor: pointer;
}
.timelapse-image img {
	width: 100%;
	border: 1px solid;
}
.chart img {
	width: 100%;
}

	/* Timeline */

.timeline-container {
	display: flex;
	align-items: center;
	position: relative;
	width: 100%;
	margin: 2px 0 4px 0;
	height: 64px;
}
.timeline-thumbnails {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex: 1;
	width: 100%;
	height: 100%;
}
.timeline-thumbnails img {
	height: 100%;
	width: auto;
	object-fit: contain; 
	margin: 0 2px;
	padding: 0;
}

.timeline-container, 
.timeline-thumbnails {
	overflow: auto;
    scrollbar-width: none; /* Hide scrollbar in Firefox */
    -ms-overflow-style: none; /* Hide scrollbar in IE and Edge */
}
/* Hide scrollbar in Chrome, Safari, and Opera */
.timeline-container::-webkit-scrollbar,
.timeline-thumbnails::-webkit-scrollbar {
    display: none;
}


	/* Slider */

.timelapse-slider {
	width: calc(100% - 4px);
	position: absolute;
	top: -2px;
	left: 0;
	height: 100%;
	appearance: none;
	background-color: transparent;
	cursor: pointer;
	border: none;
	--webkit-appearance: none;
}
.timelapse-slider::-webkit-slider-runnable-track,
.timelapse-slider::-moz-range-track {
	background-color: transparent;
	height: 100%;
	width: 100%;
}
.timelapse-slider::-webkit-slider-thumb,
.timelapse-slider::-moz-range-thumb {
	height: calc(100% - 2px);
	border-style: solid;
	border-width: 2px 1px 2px 2px;
}

	/* Thumbnail Scaling */

.max1 .timeline-thumbnails img {
	width: 100%;
}

.max1 .timelapse-slider::-webkit-slider-thumb,
.max1 .timelapse-slider::-moz-range-thumb {
	width: calc(50% - 4px);
}
.max2 .timeline-thumbnails img {
	width: 50%;
}

.max2 .timelapse-slider::-webkit-slider-thumb,
.max2 .timelapse-slider::-moz-range-thumb {
	width: calc(33.33% - 4px);
}
.max3 .timeline-thumbnails img {
	width: 33.33%;
}

.max3 .timelapse-slider::-webkit-slider-thumb,
.max3 .timelapse-slider::-moz-range-thumb {
	width: calc(20% - 4px);
}
.max4 .timeline-thumbnails img {
	width: 20%;
}

.max4 .timelapse-slider::-webkit-slider-thumb,
.max4 .timelapse-slider::-moz-range-thumb {
	width: calc(16.67% - 4px);
}
.max5 .timeline-thumbnails img {
	width: 16.67%;
}

.max5 .timelapse-slider::-webkit-slider-thumb,
.max5 .timelapse-slider::-moz-range-thumb {
	width: calc(14.29% - 4px);
}
.max6 .timelapse-slider::-webkit-slider-thumb,
.max6 .timelapse-slider::-moz-range-thumb {
	width: calc(14.29% - 4px);
}

.max6 .timeline-thumbnails img {
	width: 12.5%;
}



@media only screen and (min-width: 821px) and (min-height: 460px) {
	.timelapse-container {
		flex-direction: column;
		width: 100%;
		margin-left: 0;
		margin-bottom: 0;
	}
	.timeline-container {
		min-height: 48px;
	}
	.timelapse-slider {
		overflow: hidden;
	}
}


/* PARALLAX */

.parallax-container {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: 100%;
}

#parallax-wrap {
	position: relative;
	overflow: hidden;
	width: 125%;
	height: 125%;
}
.parallax-layer {
	position: absolute;
	left: -10%;
	top: -10%;
	width: 100%;
	height: 100%;
}


/* GALLERY MARGIN OVERRIDE */

.gallery .no-margin-bottom {
	margin-bottom: 0;
}
.gallery .no-margin-top {
	margin-top: 0;
}


/* GALLERY - COLLAPSED */

.expand-button-toggle,
.expand-bar {
	cursor: pointer;
}
.gallery:not(.info) .expand-button-toggle:checked {
	height: 128px;
}
.gallery:not(.info) .expand-button-toggle:checked ~ .gallery-head {
	margin-top: -128px;
}
.expand-button-toggle:checked ~ .gallery-head .expand-button {
	margin-top: -5px;
	border-style: solid;
	border-width: 4px 0 0 4px;
	transform: scaleY(-1) rotate(45deg);
}
.expand-button-toggle:checked ~ .gallery-head {
	height: auto;
	padding: 4px 6px;
}
.expand-button-toggle:checked ~ .gallery-content {
	display: flex;
	flex-wrap: nowrap;
	object-fit: cover;
	overflow: hidden;
	width: 100%;
	height: 80px;
	padding: 0;
	margin: 0;
	border-style: solid;
	border-width: 0 2px 2px 2px;
	border-radius: 0 0 6px 12px;
	margin-bottom: 16px;
}
.expand-button-toggle:checked ~ .gallery-content:not(.info) .gallery-item {
	display: block;
	object-fit: cover;
	overflow: hidden;
	flex: 0 8 160px;
	width: 100%;
	height: 80px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	border-left: 2px solid;
}
.expand-button-toggle:checked ~ .gallery-content.thin .gallery-item {
	border-left-width: 1.5px;
}
.expand-button-toggle:checked ~ .gallery-content.thinner .gallery-item {
	border-left-width: .75px;
}
.expand-button-toggle:checked ~ .gallery-content .gallery-item:nth-of-type(2) {
	border-left-width: 2px;
}
.expand-button-toggle:checked ~ .gallery-content:not(.info) div:first-of-type {
	flex: 0 1 160px;
	height: 80px;
	border: 0;
	border-radius: 0 0 0 8px;
}
.expand-button-toggle:checked ~ .gallery-content:not(.info) div:last-of-type {
	border-radius: 0 4px 4px 0;
}
.expand-button-toggle:checked ~ .gallery-content .gallery-item a {
	margin: 0;
	padding: 0;
	border: 0;
}
.expand-button-toggle:checked ~ .gallery-content .gallery-item a .gallery-image, 
.expand-button-toggle:checked ~ .gallery-content .gallery-item.video .gallery-image {
	display: block;
	object-fit: cover;
	width: 100%;
	height: 80px;
	border: 0;
	border-radius: 0;
}
.expand-button-toggle:checked ~ .gallery-content:not(.info) .hide-collapsed,
.expand-button-toggle:checked ~ .gallery-content:not(.info) .info-block,
.expand-button-toggle:checked ~ .gallery-content .expand-button, 
.expand-button-toggle:checked ~ .gallery-content .gallery-item.video video, 
.expand-button-toggle:checked ~ .gallery-content .gallery-item.video .gallery-video p, 
.expand-button-toggle:checked ~ .gallery-content .spcr ~ span {
	display: none;
}
.expand-button-toggle:checked ~ .gallery-content .expand-bar {
	background: revert;
	height: 100%;
	top: 0;
	border: 0;
	box-shadow: 0 0 0;
}



	/* Thumbnail position collapse */

.y0 { object-position: 50% top; }
.y1 { object-position: 50% 10%; }
.y2 { object-position: 50% 20%; }
.y3 { object-position: 50% 30%; }
.y4 { object-position: 50% 40%; }
.y6 { object-position: 50% 60%; }
.y7 { object-position: 50% 70%; }
.y8 { object-position: 50% 80%; }
.y9 { object-position: 50% 90%; }
.yp { object-position: 50% bottom; }

.x0 { object-position: left 50%; }
.x1 { object-position: 10% 50%; }
.x2 { object-position: 20% 50%; }
.x3 { object-position: 30% 50%; }
.x4 { object-position: 40% 50%; }
.x6 { object-position: 60% 50%; }
.x7 { object-position: 70% 50%; }
.x8 { object-position: 80% 50%; }
.x9 { object-position: 90% 50%; }
.xp { object-position: right 50%; }

	/* Info block collapse */

.gallery-content.info { 
	transition-duration: 0s !important;
}
.expand-button-toggle:checked ~ .gallery-content.info {
	border: 0;
}
.expand-button-toggle:checked ~ .gallery-content.info .info-block {
	min-width: 100%;
	margin: 0;
	padding: 8px 0 8px 12px;
	border-style: solid;
	border-width: 0 2px 2px 2px;
	border-radius: 0 0 8px 8px;
}
.expand-button-toggle:checked ~ .gallery-content.info p, 
.expand-button-toggle:checked ~ .gallery-content.info h3, 
.expand-button-toggle:checked ~ .gallery-content.info h4:last-of-type, 
.expand-button-toggle:checked ~ .gallery-content.info h5.pre, 
.expand-button-toggle:checked ~ .gallery-content.info li:not(.logo-item), 
.expand-button-toggle:checked ~ .gallery-content.info li i, 
.expand-button-toggle:checked ~ .gallery-content.info li span {
	display: none;
}
.expand-button-toggle:checked ~ .gallery-content.info h4:first-of-type {
	display: block;
}
.expand-button-toggle:checked ~ .gallery-content.info .logo-list {
	display: inline-block;
}
.expand-button-toggle:checked ~ .gallery-content.info, 
.expand-button-toggle:checked ~ .gallery-content.info ul,
.expand-button-toggle:checked ~ .gallery-content.info .logo-item {
	display: inline; 
}
.expand-button-toggle:checked ~ .gallery-content.info ul, 
.expand-button-toggle:checked ~ .gallery-content.info li {
	margin: 0;
}
.expand-button-toggle:checked ~ .gallery-content.info h4, 
.expand-button-toggle:checked ~ .gallery-content.info .info-item {
	margin: .25em 0;
}
.expand-button-toggle:checked ~ .gallery-content.info .info-block h4:first-of-type {
	margin-top: .25em;
	padding: 0;
}
.expand-button-toggle:checked ~ .gallery-content.info .info-block h5 {
	margin: 0 0 1em 0;
}
.expand-button-toggle:checked ~ .gallery-content.info .info-item a .info-image, 
.expand-button-toggle:checked ~ .gallery-content.info .info-item .gallery-video {
	width: 80%;
	max-width: 240px;
	height: auto;
	margin: 0;
}
.expand-button-toggle:checked ~ .gallery-content.info .info-item a .info-image {
	overflow: hidden;
	object-fit: cover;
	object-position: 0 80%;
	height: 80px;
	margin-top: -.25em;
}
@media only screen and (max-height: 400px) {
	.expand-button-toggle:checked ~ .gallery-content.info .info-block h5 {
		margin: 0;
	}
}


/* GALLERY - ANIMATION */

.gallery-item:not(.video) {
	pointer-events: none;
}
.gallery-item a {
	pointer-events: auto;
}
.gallery-item a:hover {
	transform: scale(1.05);
	transition-duration: .1s;
	transition-timing-function: ease-out;
}

.gallery-head {
	animation: bump-expand .25s ease-out 0s 1 normal; }
	@keyframes bump-expand {
		0%	 { padding-bottom: 4px;	 padding-top: 4px; }
		40%	 { padding-bottom: 12px; padding-top: 8px; }
		100% { padding-bottom: 6px;	 padding-top: 6px;}
}
.expand-button-toggle:checked ~ .gallery-head {
	animation: bump-collapse .25s ease-out 0s 1 normal; }
	@keyframes bump-collapse {
		0%	 { padding-top: 6px; padding-bottom: 6px; }
		40%	 { padding-top: 3px; padding-bottom: 2px; }
		100% { padding-top: 4px; padding-bottom: 4px; }
}
.gallery-head-title {
	animation: bump-expand-title .25s ease-out 0s 1 normal; }
	@keyframes bump-expand-title {
		0%	 { transform: scale(1); }
		20%	 { transform: scale(1, 1.2); }
		100% { transform: scale(1); }
}
.expand-button-toggle:checked ~ .gallery-head .gallery-head-title {
	animation: bump-collapse-title .25s ease-in-out 0s 1 normal; }
	@keyframes bump-collapse-title {
		0%	 { transform: scale(1); }
		20%	 { transform: scale(1, .9); }
		100% { transform: scale(1); }
}
.expand-button-toggle:checked ~ .gallery-content {
	animation: bump-collapse-pad .2s ease-out 0s 1 normal; }
	@keyframes bump-collapse-pad {
		0%	 { padding-bottom: 180px; height: 80px; }
		30% { padding-bottom:  0;  height: 80px; }
		40% { height: 76px;}
		100% { height: 80px;}
}
.expand-button-toggle:checked ~ .gallery-content .info-block {
    transform-origin: top center;
	animation: bump-collapse-info .1s ease-out 0s 1 normal; }
	@keyframes bump-collapse-info {
		0%	 { transform: scale(1); }
		20%	 { transform: scale(1, .95); }
		100% { transform: scale(1); }
}
.expand-button-toggle:checked ~ .gallery-content .info-block h4, 
.expand-button-toggle:checked ~ .gallery-content .info-block ul .logo-list .logo-item .logo-bullet {
    transform-origin: top center;
	animation: bump-collapse-info-logo .2s ease-out 0s 1 normal; }
	@keyframes bump-collapse-info-logo {
		0%	 { transform: scale(1); }
		40%	 { transform: scale(1, .8); }
		100% { transform: scale(1); }
}


/* TRANSITION - HEADER */

#btn_top {
	transition-duration: .25s;
}

#header,
.header-title, 
.header-logo, 
.menu-box,
#menu-button-toggle:checked ~ .menu-box,
#toggle_radio {
	transition-duration: .1s;
}
.header-sig, 
.header-title h1,
.header-title h2 {
	transition-duration: .1s;
}
.header-logo {
	transition: background 0s;
}


/* TRANSITION - GALLERY */

#matte,
.matte-shadow, 
.gallery,
.gallery-content,
.gallery-content.info {
	transition-duration: .1s;
}
.expand-button {
	transition-duration: .125s;
}
#content, 
.gallery-head, 
.expand-button-toggle:checked ~ .gallery-head, 
.expand-button-toggle:checked ~ .gallery-content, 
.expand-button-toggle {
	transition-duration: .25s;
}


/* Z-DEPTH */

#header {
	z-index: 2;
}
.expand-button-toggle {
	z-index: 1;
}
.expand-button {
	z-index: 0;
}


/* END */