﻿/*
Theme Name: Artysta Strona
Theme URI: https://pawelwojas.pl
Author: Paweł Wojas
Description: Motyw 1:1 ze strony artysty — Paweł Wojas i Zjul
Version: 1.0.0
Text Domain: artysta-strona
*/
:root {
  --bg: #f5f2e8;
  --bg-soft: #faf8f2;
  --bg-card: #f9f6ee;
  --ink: #1a1a1a;
  --ink-muted: #3a3a3a;
  --border: #1a1a1a;
  --border-soft: #2a2a2a;
  --placeholder: #cfc9bc;
  --placeholder-alt: #b8b0a0;
  --footer: #1c1c1c;
  --white: #ffffff;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-hero: "Playfair Display", "Times New Roman", serif;
  --font-body: "Libre Baskerville", Georgia, serif;
  --radius-img: 14px;
  --radius-pill: 999px;
  --max: 1280px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  /* Soft paper glow behind type */
  --text-glow: 0 1px 2px rgba(90, 82, 68, 0.18), 0 0 6px rgba(245, 242, 232, 0.85);
  --text-glow-soft: 0 1px 3px rgba(90, 82, 68, 0.14), 0 0 8px rgba(245, 242, 232, 0.9);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  background-image: url("assets/bg-sketch.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-height: 100%;
  text-shadow: var(--text-glow-soft);
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.page > main {
  flex: 1 0 auto;
  width: 100%;
}

.container {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section-line {
  border: none;
  background-image:
    linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-size: min(100% - 2 * var(--pad), var(--max)) 1px;
  background-position:
    center top,
    center bottom;
}

.section-title-center {
  font-family: var(--font-hero);
  font-weight: 900;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  text-align: center;
  letter-spacing: 0.01em;
  text-shadow: var(--text-glow);
}

.heading-xl {
  font-family: var(--font-hero);
  font-weight: 900;
  font-size: clamp(2.75rem, 6.5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-shadow: var(--text-glow);
}

.heading-lg {
  font-family: var(--font-hero);
  font-weight: 900;
  font-size: clamp(1.95rem, 4vw, 2.9rem);
  line-height: 1.12;
  text-shadow: var(--text-glow);
}

.heading-md {
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: clamp(1.55rem, 2.9vw, 2.2rem);
  line-height: 1.2;
  text-shadow: var(--text-glow);
  display: inline-block;
  position: relative;
  padding-bottom: 0.55rem;
}

.heading-md::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72%;
  height: 1.5px;
  background: var(--ink);
}

.heading-md--plain::after,
.heading-md.heading-md--plain::after {
  display: none;
}

.heading-md--plain {
  padding-bottom: 0;
}

.body-text {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  line-height: 1.7;
  color: var(--ink);
  text-shadow: var(--text-glow-soft);
}

.body-text strong {
  font-weight: 700;
}

.pill-btn--dark,
.pill-btn--overlay,
.draw-card__chip {
  text-shadow: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  body {
    background-attachment: scroll;
    background-size: 160% auto;
  }
}


/* === ui.css === */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1.1rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
}

.pill-btn:hover {
  background: rgba(26, 26, 26, 0.06);
}

.pill-btn--outline {
  background: rgba(255, 255, 255, 0.35);
}

.pill-btn--ghost {
  background: transparent;
}

.pill-btn--dark {
  background: rgba(20, 20, 20, 0.72);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.pill-btn--dark:hover {
  background: rgba(20, 20, 20, 0.88);
}

.pill-btn--overlay {
  background: rgba(20, 20, 20, 0.7);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  padding: 0.35rem 0.75rem 0.35rem 0.9rem;
  font-size: 0.85rem;
}

.pill-btn--row {
  width: 100%;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.45);
  padding: 0.7rem 0.85rem 0.7rem 1.35rem;
  font-size: 1rem;
}

.pill-btn--row:hover {
  background: rgba(255, 255, 255, 0.7);
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
}

.tag-pill {
  padding: 0.35rem 0.95rem;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.55);
}

.arrow-circle {
  flex-shrink: 0;
}

.img-ph {
  position: relative;
  width: 100%;
  border-radius: var(--radius-img);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
}

.img-ph__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.img-ph__star {
  width: clamp(2.5rem, 8%, 4rem);
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}


/* === Header.css === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 1rem 0 0.75rem;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: var(--bg);
  box-shadow: 0 1px 0 rgba(26, 26, 26, 0.12);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  position: relative;
  min-height: 2.6rem;
}

.site-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  justify-self: end;
  z-index: 110;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang-switch__link {
  color: rgba(26, 26, 26, 0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}

.lang-switch__link:hover,
.lang-switch__link:focus-visible {
  color: var(--ink);
}

.lang-switch__link.is-active {
  color: var(--ink);
  font-weight: 700;
}

.lang-switch__link + .lang-switch__link::before {
  content: "|";
  margin-right: 0.35rem;
  color: rgba(26, 26, 26, 0.25);
  font-weight: 400;
  pointer-events: none;
}

.mobile-menu__lang {
  padding: 0.5rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
  margin-bottom: 0.5rem;
}

.mobile-menu__lang .lang-switch {
  font-size: 0.85rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  z-index: 110;
  flex-shrink: 0;
}

.site-logo__mark {
  display: block;
}

.site-logo__text {
  font-family: var(--font-hero);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.site-nav {
  justify-self: center;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 1.35rem;
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  font-weight: 500;
  padding: 0.25rem 0;
  letter-spacing: 0.01em;
}

.site-nav__chevron {
  opacity: 0.75;
  margin-top: 0.15rem;
}

.site-nav__item.has-dropdown {
  padding-bottom: 0;
}

.site-nav__dropdown {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 12.5rem;
  overflow: visible;
  padding: 0.55rem 0;
  background: var(--bg-soft);
  border: 1px solid var(--ink);
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0s linear 0.35s;
  z-index: 20;
}

.site-nav__dropdown::before {
  content: "";
  position: absolute;
  left: -1rem;
  right: -1rem;
  top: -1.25rem;
  height: 1.35rem;
}

.site-nav__item.has-dropdown.is-dropdown-open .site-nav__dropdown,
.site-nav__item.has-dropdown:hover .site-nav__dropdown,
.site-nav__item.has-dropdown:focus-within .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%);
  transition:
    opacity 0.2s ease,
    visibility 0s;
}

.site-nav__dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  white-space: nowrap;
}

.site-nav__dropdown a:hover {
  background: rgba(26, 26, 26, 0.05);
}

.site-nav__dropdown .is-nested a {
  padding-left: 1.6rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.teksty-page__subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  list-style: none;
}

.hamburger {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  justify-self: end;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

@media (max-width: 980px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }

  .site-header.is-scrolled,
  .site-header.is-menu-open {
    background: var(--bg);
    box-shadow: 0 1px 0 rgba(26, 26, 26, 0.12);
  }

  .page {
    padding-top: 4.5rem;
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .site-logo__text {
    display: none;
  }

  .hamburger {
    display: flex;
    justify-self: auto;
  }

  .site-header__actions {
    gap: 0.65rem;
  }

  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    background: var(--bg);
    padding: 7.5rem var(--pad) 2.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 90;
    pointer-events: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-menu.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .mobile-menu__list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .mobile-menu__item {
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
    padding-bottom: 0.35rem;
  }

  .mobile-menu__row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .mobile-menu__link,
  .mobile-menu a {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.3;
  }

  .mobile-menu__row .mobile-menu__link {
    flex: 1;
    padding: 0.65rem 0;
  }

  .mobile-menu__item:not(.has-children) > .mobile-menu__link {
    display: block;
    padding: 0.75rem 0;
  }

  .mobile-menu__toggle {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(26, 26, 26, 0.2);
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .mobile-menu__item.is-open > .mobile-menu__row > .mobile-menu__toggle {
    transform: rotate(180deg);
    background: rgba(26, 26, 26, 0.06);
  }

  .mobile-menu__sub {
    display: none;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.15rem 0 0.75rem 0.85rem;
  }

  .mobile-menu__item.is-open > .mobile-menu__sub {
    display: flex;
  }

  .mobile-menu__sub a {
    font-size: 1.15rem;
    font-weight: 500;
    padding: 0.45rem 0;
    opacity: 0.88;
  }

  .mobile-menu__sub .mobile-menu__sub {
    padding-left: 0.75rem;
  }

  .mobile-menu__sub .mobile-menu__link,
  .mobile-menu__sub .mobile-menu__sub a {
    font-size: 1.05rem;
  }
}

@media (min-width: 981px) {
  .hamburger {
    visibility: hidden;
    pointer-events: none;
  }
}


/* === Hero.css === */
.hero {
  display: flex;
  align-items: center;
  overflow-x: clip;
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
  min-height: min(88vh, 860px);
  --hero-active-scale: 1.08;
  --hero-side-scale: 0.78;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(1.25rem, 3.5vw, 3rem);
  align-items: center;
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

.hero__title {
  margin-bottom: 0.65rem;
  font-family: var(--font-hero);
  font-weight: 900;
  font-size: clamp(3.4rem, 7.2vw, 5.6rem);
  letter-spacing: -0.025em;
  line-height: 0.98;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 1.75rem;
}

.hero__cta {
  gap: 0.65rem;
  padding: 0.72rem 1.55rem;
  font-family: var(--font-hero);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #1a1a1a;
  background: #f3f0e6;
  border: 1px solid #1a1a1a;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 5;
}

.hero__cta .pill-btn__label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.hero__cta:hover {
  background: #ebe7db;
}

.hero__cta-icon {
  font-size: 0.92em;
  line-height: 1;
  translate: 0 0.5px;
}

.hero__copy {
  position: relative;
  z-index: 5;
}

.hero__gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-stage {
  position: relative;
  width: 100%;
  /* Must fit scaled active card (aspect 3/4 Ă— scale) */
  height: clamp(420px, 56vw, 560px);
  perspective: 1600px;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
  overflow: visible;
}

.hero-stage:active {
  cursor: grabbing;
}

.hero-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(54%, 270px);
  padding: 0;
  border: none;
  background: transparent;
  transform-origin: center center;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease;
  cursor: pointer;
  will-change: transform, opacity;
}

.hero-card.is-active {
  cursor: zoom-in;
}

.hero-card__img {
  width: 100%;
  border-radius: 14px;
  border: none;
  box-shadow: 0 10px 24px rgba(26, 26, 26, 0.1);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.hero-card.is-active .hero-card__img {
  border: 2px solid var(--ink);
  box-shadow: 0 24px 50px rgba(26, 26, 26, 0.24);
}

.hero-card.is-side .hero-card__img {
  border: none;
}

.hero-dots {
  display: flex;
  gap: 0.55rem;
  margin-top: 1.25rem;
  position: relative;
  z-index: 2;
}

.hero-dots__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c5beb0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dots__dot.is-active {
  background: var(--ink);
  transform: scale(1.15);
}

.hero-caption {
  text-align: center;
  margin-top: 0.95rem;
  min-height: 4.4rem;
  position: relative;
  z-index: 2;
  animation: caption-in 0.35s ease;
}

@keyframes caption-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-caption__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.hero-caption__meta {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.35;
}

/* â€”â€”â€” Mobile â€”â€”â€” */
@media (max-width: 900px) {
  .hero {
    --hero-active-scale: 1.04;
    --hero-side-scale: 0.72;
    box-sizing: border-box;
    width: 100%;
    min-height: calc(100svh - 4.75rem);
    height: auto;
    max-height: none;
    padding: 1rem 0 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    overflow-x: clip;
    overflow-y: visible;
  }

  .hero__grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.75rem;
    width: min(100% - 2 * var(--pad), var(--max));
  }

  .hero__title {
    font-size: clamp(2.6rem, 11vw, 3.4rem);
    margin-bottom: 0.4rem;
  }

  .hero__subtitle {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    margin-bottom: 1rem;
  }

  .hero__cta {
    padding: 0.65rem 1.35rem;
    font-size: 1.05rem;
    border-radius: 14px;
  }

  .hero__gallery {
    gap: 0;
    /* Keep scaled cards from eating neighbors in the stack */
    padding-top: 0.35rem;
  }

  .hero-stage {
    /* Card ~48vw wide â†’ height ~64vw; leave room for scale */
    height: clamp(260px, 70vw, 340px);
    flex-shrink: 0;
  }

  .hero-card {
    width: min(46%, 180px);
  }

  .hero-dots {
    margin-top: 1rem;
  }

  .hero-caption {
    margin-top: 0.75rem;
    min-height: 3.4rem;
  }

  .hero-caption__title {
    font-size: 1.05rem;
  }

  .hero-caption__meta {
    font-size: 0.9rem;
  }
}

@media (max-width: 400px) {
  .hero {
    --hero-active-scale: 1.02;
    --hero-side-scale: 0.7;
  }

  .hero__grid {
    gap: 1.5rem;
  }

  .hero__title {
    font-size: clamp(2.35rem, 10.5vw, 2.85rem);
  }

  .hero-stage {
    height: clamp(240px, 68vw, 300px);
  }

  .hero-card {
    width: min(44%, 160px);
  }
}


/* === About.css === */
.about {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.about__media {
  position: relative;
}

.about__size-hint {
  position: absolute;
  top: -1.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.85rem;
  opacity: 0.7;
}

.about__photo {
  border-radius: 22px;
  color: var(--ink);
}

.about__credit {
  margin-top: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
  opacity: 0.75;
}

.about__label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.about__year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  margin-top: 0.25rem;
}

.about__rule {
  border: none;
  border-top: 1px solid var(--ink);
  margin: 1.1rem 0 1.25rem;
  width: 100%;
}

.about__text {
  text-align: justify;
  hyphens: auto;
}

@media (max-width: 800px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about__media {
    max-width: 320px;
    margin-inline: auto;
  }
}


/* === Portfolio.css === */
.portfolio {
  position: relative;
}

.portfolio__label-wrap {
  position: relative;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.portfolio__label-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100% - 2 * var(--pad), var(--max));
  transform: translate(-50%, -50%);
  border-top: 1px solid var(--ink);
  z-index: 0;
}

.portfolio__label {
  position: relative;
  z-index: 1;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  padding: 0 1.25rem;
}

.portfolio.section-line {
  /* Top rule is drawn by .portfolio__label-wrap when label exists */
  background-image: linear-gradient(var(--ink), var(--ink));
  background-position: center bottom;
  background-size: min(100% - 2 * var(--pad), var(--max)) 1px;
  background-repeat: no-repeat;
}

.portfolio.section-line:not(:has(.portfolio__label-wrap)) {
  background-image:
    linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink));
  background-position: center top, center bottom;
  background-size:
    min(100% - 2 * var(--pad), var(--max)) 1px,
    min(100% - 2 * var(--pad), var(--max)) 1px;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.portfolio--reverse .portfolio__grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
}

.portfolio--reverse .portfolio__mosaic {
  order: 2;
}

.portfolio--reverse .portfolio__copy {
  order: 1;
}

.portfolio__mosaic {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0.75rem;
  align-items: start;
}

.portfolio__tall {
  height: 100%;
  min-height: 320px;
}

.portfolio__mosaic-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.portfolio__mosaic-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: start;
}

.portfolio__mosaic-end {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.portfolio__discover {
  width: 100%;
  justify-content: space-between;
  padding: 0.55rem 0.75rem 0.55rem 1.1rem;
  background: rgba(255, 255, 255, 0.4);
}

.portfolio__copy {
  padding-top: 0.25rem;
}

.portfolio__tags {
  margin: 1.15rem 0 1.35rem;
}

.portfolio__tags--parts {
  max-width: 28rem;
}

.portfolio__tags--parts .tag-pill {
  min-width: 5.5rem;
  justify-content: center;
}

.portfolio__text {
  max-width: 36rem;
}

@media (max-width: 900px) {
  .portfolio__grid,
  .portfolio--reverse .portfolio__grid {
    grid-template-columns: 1fr;
  }

  .portfolio--reverse .portfolio__mosaic,
  .portfolio--reverse .portfolio__copy {
    order: unset;
  }

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

  .portfolio__tall {
    min-height: 240px;
  }
}

@media (max-width: 560px) {
  .portfolio__mosaic {
    grid-template-columns: 1fr;
  }

  .portfolio__tall {
    aspect-ratio: 16 / 10 !important;
    min-height: 0;
  }
}


/* === Timeline.css === */
.timeline {
  border-top: none;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-size: min(100% - 2 * var(--pad), var(--max)) 1px;
  background-position: center top;
}

.timeline__eyebrow {
  font-family: var(--font-display);
  text-align: center;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.timeline__title {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.timeline__track-wrap {
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.timeline__cards {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  min-width: 640px;
  padding-inline: 0.25rem;
}

.timeline__card {
  position: relative;
  flex: 1 1 0;
  max-width: 160px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: transform 0.3s ease, max-width 0.3s ease;
}

.timeline__card.is-active {
  max-width: 200px;
  transform: translateY(-8px);
  flex: 1.25 1 0;
}

.timeline__img {
  border-radius: 16px;
  width: 100%;
}

.timeline__card-action {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.45);
}

.timeline__axis {
  margin-top: 1.5rem;
  min-width: 640px;
  padding-inline: 0.25rem;
}

.timeline__line {
  position: relative;
  height: 2px;
  background: var(--ink);
  margin: 0 0.75rem;
}

.timeline__line::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--ink);
  border-right-width: 0;
}

.timeline__dot {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.timeline__dot.is-active {
  transform: translate(-50%, -50%) scale(1.35);
}

.timeline__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.85rem;
}

.timeline__label {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  flex: 1;
  text-align: center;
  opacity: 0.75;
  transition: opacity 0.2s ease, font-weight 0.2s ease;
}

.timeline__label.is-active {
  opacity: 1;
  font-weight: 700;
}

@media (max-width: 700px) {
  .timeline__cards,
  .timeline__axis {
    min-width: 720px;
  }
}


/* === RysunekTeksty.css === */
.draw-texts {
  border-bottom: none;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-size: min(100% - 2 * var(--pad), var(--max)) 1px;
  background-position: center bottom;
}

.draw-texts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.draw-texts__draw .heading-md,
.draw-texts__texts .heading-md {
  margin-bottom: 1.25rem;
}

.draw-texts__mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.draw-card {
  position: relative;
  display: block;
  border-radius: var(--radius-img);
  overflow: hidden;
}

.draw-card__chip {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(20, 20, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.draw-texts__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.text-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  width: 100%;
  padding: 0.7rem 0.85rem 0.7rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.45);
  font-family: var(--font-display);
  font-size: 1rem;
  transition: background 0.2s ease;
}

.text-row--with-image {
  padding-left: 0.55rem;
}

.text-row__thumb {
  flex-shrink: 0;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(26, 26, 26, 0.2);
  background: var(--placeholder);
}

.text-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.text-row__label {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.text-row:hover {
  background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 800px) {
  .draw-texts__grid {
    grid-template-columns: 1fr;
  }
}


/* === Teksty pages === */
.teksty-page__inner,
.tekst-single__inner {
  max-width: 48rem;
}

.teksty-page__head {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.teksty-page__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.teksty-page__list .text-row--with-image {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.teksty-page__list .text-row__thumb {
  width: 4rem;
  height: 4rem;
}

.teksty-page__back,
.tekst-single__back {
  margin-top: 2.5rem;
}

.tekst-single__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.tekst-single__pdf {
  flex-shrink: 0;
}

.tekst-single__media {
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
}

.tekst-single__lightbox {
  display: block;
}

.tekst-single__img {
  display: block;
  width: 100%;
  max-height: min(70vh, 640px);
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-img);
  border: 1px solid rgba(26, 26, 26, 0.12);
}

.tekst-single__content {
  max-width: 42rem;
}

.tekst-single__content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-img);
  margin: 1.25rem 0;
}

.tekst-single__content p + p {
  margin-top: 1rem;
}

.tekst-single__content h2,
.tekst-single__content h3 {
  font-family: var(--font-display);
  margin: 1.75rem 0 0.75rem;
}

.tekst-single__content ul,
.tekst-single__content ol {
  margin: 0.75rem 0 0.75rem 1.25rem;
  list-style: disc;
}

.tekst-single__content a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}


/* === Blog.css === */
.blog {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.blog__title {
  margin-bottom: 1.5rem;
}

.blog__grid {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 0.85fr;
  gap: 1rem;
  align-items: stretch;
}

.blog-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0.85rem;
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid rgba(26, 26, 26, 0.55);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(26, 26, 26, 0.06);
  min-height: 160px;
}

.blog-card--text {
  grid-template-columns: 1fr;
}

.blog-card__img {
  border-radius: 10px;
  height: 100%;
  min-height: 130px;
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.blog-card__media {
  display: block;
  min-height: 130px;
  border-radius: 10px;
  overflow: hidden;
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  padding: 0.35rem 0.25rem 0.25rem;
}

.blog-card__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.blog-card__heading a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.blog-card__excerpt {
  font-family: var(--font-display);
  font-size: 0.95rem;
  flex: 1;
}

.blog-card__cta {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding: 0.35rem 0.55rem 0.35rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.2s ease;
}

.blog-card__cta:hover {
  background: rgba(255, 255, 255, 0.7);
}

.blog__all-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.blog__all {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem 0.55rem 1.2rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 1.05rem;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.2s ease;
}

.blog__all:hover {
  background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 980px) {
  .blog__grid {
    grid-template-columns: 1fr;
  }

  .blog-card {
    grid-template-columns: 140px 1fr;
  }

  .blog-card--text {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .blog-card {
    grid-template-columns: 1fr;
  }
}


/* === Blog archive / single === */
.blog-page__head {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.blog-page__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.blog-page__pagination {
  margin-top: 2rem;
}

.blog-page__back,
.blog-single__back {
  margin-top: 2.5rem;
}

.blog-single__inner {
  max-width: 48rem;
}

.blog-single__head {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.blog-single__meta {
  margin-top: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  opacity: 0.75;
}

.blog-single__media {
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
}

.blog-single__lightbox {
  display: block;
}

.blog-single__img {
  display: block;
  width: 100%;
  max-height: min(70vh, 640px);
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-img);
  border: 1px solid rgba(26, 26, 26, 0.12);
}

.blog-single__content {
  max-width: 42rem;
}

.blog-single__content p + p {
  margin-top: 1rem;
}

.blog-single__content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-img);
  margin: 1.25rem 0;
}

.blog-single__content h2,
.blog-single__content h3 {
  font-family: var(--font-display);
  margin: 1.75rem 0 0.75rem;
}

@media (max-width: 800px) {
  .blog-page__grid {
    grid-template-columns: 1fr;
  }
}


/* === Footer.css === */
.site-footer {
  --footer-ink: #e8e4d8;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 100%;
  background: #1a1918;
  color: var(--footer-ink);
  margin-top: clamp(3rem, 6vw, 5rem);
  /* Rounded top corners â€” matches design photo 1 */
  border-top-left-radius: clamp(2.5rem, 8vw, 5.5rem);
  border-top-right-radius: clamp(2.5rem, 8vw, 5.5rem);
  padding: clamp(3.25rem, 6vw, 4.75rem) 0 clamp(3rem, 5vw, 4.25rem);
  text-shadow: 0 0 10px rgba(232, 228, 216, 0.28), 0 1px 2px rgba(0, 0, 0, 0.35);
}

.site-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 4rem);
}

.site-footer__links {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: clamp(2rem, 5vw, 4.5rem);
  flex: 1 1 auto;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.site-footer__col a {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 500;
  color: var(--footer-ink);
  opacity: 0.95;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.site-footer__col a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer__brand {
  flex: 0 0 auto;
  text-align: right;
  margin-left: auto;
}

.site-footer__name {
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--footer-ink);
}

.site-footer__mail {
  display: inline-block;
  margin-top: 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 400;
  color: var(--footer-ink);
  opacity: 0.9;
}

.site-footer__mail:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 800px) {
  .site-footer {
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
    padding: 2.75rem 0 2.5rem;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.25rem;
  }

  .site-footer__links {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    width: 100%;
    justify-items: center;
  }

  .site-footer__col {
    align-items: center;
  }

  .site-footer__brand {
    text-align: center;
    margin-left: 0;
  }
}

/* === Gallery archive === */
.gallery-page {
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.gallery-page .container,
.gallery-page__inner {
  width: min(100% - 2 * var(--pad), var(--max));
}

.gallery-page__head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.gallery-page__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  opacity: 0.85;
}

.gallery-page__breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gallery-page__title {
  margin-bottom: 0.5rem;
}

.gallery-page__parent {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  opacity: 0.8;
}

.gallery-page__intro,
.gallery-page__empty {
  margin: 1rem 0 0;
  max-width: 40rem;
}

.gallery-page__subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 2rem;
  list-style: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 3.5vw, 2.5rem);
  width: 100%;
  align-items: stretch;
}

.gallery-item {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gallery-item__tile {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.42);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(26, 26, 26, 0.1);
  gap: 0.9rem;
}

.gallery-item__tekst-btn {
  align-self: stretch;
  justify-content: center;
  width: 100%;
  font-size: 0.82rem;
}
.gallery-item__media {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: #e8e4dc;
  flex-shrink: 0;
  isolation: isolate;
}

.gallery-item__media .gallery-item__img,
.gallery-item__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  display: block;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

.gallery-item__media .img-ph.gallery-item__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 0;
  border: none;
}

.gallery-item__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.1rem 0.25rem 0.35rem;
  flex: 1 1 auto;
}

.gallery-item__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.3;
}

.gallery-item__desc {
  font-size: 0.86rem;
  line-height: 1.55;
  opacity: 0.9;
}

.gallery-item__zoom {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}

.gallery-item__zoom:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 12px;
}

.gallery-item__zoom-hint {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  z-index: 2;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(20, 20, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.gallery-item__zoom:hover .gallery-item__zoom-hint,
.gallery-item__zoom:focus-visible .gallery-item__zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.artysta-lightbox-trigger {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}

.artysta-lightbox-trigger:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.portfolio__lightbox,
.about__lightbox,
.draw-card__lightbox,
.blog-card__lightbox {
  display: block;
}

.timeline__lightbox {
  display: block;
}

.gallery-lightbox__placeholder {
  width: min(100%, 420px);
  aspect-ratio: 3 / 4;
  max-height: min(58vh, calc(100dvh - 10rem));
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  flex-shrink: 1;
}

.gallery-lightbox__placeholder[hidden],
.gallery-lightbox__img[hidden],
.gallery-lightbox__caption[hidden],
.gallery-lightbox__nav[hidden] {
  display: none !important;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 2.5vw, 1.5rem);
}

.gallery-lightbox[hidden] {
  display: none !important;
  pointer-events: none;
}

.gallery-lightbox.is-open {
  display: grid;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(20, 18, 16, 0.88);
  cursor: zoom-out;
}

.gallery-lightbox__panel {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: min(100%, 900px);
  max-height: calc(100dvh - 1.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-lightbox__figure {
  margin: 0;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-height: 0;
}

.gallery-lightbox__img {
  display: block;
  max-width: min(92vw, 820px);
  max-height: min(68vh, calc(100dvh - 9.5rem));
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  background: #111;
}

.gallery-lightbox__caption {
  flex-shrink: 0;
  max-width: min(92vw, 640px);
  width: 100%;
  padding: 0 0.5rem;
  text-align: center;
  color: #f5f2e8;
  font-family: var(--font-display);
  text-shadow: none;
}

.gallery-lightbox__title {
  display: block;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.gallery-lightbox__desc {
  display: block;
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.88;
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.65);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover {
  background: rgba(20, 20, 20, 0.88);
}

.gallery-lightbox__close {
  top: -0.25rem;
  right: 0;
}

.gallery-lightbox__nav--prev {
  left: -0.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-lightbox__nav--next {
  right: -0.25rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 700px) {
  .gallery-lightbox {
    padding: 0.75rem;
    align-items: center;
  }

  .gallery-lightbox__img {
    max-width: 92vw;
    max-height: min(56vh, calc(100dvh - 11rem));
  }

  .gallery-lightbox__placeholder {
    width: min(70vw, 280px);
    max-height: min(48vh, calc(100dvh - 11rem));
  }

  .gallery-lightbox__nav--prev {
    left: 0.15rem;
  }

  .gallery-lightbox__nav--next {
    right: 0.15rem;
  }

  .gallery-lightbox__close {
    top: 0.15rem;
    right: 0.15rem;
  }

  .gallery-lightbox__caption {
    max-width: 92vw;
  }

  .gallery-lightbox__title {
    font-size: 1.05rem;
  }

  .gallery-lightbox__desc {
    font-size: 0.88rem;
  }
}

.gallery-pagination {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.gallery-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.75rem;
  margin: 0.2rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.2s ease;
}

.gallery-pagination .page-numbers:hover,
.gallery-pagination .page-numbers.current {
  background: rgba(26, 26, 26, 0.08);
}

.gallery-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.gallery-pagination li {
  list-style: none;
}

.gallery-page__back {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

@media (min-width: 560px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 3.5vw, 2.75rem);
  }
}

@media (min-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

