@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 500;
  font-display: swap;
  src: url('../assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 500;
  font-display: swap;
  src: url('../assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Náhradné rezy s upravenou metrikou (T91) — rovnaká veľkosť písma aj
   počas sťahovania webfontov, žiadne „raz veľké, raz malé" písmená. */
@font-face {
  font-family: 'Cormorant Garamond Fallback';
  src: local('Georgia');
  size-adjust: 90%;
  ascent-override: 110%;
  descent-override: 30%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Manrope Fallback';
  src: local('Arial');
  size-adjust: 100.5%;
  ascent-override: 107%;
  descent-override: 29%;
  line-gap-override: 0%;
}

:root {
  --green-deep: #0e1a12;
  --green-soft: #16281c;
  --ivory: #f2ede2;
  --gold: #c9a96a;
  --gold-deep: #685526;  /* zlatá čitateľná na svetlom podklade */
  --bronze: #765a27;     /* rovnaký tón ako akcenty galérie na homepage */
  --sand: #ede8d0;       /* pieskové plátno hlavnej stránky */
  --font-serif: 'Cormorant Garamond', 'Cormorant Garamond Fallback', Georgia, serif;
  --font-sans: 'Manrope', 'Manrope Fallback', Arial, system-ui, sans-serif;

  /* --- Typografická a pohybová mierka (T88) — zhodná s css/style.css --- */
  --t-2xs: clamp(0.7rem, 0.676rem + 0.099vw, 0.78rem);
  --t-xs:  clamp(0.78rem, 0.75rem + 0.124vw, 0.88rem);
  --t-sm:  clamp(0.875rem, 0.849rem + 0.105vw, 0.96rem);
  --t-base: clamp(1rem, 0.967rem + 0.136vw, 1.11rem);
  --t-lg:  clamp(1.12rem, 1.075rem + 0.186vw, 1.27rem);
  --t-xl:  clamp(1.3rem, 1.224rem + 0.31vw, 1.55rem);
  --t-2xl: clamp(1.62rem, 1.484rem + 0.558vw, 2.07rem);
  --t-3xl: clamp(2.05rem, 1.787rem + 1.079vw, 2.92rem);
  --t-4xl: clamp(2.45rem, 2.081rem + 1.513vw, 3.67rem);

  /* Rovnaké sémantické roly ako na hlavnej stránke (T92). */
  --type-page-title: var(--t-4xl);
  --type-section-title: var(--t-3xl);
  --type-subheading: var(--t-2xl);
  --type-card-title: var(--t-lg);
  --type-body: max(1rem, var(--t-base));
  --type-supporting: var(--t-sm);
  --type-label: var(--t-2xs);

  --track-display: -0.032em;
  --track-title:   -0.026em;
  --track-head:    -0.018em;
  --track-serif:   -0.008em;
  --track-body:    -0.004em;
  --track-caps-xs:  0.24em;
  --track-caps-sm:  0.18em;
  --track-caps-md:  0.13em;

  --lead-title: 1.06;
  --lead-snug:  1.45;
  --lead-body:  1.62;

  --ease-glide:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:    cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-tap:   140ms;
  --dur-quick: 240ms;
  --dur-base:  380ms;
  --dur-slow:  620ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-tap: 1ms; --dur-quick: 1ms; --dur-base: 1ms; --dur-slow: 1ms; }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--sand);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.lightbox-open { overflow: hidden; }

body {
  min-width: 20rem;
  overflow-x: hidden;
  background: var(--sand);
  color: var(--green-deep);
  font-family: var(--font-sans);
  font-weight: 350;
  line-height: var(--lead-body);
  letter-spacing: var(--track-body);
  /* Rovnaké mikro-typografické nastavenie ako na hlavnej stránke. */
  font-kerning: normal;
  font-variant-ligatures: common-ligatures contextual;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Cormorant nesie optickú os — pri veľkých stupňoch tenšie vlasové ťahy. */
h1, h2, h3, h4 { font-optical-sizing: auto; }

/* Formulárové a tlačidlové prvky inak dedia rez od prehliadača. */
input, textarea, select, button { font: inherit; letter-spacing: inherit; }

::selection {
  background: var(--gold);
  color: var(--green-deep);
}

img { display: block; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 110;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--green-deep);
  color: var(--ivory);
  font-size: var(--t-xs);
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  transform: translateY(0);
}

.album-grain {
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ Hlavička — rovnaký vizuál ako site-header homepage ============ */

.album-header {
  position: fixed;
  z-index: 50; /* pod grain overlayom (100) */
  top: 0;
  left: 0;
  right: 0;
  min-height: 5.9rem;
  padding-top: env(safe-area-inset-top);
  padding-right: max(clamp(1.5rem, 4.2vw, 5rem), env(safe-area-inset-right));
  padding-left: max(clamp(1.5rem, 4.2vw, 5rem), env(safe-area-inset-left));
  background: var(--sand);
  border-bottom: 1px solid rgba(14, 26, 18, 0.2);
  box-shadow: 0 10px 32px rgba(14, 26, 18, 0.07);
}

.album-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  max-width: 94rem;
  min-height: 5.9rem;
  margin: 0 auto;
}

.album-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: max-content;
  color: var(--green-deep);
  text-decoration: none;
}

.album-header__logo {
  width: 4.1rem;
  height: 4.1rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.album-header__identity {
  display: grid;
  gap: 0.15rem;
}

.album-header__wordmark {
  font-family: var(--font-serif);
  font-size: 1.42rem;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0.15em;
}

.album-header__descriptor {
  font-size: var(--t-2xs);
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--track-caps-xs);
  text-transform: uppercase;
  color: rgba(14, 26, 18, 0.64);
}

.album-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
}

.album-header__back {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0;
  color: rgba(14, 26, 18, 0.78);
  font-size: var(--t-2xs);
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--track-caps-sm);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--dur-base) var(--ease-out);
}

/* Prepínač jazyka stojí v navigácii vľavo od odkazu späť a pilulky
   Kontakt, takže jeho pozíciu určuje ich šírka. Preklady sú rôzne dlhé
   („Späť" → „Vissza") a prepínač po prepnutí jazyka poskočil.
   Obidva prvky preto držia šírku pre
   najdlhší preklad — rovnaká poistka ako `inline-size` na CTA v
   hlavičke hlavnej stránky. Miera je v `em`, aby rástla s písmom. */
.album-header__back span {
  display: inline-block;
  min-inline-size: 4.8em; /* „Vissza" má 4.5em + rezerva na náhradné písmo */
}

.album-header__back svg {
  width: 1.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  transition: transform var(--dur-base) var(--ease-glide);
}

.album-header__back:hover { color: var(--gold-deep); }
.album-header__back:hover svg { transform: translateX(-0.25rem); }

/* pill CTA — rovnaký vzor ako Kontaktujte nás v hlavičke homepage */
.album-header__contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 10rem;
  min-height: 3rem;
  padding: 0.25rem clamp(1.35rem, 2vw, 2rem);
  border: 1px solid var(--green-soft);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--gold);
  font-size: var(--t-2xs);
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--track-caps-sm);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}

.album-header__contact:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green-deep);
}

.album-header a:focus-visible,
.album-ledger a:focus-visible,
.album-card:focus-visible,
.album-stage:focus-visible,
.album-stage-nav:focus-visible,
.album-footer a:focus-visible,
.lightbox button:focus-visible,
.lightbox a:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 4px;
}

/* ============ Kolekcia — ledger vľavo, javisko vpravo ============ */

/* Kolekcia beží v tom istom stĺpci ako hlavička (94rem + rovnaké okraje).
   Bez toho sa na širokom displeji roztiahla cez celé plátno a celá stránka
   pôsobila o triedu väčšie ako homepage, hoci typografia je zhodná. */
.album-collection {
  --album-gutter: max(clamp(1.5rem, 4.2vw, 5rem), env(safe-area-inset-left));
  display: grid;
  grid-template-columns: minmax(14.5rem, 0.55fr) minmax(0, 2.45fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(1.75rem, 3.2vw, 3.75rem);
  width: 100%;
  max-width: calc(94rem + 2 * var(--album-gutter));
  height: 100svh;
  min-height: 100svh;
  margin-inline: auto;
  scroll-margin-top: 5.9rem;
  padding: calc(5.9rem + clamp(0.65rem, 1.5vh, 1rem))
    var(--album-gutter)
    clamp(0.65rem, 1.5vh, 1rem);
}

.album-ledger {
  position: relative;
  align-self: center;
  min-width: 0;
}

/* Namiesto duplicitného čítača nesie ľavý blok názov celej kolekcie. */
.album-ledger__eyebrow {
  margin-bottom: 1.4rem;
  color: var(--bronze);
  font-size: var(--t-2xs);
  font-weight: 500;
  letter-spacing: var(--track-caps-xs);
  text-transform: uppercase;
}

.album-ledger h1 {
  color: var(--green-deep);
  font-family: var(--font-serif);
  font-size: clamp(2.65rem, 3.6vw, 3.75rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: var(--track-display);
  text-wrap: balance;
}

.album-ledger h1 em,
.album-footer em {
  color: var(--bronze);
  font-weight: 300;
}

.album-ledger__line {
  display: block;
  width: 3.2rem;
  height: 1px;
  margin: 1.9rem 0;
  background: var(--gold);
}

.album-ledger > p:not(.album-ledger__eyebrow) {
  max-width: 30ch;
  color: rgba(14, 26, 18, 0.66);
  font-size: var(--t-base);
  font-weight: 300;
  line-height: var(--lead-body);
}

/* pill výzva — rovnaký vzor ako „Pozrieť všetky realizácie“ na homepage */
.album-ledger__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  min-height: 3.4rem;
  margin-top: clamp(1.6rem, 3vh, 2.4rem);
  padding: 0.45rem clamp(1.6rem, 2vw, 2.2rem);
  border: 1px solid var(--green-soft);
  border-radius: 999px;
  background: var(--green-soft);
  box-shadow: 0 16px 32px -20px rgba(14, 26, 18, 0.85),
              0 2px 6px -4px rgba(14, 26, 18, 0.4);
  color: var(--gold);
  font-size: var(--t-2xs);
  font-weight: 400;
  letter-spacing: var(--track-caps-xs);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

.album-ledger__cta svg {
  width: 2.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  transition: transform var(--dur-base) var(--ease-glide);
}

.album-ledger__cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green-deep);
}

.album-ledger__cta:hover svg { transform: translateX(0.3rem); }

/* ============ Javisko — veľká fotografia + pás náhľadov ============ */

.album-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(13.5rem, 18vw, 17rem);
  grid-template-rows: minmax(0, 1fr);
  gap: clamp(0.85rem, 1.35vw, 1.35rem);
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.album-stage {
  --stage-inset: clamp(0.45rem, 0.8vw, 0.8rem);
  position: relative;
  isolation: isolate;
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  place-self: center;
  width: min(100%, calc(100svh - 7.5rem));
  height: auto;
  max-height: 100%;
  aspect-ratio: 1;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(14, 26, 18, 0.16);
  border-radius: 0.35rem;
  background:
    radial-gradient(circle at 50% 44%, rgba(62, 84, 68, 0.3), transparent 62%),
    linear-gradient(135deg, rgba(242, 237, 226, 0.035), transparent 42%),
    var(--green-deep);
  box-shadow: 0 1.5rem 3.5rem rgba(14, 26, 18, 0.16);
  color: var(--ivory);
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.album-stage::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(6, 13, 8, 0.18), transparent 18%);
  box-shadow: inset 0 0 0 1px rgba(242, 237, 226, 0.035);
}

.album-stage__image {
  position: absolute;
  z-index: 1;
  inset: var(--stage-inset);
  width: calc(100% - var(--stage-inset) - var(--stage-inset));
  height: calc(100% - var(--stage-inset) - var(--stage-inset));
  max-width: none;
  max-height: none;
  /* Štvorcový albumový list dá 4:3 aj 3:4 záberu rovnakú vizuálnu váhu. */
  object-fit: contain;
  box-shadow: 0 1.1rem 2.7rem rgba(4, 10, 6, 0.3);
  opacity: 0;
  transform: scale(0.992);
  transition: opacity var(--dur-slow) var(--ease-out), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.album-stage__image.is-current {
  opacity: 1;
  transform: scale(1);
}

.album-stage__hint {
  position: absolute;
  z-index: 3;
  top: clamp(0.75rem, 1.2vw, 1rem);
  right: clamp(0.75rem, 1.2vw, 1rem);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.15rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(242, 237, 226, 0.2);
  border-radius: 999px;
  background: rgba(8, 17, 11, 0.68);
  color: rgba(242, 237, 226, 0.88);
  font-size: var(--t-2xs);
  font-weight: 400;
  letter-spacing: var(--track-caps-sm);
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.album-stage__hint svg {
  width: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

/* ============ Kontaktový hárok — stabilný pri každej orientácii ============ */

.album-index {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  padding: clamp(0.75rem, 1.25vw, 1rem);
  border: 1px solid rgba(14, 26, 18, 0.16);
  background: rgba(242, 237, 226, 0.28);
}

.album-index__active {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  min-width: 0;
  min-height: 6.75rem;
  padding-bottom: clamp(0.8rem, 1.6vh, 1.2rem);
  border-bottom: 1px solid rgba(14, 26, 18, 0.2);
}

.album-index__counter {
  color: var(--bronze);
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.3vw, 2.45rem);
  font-style: italic;
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: var(--track-head);
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}

.album-index__counter > span:last-child {
  color: rgba(14, 26, 18, 0.68);
  font-size: 0.88rem;
  font-style: normal;
}

.album-index__copy {
  min-width: 0;
}

.album-index__copy > span {
  display: block;
  margin-bottom: 0.28rem;
  color: rgba(14, 26, 18, 0.72);
  font-size: var(--t-2xs);
  font-weight: 500;
  letter-spacing: var(--track-caps-sm);
  text-transform: uppercase;
}

.album-index__copy h2 {
  color: var(--green-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.12rem, 1.65vw, 1.55rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: var(--track-serif);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

/* Vertikálny archív nemení geometriu pri prepnutí fotografie. */
.album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  gap: clamp(0.65rem, 0.9vw, 0.85rem);
  min-width: 0;
  min-height: 0;
  padding: clamp(0.7rem, 1.5vh, 1rem) 0.25rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(14, 26, 18, 0.32) transparent;
  touch-action: pan-y;
}

.album-grid::-webkit-scrollbar { width: 0.3rem; }
.album-grid::-webkit-scrollbar-track { background: transparent; }
.album-grid::-webkit-scrollbar-thumb {
  background: rgba(14, 26, 18, 0.28);
  border-radius: 999px;
}

.album-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.28rem;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  padding: 0.3rem 0.3rem 0.32rem;
  overflow: hidden;
  border: 1px solid rgba(14, 26, 18, 0.18);
  border-radius: 0.25rem;
  background: rgba(242, 237, 226, 0.82);
  box-shadow: 0 0.2rem 0.55rem rgba(14, 26, 18, 0.07);
  color: inherit;
  text-decoration: none;
  opacity: 1;
  scroll-snap-align: start;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.album-card picture {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--green-deep);
}

.album-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.album-card:hover {
  border-color: rgba(14, 26, 18, 0.42);
}

.album-card.is-active {
  border-color: var(--gold-deep);
  box-shadow:
    0 0 0 2px var(--gold),
    0 0.25rem 0.75rem rgba(14, 26, 18, 0.12);
}

.album-card__meta {
  position: static;
  display: flex;
  align-items: center;
  min-height: 0.72rem;
  padding-inline: 0.08rem;
  color: rgba(14, 26, 18, 0.7);
}

.album-card__meta b {
  font-family: var(--font-serif);
  font-size: var(--t-xs);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}

.album-card.is-active .album-card__meta {
  color: var(--gold-deep);
}

.album-card__meta > span { display: none; }

.album-index__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: clamp(0.65rem, 1.25vh, 0.85rem);
  border-top: 1px solid rgba(14, 26, 18, 0.2);
}

.album-index__footer > span {
  color: rgba(14, 26, 18, 0.48);
  font-size: var(--t-2xs);
  font-weight: 500;
  letter-spacing: var(--track-caps-sm);
  text-transform: uppercase;
}

.album-nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.album-nav__btn {
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  border: 1px solid rgba(14, 26, 18, 0.45);
  border-radius: 50%;
  background: transparent;
  color: var(--green-deep);
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-glide);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.album-nav__btn svg {
  width: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.album-nav__btn--next {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--green-deep);
}

.album-nav__btn--prev:hover {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: var(--sand);
}

.album-nav__btn--next:hover {
  border-color: var(--bronze);
  background: var(--bronze);
  color: var(--ivory);
}

.album-nav__btn:active { transform: scale(0.94); }

/* T84 — šípky priamo pri fotografii a farebná ozvena namiesto čiernej
   pasparty. Ostrý záber ostáva vždy celý cez object-fit: contain. */
.album-view {
  grid-template-columns: minmax(0, 1fr) clamp(13.5rem, 18vw, 17rem);
}

.album-stage-shell {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: clamp(2.85rem, 3.6vw, 3.5rem) minmax(0, 1fr)
    clamp(2.85rem, 3.6vw, 3.5rem);
  align-items: center;
  gap: clamp(0.45rem, 0.9vw, 0.8rem);
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.album-stage {
  --stage-inset: clamp(0.45rem, 0.8vw, 0.8rem);
  grid-column: 2;
  grid-row: 1;
  width: min(100%, calc(100svh - 7.5rem));
  border-radius: 0.42rem;
  background:
    radial-gradient(circle at 48% 40%, rgba(108, 121, 92, 0.72), transparent 68%),
    linear-gradient(135deg, #aaa98f, #d6cfb8 58%, #989b80);
  touch-action: pan-y;
}

.album-stage::before,
.album-stage::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.album-stage::before {
  z-index: 0;
  inset: -7%;
  background-image: var(
    --album-ambient-image,
    linear-gradient(135deg, rgba(78, 100, 75, 0.9), rgba(211, 202, 174, 0.92))
  );
  background-position: center;
  background-size: cover;
  filter: blur(24px) saturate(0.76) brightness(0.86);
  transform: scale(1.08);
}

.album-stage::after {
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(to top, rgba(14, 26, 18, 0.1), transparent 18%),
    linear-gradient(90deg, rgba(237, 232, 208, 0.14), transparent 45%, rgba(237, 232, 208, 0.12));
  box-shadow: inset 0 0 0 1px rgba(242, 237, 226, 0.08);
}

.album-stage__image {
  opacity: 0;
  transform: none;
  box-shadow: none;
  transition: opacity 0.28s cubic-bezier(0.45, 0, 0.2, 1);
}

.album-stage__image.is-current {
  opacity: 1;
  transform: none;
}

.album-stage-nav {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(14, 26, 18, 0.36);
  border-radius: 50%;
  background: rgba(237, 232, 208, 0.72);
  color: var(--green-deep);
  cursor: pointer;
  transition: color var(--dur-quick) var(--ease-out), background-color var(--dur-quick) var(--ease-out),
    border-color var(--dur-quick) var(--ease-out), transform var(--dur-tap) var(--ease-glide);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.album-stage-nav svg {
  width: 58%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

.album-stage-nav--next {
  border-color: var(--gold);
  background: var(--gold);
}

.album-stage-nav:hover {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: var(--ivory);
}

.album-stage-nav:active { transform: scale(0.94); }

.album-index {
  grid-template-rows: auto minmax(0, 1fr);
}

.album-card {
  color: inherit;
  font: inherit;
  appearance: none;
  cursor: pointer;
}

.album-card picture {
  background:
    radial-gradient(circle at 50% 42%, rgba(105, 119, 92, 0.42), transparent 72%),
    #cbc5ad;
}

.album-index__footer,
.album-nav { display: none; }

.album-noscript {
  grid-column: 1 / -1;
  padding: 1rem;
  border: 1px solid rgba(14, 26, 18, 0.2);
  color: var(--green-deep);
  font-size: var(--t-sm);
  text-align: center;
  text-decoration: none;
}

/* ============ Päta ============ */

.album-footer {
  display: grid;
  justify-items: center;
  padding: clamp(4.5rem, 10vh, 7rem) 1.5rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(14, 26, 18, 0.18);
  background: var(--sand);
}

.album-footer > img {
  width: 3.6rem;
  height: 3.6rem;
  object-fit: contain;
}

.album-footer > p {
  margin-top: 1.4rem;
  color: var(--green-deep);
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: var(--track-display);
}

.album-footer > a {
  margin-top: 2.1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(104, 85, 38, 0.6);
  color: var(--green-deep);
  font-size: var(--t-2xs);
  font-weight: 400;
  letter-spacing: var(--track-caps-xs);
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

.album-footer > a:hover {
  color: var(--gold-deep);
  border-bottom-color: var(--gold-deep);
}

.album-footer > span {
  margin-top: clamp(3.5rem, 8vh, 6rem);
  color: rgba(14, 26, 18, 0.68);
  font-size: var(--t-2xs);
  letter-spacing: var(--track-caps-sm);
}

/* ============ Lightbox (tmavý — fotografia v plnej veľkosti) ============ */

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100svh;
  max-height: none;
  padding: 0;
  border: 0;
  background: rgba(7, 14, 9, 0.97);
  color: var(--ivory);
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.lightbox::backdrop { background: rgba(3, 8, 5, 0.88); }

.lightbox__frame {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) 4.5rem;
  align-items: center;
  width: 100%;
  height: 100%;
  padding:
    max(clamp(1rem, 2.5vw, 2.5rem), env(safe-area-inset-top))
    max(clamp(1rem, 2.5vw, 2.5rem), env(safe-area-inset-right))
    max(clamp(1rem, 2.5vw, 2.5rem), env(safe-area-inset-bottom))
    max(clamp(1rem, 2.5vw, 2.5rem), env(safe-area-inset-left));
}

.lightbox__figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  height: 100%;
  margin: 0;
}

.lightbox__media {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.lightbox__image {
  position: absolute;
  inset: 0;
  max-width: 100%;
  max-height: calc(100svh - 8.5rem);
  width: auto;
  height: auto;
  margin: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.24s cubic-bezier(0.45, 0, 0.2, 1);
}

.lightbox__image.is-current { opacity: 1; }

.lightbox figcaption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: baseline;
  min-height: 4.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(201, 169, 106, 0.28);
}

.lightbox figcaption > span {
  color: var(--gold);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
}

.lightbox figcaption h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  font-weight: 300;
  line-height: 1.1;
}

.lightbox figcaption a {
  color: rgba(242, 237, 226, 0.68);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.lightbox__close,
.lightbox__arrow {
  border: 0;
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.lightbox__close {
  position: absolute;
  z-index: 2;
  top: clamp(1rem, 2.5vw, 2.5rem);
  right: clamp(1rem, 2.5vw, 2.5rem);
  width: 3rem;
  height: 3rem;
}

.lightbox__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

.lightbox__close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.lightbox__close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

.lightbox__arrow {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  transition: color var(--dur-quick) var(--ease-out);
}

.lightbox__arrow:hover,
.lightbox__close:hover,
.lightbox figcaption a:hover { color: var(--gold); }

.lightbox__arrow svg {
  width: 2.65rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}

/* ============ Responzivita ============ */

/* Nízke desktopy: kontaktový hárok pridá stĺpce, fotografia si drží výšku. */
@media (min-width: 901px) and (max-height: 880px) {
  .album-collection {
    padding-top: calc(5.9rem + 0.55rem);
    padding-bottom: 0.6rem;
  }

  .album-view { gap: 0.75rem; }
  .album-index { padding: 0.65rem; }
  .album-index__active { padding-bottom: 0.6rem; }
  .album-grid {
    gap: 0.55rem;
    padding-block: 0.55rem;
  }
  .album-index__footer { padding-top: 0.5rem; }
  .album-nav__btn { width: 2.55rem; height: 2.55rem; }
  .album-ledger__eyebrow { margin-bottom: 0.9rem; }
  .album-ledger h1 { font-size: clamp(2.3rem, 3.4vw, 3.2rem); }
  .album-ledger__line { margin: 1.2rem 0; }
  .album-ledger > p:not(.album-ledger__eyebrow) { font-size: 0.8rem; line-height: 1.6; }
  .album-ledger__cta { min-height: 3rem; margin-top: 1.2rem; }
}

@media (max-width: 900px) {
  .album-header { min-height: 4.9rem; }
  .album-header__inner { min-height: 4.9rem; }
  .album-header__logo { width: 3.2rem; height: 3.2rem; }
  .album-header__wordmark { font-size: 1.08rem; }
  .album-header__descriptor { font-size: 0.5rem; }
  .album-header__contact { display: none; }

  .album-collection {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 2.4rem;
    height: auto;
    /* Rovnaký bočný okraj ako hlavička — ľavá hrana textu sedí pod logom. */
    padding: 6.35rem var(--album-gutter) 5rem;
  }

  .album-ledger {
    position: relative;
    top: auto;
    max-width: 36rem;
  }

  .album-view,
  .album-view[data-orientation='portrait'] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 1rem;
    height: auto;
  }

  .album-stage {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 1;
  }

  .album-index {
    grid-column: 1;
    grid-row: 2;
    grid-template-rows: auto auto auto;
    padding: 0.85rem;
  }

  .album-grid {
    display: flex;
    gap: 0.65rem;
    padding: 0.8rem 0.2rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    touch-action: pan-x;
  }

  .album-card {
    flex: 0 0 clamp(6.25rem, 22vw, 7.75rem);
    width: auto;
    height: auto;
    aspect-ratio: 1;
  }

  .album-index__footer { padding-top: 0.75rem; }
  .album-ledger__eyebrow { margin-bottom: 1rem; }
  .album-ledger__line { margin: 1.4rem 0; }
}

@media (max-width: 620px) {
  .album-header { padding-inline: 1rem; }
  /* T93 — hlavička sa na telefóne nezmestila do jedného riadku: značka
     mala `width: max-content`, takže sa nemala ako zmenšiť a odkaz späť
     vytiekol mimo obrazovky. Značka teraz môže ustúpiť a odkaz sa
     zmenšuje na samotnú šípku (názov ostáva pre čítačky). */
  .album-header__inner { gap: 0.6rem; }
  .album-header__brand { width: auto; min-width: 0; gap: 0.5rem; }
  .album-header__identity { min-width: 0; }
  .album-header__logo { width: clamp(2.2rem, 7.5vw, 2.8rem); height: auto; }
  .album-header__wordmark {
    font-size: clamp(0.72rem, 3.4vw, 0.98rem);
    letter-spacing: 0.08em;
    line-height: 1.1;
    white-space: nowrap;
  }
  .album-header__descriptor { display: none; }
  .album-header__nav { flex: 0 0 auto; gap: 0.75rem; }
  .album-header__back {
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    gap: 0;
    border: 1px solid rgba(14, 26, 18, 0.28);
    border-radius: 50%;
  }
  .album-header__back svg { width: 1.35rem; }
  .album-header__back span {
    position: absolute;
    width: 1px;
    min-inline-size: 0;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .album-collection {
    --album-gutter: max(1rem, env(safe-area-inset-left));
    gap: 2.1rem;
    padding: 6rem var(--album-gutter) 4rem;
  }

  .album-ledger h1 { font-size: 2.65rem; }

  .album-stage {
    --stage-inset: 0.4rem;
    border-radius: 0.3rem;
  }

  .album-index { padding: 0.7rem; }
  .album-index__active {
    gap: 0.7rem;
    padding-bottom: 0.7rem;
  }
  .album-index__counter { font-size: 1.8rem; }
  .album-index__copy h2 { font-size: 1.15rem; }
  .album-grid { gap: 0.55rem; }
  .album-card { flex-basis: clamp(5.9rem, 27vw, 6.8rem); }
  .album-index__footer > span { display: none; }
  .album-index__footer { justify-content: flex-end; }

  .album-nav__btn { width: 2.8rem; height: 2.8rem; }

  .album-stage__hint {
    top: 0.65rem;
    right: 0.65rem;
    min-height: 2rem;
    padding-inline: 0.65rem;
    font-size: 0.48rem;
    letter-spacing: 0.1em;
  }

  .lightbox__frame {
    display: block;
    padding: 4.5rem 1rem 1rem;
  }

  .lightbox__figure {
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .lightbox__media img { max-height: calc(100svh - 12rem); }

  .lightbox figcaption {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.6rem 0.8rem;
    min-height: 6rem;
  }

  .lightbox figcaption a {
    grid-column: 2;
  }

  .lightbox__arrow {
    position: absolute;
    z-index: 2;
    bottom: 1rem;
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(8, 17, 11, 0.72);
  }

  .lightbox__arrow--prev { left: 1rem; }
  .lightbox__arrow--next { right: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .album-stage__image,
  .album-card,
  .album-card img,
  .album-header__back,
  .album-header__back svg,
  .album-header__contact,
  .album-ledger__cta,
  .album-ledger__cta svg,
  .album-nav__btn,
  .album-footer a,
  .lightbox__arrow { transition: none; }
}

/* T84 responzívne umiestnenie ovládania po stranách javiska. */
@media (max-width: 900px) {
  .album-view,
  .album-view[data-orientation='portrait'] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .album-stage-shell {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: 3rem minmax(0, 1fr) 3rem;
    width: 100%;
    height: auto;
  }

  .album-stage {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
  }

  .album-index {
    grid-template-rows: auto auto;
  }
}

@media (max-width: 620px) {
  .album-stage-shell {
    position: relative;
    display: block;
  }

  .album-stage {
    width: 100%;
  }

  .album-stage-nav {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 3rem;
    background: rgba(8, 17, 11, 0.76);
    border-color: rgba(242, 237, 226, 0.44);
    color: var(--ivory);
    transform: translateY(-50%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .album-stage-nav--prev { left: 0.55rem; }
  .album-stage-nav--next { right: 0.55rem; }
  .album-stage-nav:active { transform: translateY(-50%) scale(0.94); }
}

@media (scripting: none) {
  .album-stage-shell { display: block; }
  .album-stage-nav { display: none; }
  .album-stage { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .album-stage-nav,
  .album-stage__image,
  .lightbox__image { transition: none; }
}

/* Autoritatívne roly sú za breakpointmi, takže mobil nemení hierarchiu. */
.album-ledger h1 { font-size: var(--type-page-title); }
.album-index__copy h2,
.lightbox__caption h2 { font-size: var(--type-subheading); }
.album-ledger > p:not(.album-ledger__eyebrow),
.lightbox__caption p { font-size: var(--type-body); }
.album-ledger__eyebrow,
.album-index__copy > span { font-size: var(--type-label); }
