/* Layout: gallery white cube — black bands for hero/about/footer, white rooms for the work; no colour except the paintings themselves. */
:root {
  --black: #0d0d0d;
  --black-2: #1a1a1a;
  --white: #ffffff;
  --paper: #f5f5f4;      /* off-white for secondary bands */
  --ink: #0d0d0d;
  --muted: #6b6b6b;
  --on-dark: #ffffff;
  --on-dark-muted: #a3a3a3;
  --line: rgba(13, 13, 13, .14);
  --line-dark: rgba(255, 255, 255, .2);

  --f-display: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;

  --step-2: 1.75rem;
  --step-3: clamp(2rem, 3.6vw, 2.9rem);
  --step-4: clamp(2.3rem, 5.4vw, 4.2rem);

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--black); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 300; line-height: 1.1; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: var(--step-3); }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.eyebrow { font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.section--dark .eyebrow, .hero .eyebrow, .banner .eyebrow { color: var(--on-dark-muted); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--dark { background: var(--black); color: var(--on-dark); }
.sec-head { display: grid; gap: 12px; margin-bottom: 52px; text-align: center; justify-items: center; }
.sec-head h2::after { content: ""; display: block; width: 40px; height: 2px; background: var(--ink); margin: 22px auto 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 30px;
  font: 500 .78rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--ink); cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn--solid { background: var(--ink); color: var(--white); }
.btn--solid:hover { background: var(--white); color: var(--ink); }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light:hover { background: transparent; color: var(--white); }
.btn--line { background: transparent; color: var(--on-dark); border-color: var(--line-dark); }
.btn--line:hover { border-color: var(--white); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- header ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--black); color: var(--on-dark); border-bottom: 1px solid var(--line-dark); }
.topbar__in { max-width: 1200px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); padding-block: 12px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; white-space: nowrap; }
.brand img { height: 34px; width: auto; }
.brand__word { font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--on-dark-muted); padding-left: 14px; border-left: 1px solid var(--line-dark); }
.nav { display: flex; gap: 32px; margin-left: auto; }
.nav a { text-decoration: none; font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: var(--on-dark-muted); transition: color .2s; }
.nav a:hover { color: var(--white); }
.lang { display: flex; border: 1px solid var(--line-dark); }
.lang button { background: none; border: 0; color: var(--on-dark-muted); font: 500 .72rem/1 var(--f-body); letter-spacing: .16em; padding: 9px 12px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--white); color: var(--black); }
@media (max-width: 720px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .brand img { height: 28px; }
  .brand__word { display: none; }
}

/* ---------- hero ---------- */
.hero { background: var(--black); color: var(--on-dark); overflow: hidden; }
.hero__in { max-width: 1200px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(24px, 5vw, 72px); }
.hero__text { display: grid; gap: 26px; padding-block: 56px; min-width: 0; }
.hero__title { font-size: var(--step-4); font-weight: 200; }
.hero__title span { display: block; font-size: .42em; font-weight: 300; letter-spacing: .28em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: .55em; }
.hero__title em { font-style: normal; font-weight: 400; }
.hero__sig { width: min(320px, 70%); height: auto; opacity: .95; }
.hero__copy { display: grid; gap: 12px; max-width: 48ch; }
.hero__tag { font-size: .9rem; letter-spacing: .24em; text-transform: uppercase; color: var(--white); font-weight: 400; margin-bottom: 4px; }
.hero__lead { color: var(--on-dark-muted); font-size: 1.02rem; line-height: 1.75; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero__img { margin: 0; align-self: end; }
.hero__img img { width: 100%; height: auto; max-height: 82vh; object-fit: cover; object-position: center top; filter: grayscale(0); }
@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__text { padding-block: 40px 8px; }
  .hero__img img { max-height: none; aspect-ratio: 4 / 5; }
}

/* ---------- collection cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; text-decoration: none; background: var(--white); }
.card__img { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { display: grid; gap: 8px; padding: 20px 2px 8px; flex: 1; align-content: start; border-bottom: 1px solid var(--line); }
.card__title { font-size: 1.35rem; font-weight: 400; line-height: 1.2; }
.card__text { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.card__more { margin-top: 8px; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; }
.card__more::after { content: " →"; transition: margin .2s; }
.card:hover .card__more::after { margin-left: 6px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.about__img { margin: 0; }
.about__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.about__text { display: grid; gap: 20px; min-width: 0; }
.about__text h2 { font-size: var(--step-4); font-weight: 200; }
.prose { display: grid; gap: 14px; max-width: 60ch; color: var(--on-dark-muted); }
.signature { width: 220px; height: auto; margin-top: 8px; }
.strip-band { background: var(--black); padding-block: clamp(40px, 6vw, 72px); }
.about__strip { margin: 0; }
.about__strip img { width: 100%; height: auto; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; }  }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 80px); }
.contact__info { display: grid; gap: 18px; align-content: start; min-width: 0; }
.contact__info > p { color: var(--muted); max-width: 42ch; }
.contact__list { margin: 12px 0 0; display: grid; gap: 14px; }
.contact__list div { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; }
.contact__list dt { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.contact__list dd { margin: 0; font-size: 1.15rem; font-weight: 400; overflow-wrap: anywhere; user-select: all; }
.contact__list a { text-decoration: none; user-select: auto; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; min-width: 0; }
.field { display: grid; gap: 4px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem/1.5 var(--f-body); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0; }
.field select { padding-right: 8px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field textarea { resize: vertical; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 8px; }
.form__status { font-size: .95rem; color: var(--muted); }
.form__status.ok { color: #1f6b3a; }
.form__status.err { color: #b3261e; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* ---------- collection view ---------- */
.banner { background: var(--black); color: var(--on-dark); padding-block: clamp(48px, 7vw, 96px); }
.banner__in { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.banner__text { display: grid; gap: 14px; min-width: 0; }
.banner--img { padding-bottom: 0; }
.banner--img .banner__in { grid-template-columns: 1.1fr .9fr; }
.banner--img .banner__text { padding-bottom: clamp(32px, 6vw, 80px); }
.banner__img { margin: 0; align-self: end; }
.banner__img img { width: 100%; height: auto; max-height: 70vh; object-fit: cover; object-position: center top; }
@media (max-width: 860px) { .banner--img .banner__in { grid-template-columns: 1fr; } .banner--img .banner__text { padding-bottom: 0; } .banner__img img { aspect-ratio: 4 / 5; max-height: none; } }
.banner h1 { font-size: var(--step-4); font-weight: 200; }
.banner__lead { max-width: 58ch; color: var(--on-dark-muted); }
.back { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); text-decoration: none; margin-bottom: 10px; }
.back:hover { color: var(--white); }

/* story rows (Tragovima Bosne) */
.stories { display: grid; gap: clamp(64px, 9vw, 128px); padding-block: clamp(56px, 8vw, 100px); }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.story:nth-child(even) .story__media { order: 2; }
.story__media { margin: 0; position: sticky; top: 96px; }
.story__media img { width: 100%; max-height: 80vh; object-fit: contain; background: var(--paper); }
.story__text { display: grid; gap: 18px; min-width: 0; align-content: start; }
.story__num { font-size: .72rem; letter-spacing: .3em; color: var(--muted); font-weight: 500; }
.story__title { font-size: var(--step-3); }
.meta { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-block: 14px; border-block: 1px solid var(--line); margin: 0; }
.meta div { display: grid; gap: 2px; }
.meta dt { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.meta dd { margin: 0; font-size: 1.02rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.story__story { display: grid; gap: 12px; max-width: 60ch; }
.refs { display: grid; gap: 10px; }
.refs__label { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.refs__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.ref { margin: 0; display: grid; gap: 6px; align-content: start; }
.ref button { all: unset; cursor: zoom-in; display: block; }
.ref img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ref figcaption { font-size: .8rem; line-height: 1.45; color: var(--muted); }
.story__main { all: unset; cursor: zoom-in; display: block; }
.story__thumbs { display: flex; gap: 8px; margin-top: 10px; }
.story__thumb { all: unset; cursor: pointer; width: 64px; height: 64px; opacity: .55; transition: opacity .2s; outline-offset: 2px; }
.story__thumb img { width: 100%; height: 100%; object-fit: cover; background: none; }
.story__thumb.is-on, .story__thumb:hover { opacity: 1; }
.story__thumb.is-on { outline: 1px solid var(--ink); }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story:nth-child(even) .story__media { order: 0; }
  .story__media { position: static; }
}

/* placeholders — visible reminders of what still needs filling in */
.ph { display: inline-block; border: 1px dashed #9a9a9a; color: #7a7a7a; background: #fafafa; font-size: .8rem; font-weight: 400; letter-spacing: .03em; padding: 3px 10px; line-height: 1.5; }
.ph-block { border: 1px dashed #9a9a9a; color: #7a7a7a; background: #fafafa; padding: 18px; font-size: .9rem; line-height: 1.5; }
.section--dark .ph-block { background: transparent; color: var(--on-dark-muted); border-color: var(--line-dark); }
.ph-img { display: grid; place-items: center; text-align: center; aspect-ratio: 1; border: 1px dashed #9a9a9a; color: #7a7a7a; background: #fafafa; font-size: .72rem; letter-spacing: .04em; padding: 8px; }

/* before/after grid (Slikanje po fotografiji) */
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px); padding-block: clamp(56px, 8vw, 100px); }
@media (max-width: 760px) { .photo-grid { grid-template-columns: 1fr; } }
.pf { display: grid; gap: 18px; align-content: start; min-width: 0; }
.pf__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; }
.pf__frame img, .pf__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf__frame > img:first-child { transition: transform .8s cubic-bezier(.22, .61, .36, 1), opacity .6s ease; }
.pf__photo { opacity: 0; transform: scale(1.03); transition: opacity .6s cubic-bezier(.22, .61, .36, 1), transform .8s cubic-bezier(.22, .61, .36, 1); }
.pf__photo.ph-img { aspect-ratio: auto; background: rgba(250, 250, 250, .95); font-size: .95rem; }
.pf__frame.is-on .pf__photo { opacity: 1; transform: none; }
.pf__frame.is-on > img:first-child { transform: scale(1.03); }
.pf__tag { position: absolute; left: 14px; bottom: 14px; z-index: 2; background: var(--black); color: var(--white); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; padding: 8px 12px; }
.pf__tag .on { display: none; }
.pf__frame.is-on .pf__tag .on { display: inline; }
.pf__frame.is-on .pf__tag .off { display: none; }
/* mouse: show the photo on hover; touch: tap toggles (no sticky hover) */
@media (hover: hover) and (pointer: fine) {
  .pf__frame:hover .pf__photo, .pf__frame:focus-visible .pf__photo { opacity: 1; transform: none; }
  .pf__frame:hover > img:first-child { transform: scale(1.03); }
  .pf__frame:hover .pf__tag .on { display: inline; }
  .pf__frame:hover .pf__tag .off { display: none; }
}
.pf h3 { font-size: 1.7rem; }
.pf__details { display: flex; gap: 8px; margin-top: -8px; }
.pf__details button { all: unset; cursor: zoom-in; width: 72px; height: 72px; }
.pf__details img { width: 100%; height: 100%; object-fit: cover; }

/* offer pages (Poklon, Korporativno) */
.offer { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); padding-block: clamp(56px, 8vw, 100px); align-items: start; }
.offer__media { margin: 0; }
.offer__media { position: sticky; top: 96px; }
.offer__media img { width: 100%; height: auto; max-height: calc(100vh - 120px); object-fit: contain; object-position: center top; }
@media (max-width: 860px) { .offer__media { position: static; } .offer__media img { max-height: none; } }
.offer__media .ph-img { aspect-ratio: 4 / 5; font-size: .95rem; }
.offer__text { display: grid; gap: 22px; min-width: 0; }
.offer__text h3 { font-size: var(--step-2); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; }
.ticks li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; padding-block: 5px; line-height: 1.55; }
.ticks li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); margin-top: .62em; }
.invoice { display: grid; gap: 4px; padding: 22px 24px; background: var(--black); color: var(--on-dark); }
.invoice strong { font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; }
.invoice span { color: var(--on-dark-muted); }
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; } }

/* partners */
.partners { padding-block: clamp(48px, 7vw, 88px); }
.partners .sec-head { margin-bottom: 32px; }
.partners__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 64px; }
.partners__list a { text-decoration: none; display: block; transition: opacity .2s; }
.partners__list a:hover { opacity: .6; }
.partners__list img { height: 52px; width: auto; max-width: 100%; }
.partners__name { font-size: 1.3rem; font-weight: 400; letter-spacing: .04em; }

/* corporate page: intro + two contrasting panels */
.offer--corp { align-items: center; }
.offer--corp .offer__media { position: static; }
.corp__intro { font-size: 1.12rem; line-height: 1.8; }
.corp__note { color: var(--muted); }
.offer--corp .btn { justify-self: start; }
.panels { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: clamp(48px, 6vw, 80px); }
.panel { display: grid; gap: 10px; align-content: start; padding: clamp(24px, 3vw, 36px); min-width: 0; }
.panel h3 { font-size: 1.4rem; margin-bottom: 4px; }
.panel--dark { background: var(--black); color: var(--on-dark); }
.panel--dark .eyebrow { color: var(--on-dark-muted); }
.panel--dark .ticks li::before { background: var(--white); }
.panel--grey { background: #ececea; }
@media (max-width: 860px) { .panels { grid-template-columns: 1fr; } }

.gift__time { display: grid; gap: 8px; background: #ececea; padding: clamp(20px, 3vw, 28px); }
.gift__time h3 { font-size: 1.2rem; }
.gift__time p { font-size: .97rem; line-height: 1.65; }

/* gallery strip (corporate page) */
.gallery { display: grid; gap: 18px; margin-bottom: clamp(48px, 6vw, 80px); }
.gallery h3 { font-size: 1.4rem; }
.gallery__grid { display: flex; flex-wrap: wrap; gap: 10px; }
.gallery__item { all: unset; cursor: zoom-in; display: block; position: relative; width: 150px; height: 150px; overflow: hidden; background: var(--paper); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 560px) { .gallery__item { width: calc((100% - 20px) / 3); height: auto; aspect-ratio: 1; } }

/* copyright mark in the corner of every painting */
.story__main, .pf__frame { position: relative; }
.story__main::after, .pf__frame::after, .lightbox::after {
  content: "© Naida Solak"; position: absolute; right: 10px; bottom: 10px; z-index: 3; pointer-events: none;
  font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .88);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}
.lightbox::after { right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); font-size: .72rem; }
.story__main img, .lightbox img { -webkit-user-drag: none; }

.formats { display: grid; gap: 14px; padding: 22px 24px 20px; border: 1px solid var(--line); }
.formats__label { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.formats__row { display: flex; align-items: flex-end; gap: 40px; }
.formats__item { display: grid; justify-items: center; gap: 10px; }
.formats__shape { display: block; border: 1.5px solid var(--ink); box-shadow: inset 0 0 0 5px var(--white), inset 0 0 0 6px rgba(13, 13, 13, .25); background: #f2f2f0; }
.formats__size { font-size: 1.25rem; font-weight: 400; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.formats__size small { font-size: .75rem; color: var(--muted); letter-spacing: .1em; }
.formats__note { font-size: .85rem; color: var(--muted); }
.pf__hint { margin-top: clamp(40px, 6vw, 72px); color: var(--muted); font-size: .9rem; }
.pf__hint + .photo-grid { padding-top: 24px; }

/* call-to-action band */
.cta-band { background: var(--paper); padding-block: 64px; }
.cta-band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { font-size: var(--step-2); }

/* made in BiH — small badge in the footer corner */
.madein { display: inline-flex; align-items: flex-end; gap: 4px; color: var(--white); }
.madein__script { font-family: "Allison", "Snell Roundhand", cursive; font-size: 1.35rem; line-height: .8; white-space: nowrap; }
.madein__map { width: 56px; height: auto; flex: none; }

/* footer */
.footer__copy { display: grid; gap: 4px; text-align: center; max-width: 52ch; min-width: 0; }
.footer__legal { font-size: .72rem; line-height: 1.5; opacity: .75; }
@media (max-width: 720px) { .footer__in { flex-direction: column; } }
.footer { background: var(--black); color: var(--on-dark-muted); font-size: .82rem; padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.footer .brand img { height: 28px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .95); display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .08); border: 0; color: #fff; font-size: 2.6rem; line-height: 1; width: 52px; height: 72px; cursor: pointer; transition: background .2s; }
.lightbox__nav:hover { background: rgba(255, 255, 255, .18); }
.lightbox__nav--prev { left: max(12px, env(safe-area-inset-left, 0px)); }
.lightbox__nav--next { right: max(12px, env(safe-area-inset-right, 0px)); }
.lightbox__count { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); color: rgba(255, 255, 255, .75); font-size: .8rem; letter-spacing: .14em; }
@media (max-width: 560px) { .lightbox__nav { width: 40px; height: 56px; font-size: 2rem; } }
.lightbox__close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); background: none; border: 0; color: var(--white); font-size: 2.4rem; line-height: 1; cursor: pointer; }

.view { animation: fadein .5s ease both; }
@keyframes fadein { from { opacity: .35; transform: translateY(8px); } to { opacity: 1; transform: none; } }
