/*
Theme Name: NewStone
Theme URI: https://terryl.in/en/repository/newstone/
Requires at least: 3.6
Tested up to: 7.0
Requires PHP: 5.2
Description: NewStone is a simple and clean two-columns ( It can become three-columns by using particular widgets ), fixed-width theme with 15 years of history. It deliberately targets very old WordPress versions and is compatible with WordPress 3.x standard features: Custom Menu, Header Image, Custom Background and Featured Images. It does not add dedicated block editor (Gutenberg) support on purpose, so the experience long-time users rely on stays intact. NewStone supports 4 widgets for normal use, 4 widgets for placing Ads, 1 widget for Javascript (Google Analytics or similar services).
Author: Terry Lin
Author URI: https://terryl.in
Copyright: 2011-2026 Terry Lin
Version: 2.1.1
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: two-columns, three-columns, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats
Text Domain: newstone
*/
/*
 * style.css is GENERATED from these partials. Do not edit style.css directly;
 * edit the SCSS partials and run `npm run build` (or `make css.build`).
 *
 * Partials are imported in source order so the compiled cascade matches the
 * original hand-written stylesheet.
 */
/* Reset CSS */
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, font, 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 {
  border: 0;
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}

body {
  line-height: 1;
  -webkit-text-size-adjust: none;
}

h1, h2, h3, h4, h5, h6 {
  clear: both;
  font-weight: normal;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
  content: "";
  content: none;
}

del {
  text-decoration: line-through;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Preload images for CSS spirits */
.bg {
  background: url(images/layout_background.gif) repeat-y;
}

.layout {
  background: url(images/layout_infront.png) no-repeat;
}

.icon, .tagcloud a {
  background: url(images/layout_icons.png) no-repeat;
}

#the_menu ul li a:hover,
#the_menu ul li.current_page_item a,
#the_menu ul.sub-menu li a:hover,
#the_menu div.menu ul.children li a:hover {
  background: url(images/layout_icons.png) repeat-x;
}

.base_bg {
  background: url(images/background.gif);
}

/* Icons */
.post-meta .time,
.post-meta .author,
.post-meta .comment,
.post-meta .category,
.post-tag .tag,
.post-meta .admin-edit,
.post-meta .the-gallery,
.post-meta .magnifier {
  line-height: 19px;
  padding-left: 23px;
  margin-right: 5px;
  float: left;
}

.post-meta .time {
  background-position: 0 -173px;
}

.post-meta .author {
  background-position: 0 -202px;
}

.post-meta .comment {
  background-position: 0 -231px;
}

.post-meta .category {
  background-position: 0 -347px;
}

.post-tag .tag {
  background-position: 0 -581px;
}

.post-meta .admin-edit {
  background-position: 0 -318px;
}

.post-meta .the-gallery {
  background-position: 0 -289px;
}

.post-meta .magnifier {
  background-position: 0 -260px;
}

/* Font Family */
body,
#site-title {
  font-family: Verdana, Arial, Sans-Serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Trebuchet MS", Verdana, Arial, Sans-Serif;
}

pre {
  font-family: "Courier 10 Pitch", Courier, monospace;
}

code,
#respond p.form-allowed-tags {
  font-family: "Courier New", Courier, Fixed;
}

#author-description h2,
#comments h3 {
  font-family: Verdana;
}

/* Font Size */
#site-title {
  font-size: 28px;
}

#site-description {
  font-size: 13px;
}

#wp-calendar caption {
  font-size: 14px;
}

#wp-calendar thead {
  font-size: 11px;
}

#wp-calendar tbody td {
  font-size: 11px;
}

#prev a, #next a {
  font-size: 12px;
}

#content h1 {
  font-size: 26px;
}

#content h2 {
  font-size: 22px;
}

#content h3 {
  font-size: 20px;
}

#content h4 {
  font-size: 18px;
}

#content h5 {
  font-size: 16px;
}

#content h6 {
  font-size: 14px;
}

#content input, #content textarea {
  font-size: 16px;
}

#content var {
  font-size: 15px;
}

#content code {
  font-size: 13px;
}

#nav-below a {
  font-size: 12px;
}

#post-author-info {
  font-size: 12px;
}

#post-author-info h2 {
  font-size: 16px;
}

#comments-title h3, #respond h3 {
  font-size: 14px;
}

#comments-title h4, #respond h4 {
  font-size: 13px;
}

#respond, .archive-meta {
  font-size: 12px;
}

#comments .pingback p {
  font-size: 12px;
}

#comments .pingback .url {
  font-size: 13px;
}

#respond .comment-notes {
  font-size: 11px;
}

#respond label {
  font-size: 12px;
}

#respond .form-allowed-tags {
  font-size: 12px;
}

#respond .form-allowed-tags code {
  font-size: 11px;
}

#respond .form-submit input {
  font-size: 14px;
}

#credit, #credit a {
  font-size: 11px;
}

.post-content {
  font-size: 13px;
}

.post-meta, .post-tag, .post-utility {
  font-size: 11px;
}

.side-widget ul li, .side-widget-s ul li {
  font-size: 12px;
}

.side-widget-header h3, .side-widget-header-s h3 {
  font-size: 16px;
}

.attachment_return_link {
  font-size: 12px;
}

.wp-caption p.wp-caption-text {
  font-size: 11px;
}

.gallery .gallery-caption {
  font-size: 12px;
}

.navigation {
  font-size: 12px;
}

.comment-meta {
  font-size: 10px;
}

.commentlist {
  font-size: 12px;
}

.reply {
  font-size: 12px;
}

h1 span {
  font-size: 13px;
}

.menu_bar, div.menu {
  font-size: 13px;
}

.nopassword, .nocomments {
  font-size: 12px;
}

#author-description {
  font-size: 11px;
}

#author-description h2 {
  font-size: 13px;
}

.textwidget {
  font-size: 12px;
}

/* Structure */
#wrapper {
  width: 986px;
  overflow: hidden;
  margin: 0 auto;
}

#newstone {
  width: 966px;
  margin: 0 auto;
}

#main {
  width: 966px;
  margin-top: 4px;
}

#footer {
  clear: both;
  width: 966px;
}

/* Structure - Header */
#header-info {
  width: 966px;
  height: 100px;
  line-height: 100px;
  overflow: hidden;
}

#header-info-left {
  width: 483px;
  float: left;
  overflow: hidden;
}

#header-info-right {
  width: 483px;
  float: right;
  overflow: hidden;
}

#header-info-right .textwidget {
  margin-top: 20px;
}

#site-title {
  float: left;
  line-height: 100px;
  margin: 0px 10px 0px 10px;
}

#site-logo {
  float: left;
  margin: 0 10px;
}

#site-logo .custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 80px;
  margin: 10px 0;
}

#site-title a {
  color: #000;
  font-weight: bold;
  text-decoration: none;
}

#site-description {
  float: left;
  width: 446px;
  line-height: 100px;
  text-align: right;
  font-style: italic;
  margin: 0px 10px 0px 10px;
}

#feature-image {
  width: 966px;
  height: 130px;
  background-position: -1274px 0;
  position: relative;
  z-index: 50;
}

#show-feature-image {
  width: 960px;
  height: 130px;
  margin: 0 3px 0 3px;
}

#feature-image-frame {
  width: 966px;
  height: 8px;
  z-index: 150;
  background: url(images/header_img_frame.gif) no-repeat;
  position: absolute;
  top: 122px;
  left: 0;
}

#header-shadow {
  width: 966px;
  height: 3px;
  overflow: hidden;
  background-position: 0 -136px;
}

/* Structure - Main */
#mainbox {
  float: left;
  width: 650px;
  margin-right: 4px;
  background-position: 0 0;
}

#mainbox-fullwidth {
  width: 966px;
  background-position: -1274px 0;
}

.main-layout-top {
  width: 650px;
  height: 13px;
  overflow: hidden;
  background-position: 0 -42px;
}

.main-layout-bottom {
  width: 650px;
  height: 13px;
  overflow: hidden;
  background-position: 0 -56px;
}

.main-fullwidth-layout-top {
  width: 966px;
  height: 13px;
  overflow: hidden;
  background-position: 0 -113px;
}

.main-fullwidth-layout-bottom {
  width: 966px;
  height: 13px;
  overflow: hidden;
  background-position: 0 -127px;
}

#content {
  padding: 0 20px;
}

/* Structure - Sidebar */
#sidebox {
  width: 312px;
  float: left;
}

#side-widget-left {
  width: 154px;
  float: left;
}

#side-widget-right {
  width: 154px;
  float: right;
}

.side-widget {
  width: 312px;
  background-position: -650px 0;
  margin-bottom: 4px;
  overflow: hidden;
}

.side-widget-s {
  width: 154px;
  background-position: -962px 0;
  margin-bottom: 4px;
  overflow: hidden;
}

.side-widget-header {
  width: 312px;
  height: 43px;
  line-height: 43px;
  background-position: -654px -42px;
  overflow: hidden;
}

.side-widget-header-ad {
  width: 312px;
  height: 13px;
  line-height: 13px;
  background-position: -654px -99px;
  overflow: hidden;
}

.side-widget-header-s {
  width: 154px;
  height: 43px;
  line-height: 43px;
  background-position: -338px -69px;
  overflow: hidden;
}

.side-widget-header h3,
.side-widget-header-s h3 {
  margin-left: 40px;
  line-height: 40px;
  padding-bottom: 3px;
  color: #000;
  font-weight: bold;
}

/*
 * Block-editor widgets (WP 5.8+) output titles as Heading blocks
 * ( <h2 class="wp-block-heading"> ) instead of the theme's
 * .side-widget-header > h3 markup. Re-apply the classic header bar so block
 * widget titles match .side-widget-header h3.
 */
.side-widget .wp-block-heading,
.side-widget-s .wp-block-heading {
  box-sizing: border-box;
  margin: 0;
  padding: 0 0 0 40px;
  height: 43px;
  background: url(images/layout_infront.png) no-repeat;
  color: #000;
  font-size: 16px;
  font-weight: bold;
  line-height: 43px;
  overflow: hidden;
}

.side-widget .wp-block-heading {
  width: 312px;
  background-position: -654px -42px;
}

.side-widget-s .wp-block-heading {
  width: 154px;
  background-position: -338px -69px;
}

.side-widget-footer {
  width: 312px;
  height: 12px;
  background-position: -654px -86px;
}

.side-widget-footer-s {
  width: 154px;
  height: 12px;
  background-position: -493px -99px;
}

.side-widget ul,
.side-widget-s ul {
  padding: 10px;
}

.side-widget ul li,
.side-widget-s ul li {
  line-height: 150%;
}

.side-widget ul.children,
.side-widget-s ul.children {
  padding: 3px;
}

.side-widget ul.children li,
.side-widget-s ul.children li {
  line-height: 150%;
}

.textwidget {
  overflow: hidden;
  line-height: 150%;
}

.textwidget p {
  margin: 0px;
  padding: 0px;
}

.side-widget .textwidget,
.side-widget-s .textwidget {
  margin: 6px;
}

/* Structure - Sidebar - .side-widget */
.side-widget select,
.side-widget form,
.side-widget-s select,
.side-widget-s form {
  margin: 6px 16px;
}

.side-widget .textwidget {
  margin: 6px;
}

.side-widget-s .textwidget {
  margin: 4px;
}

.tagcloud {
  margin: 6px 12px;
}

.tagcloud a {
  height: 14px;
  line-height: 14px;
  border-top: 1px solid #eee;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  border-left: 1px solid #eee;
  background-color: #f1f1f1;
  background-position: 0px -89px;
  padding: 0px 5px 0px 20px;
  margin: 3px;
  display: inline-block;
}

.tagcloud a:hover {
  background-color: #fff;
  color: #000;
  text-decoration: none;
}

/* Search Form */
#searchform input {
  padding: 4px;
  *padding: 1px;
}

#searchform input[type=submit] {
  padding: 3px;
  *padding: 0px;
  *font-size: 11px;
}

#s {
  width: 40%;
}

/* Calendar */
#calendar_wrap {
  width: 280px;
  margin: 16px;
}

#wp-calendar {
  width: 280px;
}

#wp-calendar caption {
  color: #000;
  line-height: 14px;
  font-weight: bold;
  border-bottom: 1px solid #eee;
  text-align: left;
  padding: 3px;
  margin-bottom: 10px;
}

#wp-calendar thead th {
  padding-bottom: 5px;
  border-bottom: 3px solid #DDD;
}

#wp-calendar tbody {
  color: #999;
}

#wp-calendar tbody td {
  background: #f1f1f1;
  border: 1px solid #fff;
  padding: 3px;
  text-align: center;
}

#wp-calendar tbody .pad {
  background: none;
}

#wp-calendar tfoot #next {
  text-align: right;
}

#wp-calendar #today {
  font-weight: bold;
}

/* Global Elements */
body {
  background: url(images/background.gif) #ffffff;
}

hr {
  background-color: #e7e7e7;
  border: 0;
  clear: both;
  height: 1px;
  margin-bottom: 18px;
}

/* Text elements */
p {
  margin-bottom: 18px;
}

ul {
  list-style: square;
  margin: 0 0 0 1.8em;
}

ol {
  list-style: decimal;
  margin: 0 0 18px 2.2em;
}

ol ol {
  list-style: upper-alpha;
}

ol ol ol {
  list-style: lower-roman;
}

ol ol ol ol {
  list-style: lower-alpha;
}

ul ul,
ol ol,
ul ol,
ol ul {
  margin-bottom: 0;
}

dl {
  margin: 0 0 24px 0;
}

dt {
  font-weight: bold;
}

dd {
  margin-bottom: 18px;
}

strong {
  font-weight: bold;
}

cite,
em,
i {
  font-style: italic;
}

big {
  font-size: 131.25%;
}

ins {
  background: #ffc;
  text-decoration: none;
}

blockquote {
  font-style: italic;
  padding: 0 3em;
}

blockquote cite,
blockquote em,
blockquote i {
  font-style: normal;
}

pre {
  background: #f7f7f7;
  color: #222;
  line-height: 18px;
  margin-bottom: 18px;
  padding: 1.5em;
}

abbr,
acronym {
  border-bottom: 1px dotted #666;
  cursor: help;
}

sup,
sub {
  height: 0;
  line-height: 1;
  position: relative;
  vertical-align: baseline;
}

sup {
  bottom: 1ex;
}

sub {
  top: 0.5ex;
}

input[type=text],
textarea {
  background: #fafafa;
  border: 1px solid #ccc;
  box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.1);
  padding: 2px;
}

a {
  color: #0072BC;
  text-decoration: none;
}

a:hover {
  color: #F26522;
  text-decoration: underline;
}

embed {
  width: 610px;
}

/* Text meant only for screen readers */
.screen-reader-text {
  position: absolute;
  left: -9000px;
}

/* Menu */
#the_menu {
  width: 966px;
  height: 40px;
  background-position: 0 0;
  position: relative;
  z-index: 200;
}

#the_menu .menu_bar,
#the_menu div.menu {
  width: 934px;
  height: 36px;
  position: absolute;
  top: 4px;
  left: 16px;
}

#the_menu .menu_bar ul,
#the_menu div.menu ul {
  list-style: none;
  margin: 0;
}

#the_menu .menu_bar li,
#the_menu div.menu li {
  float: left;
  position: relative;
}

#the_menu ul li a {
  color: #000;
  display: block;
  line-height: 36px;
  padding: 0 17px;
  text-decoration: none;
}

#the_menu ul li a:hover {
  background-position: 0 0;
  color: #fff;
}

#the_menu ul ul {
  box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2);
  display: none;
  position: absolute;
  top: 36px;
  left: 0;
  float: left;
  width: 180px;
  z-index: 99999;
}

#the_menu ul ul li {
  min-width: 180px;
}

#the_menu ul ul ul {
  left: 100%;
  top: 0;
}

#the_menu ul.sub-menu li a,
#the_menu div.menu ul.children li a {
  background: #f5f5f5;
  color: #333;
  line-height: 1em;
  padding: 10px;
  width: 160px;
  height: auto;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #ddd;
}

#the_menu ul.sub-menu li a:hover,
#the_menu div.menu ul.children li a:hover {
  background-position: 0 0;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  color: #fff;
}

#the_menu ul li:hover > ul {
  display: block;
}

#the_menu .menu_bar ul.sub-menu li.current-menu-item a,
#the_menu div.menu ul.children li.current-page-item a {
  color: #333;
}

#the_menu div.menu ul li.current_page_item a,
#the_menu .menu_bar ul li.current_menu_item a,
#the_menu .menu_bar ul.sub-menu li.current-menu-item a:hover {
  color: #fff;
}

/* Mobile bar + hamburger toggle (revealed by the responsive drawer rules). */
#mobile-bar {
  display: none;
}

#mobile-bar-title {
  color: #000;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
}

#mobile-bar-logo .custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 36px;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.menu-toggle-box {
  position: relative;
  display: block;
  width: 24px;
  height: 18px;
}

.menu-toggle-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #000;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.menu-toggle-bar:nth-child(1) {
  top: 0;
}

.menu-toggle-bar:nth-child(2) {
  top: 8px;
}

.menu-toggle-bar:nth-child(3) {
  top: 16px;
}

.menu-open .menu-toggle-bar:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

.menu-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle-bar:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

/* Drawer backdrop (injected by js/navigation.js). Inert until below $bp-lg. */
#menu-overlay {
  display: none;
}

/* Content */
.hentry {
  border-bottom: 1px dashed #ddd;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.single .hentry {
  border: 0px;
  margin: 0px;
  padding: 0px;
}

#content,
#content input,
#content textarea {
  color: #333;
  line-height: 24px;
}

#content p,
#content ul,
#content ol,
#content dd,
#content pre,
#content hr {
  margin-bottom: 24px;
}

#content ul ul,
#content ol ol,
#content ul ol,
#content ol ul {
  margin-bottom: 0;
}

#content pre,
#content kbd,
#content tt,
#content var {
  line-height: 21px;
}

#content dt,
#content th {
  color: #000;
}

#content h1,
#content h2,
#content h3,
#content h4,
#content h5,
#content h6 {
  color: #000;
  font-weight: bold;
  line-height: 1.5em;
  margin: 0 0 20px 0;
}

#content table {
  border: 1px solid #e7e7e7;
  margin: 0 -1px 24px 0;
  text-align: left;
  width: 100%;
}

#content tr th,
#content thead th {
  color: #888;
  font-weight: bold;
  line-height: 18px;
  padding: 9px 24px;
}

#content tr td {
  border-top: 1px solid #e7e7e7;
  padding: 6px 24px;
}

#content tr.odd td {
  background: #f2f7fc;
}

.home .sticky {
  border-bottom: 3px solid #ddd;
  margin-left: -10px;
  margin-right: -10px;
  padding: 18px 10px;
}

#content .post-title {
  color: #000;
  font-weight: bold;
  margin-bottom: 10px;
}

.post-title a:link,
.post-title a:visited {
  color: #000;
  text-decoration: none;
}

.post-title a:active,
.post-title a:hover {
  color: #ff4b33;
}

/* .page-link is used in wp_link_pages() */
.page-link {
  clear: both;
  color: #000;
  font-weight: bold;
  margin: 0 0 22px 0;
  word-spacing: 0.5em;
}

.page-link a:link,
.page-link a:visited {
  background: #f1f1f1;
  color: #333;
  font-weight: normal;
  padding: 0.5em 0.75em;
  text-decoration: none;
}

.home .sticky .page-link a {
  background: #d9e8f7;
}

.page-link a:active,
.page-link a:hover {
  color: #ff4b33;
}

body.page .edit-link {
  clear: both;
  display: block;
}

h1 span {
  margin-left: 10px;
  color: #888;
}

#post-author-info {
  background-color: #F7FCFE;
  border: 1px solid #D6EEF7;
  clear: both;
  line-height: 20px;
  margin: 10px 0;
  overflow: hidden;
  padding: 18px 20px;
}

.archive-meta p {
  background-color: #F5F5F5;
  padding: 5px 5px 5px 20px;
}

#author-avatar {
  background: #fff;
  border: 1px solid #e7e7e7;
  float: left;
  height: 60px;
  margin: 0 -92px 0 0;
  padding: 5px;
}

#author-description {
  float: left;
  margin: 0 0 0 92px;
}

#post-author-info h2 {
  color: #000;
  font-weight: bold;
  margin-bottom: 0;
}

#content .video-player {
  padding: 0;
}

.clearboth {
  clear: both;
}

.empty {
  display: none;
}

.post-meta a, .post-tag a, .post-utility a {
  color: #333;
}

.comma {
  color: #aaa;
}

.padding-top-10 {
  padding-top: 10px;
}

.margin-top-10 {
  margin-top: 10px;
}

.post-meta, .post-tag, .post-utility {
  overflow: hidden;
  height: 1%;
}

.post-content {
  overflow: hidden;
}

/* =Asides */
/*  Gallery */
.gallery-thumb {
  float: left;
  margin-right: 20px;
  padding: 5px;
  text-align: center;
  background-color: #f1f1f1;
  margin-bottom: 15px;
  overflow: hidden;
}

.gallery-thumb img {
  border: 1px solid #e7e7e7;
  margin: 0;
  background-color: #ffffff;
  padding: 5px;
}

#content .gallery-thumb p {
  margin: 0;
  padding: 0;
}

/* Attachment pages */
.attachment_return_link {
  margin-bottom: 20px;
}

.attachment img {
  border: 1px solid #e7e7e7;
  margin: 0;
  background-color: #ffffff;
  padding: 5px;
}

.post-caption {
  font-weight: bold;
  margin: 10px 0;
}

/* Images */
.post-content img,
img.size-auto,
img.size-full,
img.size-large,
img.size-medium,
.attachment img {
  max-width: 100%;
  height: auto;
}

.alignleft,
img.alignleft {
  display: inline;
  float: left;
  margin-right: 24px;
  margin-top: 4px;
}

.alignright,
img.alignright {
  display: inline;
  float: right;
  margin-left: 24px;
  margin-top: 4px;
}

.aligncenter,
img.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

img.alignleft,
img.alignright,
img.aligncenter {
  margin-bottom: 12px;
}

.wp-caption {
  line-height: 18px;
  margin-bottom: 20px;
  max-width: 610px;
  text-align: center;
}

.wp-caption img {
  max-width: 590px;
  border: 1px solid #e7e7e7;
  padding: 5px;
}

.wp-caption p.wp-caption-text {
  color: #888;
  font-style: italic;
}

.wp-smiley {
  margin: 0;
}

/* Gallery in posts */
.gallery {
  margin-bottom: 18px;
  border: 1px solid #e7e7e7;
  padding: 10px 0px;
  background-color: #f5f5f5;
  overflow: hidden;
}

.gallery .gallery-item {
  float: left;
  margin-top: 0;
  text-align: center;
  width: 33%;
}

.gallery-columns-2 .gallery-item {
  width: 50%;
}

.gallery-columns-4 .gallery-item {
  width: 25%;
}

.gallery-columns-2 .attachment-medium {
  max-width: 92%;
  height: auto;
}

.gallery-columns-4 .attachment-thumbnail {
  max-width: 84%;
  height: auto;
}

.gallery .gallery-caption {
  color: #888;
  margin: 0 0 12px;
}

.gallery dl {
  margin: 0;
}

.gallery img {
  border: 1px solid #e7e7e7;
  padding: 5px;
  background-color: #fff;
}

.gallery br + br {
  display: none;
}

#content .attachment img {
  display: block;
  margin: 0 auto;
}

/* Navigation */
#nav-below {
  margin-top: 10px;
}

.navigation {
  color: #888;
  line-height: 18px;
  overflow: hidden;
}

.nav-previous {
  float: left;
  width: 50%;
}

.nav-next {
  float: right;
  text-align: right;
  width: 50%;
}

/* Comments */
/* Highlight comments left by the post author (WordPress core class). */
.commentlist li.bypostauthor > .comment-body,
.bypostauthor {
  background: #f7fcfe;
  border-left: 3px solid #d6eef7;
}

#comments {
  width: 610px;
  margin: 10px 0;
  padding: 10px 0;
  clear: both;
}

.commentlist > ol, .commentlist > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.commentlist li.comment {
  margin: 0 0 0px 0;
  padding: 0 0 0 50px;
  position: relative;
  height: 1%;
}

.commentbox {
  padding-top: 10px;
}

.depth-1 .commentbox,
.depth-2 .commentbox,
.depth-3 .commentbox,
.depth-4 .commentbox,
.depth-5 .commentbox {
  border: 1px solid #e7e7e7;
  margin: 0px 0px 20px 0px;
}

.depth-1 {
  width: 560px;
}

.depth-2 {
  width: 510px;
}

.depth-3 {
  width: 460px;
}

.depth-4 {
  width: 410px;
}

.depth-5 {
  width: 360px;
}

.commentlist li:last-child {
  margin-bottom: 0;
}

#comments .comment-body {
  margin-bottom: 30px;
  padding-left: 10px;
}

#comments .comment-body ul,
#comments .comment-body ol {
  margin-bottom: 18px;
}

#comments .comment-body p:last-child {
  margin-bottom: 6px;
}

#comments .comment-body blockquote p:last-child {
  margin-bottom: 24px;
}

.commentlist .avatar {
  position: absolute;
  border: 1px solid #e7e7e7;
  padding: 2px;
  top: 5px;
  left: 5px;
}

.comment-author {
  padding-left: 10px;
}

.comment-meta {
  margin: 0 0 18px 0;
  padding-left: 10px;
  color: #888;
}

.reply {
  margin-bottom: 30px;
}

.comment-meta a,
a.comment-edit-link {
  color: #888;
}

.reply a:hover,
a.comment-edit-link:hover {
  color: #ff4b33;
}

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

.commentlist .children li {
  margin: 0;
}

.nopassword,
.nocomments {
  font-weight: bold;
}

#comments .pingback {
  border-bottom: 1px solid #e7e7e7;
  margin-bottom: 18px;
  padding-bottom: 18px;
}

.commentlist li.comment + li.pingback {
  margin-top: -6px;
}

#comments .pingback p {
  color: #888;
  display: block;
  line-height: 18px;
  margin: 0;
}

#comments .pingback .url {
  font-style: italic;
}

/* Comments form */
#respond {
  margin: 24px 0;
  overflow: hidden;
  position: relative;
}

#respond p {
  margin: 0;
}

#respond .comment-notes {
  margin-bottom: 1em;
}

#respond .required {
  color: #ff4b33;
  font-weight: bold;
}

#respond label {
  color: #888;
}

#respond input {
  margin: 0 0 9px;
  width: 60%;
  display: block;
}

#respond textarea {
  width: 90%;
}

#respond .form-allowed-tags {
  margin: 20px;
  color: #333;
  line-height: 18px;
}

#respond .form-allowed-tags code {
  display: block;
  color: #888;
}

#respond .form-submit {
  margin: 12px 0;
}

#respond .form-submit input {
  width: auto;
}

#content .post-content input {
  margin: 30px 0px 0px 0px;
}

/* Structure - Footer */
#footer-widget {
  width: 966px;
  text-align: center;
}

#footer-widget .textwidget {
  margin: 10px;
}

/* footer */
#footer {
  margin-bottom: 20px;
}

.footer-line {
  width: 966px;
  height: 10px;
  background-position: 0 -140px;
  margin: 10px 0;
  overflow: hidden;
}

#credit {
  width: 966px;
}

#credit-left {
  width: 50%;
  text-align: left;
  float: left;
}

#credit-right {
  width: 50%;
  text-align: right;
  float: left;
}

#credit, #credit a {
  color: #666;
  text-shadow: #fff 1px 1px 1px;
  font-style: italic;
}

#site-info,
#theme-designer,
#site-generator {
  height: 27px;
  line-height: 27px;
  text-align: left;
  display: inline;
  margin: 0 5px;
}

#theme-designer,
#site-generator {
  float: right;
}

#site-info {
  float: left;
}

#theme-designer {
  background-position: 0px -115px;
  padding-left: 28px;
}

#site-generator {
  background-position: 0px -142px;
  padding-left: 28px;
}

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

@media (max-width: 992px) {
  #wrapper,
  #newstone,
  #main,
  #header,
  #header-info,
  #feature-image,
  #show-feature-image,
  #feature-image-frame,
  #header-shadow,
  #footer,
  #footer-widget,
  .footer-line,
  #credit {
    width: auto;
    max-width: 100%;
  }
  #wrapper {
    box-sizing: border-box;
    padding: 0 10px;
  }
  #mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 300;
    margin: 0 -10px;
    padding: 8px 14px;
    background: #fff;
    border-bottom: 1px solid #e7e7e7;
  }
  #header-info-left {
    display: none;
  }
  #the_menu {
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 400;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    visibility: hidden;
  }
  .menu-open #the_menu {
    transform: translateX(0);
    visibility: visible;
  }
  #the_menu .menu_bar,
  #the_menu div.menu {
    position: static;
    width: auto;
    height: auto;
    top: auto;
    left: auto;
  }
  #the_menu .menu_bar li,
  #the_menu div.menu li {
    float: none;
  }
  #the_menu ul li a {
    line-height: 1.4;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }
  #the_menu ul ul {
    display: block;
    position: static;
    float: none;
    width: auto;
    box-shadow: none;
    top: auto;
    left: auto;
  }
  #the_menu,
  #the_menu ul li a {
    background-image: none;
  }
  #the_menu ul li a:hover,
  #the_menu ul li.current-menu-item > a,
  #the_menu ul li.current_page_item > a,
  #the_menu ul li.current_menu_item > a,
  #the_menu .menu_bar ul li.current_menu_item a,
  #the_menu div.menu ul li.current_page_item a,
  #the_menu ul.sub-menu li a:hover,
  #the_menu div.menu ul.children li a:hover {
    background-image: none;
    background-color: #000;
    color: #fff;
  }
  #the_menu ul ul li {
    min-width: 0;
  }
  #the_menu ul.sub-menu li a,
  #the_menu div.menu ul.children li a {
    width: auto;
    padding-left: 36px;
  }
  #menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 350;
  }
  .menu-open #menu-overlay {
    opacity: 1;
    visibility: visible;
  }
  .menu-open {
    overflow: hidden;
  }
  #mainbox,
  #mainbox-fullwidth,
  #sidebox {
    float: none;
    width: auto;
    max-width: 100%;
    margin-right: 0;
    background-image: none;
  }
  #mainbox,
  #mainbox-fullwidth {
    background-color: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    overflow: hidden;
  }
  #content {
    padding: 0 15px;
  }
  .main-layout-top,
  .main-layout-bottom,
  .main-fullwidth-layout-top,
  .main-fullwidth-layout-bottom,
  .side-widget-footer,
  .side-widget-footer-s,
  #feature-image-frame {
    display: none;
  }
  .side-widget,
  .side-widget-s {
    width: auto;
    max-width: 100%;
    margin-bottom: 12px;
    background-image: none;
    background-color: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
  }
  #side-widget-left,
  #side-widget-right {
    float: none;
    width: auto;
  }
  .side-widget-header,
  .side-widget-header-s {
    width: auto;
    height: auto;
    line-height: normal;
    background: #f5f5f5;
    border-bottom: 1px solid #e7e7e7;
    overflow: visible;
  }
  .side-widget-header h3,
  .side-widget-header-s h3,
  .side-widget .wp-block-heading,
  .side-widget-s .wp-block-heading {
    box-sizing: border-box;
    width: auto;
    height: auto;
    margin: 0;
    padding: 10px 12px;
    background: none;
    line-height: 1.3;
  }
  #feature-image {
    height: auto;
  }
  #show-feature-image {
    width: auto;
    height: 130px;
    margin: 0;
    background-size: cover !important;
    background-position: center !important;
  }
  #comments {
    width: auto;
    max-width: 100%;
  }
  .depth-1,
  .depth-2,
  .depth-3,
  .depth-4,
  .depth-5 {
    width: auto;
  }
}
@media (max-width: 768px) {
  #header-info {
    height: auto;
    line-height: normal;
  }
  #header-info-left,
  #header-info-right {
    float: none;
    width: auto;
  }
  #header-info-right .textwidget {
    margin-top: 0;
  }
  #site-title {
    float: none;
    line-height: 1.2;
    margin: 10px;
    text-align: center;
  }
  #site-description {
    float: none;
    width: auto;
    line-height: 1.4;
    text-align: center;
    margin: 0 10px 10px;
  }
  .commentlist li.comment {
    padding-left: 30px;
  }
  embed {
    width: 100%;
  }
  #s {
    width: 60%;
  }
}
@media (max-width: 480px) {
  #site-title {
    font-size: 22px;
  }
  #content {
    padding: 0 10px;
  }
  .gallery .gallery-item,
  .gallery-columns-2 .gallery-item,
  .gallery-columns-4 .gallery-item {
    float: none;
    width: 100%;
  }
  .gallery-thumb {
    float: none;
    margin-right: 0;
  }
  .commentlist li.comment {
    padding-left: 16px;
  }
  #respond input {
    width: 90%;
  }
}
