/*======================================
Theme Name: Studio26 Theme
Theme URI: https://www.leadbitterglass.co.uk
Description: Custom standalone theme for Leadbitter Glass, based on Momentous Lite (ThemeZee) — decoupled from the parent theme for independent maintenance.
Version: 1.0.0
Author: Leadbitter Glass
Text Domain: studio26-theme
License: GNU General Public License v2.0
License URI: http://www.gnu.org/licenses/gpl-2.0.html
======================================*/

/* CSS Reset | http://meyerweb.com/eric/tools/css/reset/ | v2.0
-------------------------------------------------------------- */
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%;
	font: inherit;
	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;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* General Styles
-------------------------------------------------------------- */
html {
	font-size: 100.01%;
}
body {
	font-family: 'Average Sans', Tahoma, Verdana, Arial;
	font-size: 1.0em;
	border: 0;
	color: #111;
	background-color: #cccccc;
}

/* Links */
a, a:link, a:visited{
	color: #22a8d8;
	text-decoration: none;
}
a:hover, a:active {
	text-decoration: underline;
}

/* Form Elements */
input, textarea {
	padding: 0.7em;
	background: #fff;
	border: 1px solid #ddd;
	font-size: 1.0em;
	color: #333;
	font-family: 'Average Sans', Tahoma, Verdana, Arial;
}
input[type="submit"] {
	border: none;
	color: #fff;
	background: #22a8d8;
	padding: 0.5em 1em;
}
input[type="submit"]:hover {
	background-color: #333;
	cursor: pointer;
}

/* Clearing Floats */
.clearfix:before, .clearfix:after {
	content: " ";
	display: table;
}
.clearfix:after {
	clear: both;
}
.clearfix {
    *zoom: 1; /* For IE 6/7 only */
}

/* Make Form Elements responsive */
input, textarea, select {
	max-width: 100%;
}

/* Text meant only for screen readers. */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.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;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}

/* Basic Structure
-------------------------------------------------------------- */
#wrapper {
	width: 100%;
}
#header-wrap {
	background: #282828;
}
#header {
	padding: 3em 0.2em;
	color: #fff;
}
#wrap {
	clear: both;
	padding: 1.5em 0 0;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
#content {
	float: left;
	width: 70%;
	padding-right: 1.5em;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
#sidebar {
	float: right;
	width: 30%;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
.container {
	max-width: 1340px;
	width: 92%;
	margin: 0 auto;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

/* Header
-------------------------------------------------------------- */
#logo {
	float: left;
}
#logo .site-title {
	display: inline-block;
	font-size: 2.5em;
	color: #fff;
	font-family: 'Fjalla One', Tahoma, Verdana, Arial;
}
#logo .site-title a:link,
#logo .site-title a:visited {
	color: #fff;
}
#logo .site-title a:hover,
#logo .site-title a:active {
	text-decoration: underline;
}
#logo .site-description {
	margin-top: 0.4em;
	color: #ddd;
}
#logo .custom-logo {
	margin: 0 1.5em 0 0;
	padding: 0;
	border: none;
	vertical-align: top;
	max-width: 100%;
	height: auto;
}

/* Custom Header Image */
.header-image {
	padding: 2em 0 0;
}
.header-image img {
	max-width: 1340px;
	vertical-align: top;
	width: 100%;
	height: auto;
}

/* Header Content
-------------------------------------------------------------- */
#header-content {
	float: right;
}
#header-content .header-search-icon {
	display: inline-block;
	float: right;
	margin: 0.4em 0 0 0.8em;
	color: #ccc;
	color: rgba(255,255,255,0.7);
}
#header-content .header-search-icon:hover {
	cursor: pointer;
	color: #fff;
}
#header-content .header-search-icon .genericon-search {
	display: inline-block;
	margin-right: 0.2em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-size: 32px;
	font-family: 'Genericons';
	text-decoration: inherit;
	font-weight: normal;
	font-style: normal;
	vertical-align: text-bottom;
	color: #ccc;
	color: rgba(255,255,255,0.7);
	content: '\f410';
}
#header-content .header-search-icon:hover .genericon-search {
	color: #fff;
}

/* Top Navigation Menu
-------------------------------------------------------------- */
#topnav {
	float: right;
}
#topnav-icon, #topnav-toggle {
	display: none;
}
.top-navigation-menu {
	float: left;
	list-style-type: none;
	list-style-position: outside;
	position: relative;
}
.top-navigation-menu li{
	float: left;
	position: relative;
}
.top-navigation-menu a {
	display: block;
	padding: 0.7em 1em;
	text-decoration: none;
	font-size: 1.05em;
}
.top-navigation-menu a:link, .top-navigation-menu a:visited{
	color: #ccc;
	color: rgba(255,255,255,0.7);
	text-decoration: none;
}
.top-navigation-menu a:hover {
	text-decoration: underline;
}
.top-navigation-menu li.current_page_item a, .top-navigation-menu li.current-menu-item a {
	text-decoration: underline;
}
.top-navigation-menu li .sub-menu {
	display: none !important;
}

/* Navigation Menu
-------------------------------------------------------------- */
#navigation-wrap {
	border-top: 4px solid #ddd;
	background: #fff;
}
#navigation-wrap #navi-social-icons {
	float: right;
}
.mainnav-toggle, #social-menu-toggle, #mainnav-icon {
	display: none;
}
#navigation {
	position: relative;
}
.main-navigation-menu {
	display: inline;
	list-style-type: none;
	list-style-position: outside;
}
.main-navigation-menu li {
	float: left;
}
.main-navigation-menu a {
	display: block;
	padding: 1.6em 1.4em;
	text-decoration: none;
	font-size: 0.9em;
	font-weight: bold;
	font-family: 'Average Sans', Tahoma, Verdana, Arial;
	text-transform: uppercase;
}
.main-navigation-menu a:link, .main-navigation-menu a:visited {
	color: #333;
	text-decoration: none;
}
.main-navigation-menu a:hover {
	color: #22a8d8;
}
.main-navigation-menu ul {
	position: absolute;
	display: none;
	z-index: 99;
	color: #fff;
	background: #22a8d8;
}
.main-navigation-menu ul li{
	float: none;
	position: relative;
}
.main-navigation-menu ul a {
	min-width: 250px;
	min-width: 16rem;
	padding: 0.8em 1em;
	font-weight: normal;
	text-transform: none;
	border-bottom: 1px solid rgba(255,255,255,0.1);
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
.main-navigation-menu ul a:link, .main-navigation-menu ul a:visited {
	color: #fff;
	text-decoration: none;
}
.main-navigation-menu ul a:hover {
	text-decoration: underline;
}
.main-navigation-menu li ul ul {
	top: 0;
	left: 100%;
	border-left: 1px solid rgba(255,255,255,0.1);
}
.main-navigation-menu li.menu-item-has-children:hover > ul,
.main-navigation-menu li.page_item_has_children:hover > ul,
.main-navigation-menu li.menu-item-has-children[aria-expanded="true"] > ul {
	display: block;
}
.main-navigation-menu li.current_page_item a, .main-navigation-menu li.current-menu-item a {
	color: #22a8d8;
	text-decoration: underline;
}
.main-navigation-menu li.current_page_item ul li a, .main-navigation-menu li.current-menu-item ul li a{
	color: #fff;
	text-decoration: none;
}
.main-navigation-menu li.current_page_item ul li a:hover, .main-navigation-menu li.current-menu-item ul li a:hover {
	text-decoration: underline;
}
.main-navigation-menu ul li.current_page_item a, .main-navigation-menu ul li.current-menu-item a {
	color: #fff;
	text-decoration: underline;
}
.main-navigation-menu ul li.current_page_item ul li a, .main-navigation-menu ul li.current-menu-item ul li a{
	text-decoration: none;
}

/* Mega Menu Styling */
.mega-menu-content {
	line-height: 1.5;
}
.mega-menu-content .mega-menu-widget .mega-menu-widget-header-title {
	font-weight: bold;
}
.main-navigation-menu .mega-menu-content .mega-menu-widget ul li a:hover,
.main-navigation-menu .mega-menu-content .mega-menu-widget ul li a:active {
	text-decoration: underline;
}

.main-navigation-menu .mega-menu-content .widget_meta ul li,
.main-navigation-menu .mega-menu-content .widget_pages ul li,
.main-navigation-menu .mega-menu-content .widget_categories ul li,
.main-navigation-menu .mega-menu-content .widget_archive ul li {
	display: block;
	border-top: 1px solid rgba(255,255,255,0.1);
}

.main-navigation-menu .mega-menu-content .widget_meta ul li a,
.main-navigation-menu .mega-menu-content .widget_pages ul li a,
.main-navigation-menu .mega-menu-content .widget_categories ul li a,
.main-navigation-menu .mega-menu-content .widget_archive ul li a {
	display: block;
	padding: 0.5em 0.75em;
	font-size: 14px;
	font-size: 0.875rem;
}

/* Widget Styling
-------------------------------------------------------------- */
.widget {
	margin-bottom: 1.5em;
	padding: 1em;
	background: #fff;
}
.widgettitle {
	padding: 1.1em;
	margin: -1em -1em 0.8em -1em;
	color: #333;
	border-bottom: 1px solid #ddd;
}
.widgettitle span {
	font-size: 0.9em;
	font-weight: bold;
	font-family: 'Average Sans', Tahoma, Verdana, Arial;
	text-transform: uppercase;
}
.widget .textwidget {
	line-height: 1.5em;
}
.widget .textwidget p {
	margin-bottom: 1em;
}
.widget ul {
	line-height: 1.5em;
}
.widget ul {
	list-style: circle inside;
	color: #555;
}
.widget ul .children {
	padding: 0;
	margin: 0.5em 0 0.5em 1em;
}
.widget a:link, .widget a:visited  {
	text-decoration: none;
	color: #22a8d8;
}
.widget a:hover, .widget a:active {
	text-decoration: underline;
}
.widget img {
	max-width: 100%;
	height: auto;
}

/* Custom Widgets
-------------------------------------------------------------- */

/* Theme Calendar Widget */
#wp-calendar {
	margin: 0;
	width: 100%;
	color: #444;
	line-height: 1.6em;
}
#wp-calendar th,
#wp-calendar td,
#wp-calendar caption {
	text-align: left;
}
#wp-calendar caption {
	font-style: italic;
	margin-bottom: 0.1em;
}
#wp-calendar th {
	font-weight: bold;
	font-size: 0.85em;
}
#wp-calendar tfoot tr td {
	padding-top: 0.5em;
}
#wp-calendar #next {
	padding-right: 0.8em;
	text-align: right;
}

/* Posts and Pages
-------------------------------------------------------------- */
.post-wrapper {
	margin-right: -1.5em;
}
.post-wrapper .post-wrap {
	float: left;
	margin-left: -0.001%;
	padding-right: 1.5em;
	width: 50.001%;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
.post-wrapper .post-wrap:nth-child(2n + 1) {
	clear: left;
}
.type-post, .type-page, .type-attachment  {
	margin: 0 0 1.5em 0;
	padding: 1.2em;
	background: #fff;
}
.post-wrapper .one-column-post {
	margin-right: 1.5em;
}
.page-title, .entry-title {
	font-family: 'Fjalla One', Tahoma, Verdana, Arial;
	font-size: 2.0em;
	color: #282828;
	line-height: 1.4em;
	-ms-word-wrap: break-word;
	word-wrap: break-word;
}
.entry-title a:link, .entry-title a:visited,
.entry-title a:link, .entry-title a:visited  {
	color: #282828;
	text-decoration: none;
}
.entry-title a:hover, .entry-title a:active,
.entry-title a:hover, .entry-title a:active {
	text-decoration: underline;
}
.sticky {
	border-left: 5px solid #22a8d8;
}

/* Page Links | wp_link_pages() */
.page-links {
	margin: 0;
	word-spacing: 1em;
}

/* Postmeta */
.entry-meta {
	color: #aaa;
	font-size: 0.95em;
	margin: 0.2em 0 0;
	line-height: 1.5em;
}

/* Postinfo */
.postinfo {
	clear: both;
	margin: 1.2em -1.2em -1.2em;
	padding: 0.8em 1em;
	line-height: 1.4em;
	border-top: 1px solid #ddd;
}
.postinfo .meta-tags {
	margin-left: 1em;
}
.postinfo span:before, .postinfo .meta-comments a:before {
	display: inline-block;
	-webkit-font-smoothing: antialiased;
	font: normal 22px 'Genericons';
	vertical-align: middle;
	color: #333;
}
.postinfo .meta-category:before {
	content: '\f301';
}
.postinfo .meta-tags:before {
	content: '\f302';
}
.postinfo span a {
	font-size: 0.9em;
	font-weight: bold;
}
.postinfo span a:link, .postinfo span a:visited  {
	color: #333;
	text-decoration: none;
}
.postinfo span a:hover, .postinfo span a:active  {
	color: #22a8d8;
}
.postinfo .meta-comments {
	float: right;
	font-weight: bold;
	display: inline-block;
	padding-left: 1em;
}
.postinfo .meta-comments a:before {
	content: '\f108';
	margin-right: 0.15em;
}
.postinfo .meta-comments a:link, .postinfo .meta-comments a:visited  {
	color: #333;
	text-decoration: none;
}
.postinfo .meta-comments a:hover, .postinfo .meta-comments a:active,
.postinfo .meta-comments a:hover:before {
	color: #22a8d8;
}


/* Read more Link */
.more-link {
	display: inline-block;
	margin: 0.1em 0 0;
	padding: 0.5em 1em;
	text-decoration: none;
	color: #fff;
	background: #22a8d8;
}
.more-link:link, .more-link:visited {
	color: #fff;
	text-decoration: none;
}
.more-link:hover, .more-link:active {
	background: #333;
	text-decoration: none;
}

/* Post Navigation */
.post-navigation {
	margin-bottom: 1.5em;
	padding: 1em;
	background: #fff;
}
.post-navigation .nav-links:before,
.post-navigation .nav-links:after {
	content: "";
	display: table;
}
.post-navigation .nav-links:after {
	clear: both;
}
.post-navigation .nav-links .nav-previous {
	float: left;
}
.post-navigation .nav-links .nav-next {
	float: right;
}

/* Archives and Search Heading */
.archive-title {
	font-size: 0.9em;
	font-weight: bold;
	text-transform: uppercase;
	padding: 1.3em 1em;
	background: #fff;
	margin-bottom: 1em;
}
.archive-description {
	margin: -0.9em 0 0.9em;
	padding: 0.8em 1em;
	line-height: 1.6;
	background: #fff;
	border-top: 1px solid #ddd;
}

/* Content Pagination */
.post-pagination {
	margin-bottom: 1.5em;
	font-weight: bold;
	padding: 1em;
	background: #fff;
}
.post-pagination a {
	margin-right: 0.8em;
	display: inline-block;
    text-align: center;
	text-decoration: none;
	color: #333;
}
.post-pagination a:link, .post-pagination a:visited {
	color: #333;
}
.post-pagination a:hover {
	color: #22a8d8;
}
.post-pagination .current {
	margin-right: 0.8em;
	color: #22a8d8;
	text-decoration :underline;
}

/* Infinite Scroll Pagination */
.infinite-scroll .post-pagination {
	display: none;
}
.infinite-scroll #infinite-handle span {
	clear: left;
	display: block;
	margin-bottom: 1.5em;
	padding: 0.5em 1em;
	font-size: 1em;
	font-weight: bold;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	color: #222;
	background-color: #fff;
}
.infinite-scroll #infinite-handle span:hover {
	color: #22a8d8;
}

/* Breadcrumbs */
.breadcrumbs {
	font-size: 0.9em;
	font-weight: bold;
	text-transform: uppercase;
	padding: 1.3em 1em;
	background: #fff;
	margin-bottom: 1em;
}
.breadcrumbs .trail-browse,
.breadcrumbs .trail-items,
.breadcrumbs .trail-items li {
	display: inline;
}
.breadcrumbs .trail-browse {
	margin-right: 0.5em;
}
.breadcrumbs .trail-items {
	list-style: none;
}
.breadcrumbs .trail-items li::after {
	content: "\00bb"; /* Raquo */
	padding: 0 0.5em;
}
.trail-separator-slash .trail-items li::after { content: "\002F"; }
.trail-separator-dash .trail-items li::after { content: "\2013"; }
.trail-separator-bull .trail-items li::after { content: "\2022"; }
.trail-separator-arrow-bracket .trail-items li::after { content: "\003e"; }
.trail-separator-raquo .trail-items li::after { content: "\00bb"; }
.trail-separator-single-arrow .trail-items li::after { content: "\2192"; }
.trail-separator-double-arrow .trail-items li::after { content: "\21D2"; }
.breadcrumbs .trail-items li:last-of-type::after {
	display: none;
}

/* Text Elements
-------------------------------------------------------------- */
.entry {
	line-height: 1.6em;
	margin: 0.2em 0 0;
	-ms-word-wrap: break-word;
	word-wrap: break-word;
}
.entry p, .comment p {
	margin: 0.75em 0;
}
.entry h1, .comment h1,
.entry h2, .comment h2,
.entry h3, .comment h3,
.entry h4, .comment h4,
.entry h5, .comment h5,
.entry h6, .comment h6 {
	color: #222;
	font-weight: bold;
	line-height: 1.0em;
	margin: 1.2em 0 0.3em;
}
.entry h1, .comment h1 {
	font-size: 3.0em;
}
.entry h2, .comment h2 {
	font-size: 2.25em;
}
.entry h3, .comment h3 {
	font-size: 1.5em;
}
.entry h4, .comment h4 {
	font-size: 1.25em;
}
.entry h5, .comment h5 {
	font-size: 1.125em;
	margin: 1.3em 0 0;
}
.entry h6, .comment h6 {
	font-size: 1.0em;
	margin: 1.3em 0 0;
}
.entry ul, .comment ul{
	list-style: square inside;
	margin: 0 0 1.5em 2em;
}
.entry ol, .comment ol{
	list-style: decimal inside;
	margin: 0 0 1.5em 2em;
}
.entry ol ol, .comment ol ol{
	list-style: upper-alpha inside;
}
.entry ol ol ol, .comment ol ol ol{
	list-style: lower-roman inside;
}
.entry ol ol ol ol, .comment ol ol ol ol{
	list-style: lower-alpha inside;
}
.entry ul ul, .comment ul ul,
.entry ol ol, .comment ol ol,
.entry ul ol, .comment ul ol
.entry ol ul, .comment ol ul {
	margin-bottom: 0.2em;
}
dl {
	margin: 1em 0;
}
dt {
	font-weight: bold;
}
dd {
	margin-bottom: 1.5em;
}
strong {
	font-weight: bold;
}
cite,
em,
i {
	font-style: italic;
}
big, .big_tag {
	font-size: 1.3em;
}
ins {
	text-decoration: none;
}
hr {
	margin-bottom: 1.5em;
	height: 1px;
	border: 0;
	background-color: #ccc;
}
code, pre {
	overflow: auto;
	margin-bottom: 1.5em;
	padding: 1.5em;
	max-width: 100%;
	border: 1px solid #e5e5e5;
	background: #f5f5f5;
	font-size: 15px;
	font-size: 0.9375rem;
	font-family: "Courier 10 Pitch", Courier, monospace;
	line-height: 1.6;
}
del, strike, s{
	text-decoration: line-through;
}
small {
	font-size: 0.7em;
}
abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}
sup,
sub {
	height: 0;
	line-height: 1;
	position: relative;
	vertical-align: baseline;
	font-size: 0.8em;
}
sup {
	bottom: 1ex;
}
sub {
	top: .5ex;
}
.entry var, .entry kbd, .entry tt, .entry .tt_tag {
	font-size: 1.1em;
	font-family: "Courier 10 Pitch", Courier, monospace;
}
blockquote {
	margin: 0 0 1.5em;
	padding-left: 1.25em;
	border-left: 4px solid #303030;
	color: #777;
	font-style: italic;
	font-size: 18px;
	font-size: 1.125rem;
}

blockquote cite,
blockquote small {
	display: block;
	margin-top: 1em;
	color: #303030;
	font-size: 16px;
	font-size: 1rem;
	line-height: 1.75;
}

blockquote cite:before,
blockquote small:before {
	content: "\2014\00a0";
}

blockquote em,
blockquote i,
blockquote cite {
	font-style: normal;
}

blockquote > :last-child {
	margin-bottom: 0.5em;
}
.entry table {
	border-collapse: collapse;
	border-spacing: 0;
	border: 1px solid #ddd;
	margin: 1em 0;
	text-align: left;
	width: 100%;
}
.entry tr th,
.entry thead th {
	background: #e5e5e5;
	font-weight: bold;
	padding: 0.2em 1em;
}
.entry tr td {
	border-top: 1px solid #ddd;
	padding: 0.2em 1em;
}
.entry tr.alternate td {
	background: #f5f5f5;
}

/* Images | Gallery | Videos
-------------------------------------------------------------- */
article .wp-post-image {
	max-width: 100%;
	margin: 0 0 1.2em 0;
	height: auto;
	vertical-align: top;
}
.entry img {
	max-width: 100%;
	height: auto;
}
.wp-caption {
	max-width: 100%;
	height: auto;
	text-align: center;
	margin: 1em 0;
}
.wp-caption-text {
	margin: 0 10px !important;
	padding: 0;
	font-size: 0.9em;
	text-align: center;
}
.alignleft {
	float: left;
	display: inline;
	margin: 1em 2em 1em 0;
}
.alignright	{
	float: right;
	display: inline;
	margin: 1em 0 1em 2em;
}
.aligncenter {
	margin: 1em auto;
	display: block;
}

/* Gallery Styling */
.gallery {
	margin: 1em auto !important;
}
.gallery-item {
	float: left;
	margin: 0.7em 0 0 0 !important;
	padding-right: 1em;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
.gallery img {
	margin: 0 !important;
	padding: 3px;
	border: 1px solid #e5e5e5 !important;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
.gallery-caption {
	margin-left: 0.3em !important;
}

/* Make Vidoes responsive */
embed, iframe, object, video {
	max-width: 100%;
}

/* Image.php Navigation */
#image-nav {
	margin: 1em 0 2em;
	color: #333;
}
#image-nav .nav-previous {
	float: left;
}
#image-nav .nav-next {
	float: right;
}
#image-nav .nav-previous a, #image-nav .nav-next a {
	font-size: 0.9em;
	font-weight: bold;
	text-decoration: none;
	padding: 0.6em 1em;
	text-decoration: none;
	color: #222;
	background: #eee;
}
#image-nav .nav-previous a:hover, #image-nav .nav-next a:hover {
	background: #ddd;
}


/* Search Form
-------------------------------------------------------------- */
.search-form {
	display: block;
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
}
.search-form .screen-reader-text {
	display: none;
}
.search-form .search-field {
	display: inline-block;
	margin: 0;
	width: 100%;
	padding: 0.7em 45px 0.7em 0.7em;
	background: #fff;
	border: 1px solid #ddd;
	font-size: 1.0em;
	color: #333;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-appearance: none;
}
.search-form .search-submit {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	background: transparent;
	padding: 0.8em 0.7em 0 0;
	cursor: pointer;
}
.search-form .search-submit .genericon-search {
	display: inline-block;
	width: 24px;
	height: 24px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-size: 24px;
	font-family: 'Genericons';
	text-decoration: inherit;
	font-weight: normal;
	font-style: normal;
	vertical-align: text-bottom;
	color: #777;
	content: '\f410';
}
.search-form .search-submit:hover .genericon-search {
	color: #333;
}

/* different style for searchform in header */
#header-search-wrap {
	display: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	background: rgba(0, 0, 0, 0.1);
}
#header-search .search-form .search-field {
	padding: 0.8em 45px 0.8em 1em;
	background: none;
	border: none;
	font-size: 1.1em;
	color: #ddd;
}
#header-search .search-form .search-submit {
	padding: 0.6em 0.4em 0 0;
}
#header-search .search-form .search-submit .genericon-search {
	width: 32px;
	height: 32px;
	font-size: 32px;
	color: #888;
}
#header-search .search-form .search-submit:hover .genericon-search {
	color: #ccc;
}


/* Social Icons | based upon http://kovshenin.com/2014/social-menus-in-wordpress-themes/
-------------------------------------------------------------- */
#social-icons-menu {
	list-style-type: none;
	list-style-position: outside;
	line-height: 1em;
}
#social-icons-menu li {
	float: left;
	padding: 0;
	margin: 0;
}
#social-icons-menu li a {
	position: relative;
	display: block;
	padding: 1.21em 0.7em;
	text-decoration: none;
	color: #22a8d8;
}
#social-icons-menu li a:before {
	display: inline-block;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-size: 22px;
	line-height: 1;
	font-family: 'Genericons';
	text-decoration: inherit;
	vertical-align: bottom;
	color: #22a8d8;
}
#social-icons-menu li a .screen-reader-text {
	display: none;
}
.social-icons-wrap .social-icons-hint {
	font-size: 0.75em;
	color: #888;
	max-width: 300px;
	line-height: 1.2em;
}

/* Add Genericons */
#social-icons-menu li a:before { content: '\f408'; } /* Default Icon */
#social-icons-menu li a[href*="codepen.io"]:before  { content: '\f216'; }
#social-icons-menu li a[href*="digg.com"]:before { content: '\f221'; }
#social-icons-menu li a[href*="dribbble.com"]:before { content: '\f201'; }
#social-icons-menu li a[href*="facebook.com"]:before { content: '\f203'; }
#social-icons-menu li a[href*="flickr.com"]:before { content: '\f211'; }
#social-icons-menu li a[href*="plus.google.com"]:before { content: '\f206'; }
#social-icons-menu li a[href*="github.com"]:before { content: '\f200'; }
#social-icons-menu li a[href*="instagram.com"]:before { content: '\f215'; }
#social-icons-menu li a[href*="linkedin.com"]:before { content: '\f207'; }
#social-icons-menu li a[href*="pinterest.com"]:before { content: '\f209'; }
#social-icons-menu li a[href*="polldaddy.com"]:before { content: '\f217'; }
#social-icons-menu li a[href*="getpocket.com"]:before { content: '\f224'; }
#social-icons-menu li a[href*="reddit.com"]:before { content: '\f222'; }
#social-icons-menu li a[href*="spotify.com"]:before { content: '\f515'; }
#social-icons-menu li a[href*="skype.com"]:before,
#social-icons-menu li a[href*="skype:"]:before { content: '\f220'; }
#social-icons-menu li a[href*="stumbleupon.com"]:before { content: '\f223'; }
#social-icons-menu li a[href*="tumblr.com"]:before { content: '\f214'; }
#social-icons-menu li a[href*="twitter.com"]:before { content: '\f202'; }
#social-icons-menu li a[href*="twitch.tv"]:before { content: '\f516'; }
#social-icons-menu li a[href*="vimeo.com"]:before  { content: '\f212'; }
#social-icons-menu li a[href*="wordpress.org"]:before,
#social-icons-menu li a[href*="wordpress.com"]:before { content: '\f205'; }
#social-icons-menu li a[href*="youtube.com"]:before { content: '\f213'; }
#social-icons-menu li a[href*="newsletter"]:before,
#social-icons-menu li a[href*="mailto"]:before { content: '\f410'; }
#social-icons-menu li a[href*="/feed"]:before,
#social-icons-menu li a[href*="/feed/"]:before,
#social-icons-menu li a[href*="?feed=rss2"]:before,
#social-icons-menu li a[href*="feedburner.google.com"]:before,
#social-icons-menu li a[href*="feedburner.com"]:before { content: '\f413'; }

#social-icons-menu li a:hover:before { color: #333; } /* Hover */

/* Gutenberg Blocks
--------------------------------------------------------------*/

/* Audio */
.wp-block-audio audio {
	width: 100%;
}

/* Gallery */
.wp-block-gallery,
.entry .wp-block-gallery {
	margin: 0 0 1.5em;
}

/* Separator */
.wp-block-separator {
	height: 2px;
}

.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
	max-width: 100px;
}

/* Quote */
.wp-block-quote.is-style-large {
	border: none;
	margin: 0 0 1.5em;
	padding: 0;
	font-size: 28px;
	font-size: 1.75rem;
}

.wp-block-quote.is-style-large p {
	margin-bottom: 0.5em;
	font-size: inherit;
	font-style: inherit;
	line-height: inherit;
}

.wp-block-quote.is-style-large cite {
	text-align: inherit;
}

/* Pullquote */
.wp-block-pullquote {
	margin-bottom: 1.5em;
	padding: 1.5em 0;
    border-bottom: 4px solid #ccc;
    border-top: 4px solid #ccc;
}

.wp-block-pullquote blockquote {
	border: none;
	margin: 0;
	padding: 0;
	font-size: 28px;
	font-size: 1.75rem;
}

.wp-block-pullquote blockquote p {
	margin-bottom: 0.5em;
}

/* Cover */
.wp-block-cover {
	display: flex;
}

.wp-block-cover-text {
	margin-top: 0;
	margin-bottom: 0;
}

/* Block Text Colors */
.has-primary-color {
	color: #22a8d8;
}

.has-white-color {
	color: #ffffff;
}

.has-light-gray-color {
	color: #f0f0f0;
}

.has-dark-gray-color {
	color: #777777;
}

.has-black-color {
	color: #303030;
}

/* Block Background Colors */
.has-primary-background-color {
	background-color: #22a8d8;
}

.has-white-background-color {
	background-color: #ffffff;
}

.has-light-gray-background-color {
	background-color: #f0f0f0;
}

.has-dark-gray-background-color {
	background-color: #777777;
}

.has-black-background-color {
	background-color: #303030;
}


/* Comments
-------------------------------------------------------------- */
#comments {
	margin-bottom: 1.5em;
}
#comments .comments-title, #respond #reply-title {
	padding: 1.3em 1em;
	font-size: 0.9em;
	font-weight: bold;
	text-transform: uppercase;
	background: #fff;
}

/* Comment List */
.commentlist {
	display: block;
	margin-top: 1em;
}
.commentlist .comment {
	display: block;
	margin-bottom: 1.5em;
	background: #fff;
	list-style: none;
	line-height: 1.5em;
	-ms-word-wrap: break-word;
	word-wrap: break-word;
}
.commentlist .comment-meta {
	border-bottom: 1px solid #ddd;
	padding: 1.2em;
}
.commentlist .comment-content {
	padding: 0.4em 1.2em 1.2em;
}

/* Threaded Comments */
.commentlist .children {
	padding: 1.2em;
	margin: 0;
}
.commentlist .children .comment {
	background: #fbfbfb;
	border: 1px solid #eee;
	margin: 0;
}
.commentlist .children .comment .comment-meta {
	border-bottom: 1px solid #eee;
}
.commentlist .children .children .comment {
	background: #f8f8f8;
}

/* Comment Meta */
.comment-meta .comment-author img {
	float: left;
	margin-right: 1em;
	margin-top: -0.1em;
}
.comment-meta .comment-author img:after {
	clear: both;
}
.comment-meta .comment-author .fn {
	font-size: 1.1em;
	padding: 0.2em 0;
}
.comment-meta .comment-author .fn a:link, .comment-meta .comment-author .fn a:visited {
	text-decoration: underline;
}
.comment-meta .comment-author .fn a:hover, .comment-meta .comment-author .fn a:active {
	text-decoration: none;
}
.comment-meta .bypostauthor .fn, .comment-meta .comment-author-admin .fn{
	font-style: italic;
	background: #eee;
	padding: 0.2em 0.6em;
}
.comment-meta .commentmetadata {
	font-size: 0.9em;
}
.comment-meta .commentmetadata a:link, .comment-meta .commentmetadata a:visited,
.comment-meta .commentmetadata a:active, .comment-meta .commentmetadata a:hover {
	color: #666 !important;
}
.commentlist .comment .comment-reply-title {
	font-size: 1.0em;
}

.nocomments {
	font-size: 0.9em;
	border: 1px solid #e5e5e5;
	background: #fff;
	padding: 0.2em 1em;
}
.commentlist .pingback {
	display: block;
	margin: 0.6em 0 0;
	padding: 0.8em 0 0;
	list-style: none;
	line-height: 1.3em;
}

/* Comment Pagination */
.comment-pagination {
	font-size: 0.9em;
	background: #fff;
	padding: 0.2em 1em;
}
.comment-pagination .alignleft {
	float: left;
}
.comment-pagination .alignright {
	float: right;
}

/* Comment Form */
#respond {
	margin: 1.5em 0 0;
	background: #fff;
}
#commentform {
	margin: 0;
	padding: 1.2em 1.2em 0.1em;
	border-top: 1px solid #ddd;
}
#commentform p {
	margin: 0 0 1.5em;
}
#commentform input[type="text"], #commentform textarea {
	display: inline-block;
	width: 100%;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
#commentform label {
	display: block;
	margin: 0.6em 0 0.2em;
}
#commentform #submit {
	display: block;
	margin-top: 1em;
	padding: 0.8em 4em;
	text-decoration: none;
	padding: 0.5em 1em;
	color: #fff;
	background: #22a8d8;
}
#commentform #submit:hover {
	background: #333;
	cursor: pointer;
	text-decoration: none;
}


/* Featured Content
-------------------------------------------------------------- */
#featured-content .featured-content-left {
	float: left;
	padding-right: 0.75em;
	width: 59.2%;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
#featured-content .featured-content-right {
	float: right;
	padding-left: 0.75em;
	width: 40.8%;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

#featured-content .featured-content-left .entry-title {
	font-size: 2.0em;
}
#featured-content .featured-content-right .entry-title {
	font-size: 1.3em;
}
#featured-content .featured-content-right .wp-post-image {
	margin: 0 0 1.05em 0;
}

/* Footer
-------------------------------------------------------------- */
#footer-bg {
	background: #282828;
}
#footer-wrap {
	border-top: 1px solid rgba(255,255,255,0.1);
}
#footer {
	padding: 1.2em 0;
	color: #fff;
}
#footer a {
	color: #ccc;
	color: rgba(255,255,255,0.7);
}
#footer #credit-link {
	float: right;
}

/*============================ MEDIA QUERIES ============================*/

/* Small screens | <1120px */
@media only screen and (max-width: 70em) {
	.container {
		width: 94%;
	}
	.post-wrapper .post-wrap {
		float: none;
		width: 100%;
	}
	#featured-content .featured-content-left .entry-title, .single .entry-title, .page-title {
		font-size: 1.9em;
	}
}
/* Smaller screens | <1120px */
@media only screen and (max-width: 65em) {
	.container {
		width: 96%;
	}
}
/* Tablets (landscape) | <960px */
@media only screen and (max-width: 60em) {
	.container {
		width: 100%;
	}
	#wrap {
		padding: 1.5em 1.5em 0;
	}
	#header {
		padding: 2.5em 1.5em;
	}
	#logo .site-title {
		font-size: 2.3em;
	}
	#content {
		float: none;
		padding-right: 0;
		width: 100%;
	}
	#sidebar {
		clear: both;
		float: none;
		margin: 2em 0 0;
		width: 100%;
	}
	.post-wrapper .post-wrap {
		float: left;
		width: 50%;
	}
	#featured-content .featured-content-left .entry-title, .single .entry-title, .page-title {
		font-size: 1.8em;
	}
	#footer {
		padding: 1.2em;
	}

	/* Featured Content */
	#featured-content {
		margin-right: -1.5em;
	}
	#featured-content .featured-content-left {
		float: none;
		width: 100%;
		padding-right: 1.5em;
	}
	#featured-content .featured-content-right {
		float: none;
		padding-left: 0;
		width: 100%;
	}
	#featured-content .featured-content-right .featured-post-wrap {
		float: left;
		padding-right: 1.5em;
		width: 50%;
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		box-sizing: border-box;
	}


	/* Mobile Top Navigation */

	/* Reset */
	#topnav-wrap, #topnav, .top-navigation-menu, .top-navigation-menu li, .top-navigation-menu a, .top-navigation-menu ul {
		margin: 0;
		padding: 0;
		position: static;
		float: none;
		display: inline;
		font-size: 1.0em;
		border: none;
		box-shadow: none;
		background: none;
		top: 0;
		left: 0;
	}

	#header-content {
		float: none;
	}
	#header-content .header-search-icon {
		margin: 0.15em 0 0 0.8em;
	}
	#topnav-toggle {
		float: right;
		display: inline-block;
		margin: 0.35em 0.4em 0 0;
		padding: 0;
		text-decoration: none;
		color: #ccc;
		background: none;
		border: none;
	}
	#topnav-toggle:hover {
		cursor: pointer;
		color: #fff;
	}
	#topnav-toggle:after {
		margin: 0;
		-webkit-font-smoothing: antialiased;
		display: inline-block;
		content: '\f419';
		font: normal 24px Genericons;
		text-decoration: inherit;
		vertical-align: text-bottom;
	}

	.top-navigation-menu {
		float: left;
		display: none;
		width: 100%;
		margin: 2em -1.5em -2.5em;
		padding: 0 1.5em;
		border-top: 1px solid rgba(255,255,255,0.08);
		text-align: center;
	}
	.top-navigation-menu a {
		float: none;
		display: inline-block;
		padding: 1em 0.8em 1.2em;
		text-decoration: none;
		font-size: 1.05em;
		color: #ccc;
	}
	.top-navigation-menu a:hover {
		color: #fff;
		text-decoration: underline;
	}
	.top-navigation-menu li.current_page_item a, .top-navigation-menu li.current-menu-item a {
		text-decoration: underline;
	}


	/* Mobile Main Navigation */

	/* Reset */
	#mainnav, .main-navigation-menu, .main-navigation-menu li, .main-navigation-menu a, .main-navigation-menu ul,
	.main-navigation-menu ul a, .main-navigation-menu ul ul, .main-navigation-menu li ul ul
	{
		margin: 0;
		padding: 0;
		position: static;
		float: none;
		display: inline;
		font-size: 1.0em;
		border: none;
		box-shadow: none;
		background: none;
		top: auto;
		left: auto;
	}
	.main-navigation-menu li,
	.main-navigation-menu ul,
	.main-navigation-menu li ul ul,
	.mega-menu-item .mega-menu-content,
	.mega-menu-item .mega-menu-content .mega-menu-widget {
		position: static;
		display: block;
		left: auto;
		top: auto;
		clear: left;
	}

	#mainnav {
		float: none;
	}
	#mainnav-toggle-tablet {
		display: inline-block;
	}
	#mainnav-toggle-phone {
		display: none;
	}
	.mainnav-toggle {
		margin: 0;
		padding: 1.1em;
		text-decoration: none;
		background: none;
		border: none;
	}
	.mainnav-toggle:hover {
		cursor: pointer;
	}
	.mainnav-toggle:after {
		float: left;
		margin: 0;
		-webkit-font-smoothing: antialiased;
		display: inline-block;
		content: '\f419';
		font: normal 24px/1 Genericons;
		text-decoration: inherit;
		vertical-align: text-bottom;
		color: #333;
	}
	.mainnav-toggle:hover:after {
		color: #22a8d8;
	}

	.main-navigation-menu {
		float: left;
		display: none;
		width: 100%;
		border-top: 1px solid #ddd;
	}
	.main-navigation-menu a {
		display: block;
		padding: 1.4em;
		border-bottom: 1px solid #eee;
		text-decoration: none;
		font-size: 0.9em;
		font-weight: bold;
		text-transform: uppercase;
		clear: left;
	}
	.main-navigation-menu a:link, .main-navigation-menu a:visited {
		color: #222;
	}
	.main-navigation-menu a:hover {
		color: #22a8d8;
	}
	.main-navigation-menu ul {
		float: left;
		background: #fbfbfb;
		width: 100%;
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		box-sizing: border-box;
	}
	.main-navigation-menu ul a {
		display: block;
		width: 100%;
		padding: 1em 1em 1em 2em;
		font-size: 0.9em;
		font-weight: normal;
		color: #22a8d8;
		border-bottom: 1px solid #eee;
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		box-sizing: border-box;
	}
	.main-navigation-menu ul ul a {
		padding-left: 3em;
	}
	.main-navigation-menu ul ul ul a {
		padding-left: 4em;
	}
	.main-navigation-menu ul a:link, .main-navigation-menu ul a:visited {
		color: #22a8d8;
	}
	.main-navigation-menu ul a:hover {
		text-decoration: underline;
	}
	.main-navigation-menu ul li ul {
		float: left;
		padding: 0 0 0 1em;
		width: 100%;
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		box-sizing: border-box;
	}
	.main-navigation-menu li.current_page_item a, .main-navigation-menu li.current-menu-item a {
		color: #22a8d8;
		text-decoration: underline;
	}
	.main-navigation-menu li.current_page_item ul li a, .main-navigation-menu li.current-menu-item ul li a{
		color: #22a8d8;
		text-decoration: none;
	}
	.main-navigation-menu li.current_page_item ul li a:hover, .main-navigation-menu li.current-menu-item ul li a:hover {
		text-decoration: underline;
	}
	.main-navigation-menu ul li.current_page_item a, .main-navigation-menu ul li.current-menu-item a {
		color: #22a8d8;
		text-decoration: underline;
	}
	.main-navigation-menu ul li.current_page_item ul li a, .main-navigation-menu ul li.current-menu-item ul li a{
		text-decoration: none;
	}

	.main-navigation-menu .submenu-dropdown-toggle {
		float: right;
		display: block;
		margin: 0;
		padding: 0.85em 1.5em;
	}
	.main-navigation-menu .submenu-dropdown-toggle:hover {
		cursor: pointer;
	}
	.main-navigation-menu .submenu-dropdown-toggle:before {
		font-size: 28px;
		line-height: 1;
		font-family: 'Genericons';
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
		text-decoration: inherit;
		vertical-align: middle;
		content: '\f431';
		color: #222;
	}
	.main-navigation-menu .submenu-dropdown-toggle.active:before {
		content: '\f432';
	}
	.main-navigation-menu .submenu-dropdown-toggle:hover:before {
		color: #22a8d8;
	}
	.main-navigation-menu ul .submenu-dropdown-toggle {
		padding: 0.5em 1em;
	}

	/* Mega Menu Styling */
	.mega-menu-item .mega-menu-content {
		color: #333;
	}

	.mega-menu-item .mega-menu-two-columns > li,
	.mega-menu-item .mega-menu-three-columns > li,
	.mega-menu-item .mega-menu-five-columns > li {
		width: 100%;
	}

	.mega-menu-item .mega-menu-four-columns > li,
	.mega-menu-item .mega-menu-six-columns > li {
		width: 50%;
	}

}

/* Tablets (portrait) | <800px */
@media only screen and (max-width: 50em) {
	#featured-content .featured-content-left .entry-title, .single .entry-title, .page-title {
		font-size: 1.7em;
	}
	.entry h1, .commentlist h1 {
	font-size: 2.2em;
	}
	.entry h2, .commentlist h2 {
		font-size: 1.8em;
	}
	.entry h3, .commentlist h3 {
		font-size: 1.4em;
	}
	.entry tr th,
	.entry thead th {
		padding: 0.2em 0.4em;
	}
	.entry tr td {
		padding: 0.2em 0.4em;
	}
	#footer {
		text-align: center;
	}
	#footer #credit-link {
		float: none;
		margin-top: 1em;
	}

}
@media only screen and (max-width: 45em) {
	.post-wrapper {
		margin: 0;
	}
	.post-wrapper .post-wrap {
		float: none;
		width: 100%;
		padding-right: 0;
	}
	.post-wrapper .one-column-post {
		margin-right: 0;
	}
}
/* Phablets (portrait) | <640px */
@media only screen and (max-width: 40em) {

	/* Mega Menu Styling */
	.mega-menu-item .mega-menu-four-columns > li,
	.mega-menu-item .mega-menu-six-columns > li {
		width: 100%;
	}

	#featured-content .featured-content-left .entry-title, .single .entry-title, .page-title {
		font-size: 1.6em;
	}
	#featured-content {
		margin: 0;
	}
	#featured-content .featured-content-left {
		padding-right: 0;
	}
	#featured-content .featured-content-right .featured-post-wrap {
		float: none;
		padding-right: 0;
		width: 100%;
	}
}


/* Smartphones | <480px */
@media only screen and (max-width: 30em) {
	#header {
		padding: 2em 1em;
	}
	#logo .site-title {
		font-size: 2.0em;
	}
	.top-navigation-menu {
		margin: 2em -1em -2em;
		padding: 0 1em;
	}
	.top-navigation-menu a {
		padding: 1em 0.8em 1.2em;
		font-size: 0.95em;
	}
	#wrap, .header-image {
		padding: 1em 1em 0;
	}
	.type-post, .type-page, .type-attachment  {
		margin: 0 0 1em 0;
		padding: 0.75em;
	}
	.widget  {
		margin: 0 0 1em 0;
	}
	#footer {
		padding: 0.8em;
	}
	.alignright, .alignleft {
		float: none;
		margin: 1em 0;
	}
	#featured-content .featured-content-left .entry-title, .single .entry-title, .page-title {
		font-size: 1.4em;
	}
	.postinfo {
		margin: 0.75em -0.75em -0.75em;
		padding: 0.5em 0.7em;
	}
	.postinfo span {
		display: block;
	}
	.postinfo .meta-tags {
		margin: 0.3em 0 0 0;
	}

	/* Mobile Main Navigation */
	#mainnav-toggle-tablet {
		display: none;
	}
	#mainnav-toggle-phone {
		display: inline-block;
	}

	/* Social Menu Dropdown */
	#social-menu-toggle {
		float: right;
		display: inline-block;
		padding: 0.6em;
		text-decoration: none;
		color: #22a8d8;
		background: none;
		border: none;
	}
	#social-menu-toggle:hover {
		cursor: pointer;
		color: #333;
	}
	#social-menu-toggle:after {
		margin: 0;
		-webkit-font-smoothing: antialiased;
		display: inline-block;
		content: '\f408';
		font: normal 32px Genericons;
		text-decoration: inherit;
		vertical-align: text-bottom;
	}
	#navi-social-icons #social-icons-menu {
		display: none;
		float: right;
		border-top: 1px solid #ddd;
		width: 100%;
		text-align: center;
	}
	#navi-social-icons #social-icons-menu li a {
		padding: 0.9em;
	}
}

/* Smartphones | <320px */
@media only screen and (max-width: 20em) {
	.top-navigation-menu {
		padding: 0.5em 1em 0.7em;
	}
	.top-navigation-menu a {
		display: block;
		padding: 1em 0.8em;
		font-size: 0.95em;
	}
	#featured-content .featured-content-left .entry-title, .single .entry-title, .page-title {
		font-size: 1.3em;
	}
}

/* Big Screens Navi Fix | >720px */
@media only screen and (min-width: 60.001em) {
	/* ensure #nav is visible on desktop version */
	.main-navigation-menu, .top-navigation-menu {
		display: block !important;
	}
}
@media only screen and (min-width: 30.001em) {
	/* ensure social icons are visible on desktop version */
	#navi-social-icons #social-icons-menu {
		display: block !important;
	}
}
/* =Theme customization starts here
------------------------------------------------------- */
#header-wrap {
    background-image: url(https://www.leadbitterglass.co.uk/wp-content/uploads/2020/05/Final-Background-14.jpg);
	background-position: center center;
	background-repeat: no-repeat;
    background-size: cover;
}
@media only screen and (max-width: 960px) {
  #header-wrap {
    background-image: url(https://www.leadbitterglass.co.uk/wp-content/uploads/2020/05/Final-Background-14.jpg);
    background-position: top;
    background-repeat: no-repeat;
    background-size: 100%;
  }
}
#logo .site-description {
	margin-top: 0.4em;
	color: #ddd;
	font-style: italic;
	font-size: 17px;
	text-shadow: 1px 1px 2px #000000, 1px 1px 2px #000000, 0 0 5px #000000, 0 0 5px #000000;
}

.entry p, .comment p {
    font-size: large;
    line-height: 1.6em;
	font-family: "Open Sans", Helvetica, Arial, sans-serif;
}

.page-title, .entry-title {
	font-family: 'Fjalla One', Tahoma, Verdana, Arial;
	font-size: 2.5em;
	color: #282828;
	line-height: 1.4em;
	-ms-word-wrap: break-word;
	word-wrap: break-word;
	font-weight: 600;
}

#featured-content .featured-content-left .entry-title, .single .entry-title, .page-title {
    font-size: 2.5em;
}

.entry h1, .comment h1,
.entry h2, .comment h2,
.entry h3, .comment h3,
.entry h4, .comment h4,
.entry h5, .comment h5,
.entry h6, .comment h6 {
	color: #222;
	font-weight: bold;
	line-height: 1.0em;
	margin: 0.7em 0 0.4em;
	font-family: "Helvetica", Arial, Helvetica, sans-serif;
}

.wp-block-image {
    padding-bottom: 0.3em;
    padding-top: 0.5em;
}

.entry h1, .comment h1 {
	font-size: 2.5em;
}
.entry h2, .comment h2 {
    font-size: 2.1em;
}
.entry h3, .comment h3 {
	font-size: 1.7em;
	margin: 0.9em 0 0.4em;
}
.entry h4, .comment h4 {
	font-size: 1.4em;
    margin: 0.4em 0 0.3em;
}
.entry h5, .comment h5 {
	font-size: 1.125em;
	margin: 1.3em 0 0;
}
.entry h6, .comment h6 {
	font-size: 1.0em;
	margin: 1.3em 0 0;
}


@media screen and (max-width: 600px) {
.page-title, .entry-title {
    font-size: 8.2vw;
}
.entry h1, .comment h1 {
	font-size: 8.2vw;
}
.entry h2, .comment h2 {
    font-size: 7.2vw;
}
.entry h3, .comment h3 {
	font-size: 6.2vw;
}
.entry h4, .comment h4 {
	font-size: 5.6vw;
}
.entry h5, .comment h5 {
	font-size: 5.1vw;
}
.entry h6, .comment h6 {
	font-size: 4.6vw;
}
#featured-content .featured-content-left .entry-title, .single .entry-title, .page-title {
    font-size: 8.2vw;
}
}

.main-navigation-menu li.current_page_item a, .main-navigation-menu li.current-menu-item a {
    text-decoration: none;
} 

.widgettitle {
	font-size: 1.1em;
	font-family: "Helvetica", Arial, Helvetica, sans-serif;
} 

.widgettitle span {
	font-family: "Helvetica", Arial, Helvetica, sans-serif;
} 

.widget .textwidget p {
	    margin-bottom: 0em;
} 

.nf-form-fields-required {
  display: none;
}

.nf-form-content .nf-field-container #nf-field-37-wrap .nf-field-element .ninja-forms-field {
	-webkit-appearance: none;
	border-radius: 0;
	
}

.wp-block-separator {
	margin-top: 1.5em;
}

@media only screen and (min-width: 960px) {
.main-navigation-menu ul a:hover {
    background-color: #226b9e;
	text-decoration: none;
}
}

.seperator-no-top-padding {
	    margin-top: auto;
}

.image-top-padding {
	margin-top: 1.4em;
}

p.paragraph-no-margin {
    margin: 0em 0;	
}

.minus-margin-top {
	   margin-top: -20px;
}

.entry ul, .comment ul {
    list-style: square inside;
    margin: 0 0 0 0;
}

.crp_related {
    clear: both;
    border-top: solid;
    margin-top: 2em;
    border-color: #dddddd;
    padding-top: 1em;
	background-color: #f8f7f7;
	padding-left: 0.8em;
	padding-right: 0.8em;
	padding-bottom: 0.8em;
}

.crp_related .crp_title {
    display: block;
    margin: 0 auto;
    font-size: 0.8em;
}

#jp-relatedposts h3.jp-relatedposts-headline em:before {
    content: none !important;
    display: block;
    width: 100%;
    min-width: 30px;
    border-top: 1px solid #dcdcde;
    border-top: 1px solid rgba(0,0,0,.2);
    margin-bottom: 1em;
}

#jp-relatedposts h3.jp-relatedposts-headline {
    margin: 0 0 1.1em 0 !important;
    display: inline-block;
    float: left;
    font-size: 0.9em !important;
    font-weight: 700;
    font-family: inherit;
    background-color: #1e80c1;
    color: white;
    padding-top: 0.5em;
    padding-left: 0.5em;
    padding-right: 0.5em;
}

#jp-relatedposts .jp-relatedposts-items-visual h4.jp-relatedposts-post-title {
    text-transform: none;
    margin: 0;
    font-family: inherit;
    display: block;
    max-width: 100%;
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-bottom: 0.5em;
	padding-top: 0.5em;
    background-color: #ffffff;
    border-left: outset;
    border-right: inset;
    border-bottom: inset;
}


#jp-relatedposts {
    display: none;
    padding-top: 1em;
    margin: 2em 0 !important;
    position: relative;
    clear: both;
    background-color: #f6f6f6;
    padding-left: 0.8em;
    padding-right: 0.2em;
    border-top: outset;
}

.post-title {
	font-size: 1.7em;
}

div.wpforms-container-full .wpforms-field-file-upload .wpforms-uploader {
    border-style: dashed;
    border-color: #dadada;
	display: inline-block;
}

div.wpforms-container-full .wpforms-field-file-upload .wpforms-uploader .dz-message .modern-hint {
    display: none;
}

div.wpforms-container-full .wpforms-field-description, div.wpforms-container-full .wpforms-field-limit-text {
    display: none;
}

.wpforms-container .wpforms-field {
    padding: 10px 0;
}

/* Advanced Headings GROK CSS */

/* Default styling for larger screens */
.wp-block-uagb-advanced-heading {
    width: 75%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Media queries for responsive adjustment */
@media screen and (max-width: 1024px) {
    .wp-block-uagb-advanced-heading {
        width: 80%;
    }
}

@media screen and (max-width: 768px) {
   .wp-block-uagb-advanced-heading {
        width: 90%;
    }
}

@media screen and (max-width: 480px) {
    .wp-block-uagb-advanced-heading {
        width: 100%;
    }
}

/* New template */

/* Slider block with white background */
.slider-block {
    width: 100%; /* Matches full width of #wrap.container */
    margin: 0px 0 20px; /* No gap above, 20px below */
    padding: 20px; /* Inner padding */
    background-color: #fff; /* White block */
    box-sizing: border-box;
}

.slider-container {
    width: 100%; /* Fills the white block fully */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slider-block {
        padding: 10px;
        margin: 0px 0 10px;
    }
}

/* NEW OVERALL WEBSITE APPEARANCE CHANGES */

#navigation-wrap {
    border-bottom: 1px solid #ddd;
}

/* body {
    background-color: #dddddd;
} */

body {
    background-color: #f6f6f6;
}

.type-post, .type-page, .type-attachment {
    border: 1px solid #ddd;
}

.archive-description {
    border: 1px solid #ddd;
}

.archive-title {
    border-left: 1px solid #ddd;
    border-top: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.post-pagination {
    border: 1px solid #ddd;
}

#sidebar .widget {
    border: 1px solid #ddd;
}

.page-title, .entry-title {
    font-weight: 500 !important; 
}

.entry h1, .comment h1, .entry h2, .comment h2, .entry h3, .comment h3, .entry h4, .comment h4, .entry h5, .comment h5, .entry h6, .comment h6 {
    font-weight: 500 !important;
}

.main-navigation-menu a {
    font-weight: 500;
}

/* Archive pages css grok */

/* Style the page-header as the box */
.page-header {
    background: #fff; /* White background */
    border: 1px solid #ddd; /* Outline */
    margin-bottom: 1em; /* Gap below the box to posts */
	padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 3px;
}

/* Neutral wrapper */
.archive-title-block {
    margin: 0;
    padding: 0;
}

/* Title as H2 */
.archive-title {
    /* Example H2 styles - adjust to match your site */
    font-size: 1.5em; /* Typical H2 size, adjust */
    font-family: "Helvetica", Arial, Helvetica, sans-serif; 
    font-weight: 500; /* Bold, common for headings */
    color: #222; /* Dark heading color */
    margin-bottom: 15px; /* Space to description */
    text-transform: none;
    border: none;
    padding: 0;
    background: none;
}

/* Description as paragraph */
.archive-description {
    /* Example paragraph styles - adjust to match your site */
	font-size: large;
    line-height: 1.6em;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    font-weight: 400; /* Normal weight */
    color: #111; /* Typical body text color */
    line-height: 1.6; /* Comfortable line spacing */
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

/* Hide stray elements */
.archive-description:not(.archive-title-block .archive-description) {
    display: none;
}

.main-navigation-menu a:link, .main-navigation-menu a:visited {
    color: #222;
}

/* HOMEPAGE 3 BLOCKS */

/* Ensure global box-sizing for consistency */
* {
    box-sizing: border-box;
}

/* Container for the three blocks */
.glass-info-blocks {
    display: flex;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
    overflow: hidden; /* Prevent content from spilling out */
}

/* Individual block styling */
.glass-info-blocks .block {
    flex: 1;
    padding: 40px 20px;
    text-align: center;
    color: #243040;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Specific background colors (lighter greys) */
.glass-info-blocks .choose-design {
    background-color: #F8F8F8;
}

.glass-info-blocks .approve-proof {
    background-color: #F2F2F2;
}

.glass-info-blocks .delivery {
    background-color: #ECECEC;
}

/* SVG icon styling */
.glass-info-blocks .block svg {
    margin-bottom: 20px;
    display: block;
    stroke: #243040;
}

/* Specific icon sizes with consistent height */
.glass-info-blocks .choose-design svg {
    width: 150px;
    height: 100px;
}

.glass-info-blocks .approve-proof svg {
    width: 120px;
    height: 100px;
}

.glass-info-blocks .delivery svg {
    width: 100px;
    height: 100px;
}

/* Heading styling */
.glass-info-blocks .block h3 {
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    font-weight: 600;
    color: #243040;
}

/* Paragraph styling */
.glass-info-blocks .block p {
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
    color: #243040;
}

/* Make blocks square on desktop/tablet */
@media (min-width: 769px) {
    .glass-info-blocks .block {
        aspect-ratio: 1 / 1;
        padding: 20px;
    }
}

/* Keep blocks square on mobile (up to 550px) */
@media (max-width: 550px) {
    .glass-info-blocks {
        flex-direction: column;
        width: 100%;
        padding: 0;
        overflow: hidden;
    }
    .glass-info-blocks .block {
        padding: 20px 15px; /* Reduced vertical padding from 30px to 20px */
        aspect-ratio: 1 / 1; /* Enforce square shape */
        width: 100%;
        max-width: 100%;
        margin: 0;
        max-height: 100vw; /* Cap height to match width */
    }
    .glass-info-blocks .block svg {
        width: 100%;
        max-width: 120px;
        height: auto;
        margin-bottom: 15px; /* Slightly reduced from 20px */
    }
    .glass-info-blocks .block h3 {
        font-size: 1.4rem; /* Slightly smaller */
        margin: 0 0 10px 0; /* Reduced from 15px */
    }
    .glass-info-blocks .block p {
        font-size: 0.95rem; /* Slightly smaller */
        line-height: 1.4; /* Tighter line height */
    }
}

/* Allow blocks to shorten between 550px and 768px */
@media (min-width: 551px) and (max-width: 768px) {
    .glass-info-blocks {
        flex-direction: column;
        width: 100%;
    }
    .glass-info-blocks .block {
        padding: 30px 15px;
        aspect-ratio: auto; /* Allows height to adjust naturally */
        width: 100%;
        max-width: 100%;
    }
}

/* Specific fix for very small screens like iPhone SE (320px) */
@media only screen and (max-width: 320px) {
    .glass-info-blocks {
        flex-direction: column;
        width: 100%;
    }
    .glass-info-blocks .block {
        padding: 15px; /* Further reduced padding */
        width: 100%;
        max-width: 100%;
        aspect-ratio: 1 / 1; /* Reinforce square shape */
        max-height: 100vw; /* Ensure height matches width */
    }
    .glass-info-blocks .block svg {
        width: 80%;
        max-width: 100px;
        height: auto;
        margin-bottom: 10px; /* Further reduced */
    }
    .glass-info-blocks .block h3 {
        font-size: 1.3rem;
        margin: 0 0 8px 0;
    }
    .glass-info-blocks .block p {
        font-size: 0.9rem;
        line-height: 1.3;
    }
}

/* Notable Commissions posts homepage styling */

.uagb-block-d139c227 .uagb-post-grid-byline {
    padding-bottom: 15px;
    display: none;
}

.uagb-block-d139c227 .uagb-post__title {
    padding-bottom: 0px !important;
	font-size: x-large;
	padding-top: 5px;
}

.uagb-post-grid .uagb-post__inner-wrap p:last-of-type {
	display: -webkit-box;
    -webkit-line-clamp: 2; /* Limits text to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; /* Adds "..." if text is cut off */
    line-height: 1.5em; /* Adjust this based on your font size */
    max-height: 4.5em; /* 3 lines × line-height */
}

/* Button default state */
.uagb-block-d139c227.uagb-post-grid .wp-block-button.uagb-post__text.uagb-post__cta .uagb-text-link.wp-block-button__link {
    background-color: #1F80C1;
    color: #FFFFFF;
    text-decoration: none; /* Removes underline */
    padding: 8px 16px; /* Adjust padding if needed */
    display: inline-block; /* Ensures consistent button appearance */
	font-size: medium;
}

/* Button hover state */
.uagb-block-d139c227.uagb-post-grid .wp-block-button.uagb-post__text.uagb-post__cta .uagb-text-link.wp-block-button__link:hover {
    background-color: #196394;
    color: #FFFFFF;
}

/* Testimonials */

.uagb-block-e29e1742.uagb-slick-carousel {
    padding-top: 30px !important;
    background-color: #f2f2f2;
    padding-bottom: 60px !important;
    padding-right: 60px !important;
    padding-left: 60px !important;
}

.wp-block-uagb-testimonial.uagb-slick-carousel ul.slick-dots {
    margin-bottom: 0px;
}

#h-testimonials {
	margin: 0px;
	background-color: #f2f2f2;
    padding-top: 60px;
}

@media only screen and (max-width: 767px) {
.uagb-block-e29e1742.uagb-slick-carousel {
    padding-bottom: 30px !important;
    padding-right: 30px !important;
    padding-left: 30px !important;
}
}

#jp-relatedposts h3.jp-relatedposts-headline {
    padding-bottom: 0.5em;
}

/* Mobile homepage top slider */
.Mobile-Slider-Text {
    max-width: 75%;
}

/* SPECTRA GALLERY HOVER CSS */

.spectra-image-gallery__media-wrapper {
    overflow: hidden;
}

.spectra-image-gallery__media-wrapper img {
    transition: transform 0.5s ease;
}

.spectra-image-gallery__media-wrapper:hover img {
    transform: scale(1.1);
}

.spectra-image-gallery__control-lightbox--main .swiper-slide img {
    max-height: 95%;
}

/* BRAND NEW VERSIONS GALLERY & PAST WORKS - EVERYTHING ABOVE RELATING TO THESE SHOULD BE OBSELETE */

/* PAST WORKS HOMEPAGE IMAGES */

.original-pastworks-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.original-pastworks-block {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    overflow: hidden;
}

.original-pastworks-block a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    z-index: 2;
}

.original-pastworks-block img {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 2.4s ease;
    z-index: 0;
    transform-origin: center center; /* Fixes positioning during scale */
    will-change: transform; /* Optimizes animation rendering */
}

.original-pastworks-block:hover img {
    transform: scale(1.05);
}

.original-pastworks-block .original-pastworks-shade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    z-index: 1;
}

.original-pastworks-block .original-pastworks-label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    top: auto;
    transform: none;
    color: #000000; /* Text starts as black */
    font-size: clamp(0.75rem, 1.8vw, 1rem);
    font-family: 'Corbel', 'Arial', sans-serif;
    font-weight: 700;
    text-align: center;
    padding: 6px 15px;
    margin: 0;
    border: 1px solid #ffffff;
    z-index: 3;
    display: inline-block;
    white-space: nowrap;
    text-transform: uppercase;
    max-width: 90%;
    transition: color 0.3s cubic-bezier(0.5, 0, 1, 1);
    overflow: hidden;
}

.original-pastworks-block .original-pastworks-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* White block */
    z-index: -1;
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.5, 0, 1, 1);
}

.original-pastworks-block:hover .original-pastworks-label::before {
    transform: translateX(100%);
}

.original-pastworks-block:hover .original-pastworks-label {
    color: #ffffff; /* Text turns white on hover */
}

@media (max-width: 1395px) and (min-width: 1025px) {
    .original-pastworks-block .original-pastworks-label {
        font-size: clamp(0.8rem, 1.8vw, 1.1rem);
    }
}

@media (max-width: 1161px) and (min-width: 1124px) {
    .original-pastworks-block .original-pastworks-label {
        font-size: clamp(0.75rem, 1.6vw, 1rem);
    }
}

@media (max-width: 1123px) and (min-width: 1025px) {
    .original-pastworks-block .original-pastworks-label {
        font-size: clamp(0.75rem, 1.6vw, 1rem);
    }
}

@media (max-width: 1024px) {
    .original-pastworks-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .original-pastworks-block {
        padding-bottom: 75%;
    }
    .original-pastworks-block .original-pastworks-label {
        font-size: clamp(0.9rem, 2vw, 1.1rem);
        padding: 10px 25px;
    }
}

@media (max-width: 768px) {
    .original-pastworks-wrapper {
        grid-template-columns: 1fr;
    }
    .original-pastworks-block {
        padding-bottom: 50%;
    }
    .original-pastworks-block .original-pastworks-label {
        font-size: clamp(0.8rem, 2.5vw, 1rem);
        padding: 8px 20px;
    }
}

/* GALLERY IMAGES HOMEPAGE */

.original-gallery-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.original-gallery-block {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 50%;
    overflow: hidden;
}

.original-gallery-block a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    z-index: 2;
}

.original-gallery-block img {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 2.4s ease;
    z-index: 0;
    transform-origin: center center;
    will-change: transform; /* Added to optimize animation */
}

.original-gallery-block:hover img {
    transform: scale(1.05);
}

.original-gallery-block .original-gallery-shade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    z-index: 1;
}

.original-gallery-block .original-gallery-label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    top: auto;
    transform: none;
    color: #000000;
    font-size: clamp(0.9rem, 2.2vw, 1.25rem);
    font-family: 'Corbel', 'Arial', sans-serif;
    font-weight: 700;
    text-align: center;
    padding: 10px 25px;
    margin: 0;
    border: 1px solid #ffffff;
    z-index: 3;
    display: inline-block;
    white-space: nowrap;
    text-transform: uppercase;
    max-width: 90%;
    transition: color 0.3s cubic-bezier(0.5, 0, 1, 1);
    overflow: hidden;
}

.original-gallery-block .original-gallery-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: -1;
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.5, 0, 1, 1);
}

.original-gallery-block:hover .original-gallery-label::before {
    transform: translateX(100%);
}

.original-gallery-block:hover .original-gallery-label {
    color: #ffffff;
}

@media (max-width: 1395px) and (min-width: 1025px) {
    .original-gallery-block .original-gallery-label {
        font-size: clamp(0.8rem, 1.8vw, 1.1rem);
    }
}

@media (max-width: 1161px) and (min-width: 1124px) {
    .original-gallery-block .original-gallery-label {
        font-size: clamp(0.75rem, 1.6vw, 1rem);
    }
}

@media (max-width: 1123px) and (min-width: 1025px) {
    .original-gallery-block .original-gallery-label {
        font-size: clamp(0.75rem, 1.6vw, 1rem);
    }
}

@media (max-width: 1024px) {
    .original-gallery-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .original-gallery-block {
        padding-bottom: 75%;
    }
    .original-gallery-block .original-gallery-label {
        font-size: clamp(0.9rem, 2vw, 1.1rem);
        padding: 10px 25px;
    }
}

@media (max-width: 768px) {
    .original-gallery-wrapper {
        grid-template-columns: 1fr;
    }
    .original-gallery-block {
        padding-bottom: 50%;
    }
    .original-gallery-block .original-gallery-label {
        font-size: clamp(0.8rem, 2.5vw, 1rem);
        padding: 8px 20px;
    }
}

/* NEW HOW TO MEASURE AND HOW TO ORDER IMAGE BUTTONS */

.new-measure-link-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.new-measure-link-block {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 36.66%;
    overflow: hidden;
    border: solid;
    border-width: 1px;
    border-color: #464646; /* Default border color for screens < 961px */
}

.new-measure-link-block a {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    z-index: 2;
}

.new-measure-link-block img {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 2.4s ease;
    z-index: 0;
    transform-origin: center center;
    will-change: transform;
}

.new-measure-link-block:hover img {
    transform: scale(1.05);
}

.new-measure-link-block .new-measure-link-shade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    z-index: 1;
}

.new-measure-link-block .new-measure-link-label {
    color: #000000;
    font-size: clamp(0.8rem, 2.2vw, 1.2rem);
    font-family: 'Corbel', 'Arial', sans-serif;
    font-weight: 700;
    text-align: center;
    padding: 5px 17px;
    margin: 0;
    border: 1px solid #ffffff;
    z-index: 3;
    display: inline-block;
    white-space: nowrap;
    text-transform: uppercase;
    max-width: 85%;
    transition: color 0.3s cubic-bezier(0.5, 0, 1, 1);
    overflow: hidden;
    line-height: 1.2;
    position: absolute;
    bottom: 14px;
    right: 14px;
    transform: none;
}

.new-measure-link-block .new-measure-link-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: -1;
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.5, 0, 1, 1);
}

.new-measure-link-block:hover .new-measure-link-label::before {
    transform: translateX(100%);
}

.new-measure-link-block:hover .new-measure-link-label {
    color: #ffffff;
}

@media (min-width: 961px) {
    .new-measure-link-block {
        border-color: #8d8d8d; /* Border color for screens >= 961px */
    }
}

@media (max-width: 1395px) and (min-width: 1025px) {
    .new-measure-link-block .new-measure-link-label {
        font-size: clamp(0.9rem, 2vw, 1.2rem);
    }
}

@media (max-width: 1296px) and (min-width: 1229px) {
    .new-measure-link-block .new-measure-link-label {
        font-size: clamp(0.8rem, 1.8vw, 1.0rem);
        padding: 5px 16px;
    }
}

@media (max-width: 1228px) and (min-width: 1025px) {
    .new-measure-link-block .new-measure-link-label {
        font-size: clamp(0.7rem, 1.6vw, 0.9rem);
        padding: 4px 14px;
    }
}

@media (max-width: 1161px) and (min-width: 1025px) {
    .new-measure-link-block .new-measure-link-label {
        font-size: clamp(0.7rem, 1.8vw, 0.9rem);
        padding: 5px 15px;
    }
}

@media (max-width: 1024px) {
    .new-measure-link-block .new-measure-link-label {
        font-size: clamp(0.7rem, 1.8vw, 0.9rem);
        padding: 5px 15px;
    }
}

@media (max-width: 768px) {
    .new-measure-link-block .new-measure-link-label {
        font-size: clamp(0.9rem, 2.7vw, 1.2rem);
        padding: 10px 25px;
    }
}

@media (max-width: 960px) {
    .new-measure-link-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .new-measure-link-block {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 75%;
        overflow: hidden;
    }

    .new-measure-link-block a {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        text-decoration: none;
        z-index: 2;
    }

    .new-measure-link-block img {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 2.4s ease;
        z-index: 0;
        transform-origin: center center;
        will-change: transform;
    }

    .new-measure-link-block:hover img {
        transform: scale(1.05);
    }

    .new-measure-link-block .new-measure-link-shade {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
        z-index: 1;
    }

    .new-measure-link-block .new-measure-link-label {
        position: absolute;
        bottom: 15px;
        left: 15px;
        right: auto;
        top: auto;
        transform: none;
        color: #000000;
        font-size: clamp(0.85rem, 2.5vw, 1.3rem);
        font-family: 'Corbel', 'Arial', sans-serif;
        font-weight: 700;
        text-align: center;
        padding: clamp(8px, 2vw, 10px) clamp(22px, 3vw, 28px);
        margin: 0;
        border: 1px solid #ffffff;
        z-index: 3;
        display: inline-block;
        white-space: nowrap;
        text-transform: uppercase;
        max-width: 90%;
        transition: color 0.3s cubic-bezier(0.5, 0, 1, 1);
        overflow: hidden;
    }

    .new-measure-link-block .new-measure-link-label::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.9);
        z-index: -1;
        transform: translateX(0);
        transition: transform 0.3s cubic-bezier(0.5, 0, 1, 1);
    }

    .new-measure-link-block:hover .new-measure-link-label::before {
        transform: translateX(100%);
    }

    .new-measure-link-block:hover .new-measure-link-label {
        color: #ffffff;

    }
}

@media (max-width: 960px) and (min-width: 769px) {
    .new-measure-link-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .new-measure-link-block {
        padding-bottom: 75%;
    }
    .new-measure-link-block .new-measure-link-label {
        font-size: clamp(0.85rem, 2.5vw, 1.3rem);
        padding: clamp(8px, 2vw, 10px) clamp(22px, 3vw, 28px);
        border-width: 1px;
    }
}

@media (max-width: 768px) {
    .new-measure-link-wrapper {
        grid-template-columns: 1fr;
    }
    .new-measure-link-block {
        padding-bottom: 50%;
    }
    .new-measure-link-block .new-measure-link-label {
        font-size: clamp(0.8rem, 2.5vw, 1rem);
        padding: 7px 22px;
        border-width: 1px;
    }
}

@media (max-width: 768px) and (min-width: 580px) {
    .new-measure-link-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .new-measure-link-block {
        padding-bottom: 100% !important;
    }
    .new-measure-link-block .new-measure-link-label {
        font-size: clamp(0.8rem, 2.5vw, 1rem);
        padding: 7px 22px;
        border-width: 1px;
    }
}

@media (max-width: 579px) and (min-width: 431px) {
    .new-measure-link-block .new-measure-link-label {
        font-size: clamp(0.9rem, 3vw, 1.3rem);
        padding: clamp(8px, 2.5vw, 10px) clamp(24px, 3vw, 28px);
        border-width: 1px;
    }
}

@media (max-width: 500px) {
    .new-measure-link-wrapper {
        gap: 10px;
    }
}

#sidebar .widget a:hover, .widget a:active {
    text-decoration: none;
}

/* DOOR GALLERIES ON ALL PAGES STYLING */

/* Leadbitter Door Gallery Styles */
.ldg-color-picker {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 20px;
}

div.ldg-door-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%; /* Matches original behavior, no max-width */
}

div.ldg-door-page {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 40px; /* Increase this for more horizontal space */
    row-gap: 20px;    /* Keep this at 20px for vertical space */
    width: 100%;
    box-sizing: border-box;
}

div.ldg-door-item {
    flex: 0 0 230px;
    max-width: 230px;
    min-width: 230px;
    text-align: center;
    box-sizing: border-box;
}

/* Add this new rule */
.ldg-door-item:has(.ldg-door-background-full) {
    flex: 0 0 205px;
    max-width: 205px;
    min-width: 205px;
}

.ldg-door-background {
    position: relative;
    width: 230px;
    height: 561px;
    background-size: 230px 561px;
    background-repeat: no-repeat;
    background-position: center;
}

/* full height door is styled different */

/* Full Height Door Background */
.ldg-door-background-full {
    position: relative;
    width: 205px;
    height: 561px;
    background-size: 205px 561px;
    background-repeat: no-repeat;
    background-position: center;
}

/* ORIGINAL GLASS OVERLAY STYLING - EVENTUALLY THIS WILL NOT BE USED */

.ldg-glass-overlay {
    position: absolute;
    top: 30.4%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 174px;
    height: 150px;
    z-index: 1;
}

/* NEW GLASS OVERLAY STYLING - EVENTUALLY THIS WILL BE THE ONLY GLASS OVERLAY STYLING THAT IS USED WHEN ALL GALLERIES ARE UPDATED */

/* Split Glazed Overlay */
.ldg-glass-overlay-split {
    position: absolute;
    top: 30.4%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 174px;
    height: 150px;
    z-index: 1;
}

/* Half Glazed Overlay */
.ldg-glass-overlay-half {
    position: absolute;
    top: 30.2%;
    left: 49.5%;
    transform: translate(-50%, -50%);
    width: 172px;
    height: 281px;
    z-index: 1;
}

/* 1930s Glazed Overlay */
.ldg-glass-overlay-1930s {
    position: absolute;
    top: 19%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 174px;
    height: 150px;
    z-index: 1;
}

/* Full Height Glazed Overlay */
.ldg-glass-overlay-full {
    position: absolute;
    top: 49.4%;
    left: 50.2%;
    transform: translate(-50%, -50%);
    width: 154px;
    height: 503px;
    z-index: 1;
}

.ldg-color-dot {
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: transform 0.2s;
}

.ldg-color-dot:hover {
    transform: scale(1.2);
}

.ldg-door-code {
    font-size: 14px;
    margin-top: 10px;
    font-weight: normal;
}

.ldg-pagination {
    text-align: center;
    padding: 30px 0;
}

.ldg-see-more-btn {
    background-color: #1F80C1;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    font-weight: 500;
}

.ldg-see-more-btn:hover {
    background-color: #186598;
    text-decoration: none;
}

.ldg-see-more-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.3);
}

/* Ensure theme padding (purple area) is preserved */
.entry-content .ldg-door-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Related posts bordered */

#jp-relatedposts {
    border: 1px solid #ddd;
}

/* DOOR SELECTOR */

/* Door Selector Styles */
.door-selector-hidden-set {
    display: none;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

#door-selector-initial-images {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

#door-selector-initial-images,
.door-selector-hidden-set {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

#door-selector-initial-images img,
.door-selector-hidden-set img {
    width: 155px;
    margin: 10px;
    cursor: pointer;
    transition: transform 0.2s ease; /* Smooth scaling effect */
}

#door-selector-initial-images img:hover,
.door-selector-hidden-set img:hover {
    transform: scale(1.05); /* 5% size increase on hover */
}

.door-selector-image-container {
    text-align: center;
}

.door-selector-image-container p {
    margin: 5px 0 0 0;
    font-size: 14px;
}

.door-selector-back-button-container {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.door-selector-back-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #1F80C1;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.door-selector-back-button:hover {
    background-color: #186598;
}

.door-selector-back-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.3);
}

/* Mobile breakpoint - adjusted for 317px max width (iPhone SE) */
@media screen and (max-width: 600px) {
    #door-selector-initial-images,
    .door-selector-hidden-set {
        gap: 5px;
        justify-content: center;
    }

    /* Initial images - 3 on top row, 2 on bottom row */
    #door-selector-initial-images img {
        width: calc(33.33% - 3.33px);
        max-width: 90px;
        margin: 5px;
        height: auto;
    }

    /* Reset margins for initial images */
    #door-selector-initial-images img:nth-child(odd),
    #door-selector-initial-images img:nth-child(even) {
        margin: 5px;
    }

    /* Hidden sets - 2 per row */
    .door-selector-hidden-set .door-selector-image-container {
        width: calc(50% - 20px); /* Adjusted for 10px margins */
        max-width: 90px;
        margin: 10px; /* Match Stage 1 spacing */
    }

    .door-selector-hidden-set img {
        width: 100%;
        max-width: 90px; /* Match Stage 1 */
        height: auto;
        margin: 0;
    }

    /* Reset margins for hidden sets */
    .door-selector-hidden-set .door-selector-image-container:nth-child(odd),
    .door-selector-hidden-set .door-selector-image-container:nth-child(even) {
        margin: 10px; /* Match Stage 1 spacing */
    }

    /* Ensure proper centering */
    .door-selector-hidden-set {
        justify-content: center;
    }

    /* Adjust back button spacing on mobile */
    .door-selector-back-button-container {
        margin-top: 15px;
    }

    .door-selector-back-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Small-to-medium screens (601px–727px) - Force 5 in one row with scaling */
@media screen and (min-width: 601px) and (max-width: 727px) {
    #door-selector-initial-images,
    .door-selector-hidden-set {
        gap: 5px; /* Changed to match Stage 1 */
        justify-content: center;
        max-width: 727px;
        margin: 0 auto;
        padding: 0;
    }

    /* Initial images - 5 in one row, scaled down */
    #door-selector-initial-images img {
        width: 19%; /* Slightly less than 20% to account for gaps */
        max-width: 105px; /* Tighter max-width to force scaling */
        margin: 2px; /* Reduced margin */
        height: auto;
    }

    /* Hidden sets - Match initial image size, 4 per row */
    .door-selector-hidden-set .door-selector-image-container {
        width: calc(25% - 20px); /* Adjusted for 10px margins */
        max-width: 105px;
        margin: 10px; /* Match Stage 1 spacing */
    }

    .door-selector-hidden-set img {
        width: 100%;
        max-width: 105px; /* Match Stage 1 */
        height: auto;
        margin: 0;
    }

    /* Ensure consistent spacing */
    #door-selector-initial-images img:nth-child(odd),
    #door-selector-initial-images img:nth-child(even),
    .door-selector-hidden-set .door-selector-image-container:nth-child(odd),
    .door-selector-hidden-set .door-selector-image-container:nth-child(even) {
        margin: 2px; /* Stage 1 specific, not overriding Stage 2 */
    }

    /* Back button adjustments */
    .door-selector-back-button-container {
        margin-top: 15px;
    }

    .door-selector-back-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* iPad Mini and iPad Air portrait mode (728px–820px) */
@media screen and (min-width: 728px) and (max-width: 820px) {
    #door-selector-initial-images,
    .door-selector-hidden-set {
        gap: 5px; /* Changed to match Stage 1 */
        justify-content: center;
        max-width: 820px;
        margin: 0 auto;
        padding: 0;
    }

    /* Initial images - 5 in one row */
    #door-selector-initial-images img {
        width: 19%;
        max-width: 120px; /* Adjusted for this range */
        margin: 4px;
        height: auto;
    }

    /* Hidden sets - Match initial image size, 4 per row */
    .door-selector-hidden-set .door-selector-image-container {
        width: calc(25% - 20px); /* Adjusted for 10px margins */
        max-width: 120px;
        margin: 10px; /* Match Stage 1 spacing */
    }

    .door-selector-hidden-set img {
        width: 100%;
        max-width: 120px; /* Match Stage 1 */
        height: auto;
        margin: 0;
    }

    /* Ensure consistent spacing */
    #door-selector-initial-images img:nth-child(odd),
    #door-selector-initial-images img:nth-child(even),
    .door-selector-hidden-set .door-selector-image-container:nth-child(odd),
    .door-selector-hidden-set .door-selector-image-container:nth-child(even) {
        margin: 4px; /* Stage 1 specific, not overriding Stage 2 */
    }

    /* Back button adjustments */
    .door-selector-back-button-container {
        margin-top: 15px;
    }

    .door-selector-back-button {
        padding: 10px 20px;
        font-size: 15px;
    }
}

/* Medium-to-large portrait screens (821px–927px) - Force 5 in one row with scaling */
@media screen and (min-width: 821px) and (max-width: 927px) {
    #door-selector-initial-images,
    .door-selector-hidden-set {
        gap: 5px; /* Changed to match Stage 1 */
        justify-content: center;
        max-width: 927px;
        margin: 0 auto;
        padding: 0;
    }

    /* Initial images - 5 in one row, scaled down */
    #door-selector-initial-images img {
        width: 19%; /* Slightly less than 20% to account for gaps */
        max-width: 135px; /* Tighter max-width to force scaling */
        margin: 2px; /* Reduced margin */
        height: auto;
    }

    /* Hidden sets - Match initial image size, 4 per row */
    .door-selector-hidden-set .door-selector-image-container {
        width: calc(25% - 20px); /* Adjusted for 10px margins */
        max-width: 135px;
        margin: 10px; /* Match Stage 1 spacing */
    }

    .door-selector-hidden-set img {
        width: 100%;
        max-width: 135px; /* Match Stage 1 */
        height: auto;
        margin: 0;
    }

    /* Ensure consistent spacing */
    #door-selector-initial-images img:nth-child(odd),
    #door-selector-initial-images img:nth-child(even),
    .door-selector-hidden-set .door-selector-image-container:nth-child(odd),
    .door-selector-hidden-set .door-selector-image-container:nth-child(even) {
        margin: 2px; /* Stage 1 specific, not overriding Stage 2 */
    }

    /* Back button adjustments */
    .door-selector-back-button-container {
        margin-top: 15px;
    }

    .door-selector-back-button {
        padding: 10px 20px;
        font-size: 15px;
    }
}

/* Larger screens (928px and up) */
@media screen and (min-width: 928px) {
    #door-selector-initial-images {
        display: flex;
        flex-wrap: nowrap; /* Force single row of 5 */
        justify-content: center;
        gap: 5px;
    }

    #door-selector-initial-images img {
        width: 155px; /* Fixed desktop size */
        margin: 10px;
        height: auto;
    }

    .door-selector-hidden-set .door-selector-image-container {
        width: calc(25% - 20px); /* Adjusted for 10px margins */
        max-width: 155px;
        margin: 10px; /* Match Stage 1 spacing */
    }

    .door-selector-hidden-set img {
        width: 100%;
        max-width: 155px; /* Match Stage 1 */
        height: auto;
        margin: 0;
    }
}

/* Specific Fixes for Requested Ranges */

/* 333px and below: Reduce door size, reasonable size */
@media screen and (max-width: 333px) {
    #door-selector-initial-images {
        gap: 5px; /* Changed to match Stage 1 */
    }

    #door-selector-initial-images img {
        width: 60px !important; /* Increased from 30px, still fits 3+2 */
        max-width: 60px !important;
        margin: 2px !important;
        height: auto;
    }

    .door-selector-hidden-set .door-selector-image-container {
        width: calc(50% - 20px); /* Adjusted for 10px margins */
        margin: 10px; /* Match Stage 1 spacing */
    }

    .door-selector-hidden-set img {
        width: 100%;
        max-width: 60px !important; /* Match Stage 1 */
        height: auto;
        margin: 0;
    }
}

/* 338px and below: Reduce door size and gap */
@media screen and (max-width: 338px) {
    #door-selector-initial-images {
        gap: 5px; /* Changed to match Stage 1 */
    }

    #door-selector-initial-images img {
        width: calc(33.33% - 2px);
        max-width: 75px; /* Reduced further from 80px */
        margin: 3px; /* Reduced from 5px */
        height: auto;
    }

    .door-selector-hidden-set .door-selector-image-container {
        width: calc(50% - 20px); /* Adjusted for 10px margins */
        margin: 10px; /* Match Stage 1 spacing */
    }

    .door-selector-hidden-set img {
        width: 100%;
        max-width: 75px; /* Match Stage 1 */
        height: auto;
        margin: 0;
    }
}

/* 473px–480px: Increase size, 3+2 stacking */
@media screen and (min-width: 473px) and (max-width: 480px) {
    #door-selector-initial-images img {
        width: calc(33.33% - 3.33px);
        max-width: 110px; /* Increased from 90px to enforce 3+2 */
        margin: 5px;
        height: auto;
    }

    .door-selector-hidden-set .door-selector-image-container {
        width: calc(50% - 20px); /* Adjusted for 10px margins */
        margin: 10px; /* Match Stage 1 spacing */
    }

    .door-selector-hidden-set img {
        width: 100%;
        max-width: 110px; /* Match Stage 1 */
        height: auto;
        margin: 0;
    }
}

/* 504px–579px: Increase size, 3+2 stacking */
@media screen and (min-width: 504px) and (max-width: 579px) {
    #door-selector-initial-images img {
        width: calc(33.33% - 3.33px);
        max-width: 115px; /* Increased from 90px to enforce 3+2 */
        margin: 5px;
        height: auto;
    }

    .door-selector-hidden-set .door-selector-image-container {
        width: calc(50% - 20px); /* Adjusted for 10px margins */
        margin: 10px; /* Match Stage 1 spacing */
    }

    .door-selector-hidden-set img {
        width: 100%;
        max-width: 115px; /* Match Stage 1 */
        height: auto;
        margin: 0;
    }
}

/* 580px–583px: Reduce size a lot more, 5 in one row */
@media screen and (min-width: 580px) and (max-width: 583px) {
    #door-selector-initial-images {
        gap: 5px; /* Changed to match Stage 1 */
    }

    #door-selector-initial-images img {
        width: 80px; /* Drastically reduced */
        max-width: 80px;
        margin: 2px;
        height: auto;
    }

    .door-selector-hidden-set .door-selector-image-container {
        width: calc(50% - 20px); /* Adjusted for 10px margins */
        margin: 10px; /* Match Stage 1 spacing */
    }

    .door-selector-hidden-set img {
        width: 100%;
        max-width: 80px; /* Match Stage 1 */
        height: auto;
        margin: 0;
    }
}

/* 580px–642px: Reduce size a lot more, 5 in one row */
@media screen and (min-width: 580px) and (max-width: 642px) {
    #door-selector-initial-images {
        gap: 5px; /* Changed to match Stage 1 */
    }

    #door-selector-initial-images img {
        width: 85px; /* Drastically reduced */
        max-width: 85px;
        margin: 2px;
        height: auto;
    }

    .door-selector-hidden-set .door-selector-image-container {
        width: calc(50% - 20px); /* Adjusted for 10px margins */
        margin: 10px; /* Match Stage 1 spacing */
    }

    .door-selector-hidden-set img {
        width: 100%;
        max-width: 85px; /* Match Stage 1 */
        height: auto;
        margin: 0;
    }
}

/* 600px–642px: Reduce size, reasonable size */
@media screen and (min-width: 600px) and (max-width: 642px) {
    #door-selector-initial-images {
        gap: 5px; /* Changed to match Stage 1 */
    }

    #door-selector-initial-images img {
        width: 90px !important; /* Increased from 50px, still fits 5 */
        max-width: 90px !important;
        margin: 2px !important;
        height: auto;
    }

    .door-selector-hidden-set .door-selector-image-container {
        width: calc(25% - 20px); /* Adjusted for 10px margins */
        margin: 10px; /* Match Stage 1 spacing */
    }

    .door-selector-hidden-set img {
        width: 100%;
        max-width: 90px !important; /* Match Stage 1 */
        height: auto;
        margin: 0;
    }
}

/* 600px–728px: Scale down doors, increase gap */
@media screen and (min-width: 600px) and (max-width: 728px) {
    #door-selector-initial-images {
        gap: 5px; /* Changed to match Stage 1 */
    }

    #door-selector-initial-images img {
        width: 19%;
        max-width: 102px; /* Scaled down slightly from 105px */
        margin: 2px;
        height: auto;
    }

    .door-selector-hidden-set .door-selector-image-container {
        width: calc(25% - 20px); /* Adjusted for 10px margins */
        margin: 10px; /* Match Stage 1 spacing */
    }

    .door-selector-hidden-set img {
        width: 100%;
        max-width: 102px; /* Match Stage 1 */
        height: auto;
        margin: 0;
    }
}

/* 728px–744px: Reduce size, 5 in one row */
@media screen and (min-width: 728px) and (max-width: 744px) {
    #door-selector-initial-images img {
        width: 19%;
        max-width: 110px; /* Reduced to fit 5 */
        margin: 4px;
        height: auto;
    }

    .door-selector-hidden-set .door-selector-image-container {
        width: calc(25% - 20px); /* Adjusted for 10px margins */
        margin: 10px; /* Match Stage 1 spacing */
    }

    .door-selector-hidden-set img {
        width: 100%;
        max-width: 110px; /* Match Stage 1 */
        height: auto;
        margin: 0;
    }
}

/* 367px and below: Reduce door size */
@media screen and (max-width: 367px) {
    #door-selector-initial-images img {
        width: calc(33.33% - 2px); /* Reduced gap adjustment */
        max-width: 80px; /* Further reduced to fit 3+2 */
        margin: 3px; /* Reduced margin */
        height: auto;
    }

    .door-selector-hidden-set .door-selector-image-container {
        width: calc(50% - 20px); /* Adjusted for 10px margins */
        margin: 10px; /* Match Stage 1 spacing */
    }

    .door-selector-hidden-set img {
        width: 100%;
        max-width: 80px; /* Match Stage 1 */
        height: auto;
        margin: 0;
    }
}

/* Glass types in door types */

/* Door Options Gallery Styles */
#lbg-door-options-split-glazed,
#lbg-door-options-half-glazed,
#lbg-door-options-1930s,
#lbg-door-options-full-height,
#lbg-door-options-stable {
    display: flex;
    flex-wrap: nowrap; /* Keep 4 in a row by default, no wrapping until mobile */
    justify-content: center;
    gap: 5px;
    max-width: 100%; /* Ensure it fits within content area */
}

.lbg-glass-variant {
    text-align: center;
    flex: 1; /* Allow items to scale proportionally */
    min-width: 0; /* Prevent flex items from refusing to shrink */
}

.lbg-glass-variant img {
    width: 100%; /* Scale with container */
    max-width: 155px; /* Max size for desktop */
    margin: 10px 10px 0 10px; /* Remove bottom margin to close gap */
    cursor: pointer;
    transition: transform 0.2s ease; /* Smooth scaling effect */
}

.lbg-glass-variant img:hover {
    transform: scale(1.05); /* 5% size increase on hover */
}

.lbg-glass-variant p {
    margin: 5px 0 0 0; /* Keep top margin minimal */
    font-size: 14px;
}

/* Gradual scaling for desktop to tablet */
@media screen and (max-width: 1212px) {
    #lbg-door-options-split-glazed,
    #lbg-door-options-half-glazed,
    #lbg-door-options-1930s,
    #lbg-door-options-full-height,
    #lbg-door-options-stable {
        flex-wrap: nowrap;
        gap: 5px;
        justify-content: center;
    }

    .lbg-glass-variant img {
        max-width: 140px;
        margin: 8px 8px 0 8px; /* Adjusted, no bottom margin */
    }
}

@media screen and (max-width: 1024px) {
    .lbg-glass-variant img {
        max-width: 120px;
        margin: 6px 6px 0 6px;
    }
}

/* 768px–960px: Tighten spacing, increase image size */
@media screen and (min-width: 768px) and (max-width: 960px) {
    #lbg-door-options-split-glazed,
    #lbg-door-options-half-glazed,
    #lbg-door-options-1930s,
    #lbg-door-options-full-height,
    #lbg-door-options-stable {
        gap: 2px;
    }

    .lbg-glass-variant img {
        max-width: 150px;
        margin: 5px 5px 0 5px;
    }
}

/* 609px–767px: Force 4 in a row with smaller images */
@media screen and (min-width: 609px) and (max-width: 767px) {
    #lbg-door-options-split-glazed,
    #lbg-door-options-half-glazed,
    #lbg-door-options-1930s,
    #lbg-door-options-full-height,
    #lbg-door-options-stable {
        flex-wrap: nowrap;
        gap: 2px;
    }

    .lbg-glass-variant img {
        max-width: 115px;
        margin: 5px 5px 0 5px;
    }
}

/* Mobile (up to 608px) */
@media screen and (max-width: 608px) {
    #lbg-door-options-split-glazed,
    #lbg-door-options-half-glazed,
    #lbg-door-options-1930s,
    #lbg-door-options-full-height,
    #lbg-door-options-stable {
        flex-wrap: wrap;
        gap: 5px;
        justify-content: center;
    }

    .lbg-glass-variant {
        flex: none;
        margin: 10px;
    }

    .lbg-glass-variant img {
        width: 100%;
        max-width: 100px;
        margin: 0; /* No margins on image in mobile */
    }
}

/* Small mobile adjustments */
@media screen and (max-width: 583px) {
    .lbg-glass-variant img {
        max-width: 90px;
    }
}

@media screen and (max-width: 547px) {
    .lbg-glass-variant img {
        max-width: 150px;
    }
}

@media screen and (max-width: 402px) {
    .lbg-glass-variant img {
        max-width: 120px;
    }
}

@media screen and (max-width: 343px) {
    .lbg-glass-variant img {
        max-width: 100px;
    }
}

@media screen and (max-width: 302px) {
    .lbg-glass-variant img {
        max-width: 90px;
    }
}

@media screen and (max-width: 287px) {
    .lbg-glass-variant img {
        max-width: 90px;
    }
}

/* DOOR OPTIONS FOR EACH GLASS STYLE */

/* Door Options Gallery Styles */
#lbg-door-options-etched-glass,
#lbg-door-options-leaded-glass,
#lbg-door-options-bevelled-glass,
#lbg-door-options-fused-glass {
    display: flex;
    flex-wrap: nowrap; /* Keep 5 in a row by default */
    justify-content: center;
    gap: 20px; /* 15px gap for screens above 609px */
}

/* Add padding on left and right for screens 709px and above */
@media screen and (min-width: 709px) {
    #lbg-door-options-etched-glass,
    #lbg-door-options-leaded-glass,
    #lbg-door-options-bevelled-glass,
    #lbg-door-options-fused-glass {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.lbg-glass-variant {
    text-align: center;
    flex: 1; /* Allow proportional scaling */
    min-width: 0; /* Prevent flex items from refusing to shrink */
}

.lbg-glass-variant img {
    width: 100%;
    max-width: 155px; /* Max size for desktop */
    margin: 0; /* Remove all margins from images */
    cursor: pointer;
    transition: transform 0.2s ease;
}

.lbg-glass-variant img:hover {
    transform: scale(1.05);
}

.lbg-glass-variant p {
    margin: 5px 0 0 0;
    font-size: 14px;
}

/* Gradual scaling for desktop to tablet */
@media screen and (max-width: 1212px) {
    #lbg-door-options-etched-glass,
    #lbg-door-options-leaded-glass,
    #lbg-door-options-bevelled-glass,
    #lbg-door-options-fused-glass {
        flex-wrap: nowrap;
        gap: 15px;
    }

    .lbg-glass-variant img {
        max-width: 140px;
    }
}

@media screen and (max-width: 1024px) {
    .lbg-glass-variant img {
        max-width: 120px;
    }
}

/* 768px–960px: Adjust image size with 15px gap */
@media screen and (min-width: 768px) and (max-width: 960px) {
    #lbg-door-options-etched-glass,
    #lbg-door-options-leaded-glass,
    #lbg-door-options-bevelled-glass,
    #lbg-door-options-fused-glass {
        gap: 15px;
    }

    .lbg-glass-variant img {
        max-width: 130px;
    }
}

/* 609px–767px: Force 5 in a row with smaller images */
@media screen and (min-width: 609px) and (max-width: 767px) {
    #lbg-door-options-etched-glass,
    #lbg-door-options-leaded-glass,
    #lbg-door-options-bevelled-glass,
    #lbg-door-options-fused-glass {
        flex-wrap: nowrap;
        gap: 15px;
    }

    .lbg-glass-variant img {
        max-width: 100px;
    }
}

/* Mobile breakpoint (up to 600px) */
@media screen and (max-width: 600px) {
    #lbg-door-options-etched-glass,
    #lbg-door-options-leaded-glass,
    #lbg-door-options-bevelled-glass,
    #lbg-door-options-fused-glass {
        flex-wrap: wrap; /* Allow stacking */
        gap: 5px; /* 5px gap for mobile */
        justify-content: center;
    }

    .lbg-glass-variant {
        flex: none; /* Disable flex scaling for mobile */
        margin: 0 10px 10px 0; /* Adjusted to avoid top/left spacing */
    }

    .lbg-glass-variant img {
        width: 100%;
        max-width: 120px;
        margin: 0;
        height: auto;
    }
}

/* Larger screens (928px and up) */
@media screen and (min-width: 928px) {
    .lbg-glass-variant img {
        max-width: 155px;
    }
}

/* Mobile breakpoint (up to 518px) */
@media screen and (max-width: 518px) {
    .lbg-glass-variant img {
        max-width: 100px;
    }
}

/* Smaller screens (427px and below) */
@media screen and (max-width: 427px) {
    .lbg-glass-variant img {
        max-width: 80px;
    }
}

/* Mobile breakpoint (up to 367px) */
@media screen and (max-width: 367px) {
    .lbg-glass-variant img {
        max-width: 70px;
    }
	
    .lbg-glass-variant {
        margin: 0 6px 6px 0; /* Adjusted for smaller screens */
    }
}

/* Smaller screens (322px and below) */
@media screen and (max-width: 322px) {
    .lbg-glass-variant img {
        max-width: 70px;
    }
	
    .lbg-glass-variant p {
        font-size: 11px;
    }
}

/* Smaller screens (313px and below) */
@media screen and (max-width: 313px) {
    .lbg-glass-variant img {
        max-width: 60px;
    }
}

/* Past Works and Client Pages image buttons styling */

.past-client-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px; /* Increased from 5px to 15px */
    width: 100%;
    margin: 0;
    padding: 0;
}

.past-works-block,
.client-pages-block {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 50%;
    overflow: hidden;
}

.past-works-block a,
.client-pages-block a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    z-index: 2;
}

.past-works-block img,
.client-pages-block img {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 2.4s ease;
    z-index: 0;
    transform-origin: center center;
    will-change: transform; /* Added to optimize animation */
}

.past-works-block:hover img,
.client-pages-block:hover img {
    transform: scale(1.05);
}

.past-works-overlay,
.client-pages-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    z-index: 1;
}

.past-works-title,
.client-pages-title {
    position: absolute;
    bottom: 15px;
    left: 15px;
    top: auto;
    transform: none;
    color: #000000;
    font-size: clamp(0.9rem, 2.2vw, 1.25rem);
    font-family: 'Corbel', 'Arial', sans-serif;
    font-weight: 700;
    text-align: center;
    padding: 10px 25px;
    margin: 0;
    border: 1px solid #ffffff;
    z-index: 3;
    display: inline-block;
    white-space: nowrap;
    text-transform: uppercase;
    max-width: 90%;
    transition: color 0.3s cubic-bezier(0.5, 0, 1, 1);
    overflow: hidden;
}

.past-works-title::before,
.client-pages-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: -1;
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.5, 0, 1, 1);
}

.past-works-block:hover .past-works-title::before,
.client-pages-block:hover .client-pages-title::before {
    transform: translateX(100%);
}

.past-works-block:hover .past-works-title,
.client-pages-block:hover .client-pages-title {
    color: #ffffff;
}

@media (max-width: 1395px) and (min-width: 1025px) {
    .past-works-title,
    .client-pages-title {
        font-size: clamp(0.8rem, 1.8vw, 1.1rem);
    }
}

@media (max-width: 1161px) and (min-width: 1124px) {
    .past-works-title,
    .client-pages-title {
        font-size: clamp(0.75rem, 1.6vw, 1rem);
    }
}

@media (max-width: 1123px) and (min-width: 1025px) {
    .past-works-title,
    .client-pages-title {
        font-size: clamp(0.75rem, 1.6vw, 1rem);
    }
}

@media (max-width: 1024px) {
    .past-client-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .past-works-block,
    .client-pages-block {
        padding-bottom: 75%;
    }
    .past-works-title,
    .client-pages-title {
        font-size: clamp(0.9rem, 2vw, 1.1rem);
        padding: 10px 25px;
    }
}

@media (max-width: 768px) {
    .past-client-gallery {
        grid-template-columns: 1fr;
    }
    .past-works-block,
    .client-pages-block {
        padding-bottom: 50%;
    }
    .past-works-title,
    .client-pages-title {
        font-size: clamp(0.8rem, 2.5vw, 1rem);
        padding: 8px 20px;
    }
}

.wp-block-image .aligncenter>figcaption {
    text-align: center;
}

/* Text at the bottom of mondrian page etc */ 

.why-choose-our-glass-block {
	font-size: medium !important;
}

/* POPULAR GALLERIES SIDEBAR WIDGET STYLING */

.sidebar-popular-galleries-heading {
    color: #222;
    line-height: 1.0em;
    margin-bottom: 15px;
    font-family: "Helvetica", Arial, Helvetica, sans-serif;
    font-size: 1.7em;
    padding-bottom: 10px;
    border-bottom: solid;
    border-width: thin;
    border-color: #ddd;
}

.sidebar-popular-galleries-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.sidebar-popular-galleries-block {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 36.66%;
    overflow: hidden;
    border: solid;
    border-width: 1px;
    border-color: #464646; /* Default border color for screens < 961px */
}

.sidebar-popular-galleries-block a {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    z-index: 2;
}

.sidebar-popular-galleries-block img {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 2.4s ease;
    z-index: 0;
    transform-origin: center center;
    will-change: transform;
}

.sidebar-popular-galleries-block:hover img {
    transform: scale(1.05);
}

.sidebar-popular-galleries-block .sidebar-popular-galleries-shade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    z-index: 1;
}

.sidebar-popular-galleries-block .sidebar-popular-galleries-label {
    color: #000000;
    font-size: clamp(0.8rem, 2.2vw, 1.2rem);
    font-family: 'Corbel', 'Arial', sans-serif;
    font-weight: 700;
    text-align: center;
    padding: 5px 17px;
    margin: 0;
    border: 1px solid #ffffff;
    z-index: 3;
    display: inline-block;
    white-space: nowrap;
    text-transform: uppercase;
    max-width: 85%;
    transition: color 0.3s cubic-bezier(0.5, 0, 1, 1);
    overflow: hidden;
    line-height: 1.2;
    position: absolute;
    bottom: 14px;
    right: 14px;
    transform: none;
}

.sidebar-popular-galleries-block .sidebar-popular-galleries-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: -1;
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.5, 0, 1, 1);
}

.sidebar-popular-galleries-block:hover .sidebar-popular-galleries-label::before {
    transform: translateX(100%);
}

.sidebar-popular-galleries-block:hover .sidebar-popular-galleries-label {
    color: #ffffff;
}

@media (min-width: 961px) {
    .sidebar-popular-galleries-block {
        border-color: #8d8d8d; /* Border color for screens >= 961px */
    }
}

@media (max-width: 1395px) and (min-width: 1025px) {
    .sidebar-popular-galleries-block .sidebar-popular-galleries-label {
        font-size: clamp(0.9rem, 2vw, 1.2rem);
    }
}

@media (max-width: 1296px) and (min-width: 1229px) {
    .sidebar-popular-galleries-block .sidebar-popular-galleries-label {
        font-size: clamp(0.8rem, 1.8vw, 1.0rem);
        padding: 5px 16px;
    }
}

@media (max-width: 1228px) and (min-width: 1025px) {
    .sidebar-popular-galleries-block .sidebar-popular-galleries-label {
        font-size: clamp(0.7rem, 1.6vw, 0.9rem);
        padding: 4px 14px;
    }
}

@media (max-width: 1161px) and (min-width: 1025px) {
    .sidebar-popular-galleries-block .sidebar-popular-galleries-label {
        font-size: clamp(0.7rem, 1.8vw, 0.9rem);
        padding: 5px 15px;
    }
}

@media (max-width: 1024px) {
    .sidebar-popular-galleries-block .sidebar-popular-galleries-label {
        font-size: clamp(0.7rem, 1.8vw, 0.9rem);
        padding: 5px 15px;
    }
}

@media (max-width: 768px) {
    .sidebar-popular-galleries-block .sidebar-popular-galleries-label {
        font-size: clamp(0.9rem, 2.7vw, 1.2rem);
        padding: 10px 25px;
    }
}

@media (max-width: 960px) {
    .sidebar-popular-galleries-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .sidebar-popular-galleries-block {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 75%;
        overflow: hidden;
    }

    .sidebar-popular-galleries-block a {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        text-decoration: none;
        z-index: 2;
    }

    .sidebar-popular-galleries-block img {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 2.4s ease;
        z-index: 0;
        transform-origin: center center;
        will-change: transform;
    }

    .sidebar-popular-galleries-block:hover img {
        transform: scale(1.05);
    }

    .sidebar-popular-galleries-block .sidebar-popular-galleries-shade {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
        z-index: 1;
    }

    .sidebar-popular-galleries-block .sidebar-popular-galleries-label {
        position: absolute;
        bottom: 15px;
        left: 15px;
        right: auto;
        top: auto;
        transform: none;
        color: #000000;
        font-size: clamp(0.85rem, 2.5vw, 1.3rem);
        font-family: 'Corbel', 'Arial', sans-serif;
        font-weight: 700;
        text-align: center;
        padding: clamp(8px, 2vw, 10px) clamp(22px, 3vw, 28px);
        margin: 0;
        border: 1px solid #ffffff;
        z-index: 3;
        display: inline-block;
        white-space: nowrap;
        text-transform: uppercase;
        max-width: 90%;
        transition: color 0.3s cubic-bezier(0.5, 0, 1, 1);
        overflow: hidden;
    }

    .sidebar-popular-galleries-block .sidebar-popular-galleries-label::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.9);
        z-index: -1;
        transform: translateX(0);
        transition: transform 0.3s cubic-bezier(0.5, 0, 1, 1);
    }

    .sidebar-popular-galleries-block:hover .sidebar-popular-galleries-label::before {
        transform: translateX(100%);
    }

    .sidebar-popular-galleries-block:hover .sidebar-popular-galleries-label {
        color: #ffffff;
    }

    @media (max-width: 960px) and (min-width: 769px) {
        .sidebar-popular-galleries-wrapper {
            grid-template-columns: repeat(2, 1fr);
        }
        .sidebar-popular-galleries-block {
            padding-bottom: 75%;
        }
        .sidebar-popular-galleries-block .sidebar-popular-galleries-label {
            font-size: clamp(0.85rem, 2.5vw, 1.3rem);
            padding: clamp(8px, 2vw, 10px) clamp(22px, 3vw, 28px);
            border-width: 1px;
        }
    }

    @media (max-width: 768px) {
        .sidebar-popular-galleries-wrapper {
            grid-template-columns: 1fr;
        }
        .sidebar-popular-galleries-block {
            padding-bottom: 50%;
        }
        .sidebar-popular-galleries-block .sidebar-popular-galleries-label {
            font-size: clamp(0.8rem, 2.5vw, 1rem);
            padding: 7px 22px;
            border-width: 1px;
        }
    }

    @media (max-width: 768px) and (min-width: 580px) {
        .sidebar-popular-galleries-wrapper {
            grid-template-columns: repeat(2, 1fr) !important;
        }
        .sidebar-popular-galleries-block {
            padding-bottom: 100% !important;
        }
        .sidebar-popular-galleries-block .sidebar-popular-galleries-label {
            font-size: clamp(0.8rem, 2.5vw, 1rem);
            padding: 7px 22px;
            border-width: 1px;
        }
    }

    @media (max-width: 579px) and (min-width: 431px) {
        .sidebar-popular-galleries-block .sidebar-popular-galleries-label {
            font-size: clamp(0.9rem, 3vw, 1.3rem);
            padding: clamp(8px, 2.5vw, 10px) clamp(24px, 5vw, 28px);
            border-width: 1px;
        }
    }

    @media (max-width: 500px) {
        .sidebar-popular-galleries-wrapper {
            gap: 10px;
        }
    }
}

#sidebar .widget a:hover, .widget a:active {
    text-decoration: none;
}

/* All gallery image links - Etched, Leaded, Bevelled, Fused, Client Pages, Past Works Etc. */

.lg-standard-gallery-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.lg-standard-gallery-block {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 50%;
    overflow: hidden;
    border: solid;
    border-width: 1px;
    border-color: #464646;
}

.lg-standard-gallery-block a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    z-index: 2;
}

.lg-standard-gallery-block img {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.01); /* Slight scale to ensure full coverage */
    transition: transform 2.4s ease;
    z-index: 0;
    transform-origin: center center;
    will-change: transform;
}

.lg-standard-gallery-block:hover img {
    transform: scale(1.06); /* Adjusted to account for initial scale */
}

.lg-standard-gallery-block .lg-standard-gallery-shade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    z-index: 1;
}

.lg-standard-gallery-block .lg-standard-gallery-label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    top: auto;
    transform: none;
    color: #000000;
    font-size: clamp(0.9rem, 2.2vw, 1.25rem);
    font-family: 'Corbel', 'Arial', sans-serif;
    font-weight: 700;
    text-align: center;
    padding: 7px 22px;
    margin: 0;
    border: 1px solid #ffffff;
    z-index: 3;
    display: inline-block;
    white-space: nowrap;
    text-transform: uppercase;
    max-width: 90%;
    transition: color 0.3s cubic-bezier(0.5, 0, 1, 1);
    overflow: hidden;
}

.lg-standard-gallery-block .lg-standard-gallery-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: -1;
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.5, 0, 1, 1);
}

.lg-standard-gallery-block:hover .lg-standard-gallery-label::before {
    transform: translateX(100%);
}

.lg-standard-gallery-block:hover .lg-standard-gallery-label {
    color: #ffffff;
}

@media (max-width: 1395px) and (min-width: 1025px) {
    .lg-standard-gallery-block .lg-standard-gallery-label {
        font-size: clamp(0.8rem, 1.8vw, 1.1rem);
    }
}

@media (max-width: 1161px) and (min-width: 1124px) {
    .lg-standard-gallery-block .lg-standard-gallery-label {
        font-size: clamp(0.75rem, 1.6vw, 1rem);
    }
}

@media (max-width: 1123px) and (min-width: 1025px) {
    .lg-standard-gallery-block .lg-standard-gallery-label {
        font-size: clamp(0.75rem, 1.6vw, 1rem);
    }
}

@media (max-width: 1024px) and (min-width: 961px) {
    .lg-standard-gallery-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .lg-standard-gallery-block {
        padding-bottom: 75%;
    }
    .lg-standard-gallery-block .lg-standard-gallery-label {
        font-size: clamp(0.9rem, 2vw, 1.1rem);
        padding: 8px 24px;
        border-width: 1px;
    }
}

@media (max-width: 960px) and (min-width: 769px) {
    .lg-standard-gallery-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .lg-standard-gallery-block {
        padding-bottom: 75%;
    }
    .lg-standard-gallery-block .lg-standard-gallery-label {
        font-size: clamp(0.85rem, 2.5vw, 1.3rem);
        padding: clamp(8px, 2vw, 10px) clamp(22px, 3vw, 28px);
        border-width: 1px;
    }
}

@media (max-width: 768px) {
    .lg-standard-gallery-wrapper {
        grid-template-columns: 1fr;
    }
    .lg-standard-gallery-block {
        padding-bottom: 50%;
    }
    .lg-standard-gallery-block .lg-standard-gallery-label {
        font-size: clamp(0.8rem, 2.5vw, 1rem);
        padding: 7px 22px;
        border-width: 1px;
    }
}

@media (max-width: 768px) and (min-width: 580px) {
    .lg-standard-gallery-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .lg-standard-gallery-block {
        padding-bottom: 100% !important;
    }
    .lg-standard-gallery-block .lg-standard-gallery-label {
        font-size: clamp(0.8rem, 2.5vw, 1rem);
        padding: 7px 22px;
        border-width: 1px;
    }
}

@media (max-width: 579px) and (min-width: 431px) {
    .lg-standard-gallery-block .lg-standard-gallery-label {
        font-size: clamp(0.9rem, 3vw, 1.3rem);
        padding: clamp(8px, 2.5vw, 10px) clamp(24px, 5vw, 28px);
        border-width: 1px;
    }
}

@media (max-width: 500px) {
    .lg-standard-gallery-wrapper {
        gap: 10px;
    }
}

.lg-gallery-wrapper-more-transparent .lg-standard-gallery-shade {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}

/* HIDE FEATURE IMAGES ON PAGES SO THEY CAN STILL BE UPLOADED BUT THEY ONLY SHOW UP IN GOOGLE SEARCH RESULTS, NOT ON PAGES THEMSELVES */
.header-image {
    display: none;
}