:root {
  --bg: #faf7f4;
  --bg-elevated: #ffffff;
  --ink: #1a1716;
  --ink-soft: #4a4340;
  --muted: #7a726c;
  --line: rgba(26, 23, 22, 0.1);
  --accent: #8b5a4a;
  --accent-hover: #6f4639;
  --gold: #c4a574;
  --radius-lg: 20px;
  --radius: 12px;
  --shadow: 0 18px 50px rgba(26, 23, 22, 0.08);
  --shadow-sm: 0 8px 24px rgba(26, 23, 22, 0.06);
  --font-display: "Playfair Display", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --max: 1120px;
  --topbar-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 400;
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

#top,
main section[id] {
  scroll-margin-top: calc(var(--topbar-h) + 0.75rem);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(250, 247, 244, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.logo-mark-link {
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.logo-sub {
  margin: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  line-height: 1.4;
}

.tagline-link,
.text-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tagline-link:hover,
.text-link:hover {
  color: var(--accent);
}

.hero-kicker .text-link {
  font-weight: 600;
  letter-spacing: 0.12em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.site-nav a:hover {
  color: var(--accent);
}

.nav-cta {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
  border-color: rgba(139, 90, 74, 0.35);
  color: var(--accent) !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-toggle-lines {
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle-lines::before {
  top: -6px;
}

.nav-toggle-lines::after {
  top: 6px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--topbar-h) 0 auto 0;
    background: rgba(250, 247, 244, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.2s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: none;
    margin-top: 0.35rem;
    text-align: center;
  }
}

.hero {
  padding: 2.5rem 1.25rem 3.5rem;
}

.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem 3rem;
  align-items: center;
}

.hero-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #e8e0da;
  aspect-ratio: 4 / 5;
  max-height: min(78vh, 640px);
}

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

.hero-copy {
  padding: 0.5rem 0;
}

.hero-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.2vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 38ch;
}

.hero-note {
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 40ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

  .hero-visual {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }

  .hero-frame {
    max-height: none;
    aspect-ratio: 3 / 4;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-lead,
  .hero-note {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container.narrow {
  max-width: 720px;
}

.section {
  padding: 3.5rem 0;
}

.section-heading {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
}

.section-head {
  margin-bottom: 2rem;
  text-align: center;
}

.section-head .section-heading {
  margin-bottom: 0.5rem;
}

.section-sub {
  margin: 0 auto;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1rem;
}

.section-about {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-profile {
  margin: 0 auto 1.75rem;
  width: 10rem;
  text-align: center;
}

.about-avatar {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--line);
  box-shadow: 0 12px 40px rgba(26, 22, 18, 0.12);
}

.section-credentials {
  background: var(--bg);
}

.credential-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.credential-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.35rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.credential-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.section-media {
  background: linear-gradient(180deg, #f3ebe4 0%, var(--bg-elevated) 100%);
  border-top: 1px solid var(--line);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.media-block {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.media-block-wide {
  grid-column: 1 / -1;
}

.media-block-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.media-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.media-list li {
  padding-left: 1rem;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.media-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.media-people {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

.media-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.media-chip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  max-width: 4.5rem;
}

.media-chip-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(139, 90, 74, 0.22);
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.media-chip-wrap--star {
  background: linear-gradient(145deg, #f8f0ea, #ebe0d6);
}

.media-chip-wrap--brand {
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 5rem;
  max-height: 2.75rem;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  overflow: visible;
}

.media-chip {
  width: 100%;
  height: 100%;
  display: block;
}

.media-chip--star {
  object-fit: cover;
}

.media-chip--brand {
  width: auto;
  height: 2.25rem;
  max-width: 4.5rem;
  object-fit: contain;
  padding: 0;
  box-sizing: border-box;
}

.media-chip-label {
  font-size: 0.68rem;
  line-height: 1.2;
  text-align: center;
  color: var(--muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-chips-stars {
  margin-bottom: 0.75rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(139, 90, 74, 0.08);
  border: 1px solid rgba(139, 90, 74, 0.18);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
}

.teaching-extras {
  margin: 2rem auto 0;
  padding: 0;
  max-width: 52ch;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.teaching-extras li::before {
  content: "✦ ";
  color: var(--gold);
}

.about-body p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.about-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.about-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink);
  font-weight: 500;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--accent));
}

.section-services {
  background: linear-gradient(180deg, var(--bg) 0%, #f3ebe4 100%);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.35rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 100%;
}

.service-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.service-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.service-card p {
  margin: 0;
  flex: 1;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.section-telegram {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
}

.telegram-intro {
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  text-align: center;
  color: var(--ink-soft);
}

.telegram-topics {
  list-style: none;
  margin: 0 auto 2rem;
  padding: 0;
  max-width: 52rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}

.telegram-topics li {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

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

@media (max-width: 768px) {
  .telegram-feed {
    grid-template-columns: 1fr;
  }
}

.telegram-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.telegram-card-media {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e8e0da;
}

.telegram-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.telegram-card-body {
  padding: 1.1rem 1.25rem 1.25rem;
}

.telegram-card-date {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.telegram-card-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.telegram-cta-wrap {
  margin: 2rem 0 0;
  text-align: center;
}

.section-portfolio {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.masonry {
  column-count: 3;
  column-gap: 1rem;
}

@media (max-width: 900px) {
  .masonry {
    column-count: 2;
  }
}

@media (max-width: 520px) {
  .masonry {
    column-count: 1;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border: none;
  padding: 0;
  width: 100%;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e8e0da;
  display: block;
  position: relative;
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.45s ease;
}

.masonry-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 23, 22, 0.45), transparent 50%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.masonry-item:hover img,
.masonry-item:focus-visible img {
  transform: scale(1.03);
}

.masonry-item:hover::after,
.masonry-item:focus-visible::after {
  opacity: 1;
}

.section-faq {
  background: var(--bg);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-weight: 400;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item .faq-a {
  padding: 0 1.15rem 1.1rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.section-cta {
  padding-bottom: 4rem;
}

.cta-panel {
  text-align: center;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 2.5rem 1.75rem;
}

.cta-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 600;
}

.cta-text {
  margin: 0 auto 1.5rem;
  max-width: 46ch;
  color: var(--muted);
}

.contact-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.contact-row span:first-child {
  color: var(--muted);
}

.contact-row a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.contact-row a:hover {
  text-decoration: underline;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  background: #f3ebe4;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.footer-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-note code {
  font-size: 0.8em;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

.noscript-msg {
  margin: 0;
  padding: 1rem;
  text-align: center;
  background: #fff3cd;
  color: #664d03;
}

.lightbox {
  border: none;
  padding: 0;
  max-width: min(94vw, 900px);
  width: min(94vw, 900px);
  background: var(--bg-elevated);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
}

.lightbox::backdrop {
  background: rgba(26, 23, 22, 0.55);
  backdrop-filter: blur(8px);
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #111;
}

.lightbox-caption {
  margin: 0;
  padding: 1rem 1.25rem 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.lightbox-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.topbar.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.page-main {
  padding-top: 0;
}

.page-head {
  padding: 2.5rem 0 1.5rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
}

.page-back {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.page-back a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.page-back a:hover {
  text-decoration: underline;
}

.page-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.page-intro {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

.page-gallery-section {
  padding-top: 2.5rem;
}

.gallery-section-title {
  margin: 2.5rem 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.gallery-section-title:first-child {
  margin-top: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.gallery-item-zoom {
  font: inherit;
  text-align: inherit;
}

.gallery-item-zoom,
.gallery-video-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-elevated);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.gallery-video-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.gallery-item-zoom img,
.gallery-video-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.gallery-card-footer {
  padding: 0.75rem 1rem 1rem;
}

.gallery-item-caption {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: left;
  line-height: 1.4;
}

.gallery-item-source {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.gallery-item-source:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

.gallery-video-play {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(26, 23, 22, 0.55);
  color: #fff;
  font-size: 1.1rem;
  pointer-events: none;
}

.gallery-video-hint {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

.gallery-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
