/*
Theme Name: VMP Images
Theme URI: https://vmpimages.com
Author: Webart Technology
Author URI: https://webart.technology
Description: Custom WordPress theme for VMP Images.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vmpimages
Tags: custom-theme, one-column, custom-menu, featured-images, translation-ready
*/

/*
 * The design system lives in assets/css/ (style.css, inner-style.css,
 * responsive.css) and is enqueued ahead of this file. Add WordPress specific
 * overrides below so they win over the design stylesheets.
 */

/* AJAX form validation feedback */
.vmpimages-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-error {
	display: none;
	margin-top: 6px;
	font-size: 14px;
	line-height: 1.4;
	color: #d63638;
}

.form-error.is-visible {
	display: block;
}

.form-control.has-error,
.form-select.has-error,
.footer-form input.has-error {
	border-color: #d63638;
}

.form-status {
	display: none;
	margin: 16px 0 0;
	font-size: 15px;
	line-height: 1.5;
}

.form-status.is-error,
.form-status.is-success {
	display: block;
}

.form-status.is-error {
	color: #d63638;
}

.form-status.is-success {
	color: #1a7f37;
}

/* The status sits under the submit button, so give it room to breathe. */
.contact-form .form-status,
.modal-body .form-status {
	margin-top: 18px;
}

/*
 * Newsletter form. It sits on the dark footer panel, where the default red and
 * green fail contrast, so both states are lightened here.
 */
.footer-form .form-error {
	margin: 8px 0 10px;
	font-size: 13px;
	color: #ffb3b3;
}

.footer-form .form-status {
	margin-top: 10px;
	font-size: 13px;
	line-height: 1.5;
}

.footer-form .form-status.is-error {
	color: #ffb3b3;
}

.footer-form .form-status.is-success {
	color: #8fdcaa;
}

.footer-form input.has-error {
	outline: 1px solid #ffb3b3;
}

.blog-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.blog-pagination a,
.blog-pagination span {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid currentColor;
	text-decoration: none;
	line-height: 1;
}

.map-embed iframe {
	width: 100%;
	min-height: 420px;
	border: 0;
}

/* ---------------------------------------------------------------
   404 page
   --------------------------------------------------------------- */

.error-section {
	position: relative;
	padding: 120px 0 130px;
	overflow: hidden;
}

.error-inner {
	position: relative;
	max-width: 820px;
	margin: 0 auto;
	text-align: center;
}

.error-code {
	display: block;
	font-family: var(--headingFont, "elyarisregular", serif);
	font-size: 200px;
	line-height: 0.9;
	color: rgba(222, 113, 30, 0.11);
	letter-spacing: 0.04em;
	pointer-events: none;
	user-select: none;
}

/* Pull the content up so the figure reads as a watermark, but only far enough
   that the heading crosses the bottom of the digits rather than their middle,
   which would fight the text for legibility. */
.error-content {
	position: relative;
	margin-top: -52px;
}

.error-section .title {
	font-size: 56px;
	line-height: 1.1;
	margin-bottom: 18px;
}

.error-section .hero-divider {
	max-width: 420px;
	height: 1px;
	background: rgba(36, 22, 10, 0.18);
	margin: 0 auto 26px;
}

.error-desc {
	font-size: 20px;
	line-height: 1.6;
	color: #52504e;
	margin: 0 auto 32px;
	max-width: 620px;
}

.error-search {
	max-width: 460px;
	margin: 0 auto 34px;
}

.error-search .search-form {
	display: flex;
	gap: 10px;
}

.error-search .search-field {
	flex: 1 1 auto;
	height: 54px;
	padding: 0 18px;
	border: 1px solid rgba(36, 22, 10, 0.2);
	background: #fff;
	font-size: 16px;
}

.error-search .search-field:focus {
	outline: none;
	border-color: #de711e;
}

.error-search .search-submit {
	background: #de711e;
	color: #fff;
	border: none;
	padding: 0 26px;
	font-weight: 600;
	cursor: pointer;
}

.error-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
	margin-bottom: 46px;
}

.error-links {
	border-top: 1px solid rgba(36, 22, 10, 0.12);
	padding-top: 28px;
}

.error-links-title {
	display: block;
	font-size: 14px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #7a736c;
	margin-bottom: 16px;
}

.error-links ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.error-links a {
	color: #24160a;
	text-decoration: none;
	font-size: 17px;
	border-bottom: 1px solid transparent;
	transition: color 0.25s ease, border-color 0.25s ease;
}

.error-links a:hover {
	color: #de711e;
	border-bottom-color: #de711e;
}

@media (max-width: 991px) {
	.error-section {
		padding: 80px 0 90px;
	}

	.error-code {
		font-size: 140px;
	}

	.error-content {
		margin-top: -38px;
	}

	.error-section .title {
		font-size: 38px;
	}
}

@media (max-width: 575px) {
	.error-code {
		font-size: 100px;
	}

	.error-content {
		margin-top: -28px;
	}

	.error-search .search-form {
		flex-direction: column;
	}

	.error-search .search-submit {
		padding: 15px 26px;
	}
}

/* ---------------------------------------------------------------
   Default page template
   --------------------------------------------------------------- */

.page-body {
	font-size: 18px;
	line-height: 1.75;
	color: #3a352f;
}

.page-body > *:first-child {
	margin-top: 0;
}

.page-body h2,
.page-body h3,
.page-body h4,
.page-body h5 {
	font-family: var(--headingFont, "elyarisregular", serif);
	color: #24160a;
	margin: 42px 0 16px;
	line-height: 1.25;
}

.page-body h2 {
	font-size: 40px;
}

.page-body h3 {
	font-size: 30px;
}

.page-body h4 {
	font-size: 24px;
}

.page-body p {
	margin: 0 0 20px;
}

.page-body a {
	color: #de711e;
}

.page-body ul,
.page-body ol {
	margin: 0 0 22px;
	padding-left: 22px;
}

.page-body li {
	margin-bottom: 10px;
}

.page-body img {
	max-width: 100%;
	height: auto;
	margin: 14px 0;
}

.page-body blockquote {
	margin: 30px 0;
	padding: 8px 0 8px 26px;
	border-left: 3px solid #de711e;
	font-family: var(--headingFont, "elyarisregular", serif);
	font-size: 24px;
	line-height: 1.5;
	color: #24160a;
}

.page-body table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 24px;
}

.page-body th,
.page-body td {
	border: 1px solid rgba(36, 22, 10, 0.14);
	padding: 12px 14px;
	text-align: left;
}

.page-body th {
	background: #fdf6f1;
}

/* WordPress core required classes */
.alignleft {
	float: left;
	margin-right: 1.5em;
}

.alignright {
	float: right;
	margin-left: 1.5em;
}

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

.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;
	width: 1px;
	word-wrap: normal !important;
}

/*
 * Cart count on the header's shop link.
 *
 * Lives here rather than in shop.css because the header is on every page while
 * shop.css only loads on the shop itself. Positioned absolutely so it cannot
 * push the fixed width button out of shape.
 */
.right_btn a {
	position: relative;
}

.right_btn a span.vmp-cart-count {
	position: absolute;
	top: -9px;
	right: -13px;
	width: auto;
	height: auto;
	min-width: 19px;
	padding: 0 5px;
	border-radius: 19px;
	background: #de711e;
	color: #fff;
	font-family: "Work Sans", sans-serif;
	font-size: 11px;
	font-weight: 600;
	line-height: 19px;
	text-align: center;
}

.right_btn a span.vmp-cart-count.is-empty {
	display: none;
}

/*
 * Contact modal stacking.
 *
 * StellarNav puts the navigation on z-index 9900, and its fixed/mobile states on
 * 9999, well above Bootstrap's 1050/1055 for the backdrop and the modal. The
 * menu therefore painted straight through the open modal. Both are lifted above
 * the nav here. The custom properties are what Bootstrap 5.3 reads; the plain
 * z-index keeps it right if that ever changes.
 */
.modal-backdrop {
	--bs-backdrop-zindex: 10040;
	z-index: 10040;
}

.modal {
	--bs-modal-zindex: 10050;
	z-index: 10050;
}

/*
 * Hero single image.
 *
 * The circle collage lives in a fixed 629x600 box, with smaller fixed sizes at
 * each breakpoint in responsive.css. A single piece of artwork is rarely that
 * shape, so the modifier releases the fixed height and lets the image set it.
 * Selectors are two classes deep to outrank the fixed sizes in responsive.css
 * whatever order the stylesheets end up loading in.
 */
.hero-section .circle-gallery--single {
	display: block;
	width: 100%;
	max-width: 629px;
	height: auto;
	margin-left: auto;
}

.hero-section .circle-gallery--single .circle-wrapper {
	display: block;
	width: 100%;
	height: auto;
}

.hero-section .circle-gallery--single .hero-single-image {
	display: block;
	width: auto;
	max-width: 100%;
	/* Caps a tall portrait so it cannot stretch the hero out of proportion. */
	max-height: 760px;
	height: auto;
	margin-left: auto;
}

/*
 * Gutter between the copy and the artwork.
 *
 * Both sit in half width columns that meet in the middle, so with a large image
 * the two run straight into each other. The padding is on the image side and
 * scales with the breakpoint: the columns get narrower as the viewport does, so
 * a single fixed gap is either wasted space on a large screen or no gap at all
 * on a small one. Bootstrap sets border-box, so this shrinks the image rather
 * than pushing it out of its column.
 */
/*
 * The columns are col-md-6, so they sit side by side from 768px up and stack
 * below it. The gutter rules follow that boundary rather than the 992px one
 * used elsewhere in the theme, or the image would be centred and pushed down
 * while it was still beside the copy.
 */
@media (min-width: 768px) {
	.hero-section .circle-gallery--single {
		padding-left: 24px;
	}
}

@media (min-width: 992px) {
	.hero-section .circle-gallery--single {
		padding-left: 40px;
	}

	/* A little room on the copy too, so long lines never touch the gutter. */
	.hero-section.hero_home .hero-content,
	.hero-section.hero_home .hero-content p {
		padding-right: 20px;
	}
}

@media (min-width: 1200px) {
	.hero-section .circle-gallery--single {
		padding-left: 60px;
	}
}

@media (min-width: 1400px) {
	.hero-section .circle-gallery--single {
		padding-left: 80px;
	}
}

@media (max-width: 767px) {
	.hero-section .circle-gallery--single {
		max-width: 520px;
		/* Stacked now, so the separation becomes vertical instead. */
		margin: 50px auto 0;
		padding-left: 0;
	}

	.hero-section .circle-gallery--single .hero-single-image {
		max-height: 620px;
		margin: 0 auto;
	}
}

@media (max-width: 575px) {
	.hero-section .circle-gallery--single {
		margin-top: 40px;
	}

	.hero-section .circle-gallery--single .hero-single-image {
		max-height: 480px;
	}
}
