/* PhotoSite Theme (ps_theme.css) */

:root {
  --ps-ink: #1c1f24;
  --ps-slate: #34404d;
  --ps-mist: #e9edf1;
  --ps-stone: #f5f3ef;
  --ps-white: #ffffff;
  --ps-bronze: #a67c52;
  --ps-champagne: #d6c3a3;
  --ps-rose-smoke: #b7a6a1;
  --ps-border: #d8dde3;
  --ps-shadow: rgba(28, 31, 36, 0.14);
  --ps-gallery-bg: #ece9e4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ps-ink);
  background: linear-gradient(135deg, var(--ps-mist), var(--ps-stone));
}

.ps-navbar {
  background: linear-gradient(135deg, var(--ps-ink), var(--ps-slate));
  color: var(--ps-white);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ps-navbar a {
  color: inherit;
  text-decoration: none;
}

.ps-brand a {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ps-white);
  transition: color 0.15s ease, opacity 0.15s ease;
}

.ps-brand a:hover {
  color: #d9d9d9;
}

.ps-nav-links,
.ps-nav-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.ps-nav-link {
  display: inline-block;
  padding: 2px 0;
  color: var(--ps-white);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.ps-nav-link:hover {
  color: #d9d9d9;
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.ps-nav-link.active {
  color: #f0c674;
  border-bottom-color: #f0c674;
}

.ps-page {
  max-width: 1520px;
  margin: 0 auto;
  padding: 20px 24px 40px;
}

.ps-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 22px;
  align-items: start;
}

.ps-card {
  background: var(--ps-white);
  border: 1px solid var(--ps-border);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.ps-card-header {
  background: #f0f3f6;
  border-bottom: 1px solid var(--ps-border);
  padding: 14px 18px;
  font-weight: 700;
  color: var(--ps-slate);
}

.ps-card-body {
  padding: 18px;
}

.ps-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ps-sidebar-item {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--ps-border);
  border-radius: 10px;
  background: #fbfcfd;
  color: var(--ps-ink);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.ps-sidebar-item:hover {
  background: var(--ps-mist);
  transform: translateY(-1px);
}

.ps-sidebar-item.active {
  background: rgba(166, 124, 82, 0.12);
  border-color: var(--ps-bronze);
  font-weight: 700;
}

.ps-gallery-frame {
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ece9e4;
  border-radius: 16px;
  border: 1px solid var(--ps-border);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.05);
}

.ps-gallery-image {
  width: 96%;
  height: 96%;
  object-fit: contain;
  display: block;
}

.ps-title {
  margin: 0 0 8px;
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--ps-ink);
}

.ps-description {
  margin: 0 0 16px;
  color: #4c5661;
  line-height: 1.55;
}

.ps-section-label {
  display: block;
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  color: var(--ps-slate);
}

.ps-subtle-text {
  color: #66707b;
  line-height: 1.55;
}

.ps-bio {
  padding: 14px 16px;
  border-left: 5px solid var(--ps-bronze);
  background: #faf7f2;
  color: #5c4a39;
  border-radius: 10px;
  margin: 16px 0 18px;
}

.ps-btn {
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.ps-btn:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.ps-btn-primary {
  background: var(--ps-slate);
  color: var(--ps-white);
}

.ps-btn-accent {
  background: var(--ps-bronze);
  color: var(--ps-white);
}

.ps-btn-soft {
  background: var(--ps-mist);
  color: var(--ps-slate);
  border: 1px solid var(--ps-border);
}

.ps-filmstrip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.ps-filmstrip::-webkit-scrollbar {
  height: 8px;
}

.ps-filmstrip::-webkit-scrollbar-track {
  background: #eef2f5;
  border-radius: 999px;
}

.ps-filmstrip::-webkit-scrollbar-thumb {
  background: #c7d0d9;
  border-radius: 999px;
}

.ps-thumb-card {
  min-width: 170px;
  max-width: 170px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--ps-border);
  background: var(--ps-white);
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ps-thumb-card:hover {
  transform: translateY(-2px);
  border-color: #c9b08f;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.ps-thumb-card.active {
  border: 2px solid var(--ps-bronze);
  box-shadow: 0 0 0 2px rgba(166, 124, 82, 0.12);
}

.ps-thumb-image-wrap {
  position: relative;
  overflow: hidden;
  background: #d9dde2;
}

.ps-thumb-card img {
  display: block;
  width: 100%;
  height: 108px;
  object-fit: cover;
}

.ps-thumb-card span {
  display: block;
  padding: 9px 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ps-slate);
  background: #fbfcfd;
  border-top: 1px solid #eef2f5;
}

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

  .ps-gallery-frame {
    height: 440px;
  }
}

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

  .ps-gallery-frame {
    height: 360px;
  }
}

@media (max-width: 560px) {
  .ps-page {
    padding: 16px 14px 28px;
  }

  .ps-navbar {
    padding: 12px 14px;
  }

  .ps-brand a {
    font-size: 1.15rem;
  }

  .ps-nav-links,
  .ps-nav-actions {
    width: 100%;
  }

  .ps-thumb-card {
    min-width: 145px;
    max-width: 145px;
  }

  .ps-thumb-card img {
    height: 96px;
  }

  .ps-gallery-frame {
    height: 260px;
  }
}