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

body {
  margin: 0;
}

:root {
  --bg: oklch(98% 0.01 85);
  --card: oklch(94% 0.02 80);
  --ink: oklch(23% 0.025 50);
  --sub: oklch(50% 0.035 60);
  --brand: oklch(50% 0.11 65);
  --brand-dark: oklch(29% 0.07 55);
  --accent: oklch(56% 0.13 76);
  --line: oklch(88% 0.025 80);
}

body {
  font-family: "Work Sans", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
}

input,
textarea {
  font-family: "Work Sans", sans-serif;
}

input::placeholder,
textarea::placeholder {
  color: oklch(55% 0.02 55);
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(97% 0.014 75 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  flex-wrap: wrap;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  cursor: pointer;
}

.logo-ghh {
  font-family: "Newsreader", serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--brand);
}

.logo-land {
  font-family: "Newsreader", serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.nav-item {
  cursor: pointer;
  font-size: 15px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
  font-weight: 500;
  color: var(--ink);
}

.nav-item:hover {
  color: var(--brand);
}

.nav-item.active {
  font-weight: 700;
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  border: none;
  background: transparent;
  color: var(--sub);
  transition: all 0.15s;
}

.lang-btn.active {
  background: var(--brand);
  color: white;
}

/* ── Layout ── */
.page-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 48px;
}

.section-pad {
  padding: 64px 48px;
}

/* ── Typography ── */
.serif {
  font-family: "Newsreader", serif;
}

.hero-title {
  font-family: "Newsreader", serif;
  font-weight: 600;
  font-size: 56px;
  line-height: 1.1;
  margin: 0 0 24px;
  color: var(--ink);
}

.page-h1 {
  font-family: "Newsreader", serif;
  font-size: 40px;
  font-weight: 600;
  margin: 0 0 56px;
  text-align: center;
}

.section-h2 {
  font-family: "Newsreader", serif;
  font-size: 32px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 48px;
}

/* ── Buttons ── */
.btn-primary {
  cursor: pointer;
  background: var(--brand);
  color: white;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  font-family: "Work Sans", sans-serif;
  transition: opacity 0.15s;
  display: inline-block;
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-outline {
  cursor: pointer;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  background: transparent;
  font-family: "Work Sans", sans-serif;
  transition: opacity 0.15s;
  display: inline-block;
}

.btn-outline:hover {
  opacity: 0.65;
}

/* ── Cards ── */
.card {
  background: var(--card);
  border-radius: 12px;
  padding: 32px;
}

.card-sm {
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
}

.why-item {
  padding: 24px;
  border-radius: 10px;
  background: var(--card);
  text-align: center;
  font-size: 15px;
  font-weight: 500;
}

/* ── Grids ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.grid-2-wide {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.grid-contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.grid-detail-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.grid-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
}

.grid-gallery-right {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}

/* ── Placeholder images ── */
.ph {
  background: repeating-linear-gradient(
    135deg,
    var(--line),
    var(--line) 14px,
    var(--card) 14px,
    var(--card) 28px
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph span {
  font-family: monospace;
  font-size: 12px;
  color: var(--sub);
  background: var(--bg);
  padding: 6px 14px;
  border-radius: 4px;
}

.ph-sm span {
  font-size: 11px;
  background: transparent;
  padding: 0;
}

/* ── Project cards/rows ── */
.project-card {
  cursor: pointer;
  background: var(--bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: box-shadow 0.2s;
}

.project-card:hover {
  box-shadow: 0 4px 20px oklch(0% 0 0 / 0.07);
}

.project-row {
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0;
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  align-items: stretch;
  transition: box-shadow 0.2s;
}

.project-row:hover {
  box-shadow: 0 4px 20px oklch(0% 0 0 / 0.07);
}

.project-row-content {
  padding: 32px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Partners ── */
.partner-chip {
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--sub);
  text-align: center;
}

.partner-card {
  background: var(--card);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.partner-avatar {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: var(--brand);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: "Newsreader", serif;
  font-weight: 600;
  font-size: 20px;
}

/* ── Org chart ── */
.org-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.org-board {
  background: var(--brand-dark);
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}

.org-ceo {
  background: var(--brand);
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}

.org-dept {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.org-unit {
  background: var(--bg);
  border: 1px dashed var(--line);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--sub);
  text-align: center;
}

.org-line {
  width: 2px;
  height: 20px;
  background: var(--line);
}

.org-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Contact form ── */
.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-family: "Work Sans", sans-serif;
  background: white;
  color: var(--ink);
  display: block;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand);
}

/* ── Misc ── */
.breadcrumb {
  font-size: 13px;
  color: var(--sub);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb-link {
  cursor: pointer;
}

.breadcrumb-link:hover {
  color: var(--brand);
}

.status-pill {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  display: inline-block;
}

.highlight-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}

.overview-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.overview-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in oklch, var(--brand) 15%, transparent);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.overview-label {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--sub);
}

.overview-value {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.highlight-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
}

.cta-band {
  background: var(--brand-dark);
  padding: 72px 48px;
  text-align: center;
}

.link-brand {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand);
}

.link-brand:hover {
  text-decoration: underline;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--card);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 48px 32px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 32px;
}

.footer-logo {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.footer-desc {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--sub);
  max-width: 260px;
}

.footer-ghh {
  font-family: "Newsreader", serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--brand);
}

.footer-land {
  font-family: "Newsreader", serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--ink);
  margin: 0 0 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  cursor: pointer;
  font-size: 14px;
  color: var(--sub);
  transition: color 0.15s;
  width: fit-content;
}

.footer-link:hover {
  color: var(--brand);
}

.footer-contact p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--sub);
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 48px;
  text-align: center;
  font-size: 13px;
  color: var(--sub);
}

/* ── Gallery ── */
.gallery-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}

.gallery-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  min-height: 80px;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.15s;
}

.gallery-thumb:hover img {
  opacity: 0.88;
}

.gallery-main {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-main img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition: opacity 0.15s;
}

.gallery-main:hover img {
  opacity: 0.92;
}

.gallery-more-overlay {
  position: absolute;
  inset: 0;
  background: oklch(0% 0 0 / 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
  letter-spacing: 0.3px;
}

/* ── Lightbox ── */
.no-scroll {
  overflow: hidden;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0% 0 0 / 0.9);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 92vh;
}

.lightbox-img {
  max-width: 88vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  background: oklch(100% 0 0 / 0.12);
  border: 1px solid oklch(100% 0 0 / 0.2);
  color: white;
  font-size: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s;
  z-index: 501;
}

.lightbox-close:hover {
  background: oklch(100% 0 0 / 0.24);
}

.lightbox-counter {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 13px;
  font-weight: 500;
  background: oklch(0% 0 0 / 0.45);
  padding: 5px 14px;
  border-radius: 999px;
  z-index: 501;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: oklch(100% 0 0 / 0.12);
  border: 1px solid oklch(100% 0 0 / 0.2);
  color: white;
  font-size: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s;
  z-index: 501;
}

.lightbox-arrow:hover {
  background: oklch(100% 0 0 / 0.26);
}
.lightbox-prev {
  left: -68px;
}
.lightbox-next {
  right: -68px;
}

/* ── Float dock ── */
.float-dock {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.float-sub {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.float-sub.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.float-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.float-label {
  background: oklch(15% 0.01 50 / 0.82);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.float-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 14px oklch(0% 0 0 / 0.22);
  text-decoration: none;
  color: white;
  flex-shrink: 0;
  transition: transform 0.15s;
}

.float-icon:hover {
  transform: scale(1.1);
}

.float-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: white;
  box-shadow: 0 4px 18px oklch(50% 0.11 65 / 0.45);
  transition:
    background 0.2s,
    transform 0.3s;
}

.float-toggle.open {
  background: var(--ink);
  transform: rotate(45deg);
}

/* ── Animations ── */
@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  #app > main.page-enter {
    animation: pageFadeIn 0.45s ease both;
  }

  .lightbox-overlay {
    animation: lightboxFadeIn 0.2s ease both;
  }

  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.6s ease,
      transform 0.6s ease;
  }

  .reveal.in-view {
    opacity: 1;
    transform: none;
  }

  .reveal.in-view:nth-child(2) {
    transition-delay: 0.08s;
  }
  .reveal.in-view:nth-child(3) {
    transition-delay: 0.16s;
  }
  .reveal.in-view:nth-child(4) {
    transition-delay: 0.24s;
  }

  .btn-primary,
  .btn-outline {
    transition:
      opacity 0.15s,
      transform 0.15s;
  }

  .btn-primary:hover,
  .btn-outline:hover {
    transform: translateY(-2px);
  }
}

/* ── Mobile ── */
@media (max-width: 860px) {
  .site-header {
    padding: 14px 24px;
  }

  .site-nav {
    gap: 16px;
  }

  .nav-item {
    font-size: 14px;
  }

  .page-main {
    padding: 48px 24px;
  }

  .section-pad {
    padding: 48px 24px;
  }

  .cta-band {
    padding: 48px 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 40px 24px 24px;
    gap: 28px;
  }

  .footer-bottom {
    padding: 16px 24px;
  }

  .hero-title {
    font-size: 38px;
  }

  .grid-2-wide,
  .grid-2,
  .grid-contact,
  .grid-detail-main {
    grid-template-columns: 1fr !important;
  }

  .grid-gallery {
    grid-template-columns: 1fr !important;
  }

  .gallery-main img {
    height: 240px;
  }

  .gallery-thumbs {
    grid-template-columns: 1fr 1fr;
    height: 160px;
  }

  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }

  .project-row {
    grid-template-columns: 1fr !important;
  }

  .project-row-content {
    padding: 24px !important;
  }
}

@media (max-width: 520px) {
  .site-nav {
    gap: 10px;
  }

  .nav-item {
    font-size: 13px;
  }

  .hero-title {
    font-size: 30px;
  }

  .page-h1 {
    font-size: 32px;
  }
}

/* ── Hoạt động (Activities) ── */
.empty-state {
  text-align: center;
  color: var(--sub);
  font-size: 15px;
  padding: 48px 0;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.activity-card {
  cursor: pointer;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.15s;
}

.activity-card:hover {
  box-shadow: 0 6px 20px oklch(0% 0 0 / 0.08);
}

.activity-card-body {
  padding: 20px;
}

.activity-card-body h3 {
  font-family: "Newsreader", serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}

.activity-excerpt {
  font-size: 14px;
  color: var(--sub);
  line-height: 1.6;
  margin: 0 0 14px;
}

.activity-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--sub);
}

.activity-body {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.activity-body img,
.activity-body video {
  max-width: 100%;
  border-radius: 8px;
}

.activity-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.activity-media-item {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  max-height: 320px;
}

.activity-detail-actions {
  margin-bottom: 8px;
}

/* ── Pager ── */
.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.pager-btn {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 14px;
}

.pager-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

/* ── Hình ảnh (Gallery) ── */
/* Masonry layout (kiểu Pexels): CSS grid với hàng nhỏ (grid-auto-rows) +
   grid-row-end tính bằng JS (xem layoutGalleryMasonry trong pages/gallery.js).
   Không dùng CSS `columns` vì kiểu đó đổ ảnh theo cột (column-major), làm sai
   thứ tự trái→phải của ảnh — trông lộn xộn so với thứ tự thật. */
.gallery-dense-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-auto-rows: 2px;
  gap: 8px;
}

.gallery-tile {
  cursor: pointer;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  background: var(--card);
}

.gallery-tile img,
.gallery-tile video {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.25s ease;
}

.gallery-tile:hover img,
.gallery-tile:hover video {
  transform: scale(1.04);
}

.gallery-video-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  color: white;
  font-size: 14px;
  text-shadow: 0 0 4px oklch(0% 0 0 / 0.6);
}

/* ── Photo viewer ── */
.photo-viewer-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0% 0 0 / 0.92);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 24px;
}

.photo-viewer-inner {
  display: flex;
  gap: 24px;
  max-width: 1100px;
  width: 100%;
  align-items: flex-start;
  margin: auto;
}

.photo-viewer-media-wrap {
  position: relative;
  flex: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.photo-viewer-media {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.pv-spinner,
.pv-error-msg {
  display: none;
}

.pv-loading .pv-spinner {
  display: block;
  position: absolute;
  width: 40px;
  height: 40px;
  border: 3px solid oklch(100% 0 0 / 0.25);
  border-top-color: white;
  border-radius: 50%;
  animation: pvSpin 0.8s linear infinite;
}

.pv-error .photo-viewer-media {
  display: none;
}

.pv-error .pv-error-msg {
  display: block;
  position: absolute;
  color: white;
  font-size: 14px;
  text-align: center;
  max-width: 280px;
}

@keyframes pvSpin {
  to {
    transform: rotate(360deg);
  }
}

.photo-viewer-side {
  flex: 1;
  min-width: 280px;
  max-width: 360px;
  background: white;
  border-radius: 12px;
  padding: 20px;
  max-height: 80vh;
  overflow-y: auto;
}

.photo-viewer-caption {
  font-size: 14px;
  margin: 0 0 12px;
}

/* Inset over the media itself (not offset outside like .lightbox-prev/next) —
   the two-column media+sidebar layout has no guaranteed side margin to sit in. */
.pv-prev {
  left: 12px;
}
.pv-next {
  right: 12px;
}

/* ── Like button ── */
.like-btn {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.like-icon {
  fill: #ff3040;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.like-btn:hover {
  border-color: #ff3040;
}

.like-btn:hover .like-icon {
  transform: scale(1.15);
}

.like-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ── Comments ── */
.comment-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.comment-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.comment-item {
  background: var(--card);
  border-radius: 8px;
  padding: 12px 14px;
}

.comment-author {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.comment-body {
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.comment-empty {
  font-size: 13px;
  color: var(--sub);
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-form-row {
  display: flex;
  gap: 10px;
}

.comment-form input,
.comment-form textarea {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  font-family: "Work Sans", sans-serif;
}

.comment-form button {
  cursor: pointer;
  align-self: flex-start;
  background: var(--brand);
  color: white;
  border: none;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.comment-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

.comment-error {
  color: oklch(50% 0.18 25);
  font-size: 13px;
  margin: 0;
}

/* Honeypot field — hidden from real users, left for bots to fill in */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 860px) {
  .photo-viewer-inner {
    flex-direction: column;
  }
  .photo-viewer-side {
    max-width: none;
    max-height: none;
  }
}

@media (max-width: 520px) {
  .comment-form-row {
    flex-direction: column;
  }
}
