/* Ljetnikovac Mala Slatina
   Boje su uzete iz logoa: tamnobordo prsten, zelena grančica, zlatni natpis. */

:root {
  --paper: #fbf7f0;
  --cream: #f4ede1;
  --white: #fffdf9;
  --ink: #2b1414;
  --text: #4d3b3a;
  --muted: #7b6a67;
  --maroon: #300808;
  --maroon-soft: #4a1717;
  --sage: #a2b785;
  --sage-deep: #5d744b;
  --sage-tint: #edf1e3;
  --gold: #c5a115;
  --gold-deep: #806604;
  --line: #e5dac8;

  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 44px);
  --header-h: 70px;
  --radius: 16px;
  --arch: 999px 999px var(--radius) var(--radius);
  --shadow: 0 24px 60px -30px rgba(48, 8, 8, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.is-locked { overflow: hidden; }

img, picture, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 9vw, 4.5rem); letter-spacing: -.018em; }
h2 { font-size: clamp(2.05rem, 5.2vw, 3.2rem); letter-spacing: -.014em; }
h3 { font-size: 1.55rem; font-weight: 500; line-height: 1.15; }
h1 em { font-style: italic; color: var(--sage-deep); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--maroon); color: var(--paper); text-decoration: none;
}
.skip:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--gold-deep);
  font-size: .76rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
}

.lead { font-size: clamp(1.08rem, 1.6vw, 1.2rem); line-height: 1.7; }

/* ---------- Dugmad ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.7em;
  border: 1px solid transparent; border-radius: 999px;
  font-size: .86rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 42px; padding: 0 1.25em; font-size: .8rem; letter-spacing: .1em; }

.btn--primary { background: var(--maroon); color: var(--paper); }
.btn--primary:hover { background: var(--maroon-soft); }

.btn--outline { border-color: var(--maroon); color: var(--maroon); }
.btn--outline:hover { background: var(--maroon); color: var(--paper); }

.btn--ghost { border-color: rgba(255, 253, 249, .7); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--maroon); }

.btn--light { background: var(--paper); color: var(--maroon); }
.btn--light:hover { background: #fff; }

.btn--ghost-light { border-color: rgba(251, 247, 240, .45); color: var(--paper); }
.btn--ghost-light:hover { background: rgba(251, 247, 240, .12); border-color: var(--paper); }

/* ---------- Zaglavlje ---------- */

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, .93);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(48, 8, 8, .5); }

.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: var(--header-h);
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto; padding-inline: var(--gutter);
}

.brand { display: block; flex: none; }
.brand img { width: auto; height: 48px; }

.nav-toggle {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-right: -10px;
  background: none; border: 0; border-radius: 50%;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 24px; height: 1.5px; background: var(--maroon);
  transition: transform .3s var(--ease), background-color .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: absolute; top: 100%; left: 0; right: 0;
  display: none; flex-direction: column;
  padding: 8px var(--gutter) 26px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 40px -30px rgba(48, 8, 8, .45);
}
.nav.is-open { display: flex; }
.nav > a:not(.btn) {
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: .86rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
}
.nav__cta { margin-top: 22px; min-height: 50px; }

@media (min-width: 900px) {
  :root { --header-h: 88px; }
  .brand img { height: 62px; }
  .nav-toggle { display: none; }
  .nav {
    position: static; display: flex; flex-direction: row; align-items: center; gap: clamp(18px, 2.4vw, 34px);
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  .nav > a:not(.btn) {
    position: relative; padding: 8px 0; border: 0;
    font-size: .78rem; letter-spacing: .18em;
  }
  .nav > a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
    background: var(--gold); transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease);
  }
  .nav > a:not(.btn):hover::after { transform: scaleX(1); }
  .nav__cta { margin: 0 0 0 6px; min-height: 42px; }
}

/* ---------- Početni ekran ---------- */

.hero {
  position: relative; isolation: isolate;
  display: grid; align-items: end;
  min-height: min(calc(100svh - var(--header-h)), 780px);
  color: var(--white);
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--maroon); }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 50% 62%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(34, 6, 6, 0) 0%, rgba(34, 6, 6, .12) 34%, rgba(34, 6, 6, .72) 66%, rgba(34, 6, 6, .93) 100%);
}

.hero__content { padding: 120px var(--gutter) 34px; }
.hero h1 { color: var(--white); }
.hero h1 em { color: #cfe0b4; }
.hero .eyebrow { color: #ecd98a; }
.hero__lead { max-width: 34em; margin-top: 18px; font-size: 1.08rem; line-height: 1.6; color: rgba(255, 253, 249, .9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .btn--primary { background: var(--paper); color: var(--maroon); }
.hero .btn--primary:hover { background: #fff; }

.rating {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  font-size: .92rem; text-decoration: none; color: inherit;
}
.rating strong { font-weight: 500; }
.rating:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }

.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars .icon { width: 1em; height: 1em; fill: currentColor; stroke: none; }
.stars--lg { font-size: 1.5rem; gap: 5px; }

@media (max-width: 420px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    gap: clamp(36px, 5vw, 76px); align-items: center;
    min-height: 0;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding: clamp(36px, 5vw, 64px) var(--gutter) clamp(48px, 6vw, 84px);
    color: var(--text);
  }
  .hero__media {
    position: relative; inset: auto; z-index: 0; order: 2;
    aspect-ratio: 4 / 5; max-height: calc(100svh - var(--header-h) - 96px); width: 100%;
    justify-self: end;
    border-radius: var(--arch); box-shadow: var(--shadow);
  }
  .hero__media::after { display: none; }
  .hero__content { order: 1; padding: 0; }
  .hero h1 { color: var(--ink); }
  .hero h1 em { color: var(--sage-deep); }
  .hero .eyebrow { color: var(--gold-deep); }
  .hero__lead { margin-top: 24px; font-size: 1.2rem; line-height: 1.7; color: var(--text); }
  .hero__actions { margin-top: 34px; }
  .hero .btn--primary { background: var(--maroon); color: var(--paper); }
  .hero .btn--primary:hover { background: var(--maroon-soft); }
  .hero .btn--ghost { border-color: var(--maroon); color: var(--maroon); }
  .hero .btn--ghost:hover { background: var(--maroon); color: var(--paper); }
  .rating { margin-top: 30px; }
}

/* ---------- Sekcije ---------- */

.section { padding-block: clamp(68px, 10vw, 128px); }
.section--cream { background: var(--cream); }
.section--sage { background: var(--sage-tint); }

.section__head { max-width: 760px; margin: 0 auto clamp(34px, 5vw, 60px); text-align: center; }
.section__note { margin-top: clamp(30px, 4vw, 46px); text-align: center; color: var(--muted); }
.section__note a {
  color: var(--maroon); font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.section__note a:hover { text-decoration-thickness: 2px; }

/* ---------- Dobrodošli ---------- */

.intro { padding-block: clamp(56px, 8vw, 104px); }
.intro__inner { max-width: 860px; text-align: center; }
.intro__logo { width: clamp(190px, 30vw, 260px); margin: 0 auto 6px; }
.intro .lead { margin-top: 20px; }

.facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 12px;
  margin-top: clamp(34px, 5vw, 52px); padding-top: clamp(30px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.facts li { display: grid; gap: 4px; }
.facts strong { font: 400 clamp(2.3rem, 5vw, 3rem)/1 var(--serif); color: var(--maroon); }
.facts span { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Proslave ---------- */

.occasions {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(74%, 300px); gap: 16px;
  margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.occasions::-webkit-scrollbar { display: none; }
.occasion { scroll-snap-align: start; }
.occasion__img { aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--arch); background: var(--line); }
.occasion__img picture, .occasion__img img { width: 100%; height: 100%; }
.occasion__img img { object-fit: cover; transition: transform 1.2s var(--ease); }
.occasion__img--table img { object-position: 80% 50%; }
.occasion:hover .occasion__img img { transform: scale(1.05); }
.occasion h3 { margin-top: 20px; }
.occasion p { margin-top: 8px; font-size: 1rem; line-height: 1.6; }

@media (min-width: 640px) {
  .occasions {
    grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, 1fr); gap: 36px 24px;
    margin-inline: 0; padding: 0; overflow: visible;
  }
}
@media (min-width: 1000px) { .occasions { grid-template-columns: repeat(4, 1fr); gap: 26px; } }

/* ---------- Prostor ---------- */

.split { display: grid; gap: clamp(30px, 5vw, 48px); }
.split__text .lead { margin-top: 18px; }

.split__media { position: relative; max-width: 600px; padding: 0 0 15% 0; }
.media-main { width: 82%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--line); }
.media-inset {
  position: absolute; right: 0; bottom: 0; width: 56%; aspect-ratio: 3 / 2; overflow: hidden;
  border: 6px solid var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--line);
}
.media-main picture, .media-main img, .media-inset picture, .media-inset img { width: 100%; height: 100%; }
.media-main img, .media-inset img { object-fit: cover; }

.features { display: grid; gap: 22px 28px; }
.features li { display: flex; gap: 16px; align-items: flex-start; }
.features .icon { width: 28px; height: 28px; margin-top: 2px; color: var(--sage-deep); stroke-width: 1.4; }
.features h3 { font-size: 1.3rem; }
.features p { margin-top: 2px; font-size: .98rem; line-height: 1.55; }

@media (min-width: 560px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); column-gap: clamp(44px, 6vw, 88px); row-gap: 38px;
    grid-template-areas: "media text" "media features"; align-items: start;
  }
  .split__media { grid-area: media; align-self: center; }
  .split__text { grid-area: text; align-self: end; }
  .features { grid-area: features; }
}

/* ---------- Za djecu ---------- */

.kids { display: grid; gap: clamp(30px, 5vw, 48px); }
.kids__text .lead { margin-top: 18px; }
.kids__list { display: grid; gap: 18px; margin-top: 28px; }
.kids__list > div { padding-left: 18px; border-left: 2px solid var(--sage); }
.kids__list dt { font: 500 1.3rem/1.2 var(--serif); color: var(--ink); }
.kids__list dd { margin-top: 3px; font-size: .98rem; line-height: 1.55; }

.kids__media { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.kids__photo { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--line); }
.kids__photo--wide { grid-column: 1 / -1; }
.kids__photo picture, .kids__photo img { width: 100%; height: 100%; }
.kids__photo img { object-fit: cover; }
.kids__photo--slide img { object-position: 50% 70%; }

@media (min-width: 960px) {
  .kids { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: clamp(44px, 6vw, 88px); align-items: center; }
  .kids__media { gap: 16px; }
}

/* ---------- Galerija ---------- */

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: clamp(24px, 4vw, 38px); }
.chip {
  min-height: 42px; padding: 0 1.2em;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  color: var(--text); font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .25s, color .25s, border-color .25s;
}
.chip:hover { border-color: var(--maroon); color: var(--maroon); }
.chip[aria-pressed="true"] { background: var(--maroon); border-color: var(--maroon); color: var(--paper); }

.gallery { container-type: inline-size; }
.gallery__grid {
  --cols: 2; --gap: 8px;
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap);
  grid-auto-rows: 120px;
  grid-auto-rows: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols) * .6667);
  grid-auto-flow: dense;
}
@container (min-width: 620px) { .gallery__grid { --cols: 3; --gap: 12px; } }
@container (min-width: 980px) { .gallery__grid { --cols: 4; --gap: 14px; } }

.gallery__item { position: relative; display: block; overflow: hidden; border-radius: 10px; background: var(--line); cursor: zoom-in; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--big { grid-column: span 2; grid-row: span 2; }
.gallery__item[hidden] { display: none; }
.gallery__item picture, .gallery__item img { width: 100%; height: 100%; }
.gallery__item img { object-fit: cover; transition: transform .9s var(--ease), filter .4s; }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.045); filter: brightness(1.04); }

/* ---------- Utisci ---------- */

.reviews__inner { max-width: 720px; text-align: center; }
.reviews__score { font: 400 clamp(4.4rem, 12vw, 6.6rem)/1 var(--serif); color: var(--maroon); }
.reviews .stars { justify-content: center; margin-top: 8px; }
.reviews .lead { margin: 24px 0 32px; }

/* ---------- Kontakt ---------- */

.contact { background: var(--maroon); color: rgba(251, 247, 240, .84); }
.contact h2 { color: var(--paper); }
.contact .eyebrow { color: #e3cc6e; }
.contact__inner { display: grid; gap: clamp(36px, 5vw, 56px); }
.contact .lead { margin-top: 18px; max-width: 30em; }

.contact__phone {
  display: inline-block; margin-top: 26px;
  font: 400 clamp(2.8rem, 10vw, 4.2rem)/1 var(--serif); color: var(--paper); text-decoration: none;
  border-bottom: 1px solid rgba(197, 161, 21, .65); padding-bottom: 6px;
  transition: border-color .25s;
}
.contact__phone:hover { border-bottom-color: var(--gold); }

.contact__list { display: grid; gap: 14px; margin-top: 30px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list .icon { width: 22px; height: 22px; margin-top: 4px; color: var(--sage); }
.contact__list a { text-decoration-color: rgba(251, 247, 240, .4); text-underline-offset: 4px; }
.contact__list a:hover { text-decoration-color: var(--gold); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.contact__map { display: grid; gap: 14px; align-content: start; }
.contact__map iframe {
  width: 100%; aspect-ratio: 4 / 3; min-height: 320px; border: 0; border-radius: var(--radius);
  background: var(--maroon-soft);
}
.contact__maplink {
  display: inline-flex; align-items: center; gap: .5em; justify-self: start;
  font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--paper);
}
.contact__maplink:hover { color: #e3cc6e; }

@media (min-width: 960px) {
  .contact__inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: clamp(44px, 6vw, 88px); align-items: center; }
  .contact__map iframe { aspect-ratio: 5 / 4; }
}

/* ---------- Podnožje ---------- */

.footer { background: #250606; color: rgba(251, 247, 240, .7); font-size: .95rem; text-align: center; }
.footer__inner { display: grid; justify-items: center; gap: 12px; padding-block: 44px 40px; }
.footer__logo { width: 150px; }
.footer a { text-decoration-color: rgba(251, 247, 240, .35); text-underline-offset: 4px; }
.footer a:hover { color: var(--paper); text-decoration-color: var(--gold); }
.footer__copy { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }

/* ---------- Dugme za poziv na telefonu ---------- */

.callbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; border-radius: 999px;
  background: var(--maroon); color: var(--paper);
  font-size: .88rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 16px 34px -14px rgba(48, 8, 8, .75), 0 0 0 1px rgba(251, 247, 240, .16);
  opacity: 0; visibility: hidden; transform: translateY(18px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.callbar.is-visible { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 900px) { .callbar { display: none; } }

/* ---------- Uvećan prikaz ---------- */

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(24, 4, 4, .96); color: var(--paper);
}
.lightbox::backdrop { background: rgba(24, 4, 4, .96); }
.lightbox[open] { display: grid; place-items: center; animation: fade .25s var(--ease); }

.lightbox__figure { display: grid; justify-items: center; gap: 14px; max-width: 100vw; padding: 56px 12px 20px; }
.lightbox__img {
  max-width: min(100%, 1400px); max-height: calc(100dvh - 150px); width: auto; height: auto;
  border-radius: 8px; object-fit: contain; transition: opacity .25s;
}
.lightbox__img.is-loading { opacity: .25; }
.lightbox figcaption {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; max-width: 46em; padding-inline: 12px;
  font-size: .94rem; line-height: 1.5; text-align: center; color: rgba(251, 247, 240, .86);
}
.lightbox__count { color: rgba(251, 247, 240, .55); font-variant-numeric: tabular-nums; }

.lightbox__btn {
  position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px;
  background: rgba(251, 247, 240, .1); border: 1px solid rgba(251, 247, 240, .22); border-radius: 50%; color: var(--paper);
  transition: background-color .2s;
}
.lightbox__btn:hover { background: rgba(251, 247, 240, .24); }
.lightbox__btn .icon { width: 22px; height: 22px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; transform: none; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
  .lightbox__figure { padding-bottom: 78px; }
  .lightbox__img { max-height: calc(100dvh - 210px); }
}

@keyframes fade { from { opacity: 0; } }

/* ---------- Stranica 404 ---------- */

.notfound {
  display: grid; place-content: center; justify-items: center; gap: 14px;
  min-height: 100svh; padding: 40px var(--gutter); text-align: center;
}
.notfound img { width: clamp(180px, 40vw, 240px); }
.notfound .eyebrow { margin: 6px 0 0; }
.notfound h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); }
.notfound .btn { margin-top: 16px; }

/* ---------- Pojavljivanje pri skrolovanju ---------- */

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

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