:root {
  --white: #ffffff;
  --paper: #f4f4f4;
  --paper-2: #e8e8e8;
  --paper-3: #dcdcdc;
  --ink: #0f0f0f;
  --ink-2: #1d1d1d;
  --charcoal: #151515;
  --charcoal-2: #222222;
  --text: #222222;
  --muted: #606060;
  --soft: #777777;
  --line: #d1d1d1;
  --line-dark: #111111;
  --shadow: 0 24px 70px rgba(0, 0, 0, .12);
  --shadow-strong: 0 34px 100px rgba(0, 0, 0, .24);
  --radius: 28px;
  --radius-sm: 18px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, rgba(0, 0, 0, .045), transparent 28%),
    radial-gradient(circle at 86% 22%, rgba(0, 0, 0, .035), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .75), transparent 44%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(100% - clamp(28px, 5vw, 56px), 1160px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  z-index: 999;
  background: var(--white);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--ink);
}

.skip-link:focus { left: 16px; }

.topbar {
  background: var(--charcoal);
  color: var(--white);
  font-size: .88rem;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.topbar-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar span { letter-spacing: .04em; }

.topbar a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 0, 0, .13);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .08);
}

.nav {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  color: var(--ink);
  letter-spacing: .01em;
  white-space: nowrap;
}

.brand img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 26px);
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .05em;
  color: var(--ink);
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 14px;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px auto;
  border-radius: 5px;
  transition: transform .22s ease, opacity .22s ease;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* HERO */
.hero {
  position: relative;
  min-height: clamp(610px, 88vh, 820px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--charcoal);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../img/ui/hero-podklad-svetly.jpg") center / cover no-repeat;
  transform: scale(1.035);
  filter: grayscale(.22) saturate(.38) brightness(.48) contrast(1.14);
  animation: heroZoom 16s ease-out both;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .80), rgba(0, 0, 0, .58) 48%, rgba(0, 0, 0, .32)),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .04), rgba(0, 0, 0, .52)),
    linear-gradient(180deg, rgba(0, 0, 0, .22), rgba(0, 0, 0, .68));
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
}

.old-panel {
  width: min(100%, 880px);
  margin: auto;
  padding: clamp(14px, 2.4vw, 22px);
  background: rgba(16, 16, 16, .78);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(8px);
  animation: panelIn .9s ease .18s both;
}

.panel-frame {
  min-height: clamp(340px, 48vw, 440px);
  padding: clamp(28px, 5vw, 52px) clamp(14px, 3vw, 26px);
  border: 2px solid rgba(255, 255, 255, .62);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 18px);
  text-align: center;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015));
}

.panel-label {
  display: inline-block;
  max-width: 100%;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .34);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  animation: labelIn .7s ease both;
}

.panel-small {
  padding: clamp(13px, 2vw, 17px) clamp(20px, 4vw, 38px);
  font-size: clamp(1.35rem, 5vw, 3.35rem);
  animation-delay: .38s;
}

.panel-main {
  padding: clamp(16px, 2.7vw, 22px) clamp(18px, 4.5vw, 42px);
  font-size: clamp(2.55rem, 10vw, 6.3rem);
  letter-spacing: .01em;
  animation-delay: .5s;
}

.panel-frame p {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .94);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 3.4vw, 2.1rem);
  font-weight: 400;
  line-height: 1.55;
  animation: fadeUp .75s ease .68s both;
}

.hero-scroll {
  width: 42px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  margin-top: 34px;
  display: grid;
  place-items: start center;
  padding-top: 11px;
  opacity: .85;
  animation: fadeUp .8s ease 1s both;
}

.hero-scroll span {
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 999px;
  animation: scrollDot 1.45s ease-in-out infinite;
}

/* QUICK LINKS */
.quick-links {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 30px 0;
}

.quick-card {
  position: relative;
  min-height: 124px;
  padding: clamp(22px, 3vw, 26px);
  border: 1px solid var(--line);
  border-top: 5px solid var(--ink);
  border-radius: 22px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .07);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  overflow: hidden;
}

.quick-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 0;
  background: var(--ink);
  transition: height .24s ease;
  z-index: 0;
}

.quick-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.quick-card:hover::after { height: 100%; }

.quick-card span,
.quick-card strong {
  position: relative;
  z-index: 1;
  transition: color .22s ease;
}

.quick-card span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  color: var(--ink);
}

.quick-card strong {
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}

.quick-card:hover span,
.quick-card:hover strong {
  color: var(--white);
}

/* RIBBON */
.intro-ribbon {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ribbon-grid {
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.ribbon-grid p {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.55rem);
}

.ribbon-grid span {
  color: var(--ink);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* SECTIONS */
.section { padding: clamp(76px, 9vw, 108px) 0; }

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  font-weight: 900;
}

.section-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--ink);
}

h1,
h2,
h3 {
  margin: 0 0 22px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 650;
  line-height: 1.08;
}

h1 { font-size: clamp(2.3rem, 5.6vw, 5.25rem); }
h2 { font-size: clamp(2rem, 4.6vw, 4.25rem); }

p { margin: 0 0 18px; }

.lead {
  color: var(--ink);
  font-size: clamp(1.08rem, 2vw, 1.22rem);
  font-weight: 520;
}

/* ABOUT */
.about {
  background: linear-gradient(180deg, var(--white), var(--paper));
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  gap: clamp(30px, 5vw, 58px);
  align-items: start;
}

.about-portrait {
  position: sticky;
  top: 124px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-portrait img {
  width: 100%;
  height: min(620px, 74vh);
  object-fit: cover;
  object-position: center 32%;
  filter: grayscale(.04) saturate(.90) contrast(1.02);
  transition: transform .8s ease;
}

.about-portrait:hover img { transform: scale(1.035); }

.portrait-note {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 17px 19px;
  border-radius: 20px;
  background: rgba(17, 17, 17, .88);
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  backdrop-filter: blur(14px);
}

.portrait-note span {
  color: rgba(255, 255, 255, .72);
  font-family: Inter, system-ui, sans-serif;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .15em;
}

.about-text {
  padding: clamp(30px, 4.6vw, 50px);
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 7px solid var(--ink);
  box-shadow: var(--shadow);
}

.about-text p {
  color: #4b4b4b;
  font-size: clamp(1rem, 1.5vw, 1.04rem);
}

/* LANDSCAPE */
.landscape-note {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.note-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 5vw, 48px);
  align-items: center;
}

.note-copy {
  padding: clamp(30px, 4vw, 46px);
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--ink);
  box-shadow: var(--shadow);
}

.note-copy p,
.abstract-copy p,
.commission p,
.contact p {
  color: #4d4d4d;
  font-size: clamp(1rem, 1.6vw, 1.09rem);
}

.note-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: clamp(180px, 24vw, 230px) clamp(180px, 24vw, 230px);
  gap: 16px;
}

.note-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  border: 8px solid var(--white);
  box-shadow: 0 22px 52px rgba(0, 0, 0, .15);
  filter: grayscale(.08) contrast(1.04);
  transition: transform .4s ease, filter .4s ease;
}

.note-images img:hover {
  transform: translateY(-4px) scale(1.02);
  filter: grayscale(0) contrast(1.07);
}

.note-images img:first-child { grid-row: span 2; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 23px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
  font-weight: 850;
  letter-spacing: .04em;
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease, color .22s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--charcoal-2);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .22);
}

.btn.outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn.outline-dark:hover {
  background: var(--ink);
  color: var(--white);
}

/* GALLERY */
.gallery-section {
  background: linear-gradient(180deg, var(--white), var(--paper));
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 42px;
  margin-bottom: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.section-head p {
  max-width: 480px;
  color: #555555;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.filter {
  border: 1px solid var(--line-dark);
  background: var(--white);
  border-radius: 999px;
  padding: 10px 17px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
  letter-spacing: .03em;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.filter.active,
.filter:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.gallery-item {
  grid-column: span 4;
  position: relative;
  display: grid;
  min-height: clamp(300px, 34vw, 390px);
  overflow: hidden;
  border-radius: 24px;
  background: #d8d8d8;
  border: 1px solid rgba(0, 0, 0, .18);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 20px 58px rgba(0, 0, 0, .14);
  animation: galleryIn .55s ease both;
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(4) {
  grid-column: span 6;
  min-height: clamp(340px, 42vw, 460px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
  filter: grayscale(.06) saturate(.90) contrast(1.05);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: grayscale(0) saturate(1) contrast(1.08);
}

.gallery-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 86px 24px 24px;
  color: var(--white);
  background: linear-gradient(transparent, rgba(0, 0, 0, .92));
  transform: translateY(0);
  transition: transform .28s ease;
}

.gallery-item:hover .gallery-caption { transform: translateY(-4px); }

.gallery-caption strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  line-height: 1.12;
}

.gallery-caption small {
  display: block;
  margin-top: 8px;
  color: #dddddd;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .72rem;
}

.status {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(17, 17, 17, .90);
  color: var(--white);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gallery-item[hidden] { display: none !important; }

.empty-message {
  grid-column: 1 / -1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  color: #555555;
}

/* ABSTRACT */
.abstract-note {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.abstract-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(30px, 5vw, 48px);
  align-items: center;
}

.abstract-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 12px solid var(--white);
  background: var(--white);
  box-shadow: var(--shadow);
}

.abstract-image img {
  width: 100%;
  height: clamp(340px, 48vw, 520px);
  object-fit: cover;
  filter: grayscale(.05) contrast(1.03);
  transition: transform .55s ease;
}

.abstract-image:hover img { transform: scale(1.035); }

.abstract-copy {
  padding: clamp(30px, 4.6vw, 50px);
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 7px solid var(--ink);
  box-shadow: var(--shadow);
}

/* COMMISSION */
.commission {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--white);
}

.commission::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/ui/texture-tiche-stromy.jpg") right center / contain no-repeat;
  opacity: .16;
  filter: grayscale(1) contrast(1.2);
}

.commission-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 54px);
  align-items: center;
}

.commission h2,
.commission .section-kicker,
.commission p {
  color: var(--white);
}

.commission .section-kicker::before { background: var(--white); }

.commission-steps {
  display: grid;
  gap: 14px;
}

.commission-steps div {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .22);
  transition: transform .22s ease, background .22s ease;
}

.commission-steps div:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, .12);
}

.commission-steps strong {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
  line-height: 1;
}

.commission-steps span { color: rgba(255, 255, 255, .80); }

/* EXHIBITIONS */
.exhibitions { background: var(--white); }

.timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.event {
  padding: 19px 22px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--ink);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .06);
  transition: transform .22s ease, box-shadow .22s ease;
}

.event:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .11);
}

.event time {
  display: block;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .74rem;
}

.event strong {
  display: block;
  color: #333333;
  font-size: 1.08rem;
  margin-top: 4px;
}

/* CONTACT */
.contact {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--paper), var(--paper-2));
  border-top: 1px solid var(--line);
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/ui/texture-strom.jpg") center / cover no-repeat;
  opacity: .06;
  filter: grayscale(1);
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr .82fr;
  gap: clamp(30px, 5vw, 44px);
  align-items: center;
}

.contact-copy {
  padding: clamp(30px, 4.2vw, 46px);
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--ink);
  box-shadow: var(--shadow);
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow);
}

.contact-card a {
  display: block;
  padding: 17px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .16);
  transition: background .22s ease, transform .22s ease;
  overflow-wrap: anywhere;
}

.contact-card a:hover {
  background: rgba(255, 255, 255, .14);
  transform: translateY(-2px);
}

.contact-card span {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, .64);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .7rem;
  font-weight: 900;
}

/* FOOTER */
.site-footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .90);
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-panel {
  max-width: min(980px, 94vw);
  max-height: 88vh;
  display: grid;
  gap: 14px;
  animation: lightboxIn .25s ease both;
}

.lightbox img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  margin: auto;
  background: var(--white);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
}

.lightbox-caption {
  text-align: center;
  color: var(--white);
}

.lightbox-caption strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  font-size: 30px;
  cursor: pointer;
}

/* ANIMACE */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s ease, transform .75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.035); }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes labelIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes galleryIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes scrollDot {
  0% {
    transform: translateY(0);
    opacity: .45;
  }
  50% {
    transform: translateY(20px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: .45;
  }
}

@keyframes lightboxIn {
  from {
    opacity: 0;
    transform: scale(.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* TABLET */
@media (max-width: 1100px) {
  .nav-links {
    gap: 16px;
    font-size: .86rem;
  }

  .gallery-item {
    grid-column: span 6;
  }
}

@media (max-width: 980px) {
  .topbar-inner { justify-content: center; }
  .topbar a { display: none; }

  .nav {
    height: 76px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    display: grid;
    gap: 0;
    padding: 8px 24px 24px;
    background: rgba(255, 255, 255, .98);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    box-shadow: 0 24px 48px rgba(0, 0, 0, .14);
  }

  .menu-open .nav-links {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 13px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .10);
  }

  .nav-links a::after { display: none; }

  .hero {
    min-height: calc(100vh - 116px);
  }

  .quick-grid,
  .about-grid,
  .note-grid,
  .abstract-grid,
  .commission-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .ribbon-grid,
  .section-head {
    display: block;
  }

  .ribbon-grid {
    padding: 24px 0;
  }

  .ribbon-grid span {
    display: block;
    margin-top: 8px;
  }

  .about-portrait {
    position: relative;
    top: auto;
    max-width: 560px;
  }

  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4) {
    grid-column: span 3;
    min-height: 360px;
  }

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

/* MOBIL */
@media (max-width: 700px) {
  .topbar {
    font-size: .78rem;
  }

  .hero {
    min-height: 620px;
  }

  .old-panel {
    width: 100%;
  }

  .panel-frame {
    min-height: 330px;
  }

  .panel-main {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .note-images {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .note-images img,
  .note-images img:first-child {
    grid-row: auto;
    height: 280px;
  }

  .gallery-grid {
    display: block;
  }

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4) {
    width: 100%;
    min-height: 360px;
    margin-bottom: 18px;
  }

  .contact-actions .btn {
    width: 100%;
  }

  .footer-inner {
    display: grid;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .container {
    width: min(100% - 24px, 1160px);
  }

  .nav {
    height: 70px;
  }

  .nav-links {
    top: 70px;
  }

  .brand span {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: 580px;
  }

  .panel-frame {
    min-height: 300px;
  }

  .panel-small,
  .panel-main {
    width: 100%;
  }

  .about-text,
  .note-copy,
  .abstract-copy,
  .contact-copy {
    padding: 28px 20px;
  }

  .portrait-note {
    left: 12px;
    right: 12px;
    bottom: 12px;
    font-size: 1.3rem;
  }

  .quick-card {
    min-height: 112px;
  }

  .gallery-caption {
    padding: 70px 18px 20px;
  }

  .lightbox {
    padding: 14px;
  }

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

/* RESPEKTOVÁNÍ NASTAVENÍ UŽIVATELE */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* === Klientsky přívětivější úpravy + více tmavých prvků === */

.hero-bg {
  filter: grayscale(.22) saturate(.38) brightness(.46) contrast(1.16);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .83), rgba(0, 0, 0, .60) 48%, rgba(0, 0, 0, .34)),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .04), rgba(0, 0, 0, .55)),
    linear-gradient(180deg, rgba(0, 0, 0, .24), rgba(0, 0, 0, .72));
}

.old-panel {
  background: rgba(16, 16, 16, .80);
  border-color: rgba(255, 255, 255, .24);
}

.panel-frame {
  min-height: clamp(350px, 48vw, 460px);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  animation: fadeUp .75s ease .82s both;
}

.btn.light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.btn.light:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.btn.outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .76);
}

.btn.outline-light:hover {
  background: var(--white);
  color: var(--ink);
}

.quick-card {
  min-height: 170px;
}

.quick-card.dark {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.quick-card.dark::after {
  background: var(--white);
}

.quick-card p {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: #555;
  font-size: .96rem;
  line-height: 1.55;
  transition: color .22s ease;
}

.quick-card.dark span {
  color: var(--white);
}

.quick-card.dark strong {
  color: rgba(255, 255, 255, .68);
}

.quick-card.dark p {
  color: rgba(255, 255, 255, .72);
}

.quick-card:hover p {
  color: var(--white);
}

.quick-card.dark:hover span,
.quick-card.dark:hover strong,
.quick-card.dark:hover p {
  color: var(--ink);
}

.section-compact {
  padding: clamp(62px, 7vw, 86px) 0;
}

.client-guide {
  background: var(--charcoal);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.client-guide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.06), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.10), transparent 26%);
  pointer-events: none;
}

.client-guide .container {
  position: relative;
}

.section-kicker.invert {
  color: var(--white);
}

.section-kicker.invert::before {
  background: var(--white);
}

.section-head.light {
  border-color: rgba(255,255,255,.18);
}

.section-head.light h2,
.section-head.light p {
  color: var(--white);
}

.section-head.light p {
  color: rgba(255,255,255,.72);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.guide-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  padding: 28px;
  min-height: 230px;
  transition: transform .22s ease, background .22s ease;
}

.guide-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.12);
}

.guide-card b {
  display: inline-flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 26px;
  color: var(--white);
}

.guide-card h3 {
  color: var(--white);
  margin-bottom: 14px;
}

.guide-card p {
  color: rgba(255,255,255,.72);
  margin: 0;
}

.about-mini-cta {
  margin-top: 30px;
  padding: 22px;
  border-radius: 20px;
  background: var(--ink);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.about-mini-cta strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.about-mini-cta a {
  text-decoration: underline;
  text-underline-offset: 5px;
  font-weight: 800;
}

.dark-break {
  background: var(--ink);
  color: var(--white);
  padding: 42px 0;
}

.dark-break-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,.16);
}

.dark-break-grid > div {
  padding: 26px;
  border-right: 1px solid rgba(255,255,255,.16);
}

.dark-break-grid > div:last-child {
  border-right: 0;
}

.dark-break span {
  display: block;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 900;
  color: rgba(255,255,255,.58);
  margin-bottom: 8px;
}

.dark-break strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 500;
}

.commission .btn {
  margin-top: 14px;
}

@media (max-width: 980px) {
  .guide-grid,
  .dark-break-grid {
    grid-template-columns: 1fr;
  }

  .dark-break-grid > div {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.16);
  }

  .dark-break-grid > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 700px) {
  .hero-actions .btn {
    width: 100%;
  }

  .about-mini-cta {
    display: grid;
  }

  .quick-card {
    min-height: 150px;
  }
}


/* === Samostatná galerie s popisky pod fotkou === */

.gallery-preview-section {
  background: linear-gradient(180deg, var(--white), var(--paper));
}

.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-preview-card {
  display: grid;
  gap: 16px;
  min-height: 230px;
  padding: 30px;
  border-radius: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--ink);
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}

.gallery-preview-card.dark {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.gallery-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 76px rgba(0,0,0,.16);
}

.gallery-preview-card span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  line-height: 1;
}

.gallery-preview-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  line-height: 1.15;
}

.gallery-preview-card p {
  color: #555;
  margin: 0;
}

.gallery-preview-card.dark p {
  color: rgba(255,255,255,.72);
}

.gallery-preview-cta {
  margin-top: 30px;
}

.gallery-page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 12vw, 150px) 0 clamp(70px, 8vw, 100px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0,0,0,.86), rgba(0,0,0,.64)),
    url("../img/ui/hero-podklad-svetly.jpg") center / cover no-repeat;
}

.gallery-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.10), transparent 28%);
  pointer-events: none;
}

.gallery-page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.gallery-page-hero h1 {
  color: var(--white);
  font-size: clamp(3rem, 8vw, 6.4rem);
}

.gallery-page-hero p {
  max-width: 720px;
  color: rgba(255,255,255,.78);
  font-size: clamp(1.08rem, 2vw, 1.25rem);
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  color: var(--white);
  font-weight: 800;
}

.back-link:hover {
  background: rgba(255,255,255,.18);
}

.gallery-help-strip {
  background: var(--ink);
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,.14);
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.gallery-help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.gallery-help-grid div {
  padding: 24px;
  border-right: 1px solid rgba(255,255,255,.14);
}

.gallery-help-grid div:last-child {
  border-right: 0;
}

.gallery-help-grid strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.gallery-help-grid span {
  color: rgba(255,255,255,.68);
  font-size: .95rem;
}

.gallery-page-section {
  background: linear-gradient(180deg, var(--white), var(--paper));
}

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-page-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 20px 58px rgba(0,0,0,.12);
  animation: galleryIn .55s ease both;
  transition: transform .22s ease, box-shadow .22s ease;
}

.gallery-page-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 76px rgba(0,0,0,.18);
}

.gallery-photo-button {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: #ddd;
  cursor: pointer;
}

.gallery-photo-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .48s ease, filter .48s ease;
  filter: grayscale(.05) saturate(.92) contrast(1.04);
}

.gallery-page-card:hover .gallery-photo-button img {
  transform: scale(1.045);
  filter: grayscale(0) saturate(1) contrast(1.08);
}

.gallery-page-caption {
  padding: 24px;
  border-top: 5px solid var(--ink);
}

.gallery-category {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.gallery-page-caption h3 {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}

.gallery-page-caption small {
  display: block;
  margin-bottom: 13px;
  color: #666;
  font-weight: 800;
}

.gallery-page-caption p {
  margin: 0;
  color: #4f4f4f;
  font-size: 1rem;
  line-height: 1.62;
}

.lightbox-caption p {
  max-width: 760px;
  margin: 8px auto 0;
  color: rgba(255,255,255,.78);
}

@media (max-width: 1100px) {
  .gallery-page-grid,
  .gallery-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .gallery-page-grid,
  .gallery-preview-grid,
  .gallery-help-grid {
    grid-template-columns: 1fr;
  }

  .gallery-help-grid div {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.14);
  }

  .gallery-help-grid div:last-child {
    border-bottom: 0;
  }

  .gallery-photo-button {
    aspect-ratio: 1 / 1.05;
  }
}

@media (max-width: 480px) {
  .gallery-page-caption {
    padding: 20px;
  }

  .gallery-preview-card {
    min-height: auto;
    padding: 24px;
  }
}


/* === Čistá galerie bez filtrů + automatické popisky z názvů fotek === */

.clean-gallery-hero {
  background:
    linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.62)),
    url("../img/ui/hero-podklad-svetly.jpg") center / cover no-repeat;
}

.auto-caption-help b {
  color: #fff;
}

.auto-gallery-grid {
  grid-template-columns: repeat(3, 1fr);
}

.auto-caption-card {
  border-radius: 28px;
  overflow: hidden;
}

.auto-caption-card .gallery-photo-button {
  aspect-ratio: 4 / 5;
  background: #d8d8d8;
}

.auto-caption-text {
  min-height: 108px;
  display: grid;
  align-content: center;
  border-top: 6px solid var(--ink);
  background:
    linear-gradient(180deg, #ffffff, #f2f2f2);
}

.auto-caption-text h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.18;
}

@media (max-width: 1100px) {
  .auto-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .auto-gallery-grid {
    grid-template-columns: 1fr;
  }

  .auto-caption-card .gallery-photo-button {
    aspect-ratio: 1 / 1.05;
  }
}


/* === PHP WEBP galerie – automatické načítání fotek ze složky === */

.clean-gallery-hero {
  background:
    linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.62)),
    url("../img/ui/hero-podklad-svetly.jpg") center / cover no-repeat;
}

.auto-caption-help b {
  color: #fff;
}

.auto-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.auto-caption-card {
  border-radius: 28px;
  overflow: hidden;
}

.auto-caption-card .gallery-photo-button {
  aspect-ratio: 4 / 5;
  background: #d8d8d8;
}

.auto-caption-text {
  min-height: 108px;
  display: grid;
  align-content: center;
  border-top: 6px solid var(--ink);
  background:
    linear-gradient(180deg, #ffffff, #f2f2f2);
}

.auto-caption-text h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.18;
}

.gallery-photo-button {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.gallery-photo-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .48s ease, filter .48s ease;
}

.gallery-page-card:hover .gallery-photo-button img {
  transform: scale(1.045);
}

@media (max-width: 1100px) {
  .auto-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .auto-gallery-grid {
    grid-template-columns: 1fr;
  }

  .auto-caption-card .gallery-photo-button {
    aspect-ratio: 1 / 1.05;
  }
}


/* Kategorie bez zobrazování názvu souboru */
.auto-title-overlay-clean,
.krajiny-title-overlay-clean {
  left: 18px;
  right: auto;
  bottom: 18px;
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #111;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}

.auto-title-overlay-clean strong,
.krajiny-title-overlay-clean strong {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: none;
  text-shadow: none;
}

.auto-caption-no-title,
.krajiny-caption-no-title {
  min-height: 104px;
  display: grid;
  align-content: center;
}

.auto-caption-no-title p,
.krajiny-caption-no-title p {
  margin: 0;
}


/* Metadata díla – název, rozměr, cena */
.art-meta { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 12px; }
.art-meta span { display:inline-flex; align-items:center; min-height:30px; padding:6px 11px; border-radius:999px; background:#111; color:#fff; font-size:.78rem; font-weight:900; letter-spacing:.03em; }


/* =========================================================
   Skupiny obrazů – fotky stejného obrazu hezky vedle sebe
   ========================================================= */

.grouped-art-list {
  display: grid;
  gap: clamp(26px, 4vw, 42px);
}

.art-group {
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.65fr);
  overflow: hidden;
  border-radius: 34px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 26px 78px rgba(0,0,0,.14);
}

.art-group-head {
  position: relative;
  padding: clamp(26px, 4vw, 42px);
  border-right: 1px solid rgba(0,0,0,.10);
  background:
    radial-gradient(circle at 20% 0%, rgba(0,0,0,.06), transparent 32%),
    linear-gradient(180deg, #fff, #f3f3f3);
}

.art-group-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #666;
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.art-group-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: #111;
}

.art-group-title {
  margin: 0 0 16px;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 3vw, 3rem);
  line-height: 1.03;
}

.art-group-text {
  margin: 0;
  color: #555;
  font-size: 1.02rem;
  line-height: 1.68;
}

.art-group-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 18px;
}

.art-group-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .03em;
}

.art-group-count {
  margin-top: 22px;
  color: #777;
  font-size: .86rem;
  font-weight: 900;
}

.art-group-images {
  padding: clamp(16px, 2.4vw, 24px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
  align-content: stretch;
  background:
    radial-gradient(circle at 80% 20%, rgba(0,0,0,.045), transparent 30%),
    #eeeeee;
}

.art-group-images[data-count="1"] {
  grid-template-columns: 1fr;
}

.art-group-images[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.art-group-images[data-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.art-group-image {
  position: relative;
  display: block;
  width: 100%;
  min-height: 240px;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #d9d9d9;
  cursor: pointer;
  box-shadow: 0 18px 50px rgba(0,0,0,.16);
}

.art-group-images[data-count="1"] .art-group-image {
  aspect-ratio: 16 / 10;
  min-height: 360px;
}

.art-group-images[data-count="2"] .art-group-image,
.art-group-images[data-count="3"] .art-group-image {
  aspect-ratio: 4 / 5;
}

.art-group-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: contrast(1.04) saturate(.98);
  transition: transform .52s ease, filter .52s ease;
}

.art-group-image:hover img {
  transform: scale(1.045);
  filter: contrast(1.08) saturate(1);
}

.art-group-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  opacity: 0;
  transition: opacity .24s ease;
  pointer-events: none;
}

.art-group-image:hover::after {
  opacity: 1;
}

.art-group-image-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #111;
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .04em;
  opacity: 0;
  transform: translateY(8px);
  transition: .24s ease;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}

.art-group-image:hover .art-group-image-label {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .art-group {
    grid-template-columns: 1fr;
  }

  .art-group-head {
    border-right: 0;
    border-bottom: 1px solid rgba(0,0,0,.10);
  }
}

@media (max-width: 760px) {
  .art-group {
    border-radius: 28px;
  }

  .art-group-images,
  .art-group-images[data-count="2"],
  .art-group-images[data-count="3"] {
    grid-template-columns: 1fr;
  }

  .art-group-image,
  .art-group-images[data-count="1"] .art-group-image,
  .art-group-images[data-count="2"] .art-group-image,
  .art-group-images[data-count="3"] .art-group-image {
    aspect-ratio: 1 / 1.05;
    min-height: 280px;
  }

  .art-group-image-label {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 440px) {
  .art-group-head {
    padding: 24px 22px;
  }

  .art-group-images {
    padding: 14px;
  }

  .art-group-image {
    border-radius: 20px;
  }
}


/* =========================================================
   Celé obrazy bez ořezu – galerie, krajiny, abstrakce, portrét
   ========================================================= */

.art-group-image,
.admin-gallery-image,
.gallery-image-clean,
.gallery-image-button-v2,
.krajiny-image,
.auto-image,
.note-photo-card {
  background:
    linear-gradient(135deg, #ffffff, #f1f1f1) !important;
}

.art-group-image {
  padding: 12px !important;
}

.art-group-image img,
.admin-gallery-image img,
.gallery-image-clean img,
.gallery-image-button-v2 img,
.krajiny-image img,
.auto-image img,
.note-photo-card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
}

.art-group-image:hover img,
.admin-gallery-card:hover .admin-gallery-image img,
.gallery-card-clean:hover .gallery-image-clean img,
.gallery-card-v2:hover .gallery-image-button-v2 img,
.krajiny-card:hover .krajiny-image img,
.auto-card:hover .auto-image img,
.note-photo-card:hover img {
  transform: none !important;
}

.art-group-image::after {
  height: 32% !important;
}

@media (min-width: 761px) {
  .art-group-images[data-count="1"] .art-group-image {
    min-height: 420px !important;
    aspect-ratio: 16 / 11 !important;
  }

  .art-group-images[data-count="2"] .art-group-image,
  .art-group-images[data-count="3"] .art-group-image {
    min-height: 360px !important;
    aspect-ratio: 4 / 5 !important;
  }

  .art-group-images[data-count="4"] .art-group-image {
    min-height: 320px !important;
    aspect-ratio: 4 / 5 !important;
  }
}

@media (max-width: 760px) {
  .art-group-image {
    min-height: 340px !important;
    aspect-ratio: 1 / 1.15 !important;
    padding: 10px !important;
  }
}


/* =========================================================
   Samostatné karty obrazů – stejné skupiny zůstanou vedle sebe
   ========================================================= */

.single-art-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(18px, 2vw, 26px);
  align-items: stretch;
}

.single-art-card {
  grid-column: span 4;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 22px 64px rgba(0,0,0,.14);
  transition: transform .24s ease, box-shadow .24s ease;
}

.single-art-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 34px 92px rgba(0,0,0,.22);
}

.single-art-image {
  position: relative;
  width: 100%;
  min-height: 330px;
  aspect-ratio: 4 / 5;
  display: block;
  padding: 14px;
  border: 0;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, #ffffff, #f1f1f1);
}

.single-art-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  transform: none;
  filter: contrast(1.03) saturate(.98);
}

.single-art-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  opacity: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.62));
  transition: opacity .24s ease;
  pointer-events: none;
}

.single-art-card:hover .single-art-image::after {
  opacity: 1;
}

.single-art-detail {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #111;
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .04em;
  opacity: 0;
  transform: translateY(8px);
  transition: .24s ease;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}

.single-art-card:hover .single-art-detail {
  opacity: 1;
  transform: none;
}

.single-art-body {
  padding: clamp(22px, 2.4vw, 30px);
  border-top: 6px solid #111;
  background: linear-gradient(180deg, #fff, #f3f3f3);
}

.single-art-group {
  display: inline-flex;
  margin-bottom: 12px;
  color: #666;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.single-art-title {
  margin: 0 0 10px;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  line-height: 1.08;
}

.single-art-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.single-art-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .03em;
}

.single-art-text {
  margin: 0;
  color: #555;
  font-size: 1rem;
  line-height: 1.62;
}

@media (max-width: 1180px) {
  .single-art-card {
    grid-column: span 6;
  }
}

@media (max-width: 700px) {
  .single-art-grid {
    display: block;
  }

  .single-art-card {
    width: 100%;
    margin-bottom: 22px;
  }

  .single-art-image {
    min-height: 340px;
    aspect-ratio: 1 / 1.15;
    padding: 10px;
  }

  .single-art-detail {
    opacity: 1;
    transform: none;
  }
}
