:root {
  --ink: #24211d;
  --muted: #6f675c;
  --paper: #f8f3ea;
  --paper-deep: #ede4d5;
  --clay: #9f6b4b;
  --clay-dark: #6f432e;
  --sage: #53685d;
  --sage-soft: #d9dfd7;
  --line: rgba(36, 33, 29, 0.14);
  --white: #fffaf2;
  --shadow: 0 24px 70px rgba(64, 47, 33, 0.18);
  --shadow-soft: 0 14px 38px rgba(64, 47, 33, 0.1);
  --radius: 8px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(159, 107, 75, 0.16), transparent 34rem),
    linear-gradient(180deg, var(--paper), #fbf7ef 48%, #f3ebdf);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

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

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

:focus-visible {
  outline: 3px solid rgba(159, 107, 75, 0.44);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  border-radius: 6px;
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: var(--ink);
  background: rgba(248, 243, 234, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand {
  width: fit-content;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.25rem, 1.7vw, 1.7rem);
  font-weight: 650;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.nav a {
  position: relative;
  padding: 8px 0;
  transition: color 180ms ease;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--clay-dark);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 8px 24px rgba(64, 47, 33, 0.07);
}

.language-option {
  display: grid;
  place-items: center;
  min-width: 36px;
  min-height: 30px;
  padding: 0 9px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.language-option.active {
  color: var(--white);
  background: var(--ink);
}

.language-option:hover,
.language-option:focus-visible {
  color: var(--white);
  background: var(--clay);
}

.language-option:active,
.button:active,
.filter:active,
.gallery-item:active,
.lightbox button:active {
  transform: translateY(1px) scale(0.98);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(255, 250, 242, 0.74);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.84fr) minmax(420px, 1.16fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
  max-width: 1520px;
  height: 100vh;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 72px) clamp(18px, 5vw, 72px);
}

.hero::after {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: clamp(24px, 4vw, 48px);
  left: clamp(18px, 5vw, 72px);
  height: 1px;
  content: "";
  background: rgba(36, 33, 29, 0.14);
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 650;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 620px;
  font-size: clamp(2.55rem, 5vw, 5.25rem);
  line-height: 0.96;
}

html[lang="en"] h1 {
  max-width: 680px;
  font-size: clamp(2.35rem, 4.35vw, 4.65rem);
}

h2 {
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 0.95;
}

.intro,
.contact-text {
  color: var(--muted);
  text-wrap: pretty;
}

.intro {
  max-width: 520px;
  margin: 24px 0 0;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  font-weight: 800;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.button.primary {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 14px 30px rgba(36, 33, 29, 0.18);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--clay-dark);
  border-color: var(--clay-dark);
  box-shadow: 0 18px 38px rgba(111, 67, 46, 0.24);
  transform: translateY(-2px);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 250, 242, 0.36);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  color: var(--white);
  background: var(--sage);
  border-color: var(--sage);
  transform: translateY(-2px);
}

.hero-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 14px;
  height: min(72vh, 680px);
  min-height: 520px;
}

.hero-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid rgba(255, 250, 242, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-card figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 7px 10px;
  color: var(--white);
  background: rgba(36, 33, 29, 0.74);
  border: 1px solid rgba(255, 250, 242, 0.22);
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 800;
}

.hero-card-large {
  grid-row: 1 / -1;
  height: auto;
}

.hero-card-small {
  height: auto;
  transform: none;
}

.hero-card-tall {
  height: auto;
}

.hero-card-wide {
  height: auto;
  width: auto;
  margin-left: 0;
  transform: none;
}

.hero-card-large img,
.hero-card-tall img {
  object-position: center top;
}

.hero-card-large img {
  object-position: center 18%;
}

.section {
  padding: clamp(70px, 9vw, 124px) clamp(18px, 5vw, 72px);
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.section-head {
  max-width: var(--container);
  margin: 0 auto 30px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: var(--container);
  margin: 0 auto 28px;
}

.filter {
  min-height: 42px;
  padding: 0 15px;
  color: var(--muted);
  background: rgba(255, 250, 242, 0.58);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  transition: color 200ms ease, background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.filter:hover,
.filter:focus-visible {
  color: var(--ink);
  border-color: rgba(159, 107, 75, 0.42);
  transform: translateY(-1px);
}

.filter.active {
  color: var(--white);
  background: var(--clay-dark);
  border-color: var(--clay-dark);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
  max-width: var(--container);
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  background: var(--paper-deep);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
  contain: layout paint style;
  content-visibility: auto;
  contain-intrinsic-size: 240px 300px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 260ms ease;
}

.gallery-item::after {
  position: absolute;
  inset: auto 10px 10px 10px;
  height: 1px;
  content: "";
  background: rgba(255, 250, 242, 0.72);
  opacity: 0;
  transform: scaleX(0.2);
  transform-origin: left;
  transition: opacity 260ms ease, transform 260ms ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  box-shadow: 0 22px 56px rgba(64, 47, 33, 0.2);
  transform: translateY(-3px);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.sea-band {
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(36, 33, 29, 0.95), rgba(83, 104, 93, 0.9)),
    url("slike/izlozbe/12.jpg") center / cover;
  background-color: var(--ink);
}

.sea-band h2,
.sea-band .eyebrow {
  color: var(--white);
}

.exhibition-gallery .gallery-item {
  background: rgba(255, 250, 242, 0.13);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.23);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(300px, 1fr);
  gap: clamp(32px, 7vw, 88px);
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
}

.contact-photo {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-photo::after {
  position: absolute;
  inset: 16px;
  content: "";
  border: 1px solid rgba(255, 250, 242, 0.52);
  border-radius: 5px;
  pointer-events: none;
}

.contact-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

.contact-content {
  max-width: 650px;
}

.contact-text {
  max-width: 58ch;
  margin: 22px 0 34px;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.75;
}

.contact-lines {
  display: grid;
  gap: 0;
  font-weight: 800;
}

.contact-lines a {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 64px;
  padding: 14px 0;
  color: var(--ink);
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
  transition: color 180ms ease, padding-left 180ms ease;
}

.contact-lines a:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-lines a:hover,
.contact-lines a:focus-visible {
  color: var(--clay-dark);
  padding-left: 8px;
}

.contact-lines span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: rgba(255, 250, 242, 0.78);
  background: var(--ink);
}

.site-footer p {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 650;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.86rem;
  font-weight: 800;
}

.site-footer a {
  transition: color 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--white);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 64px clamp(14px, 4vw, 44px);
  background: rgba(22, 20, 18, 0.9);
  backdrop-filter: blur(8px);
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: min(92vw, 1060px);
  max-height: 82vh;
  object-fit: contain;
  background: var(--ink);
  border-radius: 6px;
  box-shadow: 0 26px 84px rgba(0, 0, 0, 0.42);
}

.lightbox button {
  position: fixed;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--white);
  background: rgba(255, 250, 242, 0.12);
  border: 1px solid rgba(255, 250, 242, 0.28);
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 2rem;
  transition: background 180ms ease, transform 180ms ease;
}

.lightbox button:hover,
.lightbox button:focus-visible {
  background: rgba(255, 250, 242, 0.22);
}

.lightbox-close {
  top: 18px;
  right: 18px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100svh;
  }

  .hero-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-auto-rows: minmax(220px, 300px);
    height: auto;
    min-height: 0;
  }

  .hero-card-large,
  .hero-card-small,
  .hero-card-tall,
  .hero-card-wide {
    height: clamp(220px, 42vw, 320px);
    width: auto;
    grid-column: auto;
    grid-row: auto;
    transform: none;
  }

  .contact-section {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 66px;
    grid-template-columns: 1fr auto auto;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 18px;
    left: 18px;
    display: none;
    padding: 14px 16px;
    background: rgba(255, 250, 242, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: grid;
  }

  .hero-gallery {
    display: flex;
    overflow-x: auto;
    padding: 0 0 12px;
    scroll-snap-type: x mandatory;
  }

  .hero-card {
    flex: 0 0 min(76vw, 310px);
    height: 330px;
    scroll-snap-align: start;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-item {
    aspect-ratio: 4 / 5;
  }

  .contact-photo {
    width: min(100%, 380px);
  }

  .contact-lines a {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer {
    display: grid;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 18px;
    transform: none;
  }
}

@media (max-width: 460px) {
  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.45rem);
  }

  html[lang="en"] h1 {
    font-size: clamp(2.05rem, 10vw, 3rem);
  }

  .button {
    width: 100%;
  }

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

  .gallery-item {
    aspect-ratio: 4 / 5;
  }

  .contact-photo {
    width: 100%;
  }
}
