/*
 * Photograph - Dark color scheme
 * Loaded only when Customizer > Color Scheme = Dark (body.photograph-dark),
 * after style.css, customizer inline CSS and css/responsive.css.
 * The accent color (links hover, buttons, widget titles, ...) is NOT touched
 * here; it comes from the Customizer. Social brand colors stay as well.
 */

/* 1. Palette
================================================== */
body.photograph-dark {
	--pd-bg: #000;
	--pd-surface: #111;
	--pd-surface-2: #161616;
	--pd-border: #2a2a2a;
	--pd-border-strong: #333;
	--pd-text: #b8b8b8;
	--pd-heading: #f0f0f0;
	--pd-muted: #8c8c8c;
	--pd-field-bg: #111;
	--pd-field-border: #333;
	--pd-field-border-focus: #555;
	--pd-field-text: #e6e6e6;
	--pd-field-placeholder: #777;
	color-scheme: dark;
}

/* 2. Base
================================================== */
body.photograph-dark,
body.photograph-dark #page,
body.photograph-dark .site-content,
body.photograph-dark .post-content {
	background-color: var(--pd-bg);
}

body.photograph-dark,
body.photograph-dark button,
body.photograph-dark input,
body.photograph-dark select,
body.photograph-dark textarea {
	color: var(--pd-text);
}

body.photograph-dark h1,
body.photograph-dark h2,
body.photograph-dark h3,
body.photograph-dark h4,
body.photograph-dark h5,
body.photograph-dark h6,
body.photograph-dark h1 a:not(:hover):not(:focus):not(:active),
body.photograph-dark h2 a:not(:hover):not(:focus):not(:active),
body.photograph-dark h3 a:not(:hover):not(:focus):not(:active),
body.photograph-dark h4 a:not(:hover):not(:focus):not(:active),
body.photograph-dark h5 a:not(:hover):not(:focus):not(:active),
body.photograph-dark h6 a:not(:hover):not(:focus):not(:active),
body.photograph-dark th,
body.photograph-dark strong,
body.photograph-dark b,
body.photograph-dark .page-title,
body.photograph-dark .entry-title a:not(:hover):not(:focus):not(:active),
body.photograph-dark .breadcrumb a:not(:hover):not(:focus):not(:active),
body.photograph-dark .widget ul li a:not(:hover):not(:focus):not(:active),
body.photograph-dark .widget-title a:not(:hover):not(:focus):not(:active),
body.photograph-dark #colophon .widget-title a:not(:hover):not(:focus):not(:active) {
	color: var(--pd-heading);
}

body.photograph-dark ol li a:not(:hover):not(:focus):not(:active) {
	color: var(--pd-heading);
}

body.photograph-dark .entry-meta span,
body.photograph-dark .entry-meta a:not(:hover):not(:focus):not(:active),
body.photograph-dark .tf-entry-meta a:not(:hover):not(:focus):not(:active),
body.photograph-dark .navigation.post-navigation .post-title,
body.photograph-dark .comments-area article header time,
body.photograph-dark .comments-area article header a:not(:hover):not(:focus):not(:active),
body.photograph-dark .comments-area article header cite a:not(:hover):not(:focus):not(:active),
body.photograph-dark a.comment-reply-link:not(:hover):not(:focus):not(:active),
body.photograph-dark .comment-respond form p.form-allowed-tags,
body.photograph-dark .rpwwt-post-author,
body.photograph-dark .rpwwt-post-date,
body.photograph-dark blockquote,
body.photograph-dark .wp-caption .wp-caption-text,
body.photograph-dark .wp-block-image figcaption,
body.photograph-dark .site-info .copyright,
body.photograph-dark .site-info .copyright a:not(:hover):not(:focus):not(:active),
body.photograph-dark .site-info .social-links a:not(:hover):not(:focus):not(:active),
body.photograph-dark #footer-navigation a:not(:hover):not(:focus):not(:active),
body.photograph-dark #footer-navigation ul li:after,
body.photograph-dark .site-info #site-description {
	color: var(--pd-muted);
}

body.photograph-dark #colophon .widget-wrap,
body.photograph-dark #colophon .widget ul li a:not(:hover):not(:focus):not(:active),
body.photograph-dark .social-links li a:not(:hover):not(:focus):not(:active) {
	color: var(--pd-text);
}

body.photograph-dark .site-info .social-links a:hover {
	color: #fff;
}

/* Raised surfaces: page title bar, sticky posts, headers of boxes */
body.photograph-dark .page-header,
body.photograph-dark .single-post-title,
body.photograph-dark .sticky,
body.photograph-dark .entry-thumb .entry-meta,
body.photograph-dark .widget_calendar #wp-calendar th,
body.photograph-dark .widget_calendar #wp-calendar tfoot td {
	background-color: var(--pd-surface);
}

body.photograph-dark .error-404 .page-header {
	background-color: var(--pd-surface-2);
}

/* Post/page titles are aligned with the content without a box (see style.css). */
body.photograph-dark.single .single-post-title,
body.photograph-dark.page:not(.about-template):not(.contact-template) .page-header {
	background-color: transparent;
	border-bottom-color: var(--pd-border);
}

/* 3. Content elements
================================================== */
body.photograph-dark hr {
	background-color: var(--pd-border-strong);
}

body.photograph-dark table,
body.photograph-dark td,
body.photograph-dark th,
body.photograph-dark .wp-block-table td,
body.photograph-dark .wp-block-table th {
	border-color: var(--pd-border-strong);
}

body.photograph-dark pre,
body.photograph-dark code,
body.photograph-dark kbd,
body.photograph-dark tt,
body.photograph-dark var,
body.photograph-dark .wp-block-code,
body.photograph-dark .wp-block-preformatted {
	background-color: var(--pd-surface);
	color: var(--pd-text);
	border-color: var(--pd-border-strong);
}

body.photograph-dark dfn {
	border-bottom-color: var(--pd-muted);
}

body.photograph-dark ins {
	background: #3a3500;
	color: var(--pd-heading);
}

body.photograph-dark mark {
	background: #3a3500;
	color: var(--pd-heading);
}

body.photograph-dark .wp-block-quote,
body.photograph-dark .wp-block-pullquote,
body.photograph-dark .wp-block-pullquote blockquote {
	color: var(--pd-muted);
	border-color: var(--pd-border-strong);
}

body.photograph-dark .wp-block-separator,
body.photograph-dark .wp-block-table.is-style-stripes,
body.photograph-dark .wp-block-table.is-style-stripes td,
body.photograph-dark .wp-block-table.is-style-stripes th {
	border-color: var(--pd-border-strong);
}

body.photograph-dark .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background-color: var(--pd-surface);
}

body.photograph-dark .wp-caption .wp-caption-text {
	border-bottom-color: var(--pd-border-strong);
}

body.photograph-dark .img-border {
	background-color: var(--pd-surface);
	border-color: var(--pd-border-strong);
}

body.photograph-dark .screen-reader-text:focus {
	background-color: var(--pd-surface-2);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* 4. Forms
================================================== */
body.photograph-dark input[type="text"],
body.photograph-dark input[type="email"],
body.photograph-dark input[type="url"],
body.photograph-dark input[type="password"],
body.photograph-dark input[type="search"],
body.photograph-dark input[type="number"],
body.photograph-dark input[type="tel"],
body.photograph-dark input[type="date"],
body.photograph-dark textarea,
body.photograph-dark select,
body.photograph-dark .wpcf7-select,
body.photograph-dark input.search-field {
	background-color: var(--pd-field-bg);
	border: 1px solid var(--pd-field-border);
	color: var(--pd-field-text);
}

body.photograph-dark input[type="text"]:focus,
body.photograph-dark input[type="email"]:focus,
body.photograph-dark input[type="url"]:focus,
body.photograph-dark input[type="password"]:focus,
body.photograph-dark input[type="search"]:focus,
body.photograph-dark input[type="number"]:focus,
body.photograph-dark input[type="tel"]:focus,
body.photograph-dark textarea:focus,
body.photograph-dark select:focus {
	background-color: var(--pd-field-bg);
	border-color: var(--pd-field-border-focus);
	color: var(--pd-field-text);
}

body.photograph-dark ::placeholder {
	color: var(--pd-field-placeholder);
	opacity: 1;
}

body.photograph-dark input[type="submit"]:focus,
body.photograph-dark input[type="submit"]:hover,
body.photograph-dark input[type="button"]:hover,
body.photograph-dark input[type="reset"]:hover {
	color: #fff;
}

/* 5. Header, navigation, search box, side menu
================================================== */
body.photograph-dark #sticky-header {
	background-color: #171717;
}

body.photograph-dark .is-sticky #sticky-header {
	background-color: rgba(0, 0, 0, 0.85);
}

body.photograph-dark .main-navigation ul li ul {
	background-color: var(--pd-surface-2);
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

body.photograph-dark .main-navigation ul li ul li:before {
	border-top-color: var(--pd-border);
}

body.photograph-dark .main-navigation ul li ul li a:not(:hover):not(:focus):not(:active),
body.photograph-dark .main-navigation ul li.current_page_item ul li a:not(:hover):not(:focus):not(:active),
body.photograph-dark .main-navigation li li.page_item_has_children > a:after,
body.photograph-dark .main-navigation li li.menu-item-has-children > a:after {
	color: var(--pd-text);
}

body.photograph-dark #search-box,
body.photograph-dark #search-box .search-form {
	background-color: var(--pd-surface);
}

body.photograph-dark #search-box input.search-field,
body.photograph-dark #search-box input[type="search"],
body.photograph-dark #search-box input[type="search"]:focus {
	background-color: transparent;
	color: var(--pd-field-text);
}

body.photograph-dark #search-box .search-submit:focus {
	color: var(--pd-heading);
}

body.photograph-dark .side-menu {
	background-color: var(--pd-surface);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

body.photograph-dark .side-menu-wrap #site-title a:not(:hover):not(:focus),
body.photograph-dark .site-info #site-title a:not(:hover):not(:focus) {
	color: var(--pd-heading);
}

body.photograph-dark .side-menu-wrap #site-description {
	color: var(--pd-muted);
}

body.photograph-dark .side-menu-wrap .side-nav-wrap a:not(:hover):not(:focus):not(:active) {
	color: var(--pd-heading);
	border-bottom-color: var(--pd-border);
}

/* Text over photos stays white (overrides the heading rules above) */
body.photograph-dark .slider-content .slider-title a:not(:hover):not(:focus):not(:active),
body.photograph-dark .slider-content .slider-text,
body.photograph-dark .vid-thumb-content .vid-thumb-title a:not(:hover):not(:focus):not(:active),
body.photograph-dark .vid-thumb-content .vid-thumb-text,
body.photograph-dark .featured-text-content .featured-title a:not(:hover):not(:focus):not(:active),
body.photograph-dark .text-hover-presentation .has-post-thumbnail .entry-title,
body.photograph-dark .text-hover-presentation .has-post-thumbnail .entry-details .entry-title a:not(:hover):not(:focus):not(:active) {
	color: #fff;
}

/* 6. Sidebar and widgets
================================================== */
body.photograph-dark #secondary {
	border-left-color: var(--pd-border);
}

body.photograph-dark .widget,
body.photograph-dark .widget-wrap {
	color: var(--pd-text);
}

body.photograph-dark .widget ul li,
body.photograph-dark .widget_archive ul li,
body.photograph-dark .widget_categories ul li,
body.photograph-dark .widget_nav_menu ul li,
body.photograph-dark .widget_pages ul li,
body.photograph-dark .widget_meta ul li,
body.photograph-dark .widget_recent_entries ul li,
body.photograph-dark .widget_recent_comments ul li,
body.photograph-dark .tf-popular .tf-post {
	border-color: var(--pd-border);
}

body.photograph-dark .widget_calendar #wp-calendar,
body.photograph-dark .widget_calendar #wp-calendar td,
body.photograph-dark .widget_calendar #wp-calendar th,
body.photograph-dark .widget_calendar #wp-calendar caption {
	border-color: var(--pd-border-strong);
	color: var(--pd-text);
}

body.photograph-dark .filter-button div {
	border-bottom-color: var(--pd-border);
}

body.photograph-dark .filter-button div button {
	background-color: transparent;
	color: var(--pd-text);
}

body.photograph-dark .show-fgt .featured-item .featured-text-content {
	background-color: var(--pd-surface-2);
}

body.photograph-dark .show-fgt .has-post-thumbnail .featured-text-content:before {
	border-bottom-color: var(--pd-surface-2);
}

body.photograph-dark .show-fgt .featured-text-content .featured-title a:not(:hover):not(:focus):not(:active) {
	color: var(--pd-heading);
}

/* Gallery cards (blog/category grid): visibly lighter than the black page, like the header. */
body.photograph-dark .post-featured-gallery-wrap,
body.photograph-dark .text-below-presentation .post-featured-gallery-wrap {
	background-color: #1a1a1a;
	box-shadow: 0 0 0 1px #2a2a2a, 0 0 8px rgba(255, 255, 255, 0.08);
}

body.photograph-dark .post-featured-gallery:not(.no-posts-border) .post-featured-item:hover .post-featured-gallery-wrap {
	box-shadow: 0 0 0 1px #444, 0 0 14px rgba(255, 255, 255, 0.18);
}

body.photograph-dark .maps-container {
	border-color: var(--pd-border-strong);
}

/* 7. Pagination and navigation
================================================== */
body.photograph-dark .wp-pagenavi .pages,
body.photograph-dark .wp-pagenavi a:not(:hover):not(:focus):not(:active),
body.photograph-dark .wp-pagenavi span.current,
body.photograph-dark ul.default-wp-page li a:not(:hover):not(:focus):not(:active),
body.photograph-dark .page-numbers {
	background-color: var(--pd-surface);
	border-color: var(--pd-border-strong);
	color: var(--pd-text);
	outline-color: var(--pd-border);
}

body.photograph-dark .wp-pagenavi a:hover,
body.photograph-dark ul.default-wp-page li a:hover,
body.photograph-dark .page-numbers:hover,
body.photograph-dark .page-numbers.current {
	background-color: var(--pd-surface-2);
	color: var(--pd-heading);
}

body.photograph-dark .image-attachment div.attachment {
	background-color: var(--pd-surface);
	border-color: var(--pd-border-strong);
}

body.photograph-dark .image-attachment div.attachment a img {
	border-color: var(--pd-surface);
}

body.photograph-dark .image-attachment div.attachment a:active img {
	background-color: var(--pd-bg);
	border-color: var(--pd-border-strong);
}

/* 8. Comments
================================================== */
body.photograph-dark .comments-area,
body.photograph-dark .comment-respond,
body.photograph-dark .comments-area article,
body.photograph-dark .comments-area .comment-body {
	border-color: var(--pd-border);
}

body.photograph-dark .comments-area article {
	background-color: transparent;
	color: var(--pd-text);
}

body.photograph-dark .comments-area ol.comment-list li,
body.photograph-dark .comments-area ul.children,
body.photograph-dark .comment-list .children {
	border-color: var(--pd-border);
}

/* 9. Footer
================================================== */
body.photograph-dark #colophon,
body.photograph-dark .site-info,
body.photograph-dark #colophon .widget-area,
body.photograph-dark #colophon .site-info,
body.photograph-dark #colophon #footer-navigation {
	border-color: var(--pd-border);
}

/* 10. Contact / About templates (text sits on user photos, keep light) */
body.photograph-dark .contact-template textarea,
body.photograph-dark .contact-template input[type="text"],
body.photograph-dark .contact-template input[type="email"] {
	background-color: rgba(0, 0, 0, 0.35);
	color: #fff;
}

/* 11. bbPress
================================================== */
body.photograph-dark #bbpress-forums ul.bbp-search-results,
body.photograph-dark #bbpress-forums li.bbp-footer,
body.photograph-dark #bbpress-forums li.bbp-body ul.topic,
body.photograph-dark div.bbp-template-notice,
body.photograph-dark div.indicator-hint,
body.photograph-dark #wp-bbp_reply_content-editor-container {
	border-color: var(--pd-border-strong);
}

body.photograph-dark #bbpress-forums li.bbp-footer,
body.photograph-dark div.bbp-template-notice,
body.photograph-dark div.indicator-hint {
	background: var(--pd-surface);
}

body.photograph-dark #bbpress-forums .bbp-topics a,
body.photograph-dark #bbpress-forums .bbp-topics a:visited {
	color: var(--pd-heading);
}

body.photograph-dark .bbp-topic-form select#bbp_topic_status_select {
	background-color: var(--pd-field-bg);
	border-color: var(--pd-field-border);
	color: var(--pd-field-text);
	box-shadow: none;
}

/* 12. WooCommerce (basic)
================================================== */
body.photograph-dark .woocommerce-ordering .orderby {
	background-color: var(--pd-field-bg);
	border-color: var(--pd-field-border);
	color: var(--pd-field-text);
}

body.photograph-dark .woocommerce div.product span.price,
body.photograph-dark .woocommerce ul.products li.product .price,
body.photograph-dark .woocommerce-review-link,
body.photograph-dark .woocommerce div.product .woocommerce-tabs ul.tabs li a:not(:hover):not(:focus):not(:active) {
	color: var(--pd-text);
}

body.photograph-dark .woocommerce ul.products li.product a img,
body.photograph-dark .woocommerce .tagcloud a:not(:hover):not(:focus):not(:active),
body.photograph-dark .woocommerce-MyAccount-navigation ul li > a:not(:hover):not(:focus):not(:active),
body.photograph-dark .woocommerce div.product .woocommerce-tabs ul.tabs:before,
body.photograph-dark .woocommerce div.product .woocommerce-tabs ul.tabs li,
body.photograph-dark .woocommerce table.shop_table,
body.photograph-dark .woocommerce table.shop_table td {
	border-color: var(--pd-border-strong);
}

body.photograph-dark .woocommerce div.product .woocommerce-tabs ul.tabs li,
body.photograph-dark .woocommerce-MyAccount-navigation ul li.is-active,
body.photograph-dark .woocommerce .woocommerce-message,
body.photograph-dark .woocommerce .woocommerce-info,
body.photograph-dark .woocommerce .woocommerce-error {
	background-color: var(--pd-surface);
	color: var(--pd-text);
}

/* 13. Responsive (mobile menu)
================================================== */
@media only screen and (max-width: 1023px) {
	body.photograph-dark #search-box {
		background-color: var(--pd-surface);
	}

	body.photograph-dark .no-tog #sticky-header {
		background-color: #171717;
	}
}

/* ==========================================================================
   Plugins used on wojta-foto.cz
   ========================================================================== */

/* NextGEN Gallery – thumbnail frames are white with a grey border by default. */
body.photograph-dark .ngg-gallery-thumbnail {
	background-color: transparent;
	border-color: var(--pd-border, #333);
}
body.photograph-dark .ngg-gallery-list li a {
	border-color: var(--pd-border, #333);
}

/* Jetpack sharing – the X/Twitter button is black and would disappear. */
body.photograph-dark .sd-social-icon .sd-content ul li[class*="share-"].share-x a.sd-button,
body.photograph-dark .sd-social-icon .sd-content ul li[class*="share-"].share-twitter a.sd-button {
	background: #fff;
	color: #000 !important;
}
body.photograph-dark div.sharedaddy h3.sd-title {
	color: var(--pd-heading, #f0f0f0);
}

/* Helper: add the CSS class "keep-light" to an image or block (Block settings >
   Advanced > Additional CSS class) to keep a white plate behind dark logos. */
body.photograph-dark .keep-light,
body.photograph-dark .keep-light img {
	background-color: #fff;
}
body.photograph-dark .keep-light {
	padding: 8px;
	border-radius: 4px;
}
