/*!
Theme Name: soric-cc
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Photography portfolio theme
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: soric-cc
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

soric-cc is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

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

/*--------------------------------------------------------------
# Fonts
--------------------------------------------------------------*/

@font-face {
	font-family: 'Source Code Pro';
	font-style: normal;
	font-weight: 400;
	font-display: optional;
	src: url('fonts/SourceCodePro-Regular-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Source Code Pro';
	font-style: normal;
	font-weight: 400;
	font-display: optional;
	src: url('fonts/SourceCodePro-Regular-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

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

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

html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
}

main {
	display: block;
}

h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

a {
	background-color: transparent;
}

abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

b,
strong {
	font-weight: bolder;
}

code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

small {
	font-size: 80%;
}

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

img {
	border-style: none;
}

button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

button,
input {
	overflow: visible;
}

button,
select {
	text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

fieldset {
	padding: 0.35em 0.75em 0.625em;
}

legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

progress {
	vertical-align: baseline;
}

textarea {
	overflow: auto;
}

[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

details {
	display: block;
}

summary {
	display: list-item;
}

template {
	display: none;
}

[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

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

/* Typography
--------------------------------------------- */
html,
body {
	height: 100%;
}

body,
button,
input,
select,
optgroup,
textarea {
	color: #1c1c1c;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: Helvetica, Arial, sans-serif;
	font-weight: 400;
	color: #1c1c1c;
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

a {
	color: #1c1c1c;
	text-decoration: none;
}

a:visited {
	color: #1c1c1c;
}

a:hover,
a:focus,
a:active {
	color: #888888;
}

a:focus {
	outline: thin dotted;
}

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

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

figure {
	margin: 0;
}

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

embed,
iframe,
object {
	max-width: 100%;
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/

body {
	background: #ffffff;
}

.site {
	display: flex;
	min-height: 100vh;
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/

.site-sidebar {
	width: 240px;
	min-width: 240px;
	height: 100vh;
	position: fixed;
	top: 0;
	left: 0;
	overflow-y: auto;
	padding: 48px 32px;
	z-index: 200;
	background: #ffffff;
	display: flex;
	flex-direction: column;
}

.sidebar-header {
	margin-bottom: 48px;
}

.sidebar-site-title {
	font-size: 16px;
	font-weight: 500;
	color: #1c1c1c;
	text-decoration: none;
	display: block;
	line-height: 1.4;
}

.sidebar-site-title:hover,
.sidebar-site-title:visited {
	color: #1c1c1c;
}

.sidebar-nav-wrapper {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.sidebar-nav {
	flex: 1;
}

.sidebar-toggle {
	display: none;
}

.nav-section-label {
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #aaaaaa;
	margin: 0 0 16px;
}

.photography-nav-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.photography-nav-list.is-hidden {
	display: none;
}

.photography-nav-list li {
	margin-bottom: 10px;
}

.photography-nav-list a {
	font-size: 13px;
	color: #1c1c1c;
	text-decoration: none;
	line-height: 1.4;
	display: block;
}

.photography-nav-list a:hover {
	color: #888888;
}

.photography-nav-list a:visited {
	color: #1c1c1c;
}

.photography-nav-list a.current-post {
	color: #888888;
}

.sidebar-about-link {
	display: block;
	font-size: 13px;
	color: #1c1c1c;
	text-decoration: none;
	line-height: 1.4;
	margin-top: 24px;
}

.sidebar-about-link:hover {
	color: #888888;
}

.sidebar-about-link:visited {
	color: #1c1c1c;
}

.sidebar-about-link.current-post {
	color: #888888;
}

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

.site-content {
	margin-left: 240px;
	flex: 1;
	min-height: 100vh;
}

/*--------------------------------------------------------------
# Standard Posts & Pages
--------------------------------------------------------------*/

.standard-entry {
	padding: 60px;
	max-width: 680px;
}

.entry-title {
	font-size: 20px;
	font-weight: 400;
	letter-spacing: -0.01em;
	margin: 0 0 8px;
}

.entry-meta {
	font-size: 11px;
	color: #aaaaaa;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 32px;
}

.entry-content {
	font-size: 15px;
	line-height: 1.75;
	color: #333333;
}

.entry-content p:last-child {
	margin-bottom: 0;
}

.entry-footer {
	margin-top: 32px;
	font-size: 12px;
	color: #aaaaaa;
}

/* Posts list (index/archive)
--------------------------------------------- */
.posts-list {
	padding: 60px;
}

.posts-list-item {
	margin-bottom: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid #ebebeb;
}

.posts-list-item:last-child {
	border-bottom: none;
}

.posts-list-item .entry-title a {
	color: #1c1c1c;
}

.posts-list-item .entry-title a:hover {
	color: #888888;
}

.posts-navigation {
	padding: 0 60px 60px;
}

/*--------------------------------------------------------------
# Photography Single Post
--------------------------------------------------------------*/

body.single-photo_series {
	overflow: hidden;
}

/* Fixed positioning anchors the post to exact viewport edges, bypassing
   the 100vh + admin-bar-margin-top overflow problem entirely. */
.photo-post {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 240px;
	display: flex;
	flex-direction: column;
	background: #ffffff;
}

.admin-bar .photo-post {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .photo-post {
		top: 46px;
	}
}

.photo-post .photo-entry-header {
	flex-shrink: 0;
	padding: 28px 60px 20px;
}

.photo-post .photo-entry-title {
	font-size: 20px;
	font-weight: 400;
	letter-spacing: -0.01em;
	margin: 0;
}

/*--------------------------------------------------------------
# Photo Flipbook
--------------------------------------------------------------*/

.photo-flipbook {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	/* Prevents the scrollable track from inflating this container's width */
	overflow: hidden;
}

.flipbook-track {
	flex: 1;
	min-height: 0;
	min-width: 0;
	display: flex;
	flex-wrap: nowrap;
	overflow-x: scroll;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.flipbook-track::-webkit-scrollbar {
	display: none;
}

.flipbook-slide {
	flex: 0 0 calc(100% - 200px);
	min-width: 0;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	padding: 24px 48px 0;
	overflow: hidden;
	box-sizing: border-box;
}

.flipbook-slide-media {
	flex: 1;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.flipbook-slide-media img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	display: block;
}

.flipbook-slide-title {
	flex-shrink: 0;
	font-size: 12px;
	color: #aaaaaa;
	letter-spacing: 0.03em;
	text-align: center;
	padding: 10px 0 20px;
	margin: 0;
}

.flipbook-slide--intro {
	padding: 40px 60px;
	overflow-y: auto;
	justify-content: flex-start;
}

.flipbook-intro-text {
	max-width: 580px;
	font-size: 15px;
	line-height: 1.75;
	color: #333333;
}

.flipbook-intro-text p:last-child {
	margin-bottom: 0;
}

.flipbook-controls {
	flex-shrink: 0;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	border-top: 1px solid #ebebeb;
}

.flipbook-prev,
.flipbook-next {
	background: none;
	border: 1px solid #d8d8d8;
	border-radius: 2px;
	cursor: pointer;
	font-size: 13px;
	color: #1c1c1c;
	min-width: 72px;
	padding: 5px 12px;
	font-family: Helvetica, Arial, sans-serif;
	transition: border-color 0.15s, color 0.15s;
	line-height: 1;
	letter-spacing: 0.04em;
	text-align: center;
}

.flipbook-prev:hover:not(:disabled),
.flipbook-next:hover:not(:disabled) {
	border-color: #888888;
	color: #888888;
}

.flipbook-prev:disabled,
.flipbook-next:disabled {
	color: #bbbbbb;
	border-color: #d8d8d8;
	cursor: default;
}

.flipbook-counter {
	font-size: 12px;
	color: #aaaaaa;
	letter-spacing: 0.05em;
	min-width: 52px;
	text-align: center;
}

/*--------------------------------------------------------------
# 404
--------------------------------------------------------------*/

.error-404-main {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
}

.error-404-image {
	width: auto;
	height: auto;
	max-width: min(600px, 100%);
	max-height: min(600px, 100vh);
	display: block;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

.site-footer {
	display: none;
}

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

/* Accessibility
--------------------------------------------- */
.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: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	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;
}

/* Alignments
--------------------------------------------- */
.alignleft {
	float: left;
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {
	float: right;
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

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

/*--------------------------------------------------------------
# Responsive — Tablet & Mobile (≤ 900 px)
--------------------------------------------------------------*/

@media (max-width: 900px) {

	/* --- Layout: sidebar on top, content below --- */
	.site {
		flex-direction: column;
	}

	.site-sidebar {
		position: static;
		width: 100%;
		min-width: 0;
		height: auto;
		overflow-y: visible;
		padding: 16px 24px;
		border-bottom: 1px solid #ebebeb;
	}

	.sidebar-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 0;
	}

	/* Hamburger button */
	.sidebar-toggle {
		display: flex;
		flex-direction: column;
		gap: 5px;
		background: none;
		border: none;
		padding: 4px;
		cursor: pointer;
		flex-shrink: 0;
	}

	.sidebar-toggle span {
		display: block;
		width: 20px;
		height: 1px;
		background: #1c1c1c;
		transition: transform 0.2s ease, opacity 0.2s ease;
	}

	.site-sidebar.is-open .sidebar-toggle span:nth-child(1) {
		transform: translateY(6px) rotate(45deg);
	}

	.site-sidebar.is-open .sidebar-toggle span:nth-child(2) {
		opacity: 0;
	}

	.site-sidebar.is-open .sidebar-toggle span:nth-child(3) {
		transform: translateY(-6px) rotate(-45deg);
	}

	/* Collapsible nav wrapper */
	.sidebar-nav-wrapper {
		display: flex;
		flex-direction: column;
		overflow: hidden;
		max-height: 0;
		transition: max-height 0.25s ease, padding-top 0.25s ease;
		padding-top: 0;
	}

	.site-sidebar.is-open .sidebar-nav-wrapper {
		max-height: 600px;
		padding-top: 16px;
	}

	.photography-nav-list li {
		margin-bottom: 6px;
	}

	.sidebar-about-link {
		margin-top: 12px;
	}

	.site-content {
		margin-left: 0;
	}

	/* --- Standard pages / post lists --- */
	.standard-entry {
		padding: 32px 24px;
	}

	.posts-list {
		padding: 32px 24px;
	}

	.posts-navigation {
		padding: 0 24px 32px;
	}

	/* --- Photo post: switch from fixed horizontal flipbook to vertical scroll --- */
	body.single-photo_series {
		overflow: auto;
	}

	.photo-post {
		position: static;
	}

	.admin-bar .photo-post {
		top: auto;
	}

	.photo-post .photo-entry-header {
		padding: 24px 24px 12px;
	}

	.photo-flipbook {
		display: block;
		overflow: visible;
	}

	.flipbook-track {
		display: block;
		overflow: visible;
		scroll-snap-type: none;
	}

	.flipbook-slide {
		display: block;
		flex: none;
		width: 100%;
		height: auto;
		padding: 12px 24px 0;
		overflow: visible;
	}

	.flipbook-slide-media {
		height: auto;
		max-height: 70vh;
	}

	.flipbook-slide-media img {
		width: 100%;
		max-height: 70vh;
	}

	.flipbook-slide--intro {
		padding: 20px 24px;
		overflow-y: visible;
	}

	.flipbook-slide-title {
		padding: 6px 0 12px;
	}

	.flipbook-controls {
		display: none;
	}

	/* --- 404 --- */
	.error-404-main {
		min-height: 60vh;
	}
}
