/* VVJ gallery
   1. Design tokens and base elements
   2. Shared layout and typography
   3. Header, exhibitions, events
   4. Editorial sections
   5. Contact and footer
   6. Responsive layouts and accessibility
*/

/* 1. Design tokens and base elements */
:root {
  --ink: #171717;
  --muted: #626262;
  --line: #bbb;
  --surface: #f1f1f1;
  --title-size: clamp(1.875rem, 3.2vw, 2.75rem);
  --subtitle-size: clamp(1.5rem, 2.2vw, 2rem);
  --column-gap: 80px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 16px/1.65 Arial, Helvetica, sans-serif;
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

h1, h2, h3, p {
  margin-top: 0;
}
a {
  color: inherit;
  text-underline-offset: 6px;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}
::selection {
  background: #222;
  color: #fff;
}

/* 2. Shared layout and typography */
.wrap {
  width: min(1320px, calc(100% - 96px));
  margin-inline: auto;
}
.section {
  padding-block: 76px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--column-gap);
  align-items: start;
}
.split > * {
  min-width: 0;
}

h2 {
  font-size: var(--title-size);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.035em;
  margin-bottom: 28px;
}

h3 {
  font-size: var(--subtitle-size);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.eyebrow, .label {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.eyebrow {
  margin-bottom: 28px;
}
.label {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.label h1, .label h2 {
  font: inherit;
  letter-spacing: inherit;
  margin: 0;
}
.lead {
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: -.015em;
}
.split p:not(.eyebrow):not(.call-status), .program article p, .exhibition-description {
  text-align: justify;
}

.button {
  display: inline-block;
  padding: 13px 21px;
  background: #191919;
  border: 1px solid #191919;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}
.button:hover {
  background: #444;
}

/* 3. Header, exhibitions and events */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 130px;
  border-bottom: 1px solid var(--line);
}
.brand img {
  display: block;
  width: 156px;
  height: 100px;
  object-fit: contain;
  filter: grayscale(1);
}
nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
nav a {
  font-size: 14px;
  text-decoration: none;
}

.exhibitions {
  border-bottom: 1px solid var(--line);
}
.exhibitions > .label {
  padding-block: 30px;
}
.exhibition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.exhibition-grid article {
  min-width: 0;
}
.exhibition-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1920/1005;
  object-fit: contain;
  background: #eee;
}
.exhibition-info {
  padding: 24px 0 30px;
}
.exhibition-info .eyebrow {
  font-size: 14px;
  margin-bottom: 12px;
  letter-spacing: .055em;
}
.exhibition-info h2 {
  margin-bottom: 20px;
}
.exhibition-meta {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 0;
}
.exhibition-description {
  margin-top: 24px;
  line-height: 1.7;
}
.exhibition-description p {
  margin-bottom: 18px;
}
.exhibition-description p:last-child {
  margin-bottom: 0;
}

.events {
  padding-top: 54px;
  padding-bottom: 10px;
}
.events > .eyebrow {
  margin-bottom: 16px;
}
.event-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 220px;
  gap: 32px;
  align-items: center;
  padding-block: 27px;
  border-top: 1px solid var(--line);
}
.event-row:last-child {
  border-bottom: 1px solid var(--line);
}
.event-date {
  font-size: 29px;
  line-height: 1.25;
}
.event-date span {
  display: block;
  margin-top: 8px;
  font-size: 17px;
}
.event-row h3 {
  font-size: 23px;
  line-height: 1.35;
  margin-bottom: 6px;
}
.event-row p {
  font-size: 18px;
  margin: 0;
  color: #555;
}
.event-row > a, .event-links {
  font-size: 16px;
  justify-self: end;
}
.event-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

/* 4. Gallery introduction, programs and editorial sections */
.creators {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding-top: 40px;
}
.creators h2 {
  margin-bottom: 0;
}
.program {
  background: var(--surface);
}
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 45px;
}
.program article {
  padding-inline: 36px;
  border-left: 1px solid var(--line);
  min-width: 0;
}
.program article:first-child {
  border-left: 0;
  padding-left: 0;
}
.program article:last-child {
  padding-right: 0;
}
.program p {
  color: #555;
}
.number {
  display: block;
  margin-bottom: 48px;
  color: #666;
  font-size: 14px;
}
.statement-copy {
  color: #555;
}
.galeriukas {
  border-top: 1px solid var(--line);
  padding-top: 48px;
  margin-top: 54px;
}
.galeriukas .button {
  margin-top: 12px;
}
.calls {
  background: #f0f0f0;
}
.call-status {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 14px;
  color: #666;
}

.split h2 {
  font-weight: 400;
}

/* 5. Quiet, compact contact section and right-aligned municipality logo */
.contact {
  background: #181818;
  color: #ddd;
  padding: 36px 0 0;
}
.contact > .wrap > .eyebrow {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 18px;
}
.contact h2 {
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -.025em;
  margin-bottom: 14px;
  color: #eee;
}
.contact .split {
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
}
.contact .split > div > p:not(.eyebrow):not(.call-status) {
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
  color: #bcbcbc;
  max-width: 420px;
}
.contact-details > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  column-gap: 14px;
  align-items: baseline;
  border-top: 1px solid #444;
  padding-block: 10px;
}
.contact-details span {
  color: #aaa;
  font-size: 12px;
  letter-spacing: .04em;
}
.contact-details a:not(.map-link), address {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  font-style: normal;
  overflow-wrap: anywhere;
}
.contact-details a:hover {
  text-decoration: underline;
}
address small {
  display: block;
  font-size: 14px;
  color: #aaa;
  margin-top: 3px;
}
.map-link {
  grid-column: 2;
  font-size: 14px;
  margin-top: 8px;
}
.contact footer {
  display: flex;
  align-items: center;
  gap: 28px;
  border-top: 1px solid #444;
  margin-top: 26px;
  padding-block: 16px;
  color: #aaa;
  font-size: 13px;
}
.municipality-logo {
  display: block;
  width: 64px;
  height: auto;
  margin-left: auto;
  filter: grayscale(1) contrast(4) invert(1);
  mix-blend-mode: screen;
}

/* 6. Responsive layouts and accessibility */
@media (max-width: 1000px) {
  :root {
    --column-gap: 40px;
  }
  .wrap {
    width: calc(100% - 56px);
  }
  nav {
    gap: 18px;
  }
  .brand img {
    width: 130px;
  }
  .program article {
    padding-inline: 22px;
  }
  .event-row {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 20px;
  }
  .event-row > a, .event-links {
    grid-column: 2;
    justify-self: start;
  }
  .contact .split {
    gap: 30px;
  }
  .contact-details > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .map-link {
    grid-column: 1;
  }
}

@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 40px);
  }
  header {
    flex-wrap: wrap;
    padding: 14px 0 20px;
    gap: 18px;
  }
  .brand img {
    width: 112px;
    height: 75px;
  }
  nav {
    width: 100%;
    gap: 12px 20px;
  }
  .section {
    padding-block: 54px;
  }
  .split, .contact .split, .exhibition-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .label {
    font-size: 12px;
  }
  .label > span {
    max-width: 48%;
    text-align: right;
  }
  .lead {
    font-size: 20px;
  }
  .exhibition-info {
    padding: 20px 0 24px;
  }
  .events {
    padding-top: 40px;
  }
  .event-row {
    grid-template-columns: 75px minmax(0, 1fr);
    gap: 16px;
    padding-block: 24px;
  }
  .event-date {
    font-size: 25px;
  }
  .event-date span {
    font-size: 15px;
  }
  .event-row h3 {
    font-size: 20px;
  }
  .event-row p {
    font-size: 16px;
  }
  .program-grid {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }
  .program article, .program article:first-child, .program article:last-child {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 30px 0;
  }
  .number {
    margin-bottom: 20px;
  }
  .creators, .galeriukas {
    margin-top: 40px;
    padding-top: 32px;
  }
  .contact {
    padding: 30px 0 0;
  }
  .contact .split {
    gap: 20px;
  }
  .contact h2 {
    font-size: 26px;
  }
  .contact footer {
    gap: 16px;
    margin-top: 22px;
  }
  .municipality-logo {
    width: 56px;
  }
}

.skip {
  position: absolute;
  left: 20px;
  top: -100px;
  padding: 12px;
  background: #fff;
  z-index: 9;
}
.skip:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
