/*
Theme Name: Touchfolio
Theme URI: http://dimsemenov.com/themes/touchfolio/
Description: Fast and simple portfolio theme for creative people
Author: Dmitry Semenov
Author URI: http://www.dimsemenov.com
Version: 0.9
Tested up to: 7.1
Requires PHP: 8.3
License: http://dimsemenov.com/themes/touchfolio/license.txt
*/
/*
 * Touchfolio Modern Helvetica Skin. Inspired by MoreCSS =)
 *
 * Plain CSS, no build step. The skin is the set of custom properties in
 * :root below: change colours, fonts and sizes there.
 *
 * Two kinds of value are written out as literals, because CSS cannot derive
 * them from a custom property here:
 * - colours that are a lighter, darker or transparent version of a property;
 * - lengths that add to or subtract from a property.
 * The comment next to each names the property it comes from; update the
 * literal together with that property. Lengths that are a multiple of a
 * property use calc().
 *
 * Contents
 *   Skin
 *     1. Fonts and text links
 *     2. Sidebar menu
 *     3. Background colors
 *     4. Widgets
 *     5. Logo size and position
 *     6. Footer size, gallery padding and other stuff
 *   Helpers and reset
 *   Typography: links, selection, headings, lists, blockquotes, forms
 *   Two-dimensional slider
 *   Page and blog content
 *   General layout
 *     1. Layout: main wrappers and containers
 *     2. Menu (normal and collapsed on mobile)
 *     3. Logo, site description
 *     4. Widgets
 *     5. Footer
 *     6. Masonry portfolio styling
 *     7. Search results page
 *     8. Media queries < 1150px
 *     9. Regular page collapsed layout
 *     10. Gallery page collapsed layout
 *     11. Media queries < 620px
 *     12. Media queries < 500px
 */


/* ==========================================================================
   Skin
   ========================================================================== */

:root {
	/* 1. Fonts and text links */
	--body-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--body-font-line-height: 1.6;

	--text-color: #3b3a37; /* main body text color */
	--secondary-text-color: #929699;
	--sidebar-text-color: var(--text-color);

	--link-color: #000;
	--link-hover-color: #c00;

	--title-color: #333;
	/* --title-font is not set, so headings inherit the body font; set it to a font list to change them. */
	--title-weight: bold;

	--font-smallest: .75em;
	--font-small: .875em;
	--font-small-line-height: 1.6em;
	--font-small-em-size: 1.1428571428571428; /* 1 / 0.875 (--font-small), unitless: turns body-size ems into ems at --font-small, for alignment */

	--selection-bg-color: #c00;
	--selection-text-color: #fff;

	/* 2. Menu */
	--menu-item-color: #333;
	--menu-item-hover-color: #888;
	--selected-menu-item-color: #333;

	--menu-font-weight: normal;
	--menu-font-size: 13px;
	--menu-line-height: 20px;

	--projects-menu-font-size: 13px;
	--projects-menu-line-height: 20px;
	--projects-menu-font-color: #999;

	--menus-margin: 10px; /* margin between menu / secondary menu / site description */

	/* 3. Background colors */
	--content-background: #f8f8f6;
	--sidebar-background: #fff;

	/* 4. Widgets */
	--widget-title-font-size: 13px;
	--widget-title-line-height: 20px;
	--widget-body-font-size: 13px;
	--widget-body-line-height: 20px;

	/* 5. Logo size and position */
	/* In sidebar */
	--default-logo-margin: 2.9em 0 9px 0;
	--default-logo-width: auto;

	/* Gallery page on small screens (collapsed) */
	--collapsed-gallery-logo-padding: 7px 0 0 0;
	--collapsed-gallery-logo-width: 100px;
	--collapsed-gallery-menu-area-padding: 0 8px 0 8px;
	--collapsed-gallery-menu-button-margin: 0 -8px 0 0;

	/* Regular page on small screens */
	--collapsed-layout-logo-padding: 20px 16px 20px 16px;
	--collapsed-layout-logo-width: 140px;
	--collapsed-layout-menu-button-margin: 13px 8px 13px 16px;

	--site-description-font-size: 12px; /* text under logo */

	/* 6. Footer and other */
	--footer-copy-text-color: var(--secondary-text-color);
	--footer-max-height: 4.4em; /* max height of footer when site width is more than 960px */

	--sidebar-width-full: 16em;
	--content-max-width: 640px;
	--content-large-image-max-width: calc(var(--content-max-width) * 1.2);

	--gallery-padding: 8px; /* space between gallery and browser edges */
	--preloader-url: url(img/preloader.gif);
	--sprite-url: url(img/touchfolio-sprite-default.png);
}


/* ==========================================================================
   Helpers and reset
   ========================================================================== */

/* Helpers */
.clearfix::before,
.clearfix::after {
	display: table;
	content: "";
}
.clearfix::after {
	clear: both;
}
.fade-out {
	opacity: 0 !important;
}

/* Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
blockquote,
q {
	quotes: none;
}
blockquote::before,
blockquote::after,
q::before,
q::after {
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}


/* ==========================================================================
   Typography: links, selection, headings, lists, blockquotes, forms
   ========================================================================== */

body {
	font-family: var(--body-font);
	color: var(--text-color);
	font-size: 100%;
	line-height: var(--body-font-line-height);
}

/* Links */
a,
a:link,
a:visited,
a:active,
a:focus {
	color: var(--link-color);
	text-decoration: none;
	outline: none;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}
a:hover {
	color: var(--link-hover-color);
	background: rgba(204, 0, 0, 0.05); /* --link-hover-color at 5% opacity */
	text-decoration: none;
}
a:focus {
	outline: thin dotted;
}
a:hover,
a:active {
	outline: 0;
}

/* Text selection */
::selection {
	background-color: var(--selection-bg-color);
	color: var(--selection-text-color);
	text-shadow: none;
}

p a,
li a,
blockquote a,
.text-block a {
	border-bottom: 1px solid rgba(0, 0, 0, 0.3); /* --link-color at 30% opacity */
}
p a:hover,
li a:hover,
blockquote a:hover,
.text-block a:hover {
	border-bottom-color: var(--link-hover-color);
}
.underlined {
	border-bottom: 1px solid rgba(0, 0, 0, 0.3); /* --link-color at 30% opacity */
}
.underlined:hover {
	border-bottom-color: var(--link-hover-color);
}

small {
	font-size: 0.75em;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: var(--title-weight);
	font-family: var(--title-font, inherit);
}
h1 {
	font-size: 2.5em;
	line-height: 1.1em;
}
h2 {
	font-size: 1.8em;
	margin: 1.05em 0 .55em;
	line-height: 1.2em;
}
h3 {
	font-size: 1.25em;
	margin: 1.1em 0 0.5em;
	line-height: 1.2em;
}
h4,
h5,
h6 {
	font-size: 1em;
	margin: 1.5em 0 0.5em;
}
p {
	margin-bottom: 1em;
}
p img {
	display: block;
	height: auto;
	width: auto;
	max-width: var(--content-large-image-max-width);
}
ul,
ol {
	margin: 0 0 1em 2em;
}
li {
	margin: 0 0 0.5em 0;
}
blockquote {
	margin: 1em 0 1em 2em;
}
pre {
	font-family: Courier, monospace;
	font-size: 0.75em;
	line-height: 1.2em;
}

/* Form styling */
input[type="submit"],
button,
.button {
	border-radius: 4px;
	color: var(--content-background);
	font-family: var(--body-font);
	background: var(--text-color);
	font-weight: bold;
	cursor: pointer;
	display: block;
	outline: none;
	padding: 0.75em 1.5em;
	position: relative;
	text-decoration: none;
	border: 0;
	transition: background-color 0.3s ease-in-out;
}
input[type="submit"]:hover,
button:hover,
.button:hover {
	background: #555450; /* --text-color lightened by 10% */
}
input[type="submit"]:active,
button:active,
.button:active {
	background: #21201e; /* --text-color darkened by 10% */
}
form label {
	display: block;
	font-weight: bold;
	padding-bottom: 0.25em;
	margin: 0;
	font-size: var(--font-small);
	line-height: var(--font-small-line-height);
	cursor: pointer;
}
form input,
form textarea {
	padding: calc(0.5em * var(--font-small-em-size));
	font-size: var(--font-small);
	line-height: var(--font-small-line-height);
	border: 1px solid #999;
	margin: 0;
}


/* ==========================================================================
   Two-dimensional slider
     1. Preloader
     2. Video-related things
     3. Wrappers, image containers etc.
     4. Arrows navigation
     5. Album name + count (1 of n)
     6. Collapsed slider styles
     7. Album info block (share, close project button)
     8. Specific gallery page styles
   ========================================================================== */

.two-dim-slider {
	position: relative;
	width: 600px;
	height: 600px;
	z-index: 1;
}

/* 1. Preloader */
.two-dim-slider .preloader-container {
	position: absolute;
	left: 50%;
	top: 50%;
}
.two-dim-slider .preloader-container .preloader-spinner {
	width: 20px;
	height: 20px;
	margin-left: -10px;
	margin-top: -10px;
	background: var(--preloader-url);
}

/* 2. Video-related things */
.two-dim-slider a.play-button-container {
	position: absolute;
	left: 50%;
	top: 50%;
	display: block;
	border: 0;
}
.two-dim-slider a.play-button-container:hover {
	opacity: .8;
	background: none;
	border: 0;
}
.two-dim-slider .play-button {
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	width: 64px;
	height: 64px;
	margin-left: -32px;
	margin-top: -32px;
	display: block;
	cursor: pointer !important;
	background: var(--sidebar-background);
	border-radius: 32px;
	overflow: hidden;
	transition: opacity .3s ease-in-out;
}
.two-dim-slider .play-button .play-button-icon {
	width: 64px;
	height: 64px;
	background: var(--sprite-url) no-repeat -96px 0 transparent;
	display: block;
	float: left;
}
.two-dim-slider .play-button.play-button-loading .play-video-loading-icon {
	width: 64px;
	display: block;
	float: left;
	height: 64px;
	background: var(--preloader-url) no-repeat center center transparent;
}
.two-dim-slider .play-button.play-button-loading .play-icons-wrap {
	margin-left: -64px;
}
.two-dim-slider .play-button .play-icons-wrap {
	width: 128px;
	margin: 0;
	display: block;
	margin-left: 0;
	transition: all 0.3s cubic-bezier(0.235, 0.640, 0.565, 1.000);
}
.two-dim-slider .back-to-list-button {
	position: absolute;
	z-index: 30;
	left: var(--gallery-padding);
	top: 16px; /* --gallery-padding + 8px */
	padding: 4px 8px 3px;
	background: var(--sidebar-background);
	display: block;
}
.two-dim-slider .video-overlay {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 26;
	bottom: 0;
	right: 0;
	display: none;
}
.two-dim-slider .video-overlay .video-container {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	margin: 3em; /* border */
	overflow: hidden;
}
.two-dim-slider .video-overlay .video-close-button {
	position: absolute;
	z-index: 30;
	right: var(--gallery-padding);
	top: 16px; /* --gallery-padding + 8px */
	padding: 4px 8px 3px;
	background: var(--sidebar-background);
	display: block;
	font-size: var(--font-small);
}
.two-dim-slider .close-button {
	cursor: pointer;
	display: block;
	width: 32px;
	height: 32px;
	position: relative;
	transition: all .3s ease-in-out;
}
.two-dim-slider .close-button .close-icon {
	margin: 0;
	width: 32px;
	height: 32px;
	background: var(--sprite-url) no-repeat -64px -32px;
	background-color: var(--sidebar-background);
	display: block;
}

/* 3. Wrappers, image containers etc. */
.two-dim-slider .slider-wrapper {
	overflow: hidden;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	margin: 0;
	z-index: 20;
	padding: 0;
}
.two-dim-slider .drag-container {
	position: relative;
	width: 100%;
	height: 100%;
}
.two-dim-slider .album-meta,
.two-dim-slider .item-meta {
	display: none;
}
.two-dim-slider .block {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}
.two-dim-slider .block img.blocked-by-loop {
	visibility: hidden !important;
}
.two-dim-slider .block-inside {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	overflow: hidden;
}
.two-dim-slider .top {
	top: -100%;
}
.two-dim-slider .bottom {
	top: 100%;
}
.two-dim-slider .left {
	left: -100%;
}
.two-dim-slider .right {
	left: 100%;
}
.two-dim-slider .last-block {
	background: none !important;
}
.two-dim-slider .last-block img {
	visibility: hidden !important;
}

/* 4. Arrows navigation */
.two-dim-slider .arrow-left a,
.two-dim-slider .arrow-right a {
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	transition: none 0s ease-in-out;
}
.two-dim-slider .arrow-left a:hover,
.two-dim-slider .arrow-right a:hover {
	background: none;
	border: 0;
	color: var(--sidebar-text-color);
}
.two-dim-slider .arrow-left a:hover .info-text.info-text-visible,
.two-dim-slider .arrow-right a:hover .info-text.info-text-visible {
	visibility: visible;
	opacity: 1;
	color: var(--sidebar-text-color);
}
.two-dim-slider .arrow-left a .info-text,
.two-dim-slider .arrow-right a .info-text {
	display: block;
	visibility: hidden;
	background: var(--sidebar-background);
	white-space: nowrap;
	float: left;
	position: absolute;
	left: 32px;
	top: 8px;
	padding: 7px 8px 6px;
	font-size: 12px;
	line-height: 18px;
	opacity: 0;
	transition: all .3s ease-in-out;
}
.two-dim-slider .arrow-right a .info-text {
	left: auto;
	right: 32px;
}
.two-dim-slider .arrow-right a .info-text.info-text-visible {
	visibility: visible;
	opacity: 1;
}
.two-dim-slider .arrow-left,
.two-dim-slider .arrow-right {
	position: absolute;
	top: 50%;
	z-index: 25;
	display: block;
	width: 48px;
	height: 48px;
	margin: 0;
}
.two-dim-slider .arrow-left .icon-bg,
.two-dim-slider .arrow-right .icon-bg {
	width: 48px;
	height: 48px;
	display: block;
	position: relative;
	margin-top: -24px;
	cursor: pointer;
}
.two-dim-slider .arrow-left .icon-bg .icon,
.two-dim-slider .arrow-right .icon-bg .icon {
	float: left;
	display: block;
	margin: 8px 0 0 8px;
	width: 32px;
	height: 31px;
	background: var(--sprite-url);
	background-color: var(--sidebar-background);
	transition: all .3s ease-in-out;
}
.two-dim-slider .arrow-left.disabled-arrow .icon,
.two-dim-slider .arrow-right.disabled-arrow .icon {
	opacity: 0.2;
}
.two-dim-slider .arrow-left {
	left: var(--gallery-padding);
}
.two-dim-slider .arrow-left .icon-bg .icon {
	margin-left: 0;
	background-position: -32px -32px;
}
.two-dim-slider .arrow-left.prev-album-arrow .icon-bg .icon {
	background-position: -32px 0;
}
.two-dim-slider .arrow-right {
	right: var(--gallery-padding);
}
.two-dim-slider .arrow-right .icon-bg .icon {
	margin-left: 16px;
	background-position: 0 -32px;
}
.two-dim-slider .arrow-right.next-album-arrow .icon-bg .icon {
	background-position: 0 0;
}

/* 5. Album name + count (1 of n) */
.two-dim-slider .slider-album-indicator {
	position: absolute;
	z-index: 23;
	color: var(--sidebar-text-color);
	width: auto;
	bottom: 32px; /* 24px + --gallery-padding */
	right: var(--gallery-padding);
	font-weight: bold;
}
.two-dim-slider .slider-album-indicator .album-info-text {
	font-size: 14px;
	background: var(--sidebar-background);
	height: 22px;
	float: right;
	padding: 5px 8px 5px 12px;
	transition: opacity .25s ease-in-out;
}
.two-dim-slider .slider-album-indicator .album-info-text.album-text-hidden {
	opacity: 0;
}
.two-dim-slider .slider-album-indicator a.album-name-indicator {
	margin-right: .5em;
}
.two-dim-slider .slider-album-indicator .item-count-indicator {
	font-size: var(--font-smallest);
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

/* 6. Collapsed slider styles */
.two-dim-slider.smaller-collapsed-slider .slider-album-indicator {
	bottom: 16px; /* 8px + --gallery-padding */
}
.two-dim-slider.smaller-collapsed-slider .slider-album-indicator .album-info-text {
	display: block !important;
	width: 32px;
	height: 32px;
	float: right;
	text-indent: -9999px;
	background: var(--sprite-url) no-repeat -64px 0 transparent;
	background-color: var(--sidebar-background);
	text-decoration: none;
	border: 0;
	padding: 0;
}
.two-dim-slider.smaller-collapsed-slider .slider-album-indicator .item-count-indicator {
	display: none;
}
.two-dim-slider.smaller-collapsed-slider .slider-album-indicator .album-info-block {
	display: block;
}
.two-dim-slider.smaller-collapsed-slider .video-overlay .video-container {
	margin: 0;
}
.two-dim-slider .auto-cursor {
	cursor: auto;
}
.two-dim-slider .slider-album-indicator {
	padding-bottom: 0 !important;
}

/* 7. Album info block (share, close project button) */
.album-info-block {
	-webkit-text-size-adjust: none;
	position: absolute;
	display: none;
	overflow: auto;
	z-index: 50;
	width: 65%;
	padding: 0;
	background: var(--sidebar-background);
	right: 0;
	bottom: 32px; /* 24px + --gallery-padding */
	max-width: 40em;
	color: var(--sidebar-text-color);
}
.album-info-block .bottom-bar {
	width: 100%;
}
.album-info-block .info-container {
	width: auto;
	height: auto;
	padding: 1.5em;
}
.album-info-block h3.album-title {
	margin-top: 0;
}
.album-info-block .album-content {
	font-size: var(--font-small);
	line-height: var(--font-small-line-height);
	margin: 0;
	max-height: 280px;
	overflow: auto;
}
.img-desc-block {
	-webkit-text-size-adjust: none;
	position: absolute;
	overflow: auto;
	z-index: 50;
	padding: 0;
	background: var(--sidebar-background);
	left: 0;
	top: var(--gallery-padding);
	max-width: 65%;
	color: var(--sidebar-text-color);
}
.img-desc-block .info-container {
	width: auto;
	height: auto;
	padding: 1.0em;
}
.img-desc-block h3.album-title {
	margin-top: 0;
}
.img-desc-block .img-content {
	font-size: var(--font-small);
	line-height: var(--font-small-line-height);
	margin: 0;
	max-height: 300px;
	overflow: auto;
}
.close-project {
	position: relative;
	float: right;
	font-size: var(--font-small);
	line-height: 1.2em;
}
.share-project {
	margin-top: 1em;
}
a.pin-it-btn,
a.facebook-share-btn {
	width: 43px;
	height: 21px;
	background: var(--sprite-url) no-repeat -192px 0 transparent;
	display: block;
	border: 0;
	cursor: pointer;
	float: left;
	opacity: .75;
}
a.pin-it-btn:hover,
a.facebook-share-btn:hover {
	opacity: 1;
	background-color: transparent;
}
a.facebook-share-btn {
	margin-left: 8px;
	width: 53px;
	height: 20px;
	background-position: -192px -32px;
	display: block;
	border: 0;
}
.slider-data {
	display: block;
	color: var(--sidebar-background);
	z-index: -1;
	overflow: hidden;
}
.slider-data a {
	color: var(--sidebar-background);
	border: 0;
	background: none;
}
.slider-data .album-meta {
	display: block;
}
.action-notifier {
	opacity: 0;
	position: absolute;
	left: 0;
	top: 0;
	background: var(--sidebar-background);
	z-index: 9999;
	white-space: nowrap;
	padding: 0 8px;
	font-size: 12px;
	-webkit-user-select: none; /* Safari */
	user-select: none;
}
.action-notifier.action-notifier-visible {
	opacity: 1;
}

/* 8. Specific gallery page styles */
body.ds-gallery-page {
	background: var(--sidebar-background);
}
.ds-gallery-page {
	height: 100%;
	overflow: hidden;
}
.ds-gallery-page #main-wrap {
	border-color: transparent;
}
.ds-gallery-page #page,
.ds-gallery-page #main {
	height: 100%;
	float: none;
	margin: 0;
}
.ds-gallery-page .main-header {
	position: relative;
	background: var(--sidebar-background);
	overflow-y: auto;
	height: 100%;
	float: left;
}
.ds-gallery-page .main-header::-webkit-scrollbar {
	background: rgba(51, 51, 51, 0.1); /* --menu-item-color at 10% opacity */
	width: 8px;
	height: 8px;
}
.ds-gallery-page .main-header::-webkit-scrollbar-thumb {
	background-color: rgba(51, 51, 51, 0.2); /* --menu-item-color at 20% opacity */
}
.ds-gallery-page .main-header::-webkit-scrollbar-thumb:hover {
	background-color: rgba(51, 51, 51, 0.3); /* --menu-item-color at 30% opacity */
}
.ds-gallery-page #primary {
	height: 100%;
	padding: 0;
}
.ds-gallery-page #content {
	height: 100%;
}
.ds-gallery-page .push {
	display: none;
}
.ds-gallery-page .two-dim-slider {
	left: var(--sidebar-width-full);
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	padding: var(--gallery-padding);
	width: auto;
	height: auto;
	overflow: hidden;
}
.ds-gallery-page .mouse-follow-cursor {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 9999;
	background: var(--sidebar-background);
	font-size: 13px;
	padding: 2px 4px;
	white-space: nowrap;
}


/* ==========================================================================
   Page and blog content: entries, comments, alignment, navigation
   ========================================================================== */

.entry-title {
	margin: 0;
}
.entry-title a {
	color: var(--title-color);
}
.entry-title a:hover {
	background: none;
	color: var(--link-hover-color);
}
.entry-header {
	margin: 0 0 1em;
}
.entry-meta {
	margin-top: 0.25em;
	font-size: var(--font-small);
	font-weight: normal;
	color: var(--secondary-text-color);
}
.entry-meta .comments-link,
.entry-meta .entry-date,
.entry-meta .byline {
	white-space: nowrap;
}
.more-link {
	margin-top: 1em;
	display: inline-block;
	font-weight: normal;
	color: var(--text-color);
	overflow: hidden;
	line-height: 1.3em;
}
.logged-in-as {
	font-size: var(--font-small);
	margin-bottom: calc(1em * var(--font-small-em-size));
}
.entry-content,
.entry-summary {
	margin: 0;
}
.page-links {
	margin: 0 0 1em;
}
.hentry {
	max-width: var(--content-max-width);
	margin: 0 0 3em;
}
#nav-below {
	max-width: var(--content-max-width);
	margin: 0 0 2em;
}
#comments {
	max-width: var(--content-max-width);
	margin: 0;
}
#commentform #author,
#commentform #email,
#commentform #url {
	width: 100%;
	max-width: calc(var(--content-max-width) * 0.625); /* --content-max-width / 1.6 */
	box-sizing: border-box;
}
#commentform #comment {
	min-height: 10em;
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
}
.commentlist {
	list-style: none;
	margin: 0;
	padding: 0;
}
.commentlist .comment-content {
	padding-left: 2em;
}
.commentlist .children {
	list-style: none;
	margin: 0 0 0.5em 2em;
}
.commentlist .comment {
	margin: 0 0 1em;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	padding: 1em 0;
}
.commentlist .comment .avatar {
	float: left;
	width: 1.5em;
	height: auto;
	margin: 0 0.5em 0 0;
}
.commentlist .comment time {
	margin: 0 0.3em;
}
.commentlist .comment cite {
	font-style: normal;
	font-weight: bold;
}
.commentlist .comment footer {
	margin-bottom: 1em;
}
.commentlist .comment .commentmetadata {
	display: inline;
}
.commentlist .comment .commentmetadata a {
	color: var(--secondary-text-color);
}
.commentlist .comment .commentmetadata,
.commentlist .comment .reply {
	font-size: var(--font-small);
	color: var(--secondary-text-color);
}
.commentlist .comment .reply {
	padding-left: calc(2em * var(--font-small-em-size));
}
.commentlist .comment.author-comment cite {
	background: #fff9b3;
	padding: 0 2px;
}
#respond {
	padding: .5em 2em;
	background: #f4f4f0; /* --content-background darkened by 2% */
	box-sizing: border-box;
}
#respond form {
	margin-top: 1.5em;
}

/* Alignment */
.alignleft {
	display: inline;
	float: left;
	margin-right: .5em;
	margin-top: .1em;
}
.alignright {
	display: inline;
	float: right;
	margin-left: .5em;
	margin-top: .1em;
}
.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.aligncenter .wp-caption-text {
	text-align: center;
}

/* Navigation */
#nav-below {
	padding-bottom: 1em;
	display: block;
}
.nav-previous {
	float: left;
}
.nav-next {
	float: right;
}


/* ==========================================================================
   General layout
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Layout: main wrappers and containers
   -------------------------------------------------------------------------- */

body {
	background: var(--content-background);
}
html,
body {
	-webkit-font-smoothing: subpixel-antialiased;
	height: 100%;
	width: 100%;
}
#main-wrap {
	height: 100%;
	box-sizing: border-box;
}
#page {
	min-height: 100%;
	border-left: var(--sidebar-width-full) solid var(--sidebar-background);
	margin: 0 0 calc(var(--footer-max-height) * -1) 0; /* the bottom margin is the negative value of the footer's height */
}
.main-header {
	margin-left: calc(var(--sidebar-width-full) * -1);
	position: relative;
	width: 12em; /* --sidebar-width-full - 4em */
	padding: 0 2em;
	float: left;
	z-index: 10;
}
/* semantics is boring */
.push {
	height: var(--footer-max-height);
	clear: both;
}
#primary {
	padding: 1.5em 2em;
}
#secondary {
	color: var(--sidebar-text-color);
	float: left;
}


/* --------------------------------------------------------------------------
   2. Menu (normal and collapsed on mobile)
   -------------------------------------------------------------------------- */

.menu {
	margin: calc(var(--menus-margin) * 0.5) 0 2px 0; /* bottom: --menus-margin / 2 - 3px */
	font-weight: var(--menu-font-weight);
	font-size: var(--menu-font-size);
	line-height: var(--menu-line-height);
}
.menu ul {
	margin: 0;
	list-style: none;
}
.menu li {
	margin: 0 0 4px;
	list-style: none;
}
.menu a {
	text-decoration: none;
	border-bottom-color: var(--sidebar-background);
	color: var(--menu-item-color);
}
.menu a:hover {
	background: none;
	color: var(--menu-item-hover-color);
	border-bottom-color: var(--menu-item-hover-color);
}
.menu li.important-item a {
	background: #afeef5;
}
.menu li.current-menu-item > a {
	color: var(--selected-menu-item-color);
	font-weight: bold;
}
.menu-sep {
	color: #ddd;
	font-size: var(--menu-font-size);
}
.project-menu-sep {
	margin-bottom: calc(var(--menus-margin) * 0.5);
}
#gallery-menu {
	margin: .5em 0 0 0;
	font-size: var(--projects-menu-font-size);
	line-height: var(--projects-menu-line-height);
}
#gallery-menu a {
	color: var(--projects-menu-font-color);
}
#gallery-menu li.current-album-menu-item a {
	cursor: default;
	color: var(--selected-menu-item-color);
}
#gallery-menu li.current-album-menu-item a:hover {
	border-color: transparent;
}
/* Collapsed menu */
a.menu-button {
	display: inline-block;
	text-align: center;
	vertical-align: middle;
	cursor: pointer;
	padding: 6px 9px 8px;
	font-size: 13px;
	line-height: 18px;
	font-weight: bold;
	float: right;
	color: var(--text-color);
}
a.menu-button:hover {
	background: none;
	border: 0;
}
.menu-close-button .menu-button-icon {
	background-position: -170px -31px;
}
.menu-button-icon {
	display: inline-block;
	margin-top: 2px;
	width: 14px;
	height: 12px;
	line-height: 12px;
	vertical-align: text-top;
	background: var(--sprite-url) no-repeat;
	background-position: -170px -9px;
	transition: background-position .3s ease-in-out;
}
.mobile-menu {
	position: relative;
	font-weight: bold;
	width: 4em;
	overflow: hidden;
	margin: 0;
	font-size: 16px;
	line-height: 32px;
	padding-left: .5em;
}
.mobile-menu select {
	max-width: 70px;
	top: 0;
	right: 0;
	border: 0;
	padding: 0;
	font-size: 16px;
	line-height: 32px;
	margin: 0;
	height: 32px !important;
}
.mobile-menu .menu-icon {
	display: block;
	width: 16px;
	height: 17px;
	float: right;
	margin-top: 6px;
	background: var(--sprite-url) no-repeat -170px -10px;
}
.mobile-menu .customStyleSelectBox {
	display: block;
	cursor: pointer;
}
.mobile-menu .customStyleSelectBoxInner {
	display: block;
	float: right;
}
.mobile-menu .select-menu {
	float: right;
	cursor: pointer;
}
.mobile-menu .customStyleSelectBox {
	display: block !important;
	float: none;
}


/* --------------------------------------------------------------------------
   3. Logo, site description
   -------------------------------------------------------------------------- */

.logo {
	margin: var(--default-logo-margin);
	width: var(--default-logo-width);
	letter-spacing: 0;
	font-size: 1em;
}
.logo a {
	color: var(--selected-menu-item-color);
	border: 0;
	background: none;
	display: block;
	transition: opacity .3s ease-in-out;
}
.logo a:hover {
	opacity: 0.6;
	background: none;
}
.logo img {
	max-width: 100%;
	height: auto;
	vertical-align: bottom;
}
.site-description {
	color: var(--sidebar-text-color);
	font-size: var(--site-description-font-size);
	margin-bottom: 3px; /* --menus-margin / 2 - 2px */
}


/* --------------------------------------------------------------------------
   4. Widgets
   -------------------------------------------------------------------------- */

.widget {
	font-size: var(--widget-body-font-size);
	line-height: var(--widget-body-line-height);
	margin: calc(var(--menus-margin) * 0.5) 0 calc(var(--menus-margin) * 0.5) 0;
}
.widget .widget-title {
	font-weight: bold;
	color: var(--sidebar-text-color);
	margin: 0 0 .5em;
	font-size: var(--widget-title-font-size);
	line-height: var(--widget-title-line-height);
}
.widget li,
.widget ul {
	margin-left: 0;
	list-style: none;
}
.widget input {
	padding: 0;
}


/* --------------------------------------------------------------------------
   5. Footer
   -------------------------------------------------------------------------- */

.footer-copy {
	height: var(--footer-max-height);
	overflow: hidden;
	width: 100%;
	background: var(--sidebar-background);
}
/* The paragraph is set in --font-small, so lengths measured in body ems are multiplied by --font-small-em-size. */
.footer-copy p {
	padding: calc(1.5em * var(--font-small-em-size)) calc(2em * var(--font-small-em-size));
	max-width: calc(40em * var(--font-small-em-size));
	margin: 0;
	font-size: var(--font-small);
	line-height: var(--font-small-line-height);
	margin-left: calc(var(--sidebar-width-full) * var(--font-small-em-size));
	color: var(--footer-copy-text-color);
}
.footer-copy a {
	color: var(--footer-copy-text-color);
}


/* --------------------------------------------------------------------------
   6. Masonry portfolio styling
   -------------------------------------------------------------------------- */

.page-template-ds-gallery-masonry-template-php .hentry {
	max-width: none;
}
.page-template-ds-gallery-masonry-template-php .albums-thumbnails {
	width: auto;
}
.page-template-ds-gallery-masonry-template-php .slider-data {
	display: none;
}
.page-template-ds-gallery-masonry-template-php .two-dim-slider {
	display: none;
	left: 0;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	padding: var(--gallery-padding);
	width: auto;
	height: auto;
	overflow: hidden;
	background: var(--sidebar-background);
	z-index: 45;
}
.page-template-full-width-page-template-php .hentry {
	max-width: none;
}
.albums-thumbnails {
	width: var(--content-large-image-max-width);
}
.albums-thumbnails img {
	transition: all .2s ease-in-out;
	display: block;
	width: 304px;
}
.albums-thumbnails .image-background {
	background: #222;
	overflow: hidden;
	width: 100%;
	height: auto;
	position: relative;
}
.albums-thumbnails .project-title {
	font-weight: bold;
	width: 100%;
	display: block;
	text-align: left;
	margin: .8em 0 .5em;
}
.albums-thumbnails a.project-thumb {
	display: block;
	position: relative;
	float: left;
	width: 320px;
	border: 0;
	margin-bottom: 8px;
}
.albums-thumbnails a.project-thumb:hover {
	background: none;
	border: 0;
}
.albums-thumbnails .project-thumb-inside {
	padding: 7px;
	border: 1px solid transparent;
	transition: border .3s ease-in-out;
}
.albums-thumbnails .project-thumb-inside:hover {
	border-color: #ddd;
}
.albums-thumbnails .project-thumb-inside:hover img {
	opacity: .7;
}
.albums-thumbnails .project-thumb-inside:hover .project-title {
	color: var(--link-hover-color);
}
.albums-thumbnails .project-description {
	font-size: var(--font-small);
}


/* --------------------------------------------------------------------------
   7. Search results page
   -------------------------------------------------------------------------- */

.search-results h1.entry-title {
	font-size: 1.25em;
	margin: 1.1em 0 0.5em;
}
.search-results .hentry {
	margin-bottom: 3em;
}
.search-results .page-header {
	margin-bottom: 3em;
}
.search-results .page-title {
	font-size: 2em;
}


/* --------------------------------------------------------------------------
   8. Media queries < 1150px
   -------------------------------------------------------------------------- */

@media only screen and (max-width: 1150px) {
	.main-header {
		width: 10em; /* --sidebar-width-full - 6em */
		padding: 0 1.5em;
		margin-left: -13em; /* -(--sidebar-width-full - 3em) */
	}
	.footer-copy p {
		margin-left: calc(13em * var(--font-small-em-size)); /* 13em: --sidebar-width-full - 3em */
		padding-left: calc(1.5em * var(--font-small-em-size));
		padding-right: calc(1.5em * var(--font-small-em-size));
	}
	#primary {
		padding: 1.5em 1.5em;
	}
	#page {
		border-left: 13em solid var(--sidebar-background); /* 13em: --sidebar-width-full - 3em */
	}
	.ds-gallery-page .two-dim-slider {
		left: 13em; /* --sidebar-width-full - 3em */
		top: 0;
		right: 0;
		bottom: 0;
	}
	p img {
		max-width: 100%;
	}
}


/* --------------------------------------------------------------------------
   9. Regular page collapsed layout
   -------------------------------------------------------------------------- */

.page-template-ds-gallery-masonry-template-php.collapsed-layout #primary {
	padding: 1em 1em 1.5em;
}
.page-template-ds-gallery-masonry-template-php.collapsed-layout .albums-thumbnails {
	margin: 0 auto;
}
.collapsed-layout #main-wrap {
	background: var(--sidebar-background);
	padding: 0;
	width: auto !important;
}
.collapsed-layout p img {
	max-width: 100%;
}
.collapsed-layout .logo {
	margin: 0;
	width: var(--collapsed-layout-logo-width);
	padding: 0;
}
.collapsed-layout .logo a {
	font-size: 19px;
	padding: var(--collapsed-layout-logo-padding);
}
.collapsed-layout .main-header {
	width: 100%;
	position: relative;
	padding: 0;
	margin: 0;
	background: var(--sidebar-background);
}
.collapsed-layout .main-header .menus-container {
	clear: both;
	float: right;
	margin-right: 0;
	position: absolute;
	right: 0;
	top: 0;
	background: #fff;
	padding: 8px 0;
	overflow: hidden;
}
.collapsed-layout .main-header .menu {
	margin: 0 0 8px;
}
.collapsed-layout .main-header .menu li {
	width: auto;
	margin: 0;
}
.collapsed-layout .main-header .menu a {
	width: 100%;
	display: block;
	padding: 4px 16px 2px;
}
.collapsed-layout .main-header .menu a:hover {
	border-color: transparent;
	background-color: rgba(0, 0, 0, 0.1);
}
.collapsed-layout .main-header .menu-sep {
	display: none;
}
.collapsed-layout .main-header .top-logo-group {
	float: left;
	display: block;
	overflow: hidden;
}
.collapsed-layout .main-header .site-description {
	display: none;
}
.collapsed-layout .main-header .menu-button {
	margin: var(--collapsed-layout-menu-button-margin);
	float: right;
}
.collapsed-layout .menu-sep {
	display: none;
}
.collapsed-layout #main {
	width: 100%;
	clear: both;
}
.collapsed-layout #primary {
	padding: 1em 10% 1.5em;
	background: var(--content-background);
}
.collapsed-layout #page {
	min-height: 0;
	height: auto;
	margin: 0;
	border: 0;
}
.collapsed-layout .footer-copy {
	height: auto;
	overflow: visible;
}
.collapsed-layout .push {
	display: none;
}
.collapsed-layout .footer-copy {
	background: none;
}
.collapsed-layout .footer-copy p {
	width: 80%;
	padding-left: 10%;
	padding-right: 10%;
	max-width: none;
	margin: 0;
}
.collapsed-layout #secondary {
	float: none;
	width: 100%;
	padding: 1.5em 0;
	background: var(--sidebar-background);
}
.collapsed-layout #secondary .widget {
	padding: 0 10%;
	margin: 0 0 1.5em 0;
}
.collapsed-layout #main {
	border-left: none;
}
.collapsed-layout .hentry,
.collapsed-layout #comments,
.collapsed-layout #nav-below {
	max-width: none;
}
.collapsed-layout .site-content {
	margin: 0;
}
.collapsed-layout #content {
	margin: 0;
}
.collapsed-layout .video-overlay .video-container {
	margin: .5em;
}


/* --------------------------------------------------------------------------
   10. Gallery page collapsed layout
   -------------------------------------------------------------------------- */

.collapsed-gallery-page #main-wrap {
	border-top: 0;
}
.collapsed-gallery-page #page {
	border: 0;
	margin: 0;
}
.collapsed-gallery-page #main {
	border: 0;
}
.collapsed-gallery-page .logo {
	margin: 0;
	width: var(--collapsed-gallery-logo-width);
}
.collapsed-gallery-page .logo a {
	margin: var(--collapsed-gallery-logo-padding);
	font-size: 19px;
}
.collapsed-gallery-page #gallery-menu {
	display: none;
}
.collapsed-gallery-page .two-dim-slider {
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
}
.collapsed-gallery-page .two-dim-slider .image-nav {
	bottom: .5em;
	left: .5em;
}
.collapsed-gallery-page .two-dim-slider .slider-album-indicator {
	bottom: 16px; /* 8px + --gallery-padding */
}
.collapsed-gallery-page .album-info-block {
	right: 0;
	bottom: 0;
	top: auto;
	left: 0;
	height: auto;
	max-height: 100%;
	overflow-y: auto;
	width: auto;
	max-width: none;
}
.collapsed-gallery-page .album-info-block .info-container {
	width: auto;
	height: auto;
	padding: 1em 1em 2em;
}
.collapsed-gallery-page .album-info-block::-webkit-scrollbar {
	background: rgba(51, 51, 51, 0.1); /* --menu-item-color at 10% opacity */
	width: 8px;
	height: 8px;
}
.collapsed-gallery-page .album-info-block::-webkit-scrollbar-thumb {
	background-color: rgba(51, 51, 51, 0.2); /* --menu-item-color at 20% opacity */
}
.collapsed-gallery-page .album-info-block::-webkit-scrollbar-thumb:hover {
	background-color: rgba(51, 51, 51, 0.3); /* --menu-item-color at 30% opacity */
}
.collapsed-gallery-page .main-header {
	width: auto;
	height: auto;
	overflow: hidden;
	position: relative;
	padding: var(--collapsed-gallery-menu-area-padding);
	margin: 0;
	left: var(--gallery-padding);
	top: calc(var(--gallery-padding) * 2);
}
.collapsed-gallery-page .main-header .menus-container {
	margin: 0;
	overflow: hidden;
	clear: both;
}
.collapsed-gallery-page .main-header .menu {
	margin: 0 0 16px;
}
.collapsed-gallery-page .main-header .menu li {
	width: auto;
	margin: 0;
}
.collapsed-gallery-page .main-header .menu a {
	width: 100%;
	display: block;
	padding: 4px 16px 2px 0;
}
.collapsed-gallery-page .main-header .menu a:hover {
	border-color: transparent;
	background-color: rgba(0, 0, 0, 0.1);
}
.collapsed-gallery-page .main-header .menu-sep {
	display: none;
}
.collapsed-gallery-page .main-header #main-menu {
	margin-top: 2px; /* --menus-margin - 8px */
}
.collapsed-gallery-page .main-header .menu-button {
	margin: var(--collapsed-gallery-menu-button-margin);
}
.collapsed-gallery-page .main-header .top-logo-group {
	float: left;
}
.collapsed-gallery-page .main-header .site-description {
	display: none;
}


/* --------------------------------------------------------------------------
   11. Media queries < 620px
   -------------------------------------------------------------------------- */

@media only screen and (max-width: 620px) {
	.album-info-block {
		font-size: 90%;
	}
}


/* --------------------------------------------------------------------------
   12. Media queries < 500px
   -------------------------------------------------------------------------- */

@media only screen and (max-width: 500px) {
	.album-info-block {
		font-size: 85%;
	}
	.collapsed-layout #primary,
	.collapsed-layout #secondary .widget,
	.collapsed-layout .footer-copy p {
		padding-left: 1em !important;
		padding-right: 1em !important;
	}
	.collapsed-layout .footer-copy {
		background: none;
	}
	.collapsed-layout .video-overlay .video-container {
		margin: 0;
	}
	.collapsed-layout .slider-album-indicator {
		max-width: 80%;
	}
	.ds-gallery-page .main-header {
		top: var(--gallery-padding);
		left: 0;
	}
	.ds-gallery-page .arrow-nav {
		bottom: 48px;
	}
	.ds-gallery-page .slider-album-indicator {
		bottom: 8px;
	}
	.ds-gallery-page .two-dim-slider {
		padding: 0;
	}
	.ds-gallery-page .two-dim-slider .arrow-right {
		right: 0px;
	}
	.ds-gallery-page .two-dim-slider .arrow-left {
		left: 0px;
	}
	.ds-gallery-page .two-dim-slider .slider-album-indicator {
		bottom: 8px;
		right: 0;
	}
	.ds-gallery-page .album-info-block .info-container {
		padding-bottom: 1em;
	}
}
