/*
Theme Name: Gala Creates
Theme URI: https://galacreates.com
Author: Gala Creates
Description: Photography & film studio theme. Home page texts and images are edited in Appearance → Customize → "Gala: …" sections. Activating the theme hides the site from search engines (Settings → Reading).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: galacreates
*/

:root {
	--bg: #f7f6f3;
	--white: #fff;
	--ink: #1c1a18;
	--ink-2: #4a4642;
	--muted: #8d8882;
	--line: #d9d5cf;
	--panel: #efece8;
	--dark: #262524;

	--serif: "Newsreader", "Times New Roman", serif;
	--sans: "Jost", "Helvetica Neue", Arial, sans-serif;

	/* Layout: matches the mockup's 58px / 1024px side margin, capped for wide screens */
	--gutter: clamp(20px, 5.66vw, 120px);
	--max: 1680px;
	--inner: clamp(0px, 2.75vw, 56px);
	--gap: clamp(10px, 0.98vw, 22px);
	--ease: cubic-bezier(.22, .61, .36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-weight: 400;
	font-size: clamp(15px, 0.95vw, 18px);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, blockquote { margin: 0; }

.screen-reader-text,
.skip-link {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 1000;
	padding: 10px 16px; background: var(--white); color: var(--ink);
}
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.container {
	width: min(100% - 2 * var(--gutter), var(--max));
	margin-inline: auto;
}
.container--inner { padding-inline: var(--inner); }
.container--inner-pad { padding-inline: var(--inner); }

/* ---------- Shared bits ---------- */
.kicker {
	font-family: var(--sans);
	font-size: clamp(9px, 0.62vw, 12px);
	font-weight: 400;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--muted);
}
.kicker--light { color: rgba(255, 255, 255, .78); }
.kicker--muted { color: #a29d97; }

.rule {
	display: block;
	width: clamp(22px, 2.15vw, 40px);
	height: 1px;
	background: var(--line);
}
.rule--light { background: rgba(255, 255, 255, .55); }

.link {
	display: inline-flex;
	align-items: center;
	gap: clamp(12px, 1.2vw, 20px);
	font-family: var(--sans);
	font-size: clamp(10px, 0.72vw, 13px);
	font-weight: 400;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--ink);
	transition: gap .3s var(--ease), opacity .3s;
}
.link--light { color: #fff; }
.link:hover { gap: clamp(16px, 1.6vw, 28px); }
.arrow { flex: none; width: clamp(10px, .8vw, 14px); height: auto; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--white);
	border-bottom: 1px solid #ebe8e3;
}
.site-header__row {
	display: flex;
	align-items: center;
	height: clamp(64px, 4.7vw, 92px);
	gap: 24px;
}
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.logo__name {
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(18px, 1.66vw, 30px);
	letter-spacing: .035em;
	font-variation-settings: "opsz" 40;
}
.logo__sub {
	margin-top: .55em;
	font-size: clamp(6.5px, 0.52vw, 9.5px);
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--muted);
}
.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; gap: clamp(22px, 2.25vw, 48px); margin: 0; padding: 0; }
.nav__list a {
	font-size: clamp(10px, 0.72vw, 13px);
	letter-spacing: .18em;
	text-transform: uppercase;
	position: relative;
	padding-block: 6px;
}
.nav__list a::after {
	content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
	background: currentColor; transition: right .35s var(--ease);
}
.nav__list a:hover::after,
.nav__list .current-menu-item a::after { right: 0; }
.site-header__tools { display: flex; align-items: center; gap: 14px; margin-left: clamp(20px, 2.9vw, 56px); }
.icon-btn { width: 32px; height: 32px; display: grid; place-items: center; color: var(--ink-2); }
.icon-btn svg { width: clamp(13px, 1vw, 17px); height: auto; }
.menu-toggle { display: none; }
.menu-toggle span { display: block; width: 20px; height: 1px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-toggle span + span { margin-top: 6px; }
.menu-toggle { flex-direction: column; justify-content: center; }

.site-search { border-top: 1px solid #ebe8e3; background: var(--white); }
.site-search form { padding-block: 18px; }
.site-search input {
	width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent;
	font: 300 clamp(20px, 1.8vw, 32px)/1.3 var(--serif); padding: 8px 0; color: var(--ink); outline: none;
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	height: clamp(440px, 40.4vw, 940px);
	overflow: hidden;
	background: #b9a48a;
	color: #fff;
}
.hero__slide {
	position: absolute; inset: 0;
	opacity: 0; visibility: hidden;
	transition: opacity 1.2s var(--ease), visibility 0s linear 1.2s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.2s var(--ease); }
.hero__img {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; object-position: 60% 40%;
	transform: scale(1.04);
	transition: transform 8s linear;
}
.hero__slide.is-active .hero__img { transform: scale(1); }
.hero__slide::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(40, 30, 20, .28) 0%, rgba(40, 30, 20, .08) 45%, rgba(0, 0, 0, 0) 70%);
	pointer-events: none;
}
.hero__content {
	position: relative; z-index: 2; height: 100%;
	display: flex; flex-direction: column; justify-content: center;
	padding-top: clamp(40px, 3.6vw, 80px);
}
.hero__title {
	margin-top: clamp(18px, 1.6vw, 30px);
	font-family: var(--serif);
	font-weight: 300;
	font-size: clamp(46px, 5.7vw, 116px);
	line-height: .98;
	letter-spacing: -.012em;
	font-variation-settings: "opsz" 72;
}
.hero .rule { margin-top: clamp(22px, 2vw, 40px); }
.hero .link { margin-top: clamp(16px, 1.3vw, 26px); }
.hero__dots-wrap {
	position: absolute; left: 0; right: 0; bottom: clamp(22px, 2.6vw, 52px); z-index: 3;
	display: flex; justify-content: flex-end;
	margin-inline: auto;
	pointer-events: none;
}
.hero__dots { display: flex; gap: clamp(16px, 1.6vw, 30px); pointer-events: auto; }
.hero__dot {
	display: inline-flex; align-items: center; gap: 4px;
	font-size: clamp(9px, 0.66vw, 12px); letter-spacing: .14em; color: rgba(255, 255, 255, .75);
}
.hero__dot i { display: block; width: 0; height: 1px; background: currentColor; transition: width .5s var(--ease); }
.hero__dot.is-active { color: #fff; }
.hero__dot.is-active i { width: clamp(18px, 1.6vw, 30px); }

/* ---------- Categories ---------- */
.cats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--gap);
	padding-top: clamp(20px, 2.45vw, 48px);
}
.cat { display: block; }
.cat__media { display: block; overflow: hidden; aspect-ratio: 220 / 137; background: #e4dfd8; }
.cat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.cat:hover .cat__media img { transform: scale(1.04); }
.cat__label {
	display: flex; justify-content: space-between; align-items: flex-start;
	margin-top: clamp(12px, 1.25vw, 22px);
	font-size: clamp(10px, 0.78vw, 14px);
	line-height: 1.6;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.cat__label .arrow { margin-top: .5em; color: var(--ink-2); transition: transform .3s var(--ease); }
.cat:hover .cat__label .arrow { transform: translateX(4px); }

/* ---------- Featured film ---------- */
.film {
	position: relative;
	margin-top: clamp(40px, 4.4vw, 84px);
	background: var(--panel);
}
.film__slide { display: none; grid-template-columns: 56.3% 1fr; }
.film__slide.is-active { display: grid; animation: fadeIn .7s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.film__media {
	position: relative; display: block; overflow: hidden;
	aspect-ratio: 511 / 238;
	width: 100%;
}
.film__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.film__media:hover img { transform: scale(1.03); }
.play {
	position: absolute; left: 48%; top: 53%; transform: translate(-50%, -50%);
	width: clamp(38px, 3.8vw, 68px); aspect-ratio: 1; border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .85);
	display: grid; place-items: center; color: #fff;
	background: rgba(0, 0, 0, .08);
	backdrop-filter: blur(2px);
	transition: background .3s, transform .3s var(--ease);
}
.play svg { width: 30%; height: auto; margin-left: 8%; }
.film__media:hover .play { background: rgba(0, 0, 0, .22); transform: translate(-50%, -50%) scale(1.06); }
.film__panel {
	display: grid; grid-template-columns: 1fr 34%;
	align-items: start;
	gap: clamp(16px, 2vw, 40px);
	padding: clamp(26px, 3.3vw, 64px) 0 clamp(26px, 3.3vw, 64px) clamp(24px, 3.3vw, 64px);
}
.film__text { padding-top: clamp(20px, 2.2vw, 40px); }
.film__title {
	margin-top: clamp(14px, 1.3vw, 24px);
	font-family: var(--serif); font-weight: 300;
	font-size: clamp(32px, 3.4vw, 66px); line-height: 1.02; letter-spacing: -.01em;
	font-variation-settings: "opsz" 72;
}
.film__desc {
	margin-top: clamp(12px, 1.1vw, 22px);
	max-width: 30ch;
	font-size: clamp(11px, 0.82vw, 15px); line-height: 1.6; color: var(--ink-2); font-weight: 300;
}
.film .link { margin-top: clamp(22px, 2.3vw, 44px); }
.film__thumb { aspect-ratio: 122 / 126; overflow: hidden; margin-top: clamp(24px, 2.6vw, 52px); }
.film__thumb img { width: 100%; height: 100%; object-fit: cover; }
.film__count {
	position: absolute; top: clamp(16px, 1.65vw, 32px); right: clamp(14px, 1.5vw, 30px);
	font-size: clamp(8px, 0.62vw, 11px); letter-spacing: .14em; color: var(--muted);
}
.film__count b { font-weight: 400; }
.film__nav {
	position: absolute; right: clamp(14px, 1.5vw, 30px); bottom: clamp(14px, 1.6vw, 30px);
	display: flex; gap: clamp(18px, 2.2vw, 40px); color: var(--ink-2);
}
.film__nav button { padding: 6px; transition: transform .3s var(--ease); }
.film__nav svg { width: clamp(11px, .9vw, 16px); height: auto; }
.film__prev:hover { transform: translateX(-3px); }
.film__next:hover { transform: translateX(3px); }

/* ---------- Latest + quote ---------- */
.latest {
	display: grid;
	grid-template-columns: 494fr 198fr 198fr;
	column-gap: clamp(14px, 1.75vw, 34px);
	margin-top: clamp(12px, 1.5vw, 28px);
	align-items: stretch;
}
.latest__card {
	position: relative; display: block; overflow: hidden;
	aspect-ratio: 494 / 249;
	background: var(--dark); color: #fff;
}
.latest__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.latest__card:hover img { transform: scale(1.03); }
.latest__content {
	position: relative; z-index: 2; height: 100%;
	display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
	padding-left: clamp(22px, 2.75vw, 56px);
}
.latest__title {
	display: block; margin-top: clamp(14px, 1.4vw, 26px);
	font-family: var(--serif); font-weight: 300;
	font-size: clamp(26px, 2.6vw, 52px); line-height: 1.08; letter-spacing: -.005em;
	font-variation-settings: "opsz" 60;
}
.latest .rule { margin-top: clamp(16px, 1.6vw, 30px); }
.latest .link { margin-top: clamp(14px, 1.3vw, 24px); }
.latest__portrait { overflow: hidden; margin-top: clamp(2px, .4vw, 6px); }
.latest__portrait img { width: 100%; height: 100%; object-fit: cover; }
.quote {
	display: flex; flex-direction: column; justify-content: center;
	padding-left: clamp(4px, 1.6vw, 34px);
}
.quote__mark {
	font-family: var(--serif); font-size: clamp(36px, 3vw, 58px); line-height: .6; color: #9d978f;
	height: .45em;
}
.quote blockquote p {
	margin-top: clamp(16px, 1.5vw, 28px);
	font-family: var(--serif); font-weight: 300;
	font-size: clamp(17px, 1.42vw, 27px); line-height: 1.32; color: var(--ink);
	font-variation-settings: "opsz" 24;
	max-width: 15em;
}
.quote .rule { margin-top: clamp(16px, 1.7vw, 32px); }
.quote figcaption { margin-top: clamp(16px, 1.6vw, 30px); display: flex; flex-direction: column; gap: 4px; }
.quote__name { font-size: clamp(9px, 0.72vw, 13px); letter-spacing: .2em; text-transform: uppercase; }
.quote__role { font-size: clamp(9px, 0.7vw, 13px); color: var(--muted); font-weight: 300; }

/* ---------- Clients ---------- */
.clients { padding-top: clamp(22px, 2.4vw, 46px); padding-bottom: clamp(26px, 2.6vw, 52px); }
.clients .kicker { font-size: clamp(8px, 0.58vw, 11px); }
.clients__list {
	list-style: none; margin: clamp(18px, 2vw, 36px) 0 0; padding: 0 clamp(0px, 5vw, 100px);
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
	gap: 18px clamp(20px, 2vw, 40px);
	color: #3b3835;
}
.client { font-size: clamp(14px, 1.48vw, 28px); line-height: 1; white-space: nowrap; }
.client--serif { font-family: var(--serif); font-weight: 400; letter-spacing: .02em; font-size: clamp(16px, 1.75vw, 32px); }
.client--serif-thin { font-family: var(--serif); font-weight: 300; letter-spacing: .01em; font-size: clamp(12px, 1.3vw, 24px); }
.client--serif-bold { font-family: var(--serif); font-weight: 500; letter-spacing: .14em; font-size: clamp(13px, 1.35vw, 25px); }
.client--sans-bold { font-family: var(--sans); font-weight: 500; letter-spacing: .14em; font-size: clamp(13px, 1.35vw, 25px); }

/* ---------- CTA ---------- */
.cta {
	position: relative;
	height: clamp(260px, 22vw, 520px);
	overflow: hidden;
	background: #3a2e24; color: #fff;
}
.cta__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.cta::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(30, 22, 16, .35) 0%, rgba(30, 22, 16, .1) 40%, rgba(0, 0, 0, 0) 60%);
}
.cta__content {
	position: relative; z-index: 2; height: 100%;
	display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.cta__title {
	margin-top: clamp(14px, 1.4vw, 26px);
	font-family: var(--serif); font-weight: 300;
	font-size: clamp(36px, 3.55vw, 70px); line-height: 1; letter-spacing: -.01em;
	font-variation-settings: "opsz" 72;
}
.btn-outline {
	margin-top: clamp(20px, 2vw, 38px);
	display: inline-flex; align-items: center; gap: clamp(14px, 1.4vw, 24px);
	padding: clamp(11px, 1.05vw, 20px) clamp(18px, 1.8vw, 34px);
	border: 1px solid rgba(255, 255, 255, .8);
	font-size: clamp(9px, 0.7vw, 13px); letter-spacing: .2em; text-transform: uppercase;
	transition: background .3s, color .3s;
}
.btn-outline:hover { background: #fff; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: #1d1b19; color: #cfc9c1; }
.site-footer__row {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 18px 40px; padding-block: clamp(28px, 2.6vw, 48px);
}
.site-footer .logo__name { color: #fff; font-size: clamp(16px, 1.2vw, 22px); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: clamp(11px, .75vw, 14px); letter-spacing: .12em; text-transform: uppercase; }
.site-footer__links a:hover { color: #fff; }
.site-footer__copy { font-size: 12px; color: #8d8882; }

/* ---------- Lightbox ---------- */
.lightbox {
	position: fixed; inset: 0; z-index: 200;
	background: rgba(12, 11, 10, .92);
	display: grid; place-items: center;
	padding: 4vw;
}
.lightbox[hidden] { display: none; }
.lightbox__frame { width: min(100%, 160vh); aspect-ratio: 16 / 9; }
.lightbox__frame iframe { width: 100%; height: 100%; border: 0; }
.lightbox__close { position: absolute; top: 18px; right: 26px; color: #fff; font-size: 40px; line-height: 1; font-weight: 200; }

/* ---------- Simple pages ---------- */
.page__inner { padding-block: clamp(48px, 6vw, 120px); max-width: 960px; }
.entry + .entry { margin-top: 64px; }
.entry__title { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 3.4vw, 64px); line-height: 1.05; }
.entry__media { margin-top: 28px; }
.entry__content { margin-top: 28px; color: var(--ink-2); }
.entry__content a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Large screens (1920+) ---------- */
@media (min-width: 1800px) {
	.hero__img { object-position: 62% 38%; }
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
	.film__slide { grid-template-columns: 1fr; }
	.film__panel { padding-right: clamp(24px, 3.3vw, 64px); padding-bottom: 72px; grid-template-columns: 1fr 34%; }
	.latest { grid-template-columns: 1fr 1fr; row-gap: var(--gap); }
	.latest__card { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
	.latest__portrait { margin-top: 0; aspect-ratio: 4 / 5; }
	.quote { padding: 24px 0 24px 8px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
	.nav {
		position: fixed; inset: 64px 0 auto 0; z-index: 49;
		background: var(--white); border-bottom: 1px solid #ebe8e3;
		transform: translateY(-8px); opacity: 0; visibility: hidden;
		transition: opacity .3s, transform .3s var(--ease), visibility 0s linear .3s;
	}
	.nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--ease); }
	.nav__list { flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px; }
	.nav__list a { display: block; padding-block: 14px; font-size: 13px; border-bottom: 1px solid #f0ede9; }
	.nav__list a::after { display: none; }
	.site-header__tools { margin-left: auto; }
	.menu-toggle { display: flex; }
	.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
	.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

	.hero { height: min(88svh, 720px); }
	.hero__img { object-position: 68% 40%; }
	.hero__slide::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(30, 22, 16, .45) 100%); }
	.hero__content { justify-content: flex-end; padding-bottom: 84px; }
	.hero__dots-wrap { justify-content: flex-start; }

	.cats { grid-template-columns: 1fr 1fr; row-gap: 26px; }
	.film__panel { grid-template-columns: 1fr; padding: 28px 22px 72px; }
	.film__text { padding-top: 6px; }
	.film__thumb { display: none; }
	.latest { grid-template-columns: 1fr; }
	.latest__card { aspect-ratio: 4 / 3.4; }
	.latest__card img { object-position: 70% 50%; }
	.latest__card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,0) 70%); }
	.latest__portrait { aspect-ratio: 4 / 4.6; }
	.quote { padding: 12px 0 8px; }
	.clients__list { justify-content: center; gap: 22px 30px; padding: 0; }
	.cta { height: 440px; }
	.cta__img { object-position: 70% 60%; }
	.cta::after { background: linear-gradient(90deg, rgba(30, 22, 16, .6), rgba(0, 0, 0, .1)); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	html { scroll-behavior: auto; }
}
