/*
Theme Name: JSG Automotive
Theme URI: https://jsgautomotive.co.uk/
Author: sab-graphics
Author URI: http://www.sab-graphics.com
Description: Bespoke theme for JSG Automotive, a vehicle servicing, repair, valeting and detailing business in the East Midlands. It recreates the original jsgautomotive.co.uk design as an editable, responsive WordPress theme. Pair it with the JSG Automotive Core plugin for gallery projects, the enquiry form, legacy URL redirects and the one-click content import.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jsg-automotive
Tags: custom-menu, custom-logo, custom-header, featured-images, one-column, right-sidebar, threaded-comments
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	--jsg-black: #000;
	--jsg-blue: #2183c6;
	--jsg-text: #b7b7b7;
	--jsg-heading: #d9d9d9;
	--jsg-muted: #7a7580;
	--jsg-orange: #f7a71d;
	--jsg-white: #fff;
	--jsg-site-width: 882px;
	--jsg-font: Verdana, Arial, sans-serif;
	--jsg-font-alt: Arial, Helvetica, sans-serif;
	--jsg-font-heading: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	padding: 0 0 20px;
	background: var(--jsg-black) url("assets/images/back.jpg") repeat-x 0 0;
	color: var(--jsg-text);
	font-family: var(--jsg-font);
	font-size: 13px;
	line-height: 1.75;
}

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

a {
	color: var(--jsg-text);
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover,
a:focus {
	color: var(--jsg-blue);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--jsg-blue);
	outline-offset: 2px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus,
.skip-link:focus {
	background: var(--jsg-white);
	clip: auto !important;
	clip-path: none;
	color: var(--jsg-black);
	display: block;
	font-size: 14px;
	height: auto;
	left: 6px;
	padding: 12px 20px;
	top: 6px;
	width: auto;
	z-index: 100000;
}

/* ==========================================================================
   3. Site frame
   ========================================================================== */
.site {
	width: var(--jsg-site-width);
	max-width: 100%;
	margin: 0 auto;
}

/* Header: logo on the left, header photo and tab menu on the right. */
.site-header {
	display: grid;
	grid-template-columns: 350px 500px;
	justify-content: space-between;
	align-items: start;
	width: 880px;
	max-width: 100%;
	min-height: 215px;
	margin: 0 auto 5px;
}

.site-branding {
	position: relative;
	height: 215px;
}

.site-branding .custom-logo-link,
.site-branding .site-logo {
	display: block;
	line-height: 0;
}

.site-branding img {
	display: block;
	width: auto;
	max-height: 215px;
}

.header-right {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.header-image {
	line-height: 0;
}

.header-image img {
	display: block;
	width: 500px;
	height: 120px;
	object-fit: cover;
}

/* Tab menu */
.main-navigation {
	position: relative;
	width: 500px;
	max-width: 100%;
	min-height: 70px;
	background: url("assets/images/menu.png") no-repeat 0 0;
	background-size: 100% 70px;
	border-radius: 10px 10px 0 0;
}

.main-navigation ul {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation li {
	position: relative;
	flex: 1 1 100px;
	margin: 0;
	padding: 0;
}

.main-navigation a {
	display: block;
	height: 70px;
	padding: 5px 0 0 10px;
	color: var(--jsg-white);
	font-family: var(--jsg-font);
	font-size: 14px;
	line-height: 40px;
	white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a,
.main-navigation .current_page_parent > a {
	background: url("assets/images/nav_selected.png") no-repeat 0 0;
	background-size: 100% 70px;
	color: var(--jsg-blue);
}

/* Sub-menus (none on the original site, but supported). */
.main-navigation ul ul {
	display: none;
	position: absolute;
	top: 70px;
	left: 0;
	z-index: 50;
	min-width: 180px;
	flex-direction: column;
	background: #0b0b0b;
	border: 1px solid var(--jsg-blue);
}

.main-navigation ul ul a {
	height: auto;
	padding: 6px 12px;
	line-height: 1.6;
	background: none !important;
}

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
	display: flex;
}

.menu-toggle {
	display: none;
}

/* Rounded blue-edged panels (content box and footer box). */
.panel {
	width: 100%;
}

.panel-cap {
	height: 20px;
	border-style: solid;
	border-width: 0 20px;
	border-color: transparent;
}

.panel-cap--top {
	border-image: url("assets/images/topbar.png") 0 20 fill / 0 20px stretch;
}

.panel-cap--bottom {
	border-image: url("assets/images/bottombar.png") 0 20 fill / 0 20px stretch;
}

.panel-body {
	background: var(--jsg-black);
	border-left: 1px solid var(--jsg-blue);
	border-right: 1px solid var(--jsg-blue);
}

/* ==========================================================================
   4. Content area and sidebar
   ========================================================================== */
.content-area {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 265px;
	padding-left: 14px;
}

.content-area--full {
	grid-template-columns: minmax(0, 1fr);
}

.site-main {
	min-width: 0;
	min-height: 520px;
	padding-bottom: 40px;
	border-right: 1px solid var(--jsg-blue);
}

.content-area--full .site-main {
	border-right: 0;
	padding-right: 14px;
}

/* Page heading recreates the original grey title graphics, reflection included. */
.page-heading {
	margin: 30px 0 22px;
	padding: 0 20px 0 24px;
	color: var(--jsg-heading);
	font-family: var(--jsg-font-heading);
	font-size: 24px;
	font-weight: 300;
	letter-spacing: 0;
	line-height: 30px;
	-webkit-box-reflect: below -10px linear-gradient(transparent 45%, rgba(255, 255, 255, 0.22));
}

.entry-content {
	padding: 0 20px 0 0;
}

.entry-content > * {
	margin-left: 0;
	margin-right: 0;
}

.entry-content p {
	margin: 0;
	padding: 20px 0 0 20px;
	color: var(--jsg-text);
	font-size: 13px;
	line-height: 1.75em;
}

.entry-content a {
	color: var(--jsg-text);
	font-family: var(--jsg-font-alt);
}

.entry-content p a,
.entry-content li a {
	border-bottom: 1px dotted rgba(183, 183, 183, 0.5);
}

.entry-content a:hover,
.entry-content a:focus {
	color: var(--jsg-blue);
	border-bottom-color: var(--jsg-blue);
}

.entry-content h1,
.entry-content h2 {
	margin: 24px 0 0;
	padding: 0 0 0 20px;
	font-family: var(--jsg-font-alt);
	font-weight: normal;
	line-height: 1.4;
}

.entry-content h1 {
	color: var(--jsg-heading);
	font-size: 20px;
}

.entry-content h2 {
	color: var(--jsg-orange);
	font-size: 16px;
}

.entry-content h3 {
	margin: 36px 0 0;
	padding: 0 0 0 20px;
	border-bottom: 1px solid var(--jsg-blue);
	color: var(--jsg-blue);
	font-size: 15px;
	font-weight: bold;
	line-height: 2em;
}

.entry-content h4,
.entry-content h5 {
	margin: 18px 0 0;
	padding: 0 0 0 20px;
	color: var(--jsg-blue);
	font-size: 12px;
	font-weight: bold;
	line-height: 2em;
}

.entry-content ul,
.entry-content ol {
	margin: 0;
	padding: 18px 0 0 42px;
	color: var(--jsg-text);
}

.entry-content li {
	padding: 1px 0;
	line-height: 1.6;
}

.entry-content li::marker {
	color: var(--jsg-blue);
}

.entry-content strong,
.entry-content b {
	color: #d4d4d4;
}

.entry-content em {
	color: #a3a3a3;
}

.entry-content blockquote {
	margin: 20px 0 0 20px;
	padding: 0 0 0 16px;
	border-left: 3px solid var(--jsg-blue);
}

.entry-content hr {
	margin: 30px 0 0 20px;
	border: 0;
	border-top: 1px solid var(--jsg-blue);
}

.entry-content table {
	width: calc(100% - 20px);
	margin: 20px 0 0 20px;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 6px 8px;
	border: 1px solid #333;
	text-align: left;
}

.entry-content .wp-block-image,
.entry-content figure {
	margin: 30px 0 0 20px;
}

.entry-content .wp-block-image.aligncenter,
.entry-content .aligncenter {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.entry-content .wp-block-image img {
	display: block;
	margin: 0 auto;
}

.entry-content .wp-block-image figcaption {
	color: var(--jsg-muted);
	font-size: 11px;
	text-align: center;
}

.entry-content .alignleft {
	float: left;
	margin: 20px 20px 10px 20px;
}

.entry-content .alignright {
	float: right;
	margin: 20px 0 10px 20px;
}

.entry-content::after {
	content: "";
	display: table;
	clear: both;
}

/* Services price list */
.entry-content .price-intro {
	color: #d4d4d4;
}

.entry-content .service-note {
	color: #a3a3a3;
	font-style: italic;
}

/* Contact page */
.entry-content .contact-address {
	line-height: 2.3em;
}

.entry-content .contact-lines {
	line-height: 2em;
}

/* Sidebar */
.site-sidebar {
	min-width: 0;
	padding: 20px 17px 30px;
	text-align: center;
}

.site-sidebar p,
.site-sidebar .widget-title {
	margin: 0;
	padding: 0 0 14px;
	color: var(--jsg-text);
	font-size: 14px;
	line-height: 1.7em;
	text-align: center;
}

.site-sidebar .widget {
	margin: 0 0 6px;
}

.site-sidebar figure,
.site-sidebar .wp-block-image {
	margin: 0 0 4px;
}

.site-sidebar img {
	display: block;
	margin: 0 auto;
}

.site-sidebar a:hover img,
.site-sidebar a:focus img {
	filter: brightness(1.12);
}

/* ==========================================================================
   5. Gallery: projects grid, project galleries and the lightbox
   ========================================================================== */
.project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 18px;
	margin: 26px 0 0 20px;
	padding: 0;
	list-style: none;
}

.entry-content .project-grid {
	padding: 0;
}

.project-grid li {
	margin: 0;
	padding: 0;
}

.project-card,
.entry-content .project-card {
	display: block;
	border: 0;
	color: var(--jsg-text);
	font-family: var(--jsg-font);
	font-size: 12px;
	text-align: center;
}

.project-card__image {
	display: block;
	padding: 3px;
	border: 1px solid #555;
	background: #111;
	box-shadow: 0 0 8px rgba(33, 131, 198, 0.25);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.project-card__image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.project-card__title {
	display: block;
	padding-top: 7px;
	line-height: 1.4;
}

.project-card:hover .project-card__image,
.project-card:focus .project-card__image {
	border-color: var(--jsg-blue);
	box-shadow: 0 0 12px rgba(33, 131, 198, 0.6);
}

.project-card:hover,
.project-card:focus {
	color: var(--jsg-blue);
}

.project-title {
	margin: 0;
	padding: 0 0 0 20px;
	border-bottom: 1px solid var(--jsg-blue);
	color: var(--jsg-blue);
	font-size: 15px;
	font-weight: bold;
	line-height: 2em;
}

.project-hint {
	margin: 10px 0 0;
	padding: 0 0 0 20px;
	color: var(--jsg-blue);
	font-size: 12px;
	font-weight: bold;
	line-height: 2em;
}

.project-nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 36px 0 0 20px;
	padding-top: 10px;
	border-top: 1px solid #222;
	font-family: var(--jsg-font-alt);
	font-size: 13px;
}

.project-nav a {
	color: var(--jsg-text);
}

.project-nav a:hover {
	color: var(--jsg-blue);
}

/* Core gallery block: framed thumbnails like the original gallery pages. */
.entry-content .wp-block-gallery {
	margin: 26px 0 0 20px;
}

.entry-content .wp-block-gallery.has-nested-images {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.entry-content .wp-block-gallery.has-nested-images.columns-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entry-content .wp-block-gallery.has-nested-images.columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image {
	width: auto !important;
	margin: 0 !important;
	padding: 3px;
	border: 1px solid #555;
	background: #111;
	transition: border-color 0.15s ease;
}

.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image > a {
	display: block;
	width: 100%;
}

.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:hover {
	border-color: var(--jsg-blue);
}

.entry-content .wp-block-gallery a {
	border: 0;
}

.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent);
	font-size: 11px;
}

/* Lightbox (assets/js/site.js) */
.jsg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 50px 60px;
	background: rgba(0, 0, 0, 0.92);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.jsg-lightbox[hidden] {
	display: none;
}

.jsg-lightbox.is-open {
	opacity: 1;
}

.jsg-lightbox__figure {
	margin: 0;
	text-align: center;
}

.jsg-lightbox__img {
	display: block;
	max-width: calc(100vw - 140px);
	max-height: calc(100vh - 130px);
	margin: 0 auto;
	border: 4px solid #fff;
	box-shadow: 0 0 25px rgba(33, 131, 198, 0.6);
}

.jsg-lightbox__caption {
	padding-top: 10px;
	color: var(--jsg-text);
	font-size: 12px;
}

.jsg-lightbox button {
	position: absolute;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--jsg-blue);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.jsg-lightbox button:hover,
.jsg-lightbox button:focus {
	background: var(--jsg-blue);
}

.jsg-lightbox__close {
	top: 12px;
	right: 12px;
}

.jsg-lightbox__prev {
	top: 50%;
	left: 10px;
	transform: translateY(-50%);
}

.jsg-lightbox__next {
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
}

body.jsg-lightbox-open {
	overflow: hidden;
}

/* ==========================================================================
   6. Enquiry form (JSG Automotive Core plugin)
   ========================================================================== */
.jsg-enquiry {
	margin: 20px 0 0 20px;
}

.entry-content .jsg-enquiry p,
.entry-content .jsg-notice p {
	padding: 0;
}

.jsg-enquiry__intro {
	margin: 0 0 14px;
}

.jsg-enquiry__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 16px;
}

.jsg-enquiry__field {
	margin: 0;
}

.jsg-enquiry__field--full {
	grid-column: 1 / -1;
}

.jsg-enquiry label {
	display: block;
	margin-bottom: 4px;
	color: #d4d4d4;
	font-size: 12px;
}

.jsg-enquiry .required {
	color: var(--jsg-blue);
}

.jsg-enquiry input[type="text"],
.jsg-enquiry input[type="email"],
.jsg-enquiry input[type="tel"],
.jsg-enquiry select,
.jsg-enquiry textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #3a3a3a;
	border-radius: 3px;
	background: #0d0d0d;
	color: #e6e6e6;
	font-family: var(--jsg-font);
	font-size: 13px;
}

.jsg-enquiry textarea {
	min-height: 140px;
	resize: vertical;
}

.jsg-enquiry input:focus,
.jsg-enquiry select:focus,
.jsg-enquiry textarea:focus {
	border-color: var(--jsg-blue);
	outline: none;
	box-shadow: 0 0 0 1px var(--jsg-blue);
}

.jsg-enquiry [aria-invalid="true"] {
	border-color: #d9534f;
}

.jsg-enquiry__consent label {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	color: var(--jsg-text);
	font-size: 12px;
	line-height: 1.5;
}

.jsg-enquiry__consent input {
	margin-top: 3px;
}

.jsg-enquiry__error {
	display: block;
	margin-top: 4px;
	color: #ff7b72;
	font-size: 11px;
}

.jsg-enquiry__submit {
	display: inline-block;
	margin-top: 4px;
	padding: 10px 26px;
	border: 1px solid #5fb0e6;
	border-radius: 4px;
	background: linear-gradient(180deg, #3a9ee0 0%, #2183c6 45%, #135a8c 100%);
	color: #fff;
	font-family: var(--jsg-font);
	font-size: 14px;
	cursor: pointer;
}

.jsg-enquiry__submit:hover,
.jsg-enquiry__submit:focus {
	background: linear-gradient(180deg, #4fb0f0 0%, #2a92d8 45%, #1a6aa2 100%);
}

.jsg-enquiry__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.jsg-notice {
	margin: 20px 0 0 20px;
	padding: 12px 16px;
	border: 1px solid var(--jsg-blue);
	border-radius: 4px;
	background: rgba(33, 131, 198, 0.12);
	color: #e6e6e6;
}

.jsg-notice--error {
	border-color: #d9534f;
	background: rgba(217, 83, 79, 0.12);
}

.jsg-notice ul {
	margin: 6px 0 0;
	padding-left: 20px;
}

/* Site map shortcode */
.jsg-sitemap {
	margin: 0;
	padding: 18px 0 0 42px;
}

.jsg-sitemap li {
	padding: 3px 0;
}

.jsg-sitemap ul {
	padding: 4px 0 4px 22px;
}

/* ==========================================================================
   7. Blog, archives, search, 404 and comments (not used by the original site,
      but kept tidy in case posts are added)
   ========================================================================== */
.post-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.post-summary {
	margin: 0 0 10px;
	padding-bottom: 20px;
	border-bottom: 1px solid #1b1b1b;
}

.post-summary .entry-title {
	margin: 20px 0 0;
	padding-left: 20px;
	font-family: var(--jsg-font-alt);
	font-size: 17px;
	font-weight: normal;
}

.post-summary .entry-title a {
	color: var(--jsg-blue);
}

.entry-meta {
	padding: 4px 0 0 20px;
	color: var(--jsg-muted);
	font-size: 11px;
}

.pagination,
.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 26px 0 0 20px;
}

.nav-links a,
.nav-links span {
	padding: 4px 10px;
	border: 1px solid #333;
}

.nav-links .current {
	border-color: var(--jsg-blue);
	color: var(--jsg-blue);
}

.search-form {
	display: flex;
	gap: 8px;
	margin: 20px 0 0 20px;
}

.search-form .search-field {
	flex: 1;
	padding: 7px 10px;
	border: 1px solid #3a3a3a;
	background: #0d0d0d;
	color: #e6e6e6;
}

.search-form .search-submit {
	padding: 7px 14px;
	border: 1px solid var(--jsg-blue);
	background: var(--jsg-blue);
	color: #fff;
	cursor: pointer;
}

.comments-area {
	margin: 30px 0 0 20px;
}

.comments-area textarea,
.comments-area input[type="text"],
.comments-area input[type="email"],
.comments-area input[type="url"] {
	width: 100%;
	padding: 7px 10px;
	border: 1px solid #3a3a3a;
	background: #0d0d0d;
	color: #e6e6e6;
}

/* ==========================================================================
   8. Footer
   ========================================================================== */
.site-footer {
	margin-top: 0;
}

.site-footer .panel-body {
	padding: 5px 20px 22px;
	color: var(--jsg-blue);
	font-family: var(--jsg-font-alt);
	font-size: 12px;
	line-height: 1.5;
	text-align: center;
}

.site-footer p {
	margin: 0;
}

.site-footer a {
	color: var(--jsg-muted);
	font-size: 11px;
}

.site-footer a:hover,
.site-footer a:focus {
	color: var(--jsg-blue);
}

.footer-menu {
	display: inline;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu li {
	display: inline;
}

.footer-menu li + li::before {
	content: " | ";
	color: var(--jsg-muted);
	font-size: 11px;
}

/* ==========================================================================
   9. Intro splash page (page-templates/intro.php)
   ========================================================================== */
body.jsg-intro {
	background: var(--jsg-black);
}

.intro-splash {
	display: flex;
	min-height: 100vh;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.intro-splash a {
	display: block;
	line-height: 0;
	border-radius: 18px;
	box-shadow: 0 0 0 rgba(33, 131, 198, 0);
	transition: box-shadow 0.2s ease;
}

.intro-splash a:hover,
.intro-splash a:focus {
	box-shadow: 0 0 30px rgba(33, 131, 198, 0.35);
}

.intro-splash img {
	width: 700px;
}

/* ==========================================================================
   10. Responsive
   ========================================================================== */
@media (max-width: 900px) {
	.site {
		padding: 0 10px;
	}

	.site-header {
		grid-template-columns: 1fr;
		justify-items: center;
		min-height: 0;
		margin-bottom: 12px;
	}

	.site-branding {
		height: auto;
	}

	.site-branding img {
		max-height: 170px;
	}

	.header-right {
		width: 100%;
		gap: 10px;
		align-items: center;
	}

	.header-image {
		display: none;
	}

	.main-navigation {
		width: 100%;
		max-width: 620px;
	}

	.content-area {
		grid-template-columns: minmax(0, 1fr);
		padding-left: 0;
	}

	.site-main {
		min-height: 0;
		padding: 0 14px 30px 4px;
		border-right: 0;
	}

	.site-sidebar {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 10px;
		padding: 20px 10px 26px;
		border-top: 1px solid var(--jsg-blue);
	}

	.site-sidebar > * {
		flex: 0 1 240px;
	}

	.site-sidebar .widget {
		flex: 1 1 100%;
	}

	.site-sidebar .widget .wp-block-image,
	.site-sidebar .default-sidebar-image {
		display: inline-block;
		width: 240px;
		max-width: 100%;
		vertical-align: top;
	}
}

@media (max-width: 600px) {
	body {
		background-position: 0 -80px;
	}

	.site-branding img {
		max-height: 130px;
	}

	.main-navigation {
		min-height: 0;
		background: linear-gradient(180deg, #1e86d6 0%, #1a6eae 45%, #0d2f4f 100%);
		border-radius: 8px;
	}

	.menu-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding: 12px 16px;
		border: 0;
		background: transparent;
		color: #fff;
		font-family: var(--jsg-font);
		font-size: 15px;
		cursor: pointer;
	}

	.menu-toggle__bars {
		position: relative;
		width: 22px;
		height: 2px;
		background: currentColor;
		box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
	}

	.main-navigation .menu {
		display: none;
		flex-direction: column;
		padding-bottom: 6px;
	}

	.main-navigation.is-open .menu {
		display: flex;
	}

	.main-navigation li {
		flex: 1 1 auto;
	}

	.main-navigation a {
		height: auto;
		padding: 10px 16px;
		border-top: 1px solid rgba(255, 255, 255, 0.12);
		line-height: 1.4;
	}

	.main-navigation a:hover,
	.main-navigation a:focus,
	.main-navigation .current-menu-item > a,
	.main-navigation .current_page_item > a,
	.main-navigation .current-menu-ancestor > a,
	.main-navigation .current_page_parent > a {
		background: rgba(0, 0, 0, 0.55);
		color: #8cc8f2;
	}

	.main-navigation ul ul {
		display: flex;
		position: static;
		border: 0;
		background: transparent;
	}

	.main-navigation ul ul a {
		padding-left: 32px;
	}

	.page-heading {
		margin-top: 22px;
		font-size: 18px;
	}

	.entry-content p,
	.entry-content h1,
	.entry-content h2,
	.entry-content h3,
	.entry-content h4,
	.entry-content h5 {
		padding-left: 10px;
	}

	.entry-content ul,
	.entry-content ol {
		padding-left: 30px;
	}

	.entry-content .wp-block-image,
	.entry-content figure,
	.entry-content .wp-block-gallery,
	.project-grid,
	.jsg-enquiry,
	.jsg-notice,
	.project-nav {
		margin-left: 10px;
	}

	.project-grid,
	.entry-content .wp-block-gallery.has-nested-images,
	.entry-content .wp-block-gallery.has-nested-images.columns-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.jsg-enquiry__grid {
		grid-template-columns: 1fr;
	}

	.jsg-lightbox {
		padding: 50px 8px;
	}

	.jsg-lightbox__img {
		max-width: calc(100vw - 24px);
	}

	.jsg-lightbox__prev,
	.jsg-lightbox__next {
		top: auto !important;
		bottom: 12px;
		transform: none !important;
	}

	.jsg-lightbox__prev {
		left: calc(50% - 56px) !important;
	}

	.jsg-lightbox__next {
		right: calc(50% - 56px) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}

@media print {
	body {
		background: #fff;
		color: #000;
	}

	.main-navigation,
	.site-sidebar,
	.header-image,
	.panel-cap {
		display: none;
	}

	.panel-body,
	.site-main {
		border: 0;
		background: #fff;
	}

	.entry-content p,
	.entry-content li,
	.page-heading {
		color: #000;
	}
}
