/*
Theme Name: Ines Vlašić Gallery
Theme URI: https://www.inesvlasic.com/
Author: Custom theme for Ines Vlašić Gallery
Description: A refined, minimalist one-page WordPress theme for an independent gallery in Šibenik, featuring original art, sculpture and artistic jewellery.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ines-vlasic-gallery
Tags: custom-logo, custom-menu, featured-images, one-column, accessibility-ready, responsive-layout
*/

:root {
  --paper: #f7f6f2;
  --white: #fff;
  --ink: #171714;
  --muted: #716f68;
  --line: rgba(23, 23, 20, .16);
  --accent: #b74631;
  --display: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --sans: Inter, Helvetica, Arial, sans-serif;
  --page: min(1320px, calc(100vw - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open,
body.lightbox-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { color: inherit; font: inherit; }
button { border-radius: 0; }
::selection { background: #e7ddd5; }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  position: fixed !important;
  top: 12px;
  left: 12px;
  z-index: 10000;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: var(--ink);
  color: #fff;
}

.topline {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 8px 20px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 82px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 246, 242, .92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.admin-bar .site-header { top: 32px; }
.header-inner {
  width: var(--page);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.branding { justify-self: start; min-width: 0; }
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}
.wordmark strong {
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 500;
  letter-spacing: .035em;
  line-height: 1;
}
.wordmark span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: auto; max-width: min(320px, 38vw); max-height: 48px; object-fit: contain; }

.desktop-nav { justify-self: center; }
.desktop-nav .menu,
.mobile-menu .menu {
  margin: 0;
  padding: 0;
  list-style: none;
}
.desktop-nav .menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}
.desktop-nav a,
.header-visit {
  position: relative;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: currentColor;
  transition: right .25s ease;
}
.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after { right: 0; }
.header-visit {
  justify-self: end;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
}
.menu-toggle,
.mobile-menu { display: none; }

.site-main { overflow: hidden; }
.hero {
  width: var(--page);
  min-height: calc(100svh - 116px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  gap: clamp(30px, 5vw, 90px);
  align-items: center;
  padding: clamp(48px, 7vw, 105px) 0;
}
.eyebrow {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .23em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 760px;
  margin-bottom: 30px;
  font-family: var(--display);
  font-size: clamp(55px, 7vw, 116px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .91;
}
.hero-lead {
  max-width: 550px;
  margin-bottom: 36px;
  color: #4e4d48;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 300;
  line-height: 1.65;
}
.button-row { display: flex; flex-wrap: wrap; gap: 11px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 19px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.button:hover,
.button:focus-visible {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}
.button.primary { background: var(--ink); color: #fff; }
.button.primary:hover,
.button.primary:focus-visible { background: transparent; color: var(--ink); }
.button svg { width: 14px; height: 14px; }
.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 45px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-note span:not(:last-child)::after {
  content: "·";
  margin-left: 18px;
  color: var(--accent);
}
.hero-image-wrap { position: relative; margin: 0; }
.hero-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}
.hero-index {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: rgba(247, 246, 242, .9);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-index::before { content: ""; width: 24px; height: 1px; background: currentColor; }

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.marquee-track {
  width: max-content;
  display: flex;
  padding: 21px 0;
  animation: drift 27s linear infinite;
}
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  font-family: var(--display);
  font-size: clamp(22px, 2.5vw, 36px);
  font-style: italic;
  letter-spacing: -.02em;
}
.marquee i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
@keyframes drift { to { transform: translateX(-50%); } }

.section {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(95px, 12vw, 180px) 0;
}
.section-grid {
  display: grid;
  grid-template-columns: minmax(180px, .55fr) minmax(0, 1.45fr);
  gap: clamp(40px, 8vw, 140px);
}
.section-number {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.section-number::before {
  content: "";
  display: inline-block;
  width: 42px;
  height: 1px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--ink);
}
.statement h2 {
  max-width: 980px;
  margin-bottom: 34px;
  font-family: var(--display);
  font-size: clamp(43px, 6vw, 88px);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1.02;
}
.statement-copy {
  max-width: 740px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  color: #55534e;
  font-weight: 300;
}
.statement-copy p { margin-bottom: 0; }

.feature {
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  background: var(--white);
}
.feature-image { width: 100%; height: 100%; min-height: 650px; object-fit: cover; }
.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(55px, 8vw, 125px);
}
.feature-copy h2 {
  margin-bottom: 26px;
  font-family: var(--display);
  font-size: clamp(45px, 5vw, 76px);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1;
}
.feature-copy > p:not(.eyebrow) {
  max-width: 520px;
  margin-bottom: 45px;
  color: #56544f;
  font-weight: 300;
}
.collection-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.collection-list li {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.collection-list b { color: var(--accent); font-family: var(--display); font-size: 18px; font-weight: 400; }
.collection-list span { font-size: 11px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; }

.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 50px;
}
.gallery-head h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 86px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .98;
}
.gallery-head p { max-width: 360px; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  gap: 16px;
}
.gallery-item {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #eae8e2;
  cursor: zoom-in;
}
.gallery-item:nth-child(1) { grid-column: span 7; min-height: 620px; }
.gallery-item:nth-child(2) { grid-column: span 5; min-height: 620px; }
.gallery-item:nth-child(3) { grid-column: span 4; min-height: 470px; }
.gallery-item:nth-child(4) { grid-column: span 4; min-height: 470px; }
.gallery-item:nth-child(5) { grid-column: span 4; min-height: 470px; }
.gallery-item:nth-child(6) { grid-column: span 5; min-height: 560px; }
.gallery-item:nth-child(7) { grid-column: span 7; min-height: 560px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.gallery-item:nth-child(2) img { object-position: center 42%; }
.gallery-item::after {
  content: "View";
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 7px 9px;
  background: rgba(247,246,242,.9);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.gallery-item:hover img { transform: scale(1.025); filter: saturate(.94); }
.gallery-item:hover::after,
.gallery-item:focus-visible::after { opacity: 1; transform: none; }

.quote-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--ink);
  color: #fff;
}
.quote-band > img { width: 100%; height: 100%; min-height: 650px; object-fit: cover; }
.quote-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(60px, 10vw, 145px);
}
.quote-copy blockquote {
  margin: 0 0 45px;
  font-family: var(--display);
  font-size: clamp(38px, 4.8vw, 70px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.08;
}
.quote-copy p { margin-bottom: 0; color: rgba(255,255,255,.65); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }

.visit {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(60px, 10vw, 160px);
  align-items: start;
}
.visit h2 {
  margin-bottom: 30px;
  font-family: var(--display);
  font-size: clamp(50px, 7vw, 96px);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .92;
}
.visit-intro { max-width: 470px; color: #55534e; font-weight: 300; }
.visit-details { margin: 0; border-top: 1px solid var(--ink); }
.detail {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.detail dt { color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .17em; text-transform: uppercase; }
.detail dd { margin: 0; font-family: var(--display); font-size: clamp(22px, 2.1vw, 31px); line-height: 1.35; }
.detail small { display: block; margin-top: 6px; color: var(--muted); font-family: var(--sans); font-size: 12px; }
.visit-actions { margin-top: 34px; }

.site-footer { border-top: 1px solid var(--line); padding: 55px 0 28px; }
.footer-inner { width: var(--page); margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  padding-bottom: 55px;
}
.footer-title { max-width: 760px; font-family: var(--display); font-size: clamp(40px, 5vw, 72px); letter-spacing: -.04em; line-height: 1; }
.footer-back { font-size: 10px; font-weight: 500; letter-spacing: .17em; text-transform: uppercase; border-bottom: 1px solid currentColor; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  place-items: center;
  padding: 46px;
  background: rgba(15, 15, 13, .94);
}
.lightbox.active { display: grid; }
.lightbox img { width: auto; max-width: min(1180px, 92vw); max-height: 86vh; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.3);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.lightbox-caption { position: absolute; left: 24px; bottom: 18px; color: rgba(255,255,255,.7); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s ease, transform .85s ease; }
.reveal.visible { opacity: 1; transform: none; }

.content-shell { width: min(920px, calc(100vw - 48px)); min-height: 70vh; margin: 0 auto; padding: clamp(80px, 10vw, 150px) 0; overflow: visible; }
.content-header { margin-bottom: clamp(45px, 7vw, 90px); }
.content-header h1 { max-width: 900px; }
.entry-hero { margin-bottom: 55px; }
.entry-hero img { width: 100%; }
.entry-content { font-size: 18px; font-weight: 300; }
.entry-content > * { max-width: 760px; margin-right: auto; margin-left: auto; }
.entry-content > .alignwide { max-width: 1120px; }
.entry-content > .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content h2,
.entry-content h3 { margin-top: 2em; font-family: var(--display); font-weight: 400; line-height: 1.1; }
.entry-content h2 { font-size: clamp(36px, 5vw, 60px); }
.entry-content h3 { font-size: clamp(27px, 3.5vw, 40px); }
.entry-content a { border-bottom: 1px solid currentColor; }
.post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 34px; }
.post-card-image { display: block; margin-bottom: 24px; overflow: hidden; }
.post-card-image img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.post-card-image:hover img { transform: scale(1.02); }
.post-meta { margin-bottom: 12px; color: var(--muted); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.post-card h2 { margin-bottom: 16px; font-family: var(--display); font-size: clamp(30px, 3vw, 44px); font-weight: 400; line-height: 1.05; }
.navigation.pagination { margin-top: 70px; }
.nav-links { display: flex; gap: 10px; }
.page-numbers { min-width: 42px; min-height: 42px; display: inline-grid; place-items: center; border: 1px solid var(--line); }
.page-numbers.current { background: var(--ink); color: #fff; }

@media (max-width: 980px) {
  :root { --page: min(100% - 36px, 760px); }
  .site-header { height: 72px; }
  .header-inner { grid-template-columns: 1fr auto; }
  .desktop-nav, .header-visit { display: none; }
  .menu-toggle {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 0;
    background: transparent;
    padding: 8px 0;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .17em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .menu-toggle i,
  .menu-toggle i::before,
  .menu-toggle i::after {
    display: block;
    width: 20px;
    height: 1px;
    background: currentColor;
    transition: transform .25s ease, opacity .25s ease;
  }
  .menu-toggle i { position: relative; }
  .menu-toggle i::before,
  .menu-toggle i::after { content: ""; position: absolute; left: 0; }
  .menu-toggle i::before { top: -6px; }
  .menu-toggle i::after { top: 6px; }
  .menu-open .menu-toggle i { background: transparent; }
  .menu-open .menu-toggle i::before { top: 0; transform: rotate(45deg); }
  .menu-open .menu-toggle i::after { top: 0; transform: rotate(-45deg); }
  .mobile-menu {
    position: fixed;
    inset: 106px 0 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 50px 18px 32px;
    background: var(--paper);
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform .35s ease, visibility .35s ease;
  }
  .admin-bar .mobile-menu { top: 138px; }
  .menu-open .mobile-menu { transform: none; visibility: visible; }
  .mobile-menu .menu { display: flex; flex-direction: column; }
  .mobile-menu .menu a {
    display: block;
    padding: 12px 0;
    font-family: var(--display);
    font-size: clamp(38px, 10vw, 64px);
    letter-spacing: -.04em;
    line-height: 1.05;
  }
  .mobile-menu-meta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 55px; padding: 75px 0 50px; }
  .hero-copy { max-width: 700px; }
  h1 { font-size: clamp(62px, 15vw, 112px); }
  .hero-image { aspect-ratio: 16 / 12; }
  .section-grid, .feature, .quote-band, .visit { grid-template-columns: 1fr; }
  .statement-copy { max-width: none; }
  .feature { min-height: 0; }
  .feature-image { min-height: 520px; }
  .feature-copy { padding: 75px 36px; }
  .gallery-head { align-items: start; flex-direction: column; }
  .gallery-item:nth-child(n) { grid-column: span 6; min-height: 460px; }
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(7) { grid-column: span 12; min-height: 590px; }
  .quote-band > img { min-height: 520px; }
  .visit { gap: 65px; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .mobile-menu { top: 146px; }
}

@media (max-width: 620px) {
  :root { --page: calc(100vw - 28px); }
  html { scroll-padding-top: 104px; }
  .topline { min-height: 32px; letter-spacing: .13em; }
  .site-header { height: 68px; }
  .mobile-menu { inset: 100px 0 0; }
  .admin-bar .mobile-menu { top: 146px; }
  .wordmark strong { font-size: 20px; }
  .wordmark span { display: none; }
  .custom-logo { max-width: 210px; max-height: 42px; }
  .hero { padding-top: 58px; }
  h1 { font-size: clamp(56px, 18vw, 85px); }
  .hero-lead { font-size: 16px; }
  .hero-note { flex-direction: column; gap: 4px; }
  .hero-note span:not(:last-child)::after { display: none; }
  .hero-image { aspect-ratio: 4 / 5; }
  .section { padding: 95px 0; }
  .section-grid { gap: 42px; }
  .statement-copy { grid-template-columns: 1fr; gap: 16px; }
  .feature-image { min-height: 460px; }
  .feature-copy { padding: 65px 24px; }
  .gallery-grid { gap: 9px; }
  .gallery-item:nth-child(n) { grid-column: span 12; min-height: 470px; }
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(5) { min-height: 390px; }
  .quote-band > img { min-height: 470px; }
  .quote-copy { padding: 65px 25px; }
  .detail { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .lightbox { padding: 16px; }
  .post-list { grid-template-columns: 1fr; }
  .content-shell { width: calc(100vw - 28px); }
}

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