/* ==========================================================================
   Option 1 — Classic Gallery
   White background. Playfair Display headings + Montserrat metadata.
   Centered handwritten logo. 4-column top-aligned grid where every
   container is the same height (object-fit: contain + vertical-align: top)
   so every frame lines up at the top edge regardless of orientation.
   ========================================================================== */

:root {
	--o1-white: #ffffff;
	--o1-ink: #1a1a1a;
	--o1-mute: #6e6e6e;
	--o1-line: #e6e6e6;
	--o1-accent: #7a1a1a;
	--o1-serif: "Playfair Display", "Didot", Georgia, "Times New Roman", serif;
	--o1-sans:  "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--o1-radius: 12px;
}

/* -------------------------------------------------------------------------
   X/Pro: Customiser “Site Background” + optional Backstretch (.backstretch).
   Force Option 1’s own canvas so parent stack CSS cannot bleed through.
   ------------------------------------------------------------------------- */
html body.opt1,
body.opt1 {
	background-color: var(--o1-white) !important;
	background-image: none !important;
	background-size: auto !important;
	background-repeat: no-repeat !important;
	background-position: 0 0 !important;
	background-attachment: scroll !important;
}
body.opt1 .backstretch {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

body.opt1 {
	margin: 0;
	color: var(--o1-ink);
	font-family: var(--o1-sans);
	font-size: 14px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.opt1 * { box-sizing: border-box; }
body.opt1 img { display: block; max-width: 100%; }
body.opt1 a { color: inherit; text-decoration: none; }
body.opt1 h1, body.opt1 h2, body.opt1 h3 { font-family: var(--o1-serif); font-weight: 500; margin: 0; letter-spacing: -0.005em; }
body.opt1 p { margin: 0 0 1rem; }

.opt1-eyebrow {
	font-size: 10.5px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--o1-mute);
	margin: 0 0 18px;
	font-weight: 500;
}

/* -------------------------------------------------- Masthead w/ centered logo */
.opt1-head {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 32px;
	padding: 28px 56px 24px;
	border-bottom: 1px solid var(--o1-line);
	background: var(--o1-white);
	position: sticky; top: 0; z-index: 10;
}
.opt1-nav { display: flex; gap: 28px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; }
.opt1-nav--left  { justify-self: start; }
.opt1-nav--right { justify-self: end; }
.opt1-nav a { color: var(--o1-ink); padding-bottom: 2px; border-bottom: 1px solid transparent; transition: border-color .25s ease; }
.opt1-nav a:hover { border-bottom-color: var(--o1-ink); }

.opt1-logo { justify-self: center; display: inline-flex; align-items: center; }
.opt1-logo img {
	height: 72px;
	width: auto;
	max-width: 320px;
	object-fit: contain;
}
.opt1-logo__text {
	font-family: var(--o1-serif);
	font-style: italic;
	font-size: 36px;
	letter-spacing: -0.01em;
	color: var(--o1-ink);
}

/* -------------------------------------------------- Intro */
.opt1-intro {
	max-width: 900px;
	margin: 0 auto;
	padding: 80px 48px 40px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.opt1-intro > * {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}
.opt1-intro .opt1-eyebrow { max-width: 560px; }
.opt1-intro h1 {
	font-size: clamp(48px, 6vw, 88px);
	line-height: 1.02;
	font-weight: 400;
	margin: 0 0 20px;
	padding-bottom: 30px;
	text-align: center;
	text-wrap: balance;
}
.opt1-lede {
	max-width: 60ch;
	margin: 0 auto;
	color: var(--o1-mute);
	font-size: 15px;
	line-height: 1.7;
	text-align: center;
	text-wrap: balance;
}

/* -------------------------------------------------- Grid */
.opt1-grid-section {
	max-width: 1400px;
	margin: 0 auto;
	padding: 40px 48px 80px;
}

/* -------------------------------------------------- Mock filter + search row */
.opt1-filters {
	display: flex;
	align-items: stretch;
	gap: 12px;
	padding: 20px 0;
	margin-bottom: 16px;
	border-top: 1px solid var(--o1-line);
	border-bottom: 1px solid var(--o1-line);
	flex-wrap: wrap;
}
.opt1-filter {
	appearance: none;
	background: var(--o1-white);
	border: 1px solid var(--o1-line);
	color: var(--o1-ink);
	padding: 0 22px;
	height: 44px;
	font-family: var(--o1-sans);
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-weight: 500;
	cursor: pointer;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	line-height: 1;
}
.opt1-filter:hover { border-color: var(--o1-ink); }
.opt1-filter:focus-visible { outline: 2px solid var(--o1-ink); outline-offset: 2px; }
.opt1-filter--trigger { min-width: 140px; justify-content: space-between; }
.opt1-filter__plus {
	font-family: var(--o1-serif);
	font-size: 20px;
	font-weight: 400;
	line-height: 0;
	letter-spacing: 0;
	color: var(--o1-ink);
}

.opt1-search {
	position: relative;
	flex: 1 1 280px;
	display: inline-flex;
	align-items: center;
	background: var(--o1-white);
	border: 1px solid var(--o1-line);
	padding: 0 18px;
	height: 44px;
	min-width: 0;
	transition: border-color .2s ease;
}
.opt1-search:focus-within { border-color: var(--o1-ink); }
.opt1-search__icon {
	color: var(--o1-mute);
	flex: none;
	margin-right: 10px;
}
.opt1-search__input {
	appearance: none;
	border: 0;
	outline: 0;
	background: transparent;
	flex: 1 1 auto;
	min-width: 0;
	font-family: var(--o1-sans);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.02em;
	color: var(--o1-ink);
	padding: 0;
}
.opt1-search__input::placeholder {
	color: var(--o1-mute);
	letter-spacing: 0.01em;
}
.opt1-search__input::-webkit-search-cancel-button { display: none; }

.opt1-grid-meta {
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--o1-mute);
	margin: 0 0 56px;
	text-align: right;
}

/*
 * Fixed-height, top-aligned 4-column grid.
 * Every tile reserves the same amount of vertical space for its image,
 * which means portraits and landscapes both align cleanly at the top edge.
 */
.opt1-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 56px 32px;
	vertical-align: top;
}
.opt1-tile { margin: 0; }
.opt1-tile__link {
	display: block;
	color: inherit;
}
.opt1-tile__frame {
	position: relative;
	width: 100%;
	display: block;
	background: transparent;
	transition: transform .35s ease;
}
.opt1-tile__frame img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: top;
	transition: transform .35s ease, filter .3s ease, opacity .3s ease;
}
.opt1-tile:hover .opt1-tile__frame img { transform: translateY(-2px); }

/* Classic gallery "sold dot" — a small red disc with a white halo
   placed at the top-right of the image, exactly as real galleries do. */
.opt1-tile__sold-dot {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--o1-accent);
	box-shadow:
		0 0 0 4px rgba(255, 255, 255, 0.92),
		0 2px 6px rgba(0, 0, 0, 0.14);
	z-index: 2;
	pointer-events: none;
}
.opt1-tile.sold .opt1-tile__frame img {
	filter: saturate(0.55);
	opacity: 0.88;
}
.opt1-tile.sold:hover .opt1-tile__frame img {
	filter: saturate(0.65);
	opacity: 0.94;
}
.opt1-tile.sold .opt1-tile__title { color: var(--o1-mute); }

.opt1-tile__meta {
	margin-top: 16px;
	text-align: center;
	font-family: var(--o1-sans);
	font-size: 12px;
	line-height: 1.5;
}
.opt1-tile__title {
	font-family: var(--o1-serif);
	font-style: italic;
	font-weight: 400;
	font-size: 17px;
	letter-spacing: -0.005em;
	color: var(--o1-ink);
	margin: 0 0 4px;
}
.opt1-tile__line {
	color: var(--o1-mute);
	font-size: 11px;
	letter-spacing: 0.05em;
	margin: 0 0 4px;
}
.opt1-tile__price {
	font-weight: 500;
	letter-spacing: 0.1em;
	font-size: 12px;
	color: var(--o1-ink);
	margin: 0;
	text-transform: uppercase;
}
.opt1-sold {
	color: var(--o1-accent);
	font-variant: small-caps;
	letter-spacing: 0.24em;
}

/* -------------------------------------------------- Pagination */
.opt1-pagination {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 80px;
	padding-top: 32px;
	border-top: 1px solid var(--o1-line);
	gap: 24px;
	flex-wrap: wrap;
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-weight: 500;
}
.opt1-pagination a,
.opt1-pagination span {
	color: var(--o1-ink);
	padding: 6px 0;
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease;
}
.opt1-pagination a:hover { border-bottom-color: var(--o1-ink); }
.opt1-pagination__prev,
.opt1-pagination__next { cursor: default; color: var(--o1-ink); }
.opt1-pagination__prev--disabled { color: var(--o1-mute); }

.opt1-pagination__pages {
	list-style: none; margin: 0; padding: 0;
	display: flex; gap: 22px;
	font-family: var(--o1-serif);
	font-style: italic;
	font-size: 16px;
	letter-spacing: 0;
	text-transform: none;
}
.opt1-pagination__pages a,
.opt1-pagination__pages span {
	padding: 4px 2px;
	letter-spacing: 0;
}
.opt1-pagination__num { color: var(--o1-mute); cursor: default; }
.opt1-pagination__current { color: var(--o1-accent); border-bottom: 1px solid var(--o1-accent); }

/* -------------------------------------------------- About */
.opt1-about { padding: 120px 0; border-top: 1px solid var(--o1-line); background: #fafafa; }
.opt1-about__grid {
	max-width: 1100px; margin: 0 auto; padding: 0 48px;
	display: grid; grid-template-columns: 1fr 2fr; gap: 64px;
}
.opt1-about__grid h2 {
	font-size: clamp(32px, 4vw, 52px);
	font-weight: 400;
	font-style: italic;
}
.opt1-about__lead {
	font-family: var(--o1-serif);
	font-style: italic;
	font-size: 28px !important;
	line-height: 1.4;
	margin-bottom: 20px;
	color: var(--o1-ink);
}
.opt1-about__body p { font-size: 14px; color: var(--o1-ink); }
.opt1-facts {
	margin: 28px 0;
	padding: 24px 0 0;
	border-top: 1px solid var(--o1-line);
	display: grid; gap: 14px;
}
.opt1-facts > div { display: grid; grid-template-columns: 140px 1fr; gap: 20px; font-size: 13px; }
.opt1-facts dt {
	font-size: 10.5px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--o1-mute);
	padding-top: 3px;
}
.opt1-facts dd { margin: 0; }

.opt1-btn {
	display: inline-block;
	margin-top: 16px;
	border: 1px solid var(--o1-ink);
	padding: 14px 26px;
	font-size: 11px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	font-weight: 500;
	transition: background .2s ease, color .2s ease;
}
.opt1-btn:hover { background: var(--o1-ink); color: var(--o1-white); }

/* -------------------------------------------------- Footer */
.opt1-foot {
	padding: 28px 56px;
	border-top: 1px solid var(--o1-line);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--o1-mute);
}
.opt1-foot__inner { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* -------------------------------------------------- Responsive */
@media (max-width: 1100px) {
	.opt1-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
	.opt1-head { padding: 20px 24px; grid-template-columns: 1fr; gap: 14px; }
	.opt1-nav--left, .opt1-nav--right { justify-self: center; }
	.opt1-logo img { height: 56px; }
	.opt1-intro { padding: 56px 24px 24px; }
	.opt1-grid-section { padding: 24px 24px 64px; }
	.opt1-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; }
	.opt1-pagination { justify-content: center; text-align: center; }
	.opt1-about__grid { grid-template-columns: 1fr; gap: 24px; padding: 0 24px; }
	.opt1-foot { padding: 24px; }
	.opt1-foot__inner { justify-content: center; text-align: center; }
	.opt1-facts > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 480px) {
	.opt1-grid { grid-template-columns: 1fr; gap: 32px; }
}
