/*
Theme Name: QuickPic
Theme URI: https://www.quickonlinetips.com/archives/quickpic-wordpress-theme/
Description: QuickPic is a fast, clean one-column theme for photo bloggers and anyone who wants their pictures and words to have the whole page. One small stylesheet, no JavaScript and no web fonts, so pages load instantly, and there is nothing to set up: activate it and start posting. A green header with your site title, a menu bar, your posts in one framed column, and a green box at the bottom with a search form and up to three widget columns. Includes automatic dark mode, header and accent colour pickers, a wide template for big photos, featured images and print styles. Uses the familiar Widgets and Menus screens and works with the block editor.
Version: 1.7
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Author: QuickOnlineTips
Author URI: https://www.quickonlinetips.com/
Tags: blog, photography, one-column, custom-background, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, block-styles, sticky-post, threaded-comments, translation-ready
Text Domain: quickpic
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

QuickPic WordPress Theme, Copyright 2026 QuickOnlineTips.com
QuickPic is distributed under the terms of the GNU GPL.
*/

/* Contents
-------------------------------------
1. Settings (colours and fonts), dark mode
2. QuickReset (replaces normalize.css)
3. QuickGrid (page layout)
4. Typography
5. Header and menu bar
6. Posts and pages
7. Images and block content
8. Bottom box (search and widgets)
9. Comments and forms
10. Navigation
11. Footer
12. Accessibility
13. Phones and tablets
14. Print
------------------------------------- */


/* 1. Settings
   Change these few values to recolour the whole theme.
------------------------------------- */

:root {
	--qpic-brand: #005500;     /* header band and bottom box */
	--qpic-accent: #088000;    /* links, buttons, page numbers */
	--qpic-highlight: #ff0;    /* headings and links on the green and dark bands */
	--qpic-text: #333;
	--qpic-muted: #707070;
	--qpic-border: #ddd;
	--qpic-line: #eee;
	--qpic-soft: #f6f6f6;
	--qpic-bg: #fff;
	--qpic-page-bg: #444;      /* around the page on wide screens */
	--qpic-frame: #333;        /* the dark frame round the page, and the footer */
	--qpic-menu: #ddd;         /* the menu bar */
	--qpic-menu-active: color-mix(in srgb, var(--qpic-accent) 70%, #000); /* menu hover and current page, readable on the grey */
	--qpic-link: var(--qpic-accent);
	--qpic-band: var(--qpic-brand);
	--qpic-band-text: color-mix(in srgb, var(--qpic-on-brand) 70%, var(--qpic-band)); /* text in the bottom box: a soft green-grey, so white links stand out */
	--qpic-on-brand: #fff;
	--qpic-on-accent: #fff;
	--qpic-field: #fff;
	--qpic-field-border: #bbb;
	--qpic-alt: #f9f9f9;
	--qpic-author: #eef8ec;
	--qpic-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
	--qpic-heading-font: var(--qpic-font); /* the same system font, in bold */
	--qpic-mono: ui-monospace, Menlo, Consolas, "Courier New", monospace;
}


/* Dark mode
   Follows the reader's device setting. The page turns near-black inside a
   black frame; the green band is deepened and links are lightened, so any
   colour the owner picks stays readable.
   Owners can switch this off in Customize > Colours.
------------------------------------- */

@media (prefers-color-scheme: dark) {
	body:not(.qpic-light-only) {
		--qpic-text: #e4e4e4;
		--qpic-muted: #a3a3a3;
		--qpic-border: #3a3a3a;
		--qpic-line: #2a2a2a;
		--qpic-soft: #262626;
		--qpic-bg: #171717;
		--qpic-page-bg: #0d0d0d;
		--qpic-frame: #000;
		--qpic-menu: #2a2a2a;
		--qpic-menu-active: var(--qpic-link);
		--qpic-link: color-mix(in srgb, var(--qpic-accent) 60%, #fff);
		--qpic-band: color-mix(in srgb, var(--qpic-brand) 70%, #000);
		--qpic-field: #1f1f1f;
		--qpic-field-border: #555;
		--qpic-alt: #1d1d1d;
		--qpic-author: color-mix(in srgb, var(--qpic-accent) 14%, #171717);
		color-scheme: dark;
	}
}


/* 2. QuickReset
   The few fixes modern browsers still need.
------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img,
video {
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

pre,
code,
kbd {
	font-family: var(--qpic-mono);
	font-size: 0.9em;
}

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

sup {
	top: -0.5em;
}

sub {
	bottom: -0.25em;
}

table {
	border-collapse: collapse;
}


/* 3. QuickGrid
   One column, framed: the page sits in a dark frame with round corners,
   the QuickPic look since the first version. Phones drop the frame.
------------------------------------- */

body {
	padding: 20px 0;
}

#page {
	max-width: 780px; /* 740px inside the frame */
	margin: 0 auto;
	background: var(--qpic-bg);
	border: 20px solid var(--qpic-frame);
	border-radius: 15px;
	overflow: hidden;
}

.row {
	display: block;
}

#content {
	min-width: 0;
}

.column {
	padding: 25px 40px;
}

/* Wide template: a wider page for big photos */
.qpic-wide #page {
	max-width: 1180px;
}


/* 4. Typography
------------------------------------- */

body {
	font-family: var(--qpic-font);
	font-size: 0.8rem; /* about 13px, like the original QuickPic */
	line-height: 1.5;
	color: var(--qpic-text);
	background: var(--qpic-page-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--qpic-heading-font);
	font-weight: bold;
	line-height: 1.25;
	margin: 1.2em 0 0.4em;
}

/* Headings grow smoothly from phone to desktop */
h1 {
	font-size: clamp(1.5em, 1.3em + 0.9vw, 1.8em);
}

h2 {
	font-size: clamp(1.3em, 1.2em + 0.6vw, 1.55em);
}

h3 {
	font-size: clamp(1.15em, 1.08em + 0.35vw, 1.3em);
}

h4 {
	font-size: 1.1em;
}

a {
	color: var(--qpic-link);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

h1 a,
h2 a,
h3 a {
	color: var(--qpic-text);
}

h1 a:hover,
h2 a:hover,
h3 a:hover {
	color: var(--qpic-link);
	text-decoration: none;
}

small {
	font-size: 0.85em;
}

blockquote {
	margin: 1.5em 0;
	padding: 0 0 0 20px;
	border-left: 4px solid var(--qpic-border);
	color: var(--qpic-muted);
}

blockquote cite {
	display: block;
	margin-top: 5px;
	font-size: 0.9em;
}

pre {
	background: var(--qpic-soft);
	border: 1px solid var(--qpic-border);
	padding: 10px 12px;
	line-height: 1.5;
	overflow-x: auto;
	white-space: pre-wrap;
	word-wrap: break-word;
}

code {
	background: var(--qpic-soft);
	padding: 1px 4px;
	border-radius: 3px;
}

pre code {
	background: none;
	padding: 0;
}

abbr[title] {
	cursor: help;
	text-decoration: underline dotted;
}

hr {
	border: 0;
	border-top: 1px solid var(--qpic-border);
	margin: 2em 0;
}

dt {
	font-weight: bold;
}

dd {
	margin: 0 0 10px 20px;
}

.center {
	text-align: center;
}


/* 5. Header and menu bar
------------------------------------- */

/* The green header band: logo, site title and tagline, centred */
#header {
	padding: 26px 20px 22px;
	background: var(--qpic-band);
	color: var(--qpic-on-brand);
	text-align: center;
}

/* The site title: bigger and heavier than any post heading,
   with a short yellow bar underneath so it reads as the name of the site */
.site-title {
	font-family: var(--qpic-heading-font);
	font-size: clamp(2em, 1.6em + 1.6vw, 2.8em);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
	margin: 0;
	overflow-wrap: anywhere;
}

.site-title::after {
	content: "";
	display: block;
	width: 42px;
	height: 4px;
	margin: 9px auto 0;
	border-radius: 2px;
	background: var(--qpic-highlight);
}

.site-title a,
.site-title a:hover {
	color: var(--qpic-on-brand);
	text-decoration: none;
}

.site-title a:hover {
	opacity: 0.85;
}

.custom-logo-link {
	display: inline-block;
	margin-bottom: 10px;
}

.custom-logo {
	display: block;
	max-height: 100px;
	width: auto;
}

.description {
	margin: 8px 0 0;
	font-size: 1.1em;
	line-height: 1.4;
	color: color-mix(in srgb, var(--qpic-on-brand) 78%, var(--qpic-band));
}

/* The light grey menu bar under the header */
.main-menu {
	background: var(--qpic-menu);
	padding: 8px 30px;
}

.main-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
}

.main-menu a {
	color: var(--qpic-text);
	font-size: 1.1em;
	font-weight: bold;
	text-transform: uppercase;
}

.main-menu a:hover,
.main-menu .current-menu-item > a {
	color: var(--qpic-menu-active);
}

/* The page you are on: a short accent bar under its menu link,
   like the bar under the site title */
.main-menu li {
	position: relative;
}

.main-menu .current-menu-item > a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -6px;
	width: 22px;
	height: 3px;
	border-radius: 2px;
	background: var(--qpic-accent);
}


/* 6. Posts and pages
------------------------------------- */

#content {
	font-size: 0.96rem; /* about 15px, like the original */
}

#content main > :first-child,
.entry-title,
.page-title {
	margin-top: 0;
}

/* Space between posts (not comments, which are also <article>s) */
#content main > article {
	margin: 0 0 35px;
}

.page-header {
	margin-bottom: 20px;
}

.archive-description {
	color: var(--qpic-muted);
}

.entry-title {
	margin-bottom: 2px;
}

/* Post titles in lists: as large as the original QuickPic (1.8em, about 28px) */
#content main > article > h2.entry-title {
	font-size: clamp(1.4em, 1.2em + 0.9vw, 1.8em);
}

.post-meta {
	margin: 0 0 6px;
	line-height: 1.4;
	font-size: 0.85em;
	color: var(--qpic-muted);
}

.entry {
	border-top: 1px solid var(--qpic-border);
	line-height: 1.6;
	display: flow-root; /* keeps floated images inside the post */
}

.entry a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.entry a:hover {
	text-decoration-thickness: 2px;
}

.entry > :first-child {
	margin-top: 10px;
}

.read-more,
.more-link {
	white-space: nowrap;
}

.sticky {
	border-left: 3px solid var(--qpic-accent);
	padding-left: 15px;
}

.post-tags {
	font-size: 0.9em;
	color: var(--qpic-muted);
}

.page-links {
	margin: 1.5em 0;
}

.page-links > span,
.page-links > a {
	margin-right: 5px;
}


/* 7. Images and block content
------------------------------------- */

.alignleft {
	float: left;
	margin: 5px 20px 10px 0;
}

.alignright {
	float: right;
	margin: 5px 0 10px 20px;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.alignwide,
.alignfull {
	max-width: 100%;
}

.post-thumb img {
	display: block;
	border-radius: 4px;
}

/* Large photos in post lists (Customize > Post Lists > Featured photos):
   across the whole column, above the excerpt. Very tall photos are capped
   so one portrait shot doesn't fill the screen. */
.post-photo {
	display: block;
	margin: 12px 0 10px;
}

.post-photo img {
	display: block;
	width: 100%;
	max-height: 460px;
	object-fit: cover;
	border-radius: 4px;
}

/* Thumbnails and photos brighten a touch on hover, a hint that the photo opens the post */
.post-thumb:hover img,
.post-photo:hover img {
	filter: brightness(1.08);
}

.post-image {
	margin: 15px 0;
}

.post-image img {
	display: block;
	border-radius: 4px;
}

figure {
	margin: 1.5em 0;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.gallery-caption,
figcaption {
	font-size: 0.85em;
	color: var(--qpic-muted);
	text-align: center;
	margin-top: 5px;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin: 1.5em 0;
}

.gallery-columns-1 { grid-template-columns: 1fr; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }

.gallery-item {
	margin: 0;
	text-align: center;
}

.entry table,
.wp-block-table table {
	width: 100%;
	margin: 1.5em 0;
}

.entry th,
.entry td {
	padding: 6px 8px;
	border: 1px solid var(--qpic-border);
	text-align: left;
}

.entry th {
	background: var(--qpic-soft);
}

.wp-block-button__link,
.wp-element-button {
	background: var(--qpic-accent);
	color: var(--qpic-on-accent);
	border-radius: 6px;
	text-decoration: none;
}

.entry .wp-block-button__link {
	text-decoration: none;
}

.wp-block-pullquote {
	border-top: 3px solid var(--qpic-accent);
	border-bottom: 3px solid var(--qpic-accent);
}

.wp-block-pullquote blockquote {
	border: 0;
	padding: 0;
}


/* Query Loop and post blocks inside a post: a compact list in a light box,
   so the listed posts don't look like the page's own post titles */
.entry .wp-block-query {
	margin: 1.5em 0;
	padding: 12px 16px;
	border: 1px solid var(--qpic-border);
	border-radius: 6px;
}

.entry .wp-block-post-template {
	list-style: none;
	margin: 0;
	padding: 0;
}

.entry .wp-block-post-template > li {
	margin: 0 0 12px;
}

.entry .wp-block-query .wp-block-post-title {
	font-size: 1.1em;
	margin: 0 0 2px;
}

.entry .wp-block-post-date {
	font-size: 0.85em;
	color: var(--qpic-muted);
}

.entry .wp-block-query-pagination {
	margin-top: 10px;
	gap: 6px;
}

.entry .wp-block-query-pagination a {
	text-decoration: none;
}

/* Block styles from the editor's Styles panel */
.is-style-qpic-accent,
.wp-block-quote.is-style-qpic-accent {
	margin: 1.5em 0;
	padding: 2px 0 2px 16px;
	border-left: 4px solid var(--qpic-accent);
	color: var(--qpic-text);
	font-size: 1.1em;
}

.is-style-qpic-soft-box {
	margin: 1.5em 0;
	padding: 14px 18px;
	background: var(--qpic-soft);
	border-left: 3px solid var(--qpic-accent);
	border-radius: 0 6px 6px 0;
}

.is-style-qpic-soft-box > :first-child {
	margin-top: 0;
}

.is-style-qpic-soft-box > :last-child {
	margin-bottom: 0;
}

/* Blocks with their own background colour: keep text off the edges */
.entry :is(p, h2, h3, h4, .wp-block-group, .wp-block-column, .wp-block-columns).has-background {
	padding: 1em 1.25em;
	border-radius: 6px;
}

/* 8. Bottom box
   The green band at the bottom of every page: a search box in a dark
   panel, then up to three widget columns with yellow headings.
------------------------------------- */

.bottom-box {
	padding: 25px 25px 25px;
	background: var(--qpic-band);
	color: var(--qpic-band-text);
	font-size: 1.05em;
	line-height: 1.45;
}

/* The search panel: a deeper shade of the box's own green, so it reads as
   part of the box rather than a black slab dropped into it */
.bottom-search {
	padding: 18px 14px;
	background: color-mix(in srgb, var(--qpic-band) 55%, #000);
	border-radius: 6px;
}

.bottom-search .search-form {
	max-width: 460px;
	margin: 0 auto;
}

.bottom-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px 30px;
	margin-top: 22px;
}

.bottom-column {
	min-width: 0;
}

.bottom-box .widget {
	margin: 0 0 20px;
}

.bottom-box .widget:last-child {
	margin-bottom: 0;
}

/* Widget headings: yellow capitals with a short underline,
   like the original QuickPic */
.bottom-box .widget-title,
.bottom-box h2 {
	display: inline-block;
	font-size: 1.15em;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--qpic-highlight);
	margin: 0 0 8px;
	padding-bottom: 3px;
	border-bottom: 2px solid color-mix(in srgb, var(--qpic-highlight) 55%, var(--qpic-band));
}

/* Links: bright white in normal weight. The text around them is a softer
   green-grey, so links stand out without bold or underlines (the headings
   already carry the box's only lines) */
.bottom-box a {
	color: var(--qpic-on-brand);
}

.bottom-box a:hover {
	color: var(--qpic-highlight);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bottom-box ul,
.bottom-box ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bottom-box li {
	margin: 0 0 5px;
}

.bottom-box ul ul {
	margin: 4px 0 0 12px;
}

.bottom-box p {
	margin: 0 0 8px;
}

.bottom-box .wp-block-group__inner-container > * {
	margin-top: 0;
}

.bottom-box .wp-block-latest-comments {
	font-size: inherit;
	padding: 0;
}

.bottom-box .wp-block-latest-comments__comment {
	margin: 0 0 5px;
	line-height: 1.4;
}

.bottom-box .wp-block-latest-comments__comment-meta {
	font-size: 1em;
}

.bottom-box .wp-block-latest-posts__post-date {
	font-size: 0.9em;
	opacity: 0.8;
}

.bottom-box select {
	max-width: 100%;
}


/* "12 more" at the end of a long list: opens in place, no JavaScript */
.qpic-more summary {
	cursor: pointer;
	color: var(--qpic-highlight);
	font-weight: 600;
	list-style-position: inside;
}

.qpic-more details[open] summary {
	margin-bottom: 5px;
}

/* The opened items line up with the first ten (sub-items keep their indent) */
.bottom-box .qpic-more > details > ul,
.entry .qpic-more > details > ul {
	margin: 0;
}

/* Below Posts widgets: a soft box under the post */

.after-post {
	margin: 25px 0;
	padding: 14px 18px;
	background: var(--qpic-soft);
	border-left: 3px solid var(--qpic-accent);
	border-radius: 0 6px 6px 0;
	line-height: 1.5;
}

.after-post .widget {
	margin: 0 0 14px;
}

.after-post .widget:last-child {
	margin-bottom: 0;
}

/* Below Posts headings stay plain: the box already has an accent edge */
.after-post h2,
.after-post .widget-title {
	display: block;
	font-size: 1.15em;
	margin: 0 0 6px;
	padding-bottom: 0;
	border-bottom: 0;
}

.after-post p {
	margin: 0 0 8px;
}

.after-post > .widget > :last-child,
.after-post p:last-child {
	margin-bottom: 0;
}


/* 9. Comments and forms
------------------------------------- */

/* Text fields: same height as the buttons, soft accent ring when typing */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
select,
textarea,
.wp-block-search__input {
	max-width: 100%;
	padding: 8px 11px;
	line-height: 1.4;
	border: 1px solid var(--qpic-field-border);
	border-radius: 6px;
	background: var(--qpic-field);
	color: var(--qpic-text);
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--qpic-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--qpic-accent) 20%, transparent);
}

textarea {
	width: 100%;
}

/* Buttons: accent colour, a touch darker on hover */
button,
input[type="submit"],
.search-submit,
.wp-block-search__button {
	cursor: pointer;
	background: var(--qpic-accent);
	color: var(--qpic-on-accent);
	border: 1px solid var(--qpic-accent);
	border-radius: 6px;
	padding: 8px 16px;
	line-height: 1.4;
	font-weight: 600;
}

button:hover,
input[type="submit"]:hover,
.wp-block-search__button:hover {
	filter: brightness(0.9);
}

/* Search: box and button side by side, same height */
.search-form,
.wp-block-search__inside-wrapper {
	display: flex;
	align-items: stretch;
	gap: 6px;
}

.search-form {
	margin: 15px 0;
}

.search-form label,
.wp-block-search__input {
	flex: 1;
	min-width: 0;
}

.search-field {
	width: 100%;
}

.wp-block-search__button {
	margin: 0;
}

.comments {
	clear: both;
	margin-top: 40px;
}

.comments-title {
	font-size: 1.3em;
	margin-bottom: 10px;
}

.commentlist,
.commentlist .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.commentlist .children {
	margin: 6px 0 0 14px;
	border-left: 1px solid var(--qpic-border);
	padding-left: 10px;
}

/* Each comment: a compact box, 6px apart */
.commentlist .comment-body {
	border: 1px solid var(--qpic-border);
	border-radius: 6px;
	padding: 8px 12px;
	margin: 0 0 6px;
}

.comment-content p {
	margin: 0 0 6px;
}

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

.commentlist > .comment:nth-child(even) > .comment-body {
	background: var(--qpic-alt);
}

.commentlist .bypostauthor > .comment-body {
	background: var(--qpic-author);
}

.comment-author .avatar {
	float: left;
	margin: 0 8px 0 0;
	border-radius: 50%;
}

.comment-author .fn {
	font-style: normal;
	font-weight: bold;
}

.comment-meta {
	display: flow-root; /* holds the small avatar */
	font-size: 0.8em;
	line-height: 1.35;
	margin-bottom: 4px;
}

.comment-meta a {
	color: var(--qpic-muted);
}

.reply {
	margin-top: 3px;
	font-size: 0.85em;
}

.comment-respond {
	margin: 24px 0 20px;
}

.comment-form label {
	display: block;
	margin-bottom: 3px;
	font-size: 0.9em;
	font-weight: 600;
}

.comment-form p {
	margin: 0 0 14px;
}

.comment-form-cookies-consent label {
	display: inline;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
	width: 100%;
	max-width: 420px;
}

.no-comments {
	color: var(--qpic-muted);
}


/* 10. Navigation
------------------------------------- */

.navigation {
	display: flow-root;
	margin: 20px 0;
}

.post-nav .alignleft,
.post-nav .alignright,
.image-nav .alignleft,
.image-nav .alignright {
	margin: 0;
	max-width: 48%;
}

.pagination .nav-links,
.comment-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.comment-navigation .nav-next {
	margin-left: auto;
}

/* Page numbers: outlined boxes; the current page is filled in */
.page-numbers {
	display: inline-block;
	min-width: 2.4em;
	padding: 5px 11px;
	line-height: 1.4;
	text-align: center;
	border: 1px solid var(--qpic-border);
	border-radius: 6px;
	color: var(--qpic-link);
}

a.page-numbers:hover {
	text-decoration: none;
	background: var(--qpic-accent);
	border-color: var(--qpic-accent);
	color: var(--qpic-on-accent);
}

.page-numbers.current {
	background: var(--qpic-accent);
	border-color: var(--qpic-accent);
	color: var(--qpic-on-accent);
	font-weight: bold;
}

.page-numbers.dots {
	min-width: 0;
	padding-left: 2px;
	padding-right: 2px;
	border-color: transparent;
	color: var(--qpic-muted);
}


/* 11. Footer
   The dark band at the very bottom, the same colour as the frame.
------------------------------------- */

.site-info {
	padding: 12px 20px 16px;
	background: var(--qpic-frame);
	color: #f3f3f3;
	text-align: center;
}

.site-info p {
	margin: 3px 0;
}

.site-info a {
	color: var(--qpic-highlight);
}

.footer-menu ul {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 5px 18px;
}

/* Social links in the footer menu show as small light icons */
.footer-menu .qpic-social a {
	display: inline-flex;
	padding: 4px;
	border-radius: 6px;
	color: #f3f3f3;
}

.footer-menu .qpic-social a:hover {
	background: rgba(255, 255, 255, 0.12);
	color: var(--qpic-highlight);
}

.qpic-icon {
	display: block;
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.credits {
	opacity: 0.8;
}


/* 12. Accessibility
------------------------------------- */

/* Hidden on screen but read aloud by screen readers */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

/* The Skip to content link appears when reached with the Tab key */
.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	top: 10px;
	left: 10px;
	z-index: 100000;
	padding: 10px 15px;
	background: var(--qpic-bg);
	color: var(--qpic-link);
	font-weight: bold;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--qpic-accent);
	outline-offset: 2px;
}


/* 13. Phones and tablets
   Below 800px the frame goes and the page fills the screen.
------------------------------------- */

@media (max-width: 800px) {

	body {
		padding: 0;
	}

	body,
	body.custom-background {
		background: var(--qpic-bg) !important;
	}

	#page {
		border: 0;
		border-radius: 0;
	}

	#header {
		padding: 20px 16px 18px;
	}

	.main-menu {
		padding: 8px 16px;
	}

	.main-menu ul {
		gap: 4px 16px;
	}

	.column {
		padding: 20px 16px;
	}

	.bottom-box {
		padding: 18px 16px 22px;
	}

	/* 16px fields stop iPhones zooming in when someone taps to type */
	input,
	select,
	textarea {
		font-size: 16px;
	}

	.gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {

	.alignleft,
	.alignright {
		float: none;
		margin: 10px 0;
	}

	.post-thumb {
		float: right;
		margin: 5px 0 10px 15px;
	}

	.post-thumb img {
		width: 80px;
	}
}


/* 14. Print
   Printing a post gives clean text: no frame, menu, widgets or comment form.
------------------------------------- */

@media print {

	body {
		color: #000;
		background: #fff;
		font-size: 12pt;
		padding: 0;
	}

	#page {
		max-width: none;
		border: 0;
		border-radius: 0;
	}

	#header {
		padding: 0 0 10px;
		background: none;
		color: #000;
		text-align: left;
		border-bottom: 1px solid #000;
	}

	.site-title::after {
		display: none;
	}

	.site-title a,
	.description {
		color: #000;
	}

	.column {
		padding: 0;
	}

	.main-menu,
	.bottom-box,
	.after-post,
	.footer-menu,
	.post-nav,
	.pagination,
	.comment-respond,
	.reply,
	.skip-link,
	.credits {
		display: none;
	}

	.site-info {
		background: none;
		color: #000;
		text-align: left;
	}

	a {
		color: #000;
	}

	/* Show where links in the post go */
	.entry a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 0.85em;
		word-break: break-all;
	}

	img,
	figure,
	pre,
	blockquote {
		break-inside: avoid;
	}

	h1,
	h2,
	h3 {
		break-after: avoid;
	}
}
