/*
Theme Name: KN Vision Studio
Theme URI: https://knvisionstudio.com
Author: Codex
Author URI: https://example.com
Description: A dark portfolio archive WordPress theme for a wedding photography business, with a tailored mobile layout.
Version: 2.6.0
Requires at least: 6.0
Tested up to: 6.6
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: kn-vision-studio
*/

:root {
  --black: #030303;
  --ink: #0a0a0a;
  --panel: #111;
  --line: #252525;
  --text: #f5f2ea;
  --muted: #9b958c;
  --white: #fff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

#main-content {
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--white);
  color: var(--black);
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(14px, 3vw, 22px) clamp(16px, 4vw, 72px);
  color: var(--text);
  background: rgba(3, 3, 3, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-brand {
  display: grid;
  justify-items: start;
  gap: 2px;
  min-width: max-content;
  text-align: left;
  font-family: Georgia, "Times New Roman", serif;
}

.site-brand strong {
  font-size: clamp(20px, 5.4vw, 28px);
  font-weight: 500;
  line-height: 0.95;
}

.site-brand span {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-nav,
.category-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  justify-content: flex-end;
}

.site-nav::-webkit-scrollbar,
.category-strip::-webkit-scrollbar {
  display: none;
}

.site-nav a,
.category-strip a {
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.category-strip a:hover,
.category-strip a:focus-visible {
  color: var(--text);
  border-color: currentColor;
}

.site-nav .nav-pill {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-content: space-between;
  padding: clamp(34px, 9vw, 72px) clamp(18px, 5vw, 72px) clamp(30px, 6vw, 54px);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--hero-image) center / cover no-repeat;
  transform: scale(1.02);
}

.hero-logo {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.hero-logo span {
  color: var(--hero-title-color, var(--text));
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 14vw, 82px);
  line-height: 0.88;
}

.hero-logo small {
  color: var(--hero-meta-color, var(--muted));
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-inner {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}

.hero-x-left .hero-inner {
  margin-inline: 0 auto;
  text-align: left;
}

.hero-x-center .hero-inner {
  margin-inline: auto;
  text-align: center;
}

.hero-x-right .hero-inner {
  margin-inline: auto 0;
  text-align: right;
}

.hero-y-top {
  align-content: start;
}

.hero-y-middle {
  align-content: center;
}

.hero-y-bottom {
  align-content: end;
}

.hero-y-top .hero-logo,
.hero-y-middle .hero-logo {
  display: none;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--hero-meta-color, var(--muted));
}

.hero h1 {
  color: var(--hero-title-color, var(--text));
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(38px, 10vw, 82px);
}

.category-strip {
  position: sticky;
  top: 70px;
  z-index: 10;
  justify-content: center;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(3, 3, 3, 0.94);
  border-block: 1px solid var(--line);
}

main > section:not(.hero):not(.category-strip) {
  padding: clamp(46px, 9vw, 104px) clamp(18px, 5vw, 72px);
}

.archive {
  background: var(--black);
}

.archive-head,
.contact {
  display: grid;
  gap: 24px;
  margin-bottom: 26px;
  text-align: center;
}

.archive-head h2,
.contact h2 {
  font-size: clamp(30px, 8vw, 66px);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(18px, 3vw, 34px);
}

.story-card {
  position: relative;
  display: grid;
  gap: 8px;
  color: var(--text);
}

.story-card:hover .story-image,
.story-card:focus-visible .story-image {
  transform: scale(0.995);
}

.story-image {
  display: block;
  min-height: clamp(300px, 48vw, 560px);
  border: 1px solid var(--line);
  background-image: var(--story-cover, var(--hero-image));
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  transition: transform 220ms ease;
}

.story-card:nth-child(2n + 1) .story-image {
  min-height: clamp(340px, 55vw, 640px);
}

.story-two .story-image {
  background-position: 62% center;
}

.story-three .story-image {
  background-position: 30% center;
}

.story-four .story-image {
  background-position: 72% center;
}

.story-five .story-image {
  background-position: center 28%;
}

.story-six .story-image {
  background-position: center 68%;
}

.story-count {
  position: static;
  width: fit-content;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-title {
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 4.4vw, 34px);
  line-height: 1;
  text-transform: uppercase;
}

.story-meta {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-hero,
.client-hero {
  display: grid;
  align-content: end;
  min-height: 48svh;
  padding: clamp(96px, 18vw, 150px) 22px 42px;
  background: var(--black);
  border-bottom: 1px solid var(--line);
}

.page-hero h1,
.client-hero h1 {
  max-width: 820px;
  font-size: clamp(38px, 10vw, 82px);
}

.client-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72);
}

.client-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--gallery-cover, var(--hero-image)) center / cover no-repeat;
  transform: scale(1.02);
}

.client-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: none;
}

.gallery-archive,
.client-gallery-grid,
.gallery-intro {
  padding: clamp(44px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.gallery-intro {
  max-width: 780px;
  color: var(--muted);
  font-size: 15px;
}

.fallback-content {
  padding: 24px 0 0;
}

.client-gallery-grid {
  display: block;
  columns: 1;
  column-gap: clamp(10px, 2vw, 18px);
}

.gallery-photo {
  break-inside: avoid;
  margin: 0;
  margin-bottom: clamp(10px, 2vw, 18px);
  background: var(--panel);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
  transition-delay: var(--fade-delay, 0ms);
}

.gallery-photo.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-photo img {
  width: 100%;
  height: auto;
}

.empty-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.contact {
  margin: 0;
  grid-template-columns: minmax(0, 1fr) minmax(148px, 0.78fr);
  align-items: start;
  text-align: left;
  background: var(--black);
  border-top: 1px solid var(--line);
}

.contact-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.inquiry-form {
  display: grid;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  background: var(--black);
  color: var(--text);
  padding: 12px 13px;
  font: inherit;
  font-size: 14px;
}

textarea {
  min-height: 122px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(255, 255, 255, 0.24);
  border-color: var(--white);
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button:hover,
.button:focus-visible,
button.button:hover,
button.button:focus-visible {
  background: transparent;
  color: var(--white);
  outline: none;
}

.site-footer {
  display: grid;
  gap: 8px;
  padding: 28px 18px;
  color: var(--muted);
  background: var(--black);
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 760px) {
  .site-header {
    padding-block: 22px;
  }

  .site-brand strong {
    font-size: 28px;
  }

  .hero {
    min-height: 88vh;
    padding-inline: clamp(28px, 5vw, 72px);
  }

  main > section:not(.hero):not(.category-strip):not(.page-hero):not(.client-hero):not(.client-gallery-grid):not(.gallery-intro):not(.gallery-archive) {
    padding-inline: clamp(28px, 5vw, 72px);
  }

  .page-hero,
  .client-hero,
  .gallery-archive,
  .client-gallery-grid,
  .gallery-intro {
    padding-inline: clamp(28px, 5vw, 72px);
  }

  .client-gallery-grid {
    columns: 3;
  }

  .contact {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  }

  .inquiry-form {
    padding: 28px;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    padding-inline: clamp(28px, 5vw, 72px);
  }
}

@media (min-width: 560px) and (max-width: 759px) {
  .client-gallery-grid {
    columns: 2;
  }
}

@media (max-width: 380px) {
  .site-nav,
  .category-strip {
    gap: 14px;
    font-size: 10px;
  }

  .story-count {
    font-size: 10px;
  }

  .story-image,
  .story-card:nth-child(2n + 1) .story-image {
    min-height: 300px;
  }
}

@media (max-width: 759px) {
  .site-header {
    padding: 20px 18px;
  }

  .site-brand strong {
    font-size: 26px;
  }

  .site-brand span {
    display: none;
  }

  .site-nav {
    flex: 0 0 auto;
  }

  .site-nav a:not(.nav-pill) {
    display: none;
  }

  .site-nav .nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    color: var(--text);
  }

  .hero {
    min-height: 64svh;
    align-content: end;
    padding: 82px 20px 34px;
  }

  .hero::before {
    background-position: 64% center;
  }

  .hero-logo {
    display: none;
  }

  h1 {
    max-width: 380px;
    font-size: clamp(34px, 10vw, 46px);
  }

  .eyebrow,
  .section-kicker {
    font-size: 10px;
    letter-spacing: 0.2em;
  }

  main > section:not(.hero):not(.category-strip):not(.page-hero):not(.client-hero):not(.client-gallery-grid):not(.gallery-intro):not(.gallery-archive) {
    padding: 48px 18px;
  }

  .page-hero,
  .client-hero,
  .gallery-archive,
  .client-gallery-grid,
  .gallery-intro {
    padding-inline: 18px;
  }

  .client-gallery-grid {
    columns: 1;
  }

  .archive-head,
  .contact {
    text-align: left;
  }

  .archive-head h2,
  .contact h2 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .story-title {
    font-size: clamp(24px, 7vw, 30px);
  }

  .story-meta {
    font-size: 10px;
  }

  .contact {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-photo {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
