/*
Theme Name: Galerie 81
Theme URI: https://galerie81.nl
Author: Galerie 81
Description: Een rustige, beeldgerichte portfolio voor kunsthandel Galerie 81. WordPress-native en geschikt voor standaard PHP/MariaDB-hosting.
Version: 1.1.0
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: galerie-81
*/

:root {
  --g81-ink: #172235;
  --g81-ink-soft: #526070;
  --g81-paper: #f2f0e9;
  --g81-paper-deep: #e8e3d7;
  --g81-white: #fbfaf6;
  --g81-line: rgba(23, 34, 53, 0.16);
  --g81-accent: #ad5148;
  --g81-max: 1240px;
  --g81-serif: Georgia, "Times New Roman", serif;
  --g81-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--g81-ink);
  background: var(--g81-paper);
  font-family: var(--g81-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .gallery-header {
  top: 32px;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.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;
}

.container-wide {
  width: min(calc(100% - 64px), var(--g81-max));
  margin-inline: auto;
}

.gallery-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--g81-line);
  background: rgba(242, 240, 233, 0.93);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  width: min(calc(100% - 64px), 1320px);
  margin-inline: auto;
}

.wordmark {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.21em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  font-size: 13px;
}

.nav-link {
  position: relative;
  color: var(--g81-ink-soft);
  transition: color 180ms ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--g81-accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--g81-ink);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.artist-menu {
  position: relative;
}

.artist-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  color: var(--g81-ink-soft);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.artist-menu-toggle svg {
  transition: transform 180ms ease;
}

.artist-menu.open .artist-menu-toggle svg {
  transform: rotate(180deg);
}

.artist-menu-panel {
  position: absolute;
  top: calc(100% + 18px);
  right: -14px;
  min-width: 250px;
  padding: 10px;
  border: 1px solid var(--g81-line);
  background: var(--g81-white);
  box-shadow: 0 18px 38px rgba(23, 34, 53, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.artist-menu.open .artist-menu-panel,
.artist-menu:focus-within .artist-menu-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.artist-menu-panel a {
  display: block;
  padding: 9px 11px;
  color: var(--g81-ink-soft);
  font-size: 13px;
}

.artist-menu-panel a:hover {
  color: var(--g81-ink);
  background: var(--g81-paper);
}

.header-menu {
  display: none;
  padding: 4px;
  border: 0;
  color: var(--g81-ink);
  background: transparent;
  cursor: pointer;
}

.mobile-nav {
  display: none;
}

.eyebrow {
  color: var(--g81-ink-soft);
  font-size: 10px;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.page-wrap {
  overflow: hidden;
}

.hero-home {
  display: grid;
  grid-template-columns: 0.93fr 1.07fr;
  align-items: center;
  gap: 7vw;
  min-height: 750px;
  width: min(calc(100% - 64px), 1210px);
  margin: 0 auto;
  padding: 90px 0 120px;
}

.hero-copy {
  max-width: 560px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 400;
}

h1 {
  margin: 22px 0 26px;
  font-family: var(--g81-serif);
  font-size: clamp(64px, 8vw, 121px);
  letter-spacing: -0.065em;
  line-height: 0.84;
}

h1 em,
h2 em {
  color: var(--g81-accent);
  font-style: italic;
}

.hero-copy > p {
  max-width: 340px;
  margin-bottom: 54px;
  color: var(--g81-ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.scroll-cue,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--g81-ink);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-cue svg,
.text-link svg {
  color: var(--g81-accent);
  transition: transform 180ms ease;
}

.scroll-cue:hover svg {
  transform: translateY(4px);
}

.text-link:hover svg {
  transform: translateX(4px);
}

.hero-art {
  position: relative;
  min-height: 540px;
}

.hero-art-main {
  width: 84%;
  height: 548px;
  margin-left: auto;
  object-fit: cover;
}

.hero-art-float {
  position: absolute;
  bottom: -36px;
  left: 6%;
  width: 30%;
  max-width: 225px;
  aspect-ratio: 0.77;
  padding: 9px;
  background: var(--g81-white);
  box-shadow: 0 18px 34px rgba(23, 34, 53, 0.1);
  object-fit: cover;
}

.hero-art-label {
  position: absolute;
  right: 0;
  bottom: -72px;
  padding: 9px 13px;
  color: var(--g81-white);
  background: var(--g81-ink);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.section {
  padding: 120px 0;
}

.section-tint {
  background: var(--g81-paper-deep);
}

.intro-section {
  display: grid;
  grid-template-columns: 0.38fr 1fr;
  gap: 8vw;
}

.intro-section h2 {
  max-width: 780px;
  margin-bottom: 42px;
  font-family: var(--g81-serif);
  font-size: clamp(34px, 4.2vw, 62px);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.intro-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px;
  max-width: 710px;
  color: var(--g81-ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 54px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--g81-serif);
  font-size: clamp(42px, 5vw, 72px);
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 38px;
  row-gap: 72px;
}

.work-card {
  min-width: 0;
}

.work-card-link {
  display: block;
  color: inherit;
}

.work-card-link:focus-visible .work-card {
  outline: 2px solid var(--g81-accent);
  outline-offset: 8px;
}

.work-image-wrap {
  position: relative;
  overflow: hidden;
  background: var(--g81-paper-deep);
}

.work-card-link:nth-child(2n) .work-card .work-image-wrap {
  margin-top: 58px;
}

.work-image {
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.work-card-link:nth-child(2n) .work-card .work-image {
  aspect-ratio: 1;
}

.work-card:hover .work-image {
  transform: scale(1.035);
}

.work-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(23, 34, 53, 0.26);
  opacity: 0;
  transition: opacity 250ms ease;
}

.work-card:hover .work-overlay,
.work-card:focus-within .work-overlay,
.work-card-link:focus-visible .work-overlay {
  opacity: 1;
}

.view-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
  border: 1px solid rgba(251, 250, 246, 0.7);
  color: var(--g81-white);
  background: rgba(23, 34, 53, 0.82);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding-top: 16px;
}

.work-artist {
  color: var(--g81-ink-soft);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-title {
  margin-top: 3px;
  font-family: var(--g81-serif);
  font-size: 24px;
  line-height: 1.1;
}

.work-details {
  flex-shrink: 0;
  color: var(--g81-ink-soft);
  font-size: 11px;
  line-height: 1.55;
  text-align: right;
}

.artist-strip {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 9vw;
}

.artist-strip-copy h2 {
  max-width: 450px;
  margin: 20px 0 30px;
  font-family: var(--g81-serif);
  font-size: clamp(44px, 5vw, 72px);
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.artist-strip-copy p {
  max-width: 355px;
  color: var(--g81-ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.artist-list {
  border-top: 1px solid var(--g81-line);
}

.artist-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 21px 0;
  border-bottom: 1px solid var(--g81-line);
  font-family: var(--g81-serif);
  font-size: clamp(20px, 2.1vw, 29px);
  transition: padding 180ms ease, color 180ms ease;
}

.artist-list-row small {
  display: inline-block;
  width: 28px;
  color: var(--g81-accent);
  font-family: var(--g81-sans);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.artist-list-row > span:last-child {
  color: var(--g81-ink-soft);
  font-family: var(--g81-sans);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.artist-list-row:hover {
  padding-inline: 10px;
  color: var(--g81-accent);
}

.visit-band {
  background: var(--g81-ink);
}

.visit-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5vw;
  color: var(--g81-white);
}

.visit-block {
  border-top: 1px solid rgba(251, 250, 246, 0.3);
  padding-top: 20px;
  color: rgba(251, 250, 246, 0.72);
  font-size: 13px;
  line-height: 1.7;
}

.visit-block strong {
  display: block;
  margin-bottom: 10px;
  color: var(--g81-white);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.visit-block a {
  color: inherit;
  transition: color 180ms ease;
}

.visit-block a:hover {
  color: var(--g81-white);
}

.artist-hero,
.other-hero {
  padding: 150px 0 110px;
  background: var(--g81-paper-deep);
}

.artist-hero-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.artist-hero h1,
.other-hero h1 {
  max-width: 850px;
  margin-bottom: 42px;
  font-size: clamp(64px, 10vw, 145px);
  line-height: 0.82;
}

.artist-intro {
  max-width: 470px;
  margin: 0;
  color: var(--g81-ink-soft);
  font-size: 18px;
  line-height: 1.65;
}

.artist-work-layout {
  padding: 116px 0 0;
}

.artist-notes {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 9vw;
  padding: 140px 0;
}

.artist-notes h2 {
  margin: 0;
  font-family: var(--g81-serif);
  font-size: clamp(44px, 5vw, 72px);
  letter-spacing: -0.06em;
  line-height: 0.85;
}

.artist-notes p {
  max-width: 560px;
  margin: 0;
  color: var(--g81-ink-soft);
  font-size: 17px;
  line-height: 1.85;
}

.other-hero .container-wide {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 7vw;
}

.other-hero h1 {
  margin-top: 48px;
}

.other-intro {
  align-self: end;
  max-width: 440px;
  color: var(--g81-ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.other-intro .text-right {
  margin-top: 52px;
  color: var(--g81-ink-soft);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1.7;
  text-transform: uppercase;
}

.other-work {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(220px, 0.6fr);
  align-items: end;
  gap: 9vw;
}

.other-work .work-image-wrap {
  max-width: 600px;
}

.other-work > p {
  max-width: 330px;
  color: var(--g81-ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.work-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(23, 34, 53, 0.68);
  opacity: 0;
  animation: modal-in 220ms ease forwards;
}

.work-modal-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  width: min(100%, 1050px);
  max-height: min(720px, calc(100vh - 60px));
  overflow: auto;
  background: var(--g81-white);
}

.work-modal-image {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.work-modal-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--g81-paper-deep);
  cursor: zoom-in;
}

.work-modal-image-button:focus-visible {
  outline: 2px solid var(--g81-accent);
  outline-offset: -4px;
}

.work-modal-info {
  position: relative;
  padding: 65px 42px 45px;
}

.work-modal-info h2 {
  margin: 17px 0 38px;
  font-family: var(--g81-serif);
  font-size: 50px;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.work-modal-close {
  position: absolute;
  top: 17px;
  right: 19px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--g81-line);
  color: var(--g81-ink);
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.work-data {
  margin: 0;
  border-top: 1px solid var(--g81-line);
}

.work-data-row {
  display: grid;
  grid-template-columns: 0.65fr 1fr;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid var(--g81-line);
}

.work-data dt {
  color: var(--g81-ink-soft);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.work-data dd {
  margin: 0;
  font-size: 13px;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 64px);
  background: rgba(12, 18, 29, 0.92);
  animation: modal-in 180ms ease forwards;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox-image {
  width: auto;
  max-width: 94vw;
  max-height: calc(100vh - 80px);
  object-fit: contain;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.3);
}

.image-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(251, 250, 246, 0.55);
  color: var(--g81-white);
  background: rgba(23, 34, 53, 0.45);
  font-size: 22px;
  cursor: pointer;
}

.reveal {
  animation: reveal-up 750ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.reveal-delay-1 {
  animation-delay: 100ms;
}

.reveal-delay-2 {
  animation-delay: 180ms;
}

.reveal-delay-3 {
  animation-delay: 260ms;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modal-in {
  to {
    opacity: 1;
  }
}

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

@media (max-width: 800px) {
  body.admin-bar .gallery-header {
    top: 46px;
  }

  .container-wide,
  .header-inner,
  .hero-home {
    width: min(calc(100% - 38px), var(--g81-max));
  }

  .header-inner {
    min-height: 66px;
  }

  .header-nav {
    display: none;
  }

  .header-menu {
    display: block;
  }

  .mobile-nav {
    display: grid;
    gap: 0;
    padding: 16px 19px 23px;
    border-bottom: 1px solid var(--g81-line);
    background: var(--g81-paper);
  }

  .mobile-nav a {
    padding: 10px 0;
    border-bottom: 1px solid var(--g81-line);
    font-size: 13px;
  }

  .hero-home {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 52px;
    min-height: auto;
    padding: 90px 0 110px;
  }

  h1 {
    font-size: clamp(62px, 18vw, 100px);
  }

  .hero-copy > p {
    margin-bottom: 35px;
  }

  .hero-art {
    min-height: 420px;
  }

  .hero-art-main {
    width: 87%;
    height: 420px;
  }

  .hero-art-float {
    bottom: -30px;
    width: 34%;
  }

  .hero-art-label {
    bottom: -54px;
  }

  .section {
    padding: 82px 0;
  }

  .intro-section,
  .artist-strip,
  .visit-content,
  .artist-notes,
  .other-hero .container-wide,
  .other-work {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .intro-copy {
    gap: 18px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 36px;
  }

  .work-grid {
    gap: 48px 17px;
  }

  .work-card-link:nth-child(2n) .work-card .work-image-wrap {
    margin-top: 28px;
  }

  .work-meta {
    display: block;
  }

  .work-details {
    margin-top: 10px;
    text-align: left;
  }

  .artist-hero,
  .other-hero {
    padding: 92px 0 75px;
  }

  .artist-hero h1,
  .other-hero h1 {
    font-size: clamp(61px, 17vw, 105px);
  }

  .artist-work-layout {
    padding-top: 82px;
  }

  .artist-notes {
    padding: 95px 0;
  }

  .other-hero h1 {
    margin-top: 38px;
  }

  .other-intro .text-right {
    margin-top: 25px;
    text-align: left;
  }

  .other-work > p {
    margin-top: 0;
  }

  .work-modal {
    padding: 12px;
  }

  .work-modal-inner {
    display: block;
    max-height: calc(100vh - 24px);
  }

  .work-modal-image {
    height: 48vh;
    min-height: 0;
  }

  .work-modal-info {
    padding: 42px 23px 28px;
  }
}

@media (max-width: 480px) {
  .intro-copy {
    display: block;
  }

  .intro-copy p + p {
    margin-top: 18px;
  }

  .work-title {
    font-size: 20px;
  }

}