:root {
  --color-sand: #E8DDCF;
  --color-off-white: #F7F4EF;
  --color-warm-brown: #6B4F3A;
  --color-soft-sage: #A3B5A0;
  --color-warm-gray: #8C8A85;
  --color-soft-black: #2B2B2B;
  --bg: var(--color-off-white);
  --surface: var(--color-off-white);
  --text: var(--color-soft-black);
  --muted: var(--color-warm-gray);
  --accent: var(--color-warm-brown);
  --accent-soft: var(--color-soft-sage);
  --page-gradient: radial-gradient(circle at top left, rgba(107, 79, 58, 0.12), transparent 36%), linear-gradient(180deg, #E8DDCF 0%, #F7F4EF 100%);
  --radius: 22px;
  --max-width: 1100px;
  --shadow: 0 20px 45px rgba(43, 43, 43, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body.home-page {
  background: var(--page-gradient);
}

body.home-page .intro,
body.home-page .highlights,
body.home-page .testimonials-section {
  background: transparent;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100%, 1140px);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header,
.site-footer {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(34, 34, 34, 0.05);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.header-inner {
  position: relative;
  padding: 20px 0;
}

.footer-inner {
  padding: 10px 0;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
}

.site-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(107, 79, 58, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.site-nav-toggle:hover,
.site-nav-toggle:focus-visible {
  background: var(--accent-soft);
  border-color: rgba(107, 79, 58, 0.35);
}

.site-nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.site-nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 72px 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(107, 79, 58, 0.3), rgba(247, 245, 240, 0.8));
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  line-height: 1.05;
}

.hero p {
  margin: 24px auto;
  max-width: 640px;
  color: var(--muted);
}

body.home-page .hero p {
  color: #2f231b;
  font-weight: 500;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.45), 0 8px 20px rgba(15, 23, 42, 0.24);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.button,
.link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.button {
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 18px 35px rgba(107, 79, 58, 0.18);
}

.button.secondary {
  background: transparent;
  border: 1px solid rgba(107, 79, 58, 0.18);
  color: var(--text);
}

.button:not(.secondary):hover,
.button:not(.secondary):focus-visible {
  transform: translateY(-1px);
  background: var(--accent-soft);
  color: var(--text);
  border: 1px solid var(--accent);
  box-shadow: none;
}

.link:hover {
  transform: translateY(-1px);
}

.section {
  padding: 52px 0;
}

.intro,
.about-section,
.gallery-section,
.photo-detail,
.highlights,
.testimonials-section,
.reviews-page {
  background: var(--page-gradient);
}

.highlight {
  margin-bottom: 24px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin-top: 0;
}

.card .button,
.card .link {
  margin-top: auto;
  align-self: flex-start;
}

.testimonials-layout,
.testimonials-home,
.reviews-page-layout {
  display: grid;
  gap: 28px;
}

.testimonials-layout {
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  align-items: start;
}

.testimonials-home-panel {
  padding: 28px 28px 16px;
  background: var(--surface);
  border: 1px solid rgba(107, 79, 58, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.testimonials-home-panel h2 {
  margin: 0;
}

.testimonials-home-copy {
  margin: 12px 0 0;
}

.testimonials-intro,
.reviews-hero-block,
.review-form-card,
.published-reviews-block,
.testimonial-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(107, 79, 58, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.testimonials-intro,
.reviews-hero-block,
.review-form-card,
.published-reviews-block {
  padding: 28px;
}

.testimonials-grid,
.reviews-page-grid,
.review-admin-list {
  display: grid;
  gap: 20px;
}

.testimonials-grid {
  grid-template-columns: 1fr;
}

.testimonials-home-grid {
  gap: 16px;
  margin-top: 20px;
}

.testimonials-home-marquee {
  position: relative;
  margin-top: 20px;
  width: 100%;
  padding: 2px 0 0;
  background: var(--surface);
  overflow: hidden;
}

.testimonials-home-track {
  width: 100%;
  background: var(--surface);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.testimonials-home-track::-webkit-scrollbar {
  display: none;
}

.testimonials-home-group {
  display: flex;
  gap: 16px;
  width: max-content;
  background: var(--surface);
  padding-right: 0;
}

.testimonials-home-group .testimonial-card {
  width: clamp(240px, 30vw, 340px);
  min-width: 240px;
  max-width: 340px;
  margin: 0;
  scroll-snap-align: start;
  box-shadow: none;
}

.testimonials-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 54px;
  border: 0;
  background: linear-gradient(90deg, rgba(247, 244, 239, 0.96) 0%, rgba(247, 244, 239, 0) 100%);
  color: var(--accent);
  font-size: 2rem;
  line-height: 1;
  font-weight: 500;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.testimonials-nav-prev {
  left: 0;
}

.testimonials-nav-next {
  right: 0;
  background: linear-gradient(270deg, rgba(247, 244, 239, 0.96) 0%, rgba(247, 244, 239, 0) 100%);
}

.testimonials-home-marquee.is-hovering-left .testimonials-nav-prev,
.testimonials-home-marquee.is-hovering-right .testimonials-nav-next {
  display: flex;
  opacity: 1;
}

.testimonials-home-marquee.at-start .testimonials-nav-prev,
.testimonials-home-marquee.at-end .testimonials-nav-next {
  display: none !important;
}

.testimonial-card {
  padding: 24px;
}

.testimonial-card > :last-child {
  margin-bottom: 0;
}

.testimonial-card-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  text-align: center;
}

.testimonial-rating {
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  color: #6B4F3A;
}

.testimonial-rating span {
  color: #E8DDCF;
}

.testimonial-comment {
  margin: 14px 0 0;
  color: var(--text);
}

.testimonial-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.testimonial-author,
.testimonial-date,
.review-admin-meta,
.published-reviews-header p,
.form-feedback {
  margin: 0;
  color: var(--muted);
}

.testimonial-author {
  font-weight: 700;
}

.testimonial-date {
  margin-top: 8px;
  font-size: 0.92rem;
}

.reviews-content-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.review-form,
.review-admin-actions {
  display: grid;
  gap: 14px;
}

.review-form label {
  font-weight: 600;
}

.rating-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.rating-fieldset legend {
  margin-bottom: 10px;
  font-weight: 600;
}

.star-rating-input {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 6px;
}

.star-rating-input input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.star-rating-input label {
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  color: #E8DDCF;
  transition: transform 0.16s ease, color 0.16s ease;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
  color: #6B4F3A;
}

.star-rating-input label:active {
  transform: scale(0.94);
}

.star-rating-input input:checked + label {
  animation: star-pop 0.28s ease-out;
}

.star-rating-input input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

@keyframes star-pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.28) rotate(-8deg);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .star-rating-input label {
    transition: none;
  }

  .star-rating-input input:checked + label {
    animation: none;
  }
}

.review-form input,
.review-form select,
.review-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(107, 79, 58, 0.16);
  border-radius: 16px;
  background: #fff;
  font: inherit;
  color: var(--text);
}

.form-feedback {
  padding: 12px 14px;
  border-radius: 14px;
}

.form-feedback-error {
  background: #fef0f0;
  color: #8d2d2d;
}

.form-feedback-success {
  background: #edf8ef;
  color: #24613a;
}

.published-reviews-header,
.review-admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.review-status-group {
  margin-top: 28px;
}

.review-admin-card {
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(107, 79, 58, 0.08);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.review-admin-comment {
  margin: 16px 0;
}

.review-admin-actions {
  grid-auto-flow: column;
  justify-content: start;
}

.link {
  color: var(--accent);
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 24px;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .testimonials-layout,
  .testimonials-home,
  .reviews-content-grid {
    grid-template-columns: 1fr;
  }

  .published-reviews-header,
  .review-admin-header {
    display: grid;
  }

  .testimonial-topline {
    align-items: flex-start;
    gap: 10px;
  }

  .review-admin-actions {
    grid-auto-flow: row;
  }

  .testimonials-nav {
    display: none !important;
  }

  .testimonials-home-group .testimonial-card {
    width: min(85vw, 360px);
    min-width: min(85vw, 360px);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

.section-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.text-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.section-sub-nav {
  margin-top: -12px;
}

.section-btn,
.text-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 0.94rem;
  line-height: 1.2;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.section-btn.active,
.text-tabs a.active {
  background: var(--accent);
  color: #fff;
}

.section-btn:hover,
.text-tabs a:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.category-section {
  margin-bottom: 40px;
}

.category-section h2 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 1.5rem;
  color: var(--accent);
}

.photo-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-lightbox-trigger {
  display: block;
  cursor: zoom-in;
}

.delivery-lightbox-trigger {
  display: block;
  cursor: zoom-in;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.gallery-lightbox[hidden] {
  display: none;
}

.delivery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.delivery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.delivery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.gallery-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 96vw);
  max-height: 90vh;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(260px, 0.8fr);
  background: var(--surface);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.delivery-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 96vw);
  max-height: 90vh;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(260px, 0.8fr);
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-lightbox.open .gallery-lightbox-backdrop {
  opacity: 1;
}

.delivery-lightbox.open .delivery-lightbox-backdrop {
  opacity: 1;
}

.gallery-lightbox.open .gallery-lightbox-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.delivery-lightbox.open .delivery-lightbox-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.gallery-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.delivery-lightbox-close,
.delivery-lightbox-download {
  position: absolute;
  top: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  text-decoration: none;
}

.delivery-lightbox-close {
  right: 14px;
}

.delivery-lightbox-download {
  right: 64px;
}

.delivery-lightbox-media {
  background: #2B2B2B;
  display: grid;
  place-items: center;
  padding: 26px;
}

.delivery-lightbox-image {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.delivery-lightbox-meta {
  padding: 24px;
  overflow-y: auto;
}

.delivery-lightbox-meta h2 {
  margin-top: 0;
}

.delivery-lightbox-location {
  color: var(--muted);
}

.gallery-lightbox-media {
  position: relative;
  background: var(--page-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(72vh, 700px);
}

.gallery-lightbox-image {
  max-width: 100%;
  max-height: min(72vh, 700px);
  width: auto;
  height: auto;
  display: block;
}

.gallery-lightbox-meta {
  background: var(--surface);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.gallery-lightbox-meta h2 {
  margin: 0;
}

.gallery-lightbox-meta p {
  margin: 0 0 12px;
  color: var(--muted);
}

.gallery-lightbox-description {
  white-space: pre-line;
  line-height: 1.5;
}

.gallery-lightbox-link {
  align-self: flex-start;
  opacity: 1 !important;
  background: var(--accent) !important;
  color: #fff !important;
  border: 1px solid var(--accent) !important;
  box-shadow: 0 18px 35px rgba(107, 79, 58, 0.18) !important;
}

.gallery-lightbox-link:hover,
.gallery-lightbox-link:focus-visible {
  background: var(--accent-soft) !important;
  color: var(--text) !important;
  border-color: var(--accent) !important;
  box-shadow: none !important;
}

body.lightbox-open {
  overflow: hidden;
}

#gallery-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

#gallery-fullscreen[hidden] {
  display: none;
}

#gallery-fullscreen-image {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

#books-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

#books-fullscreen[hidden] {
  display: none;
}

#books-fullscreen-image {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

@media (max-width: 900px) {
  .gallery-lightbox {
    padding: 12px;
    align-items: flex-start;
    overflow-y: auto;
  }

  .delivery-lightbox {
    padding: 12px;
    align-items: flex-start;
    overflow-y: auto;
  }

  .gallery-lightbox-panel {
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
    width: 100%;
    max-height: none;
    border-radius: 16px;
    overflow: visible;
    margin: auto 0;
  }

  .delivery-lightbox-panel {
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
    width: 100%;
    max-height: none;
    border-radius: 16px;
    overflow: visible;
    margin: auto 0;
  }

  .gallery-lightbox-media {
    flex: 0 0 auto;
    min-height: 0;
    padding: 12px;
  }

  .delivery-lightbox-media {
    flex: 0 0 auto;
    min-height: 0;
    padding: 12px;
  }

  .gallery-lightbox-image {
    max-width: 100%;
    height: auto;
    max-height: 55svh;
    display: block;
  }

  .gallery-lightbox-meta {
    flex: 0 0 auto;
    padding: 16px;
    overflow-y: visible;
  }

  .delivery-lightbox-meta {
    flex: 0 0 auto;
    padding: 16px;
    overflow-y: visible;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .gallery-lightbox {
    align-items: center;
    overflow-y: hidden;
  }

  .delivery-lightbox {
    align-items: center;
    overflow-y: hidden;
  }

  .gallery-lightbox-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(180px, 0.8fr);
    flex-direction: unset;
    max-height: calc(100svh - 24px);
    overflow: hidden;
  }

  .delivery-lightbox-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(180px, 0.8fr);
    flex-direction: unset;
    max-height: calc(100svh - 24px);
    overflow: hidden;
  }

  .gallery-lightbox-media {
    padding: 12px;
  }

  .delivery-lightbox-media {
    padding: 12px;
  }

  .gallery-lightbox-image {
    max-width: 100%;
    height: auto;
    max-height: calc(100svh - 48px);
  }

  .gallery-lightbox-meta {
    padding: 16px;
    overflow-y: auto;
  }

  .delivery-lightbox-meta {
    padding: 16px;
    overflow-y: auto;
  }
}




.photo-details {
  text-align: center;
}

.photo-details h2 {
  margin: 0 0 10px;
  text-align: center;
}

.photo-details p {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.photo-detail .photo-hero img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.photo-meta {
  margin-top: 28px;
}

.photo-meta h1 {
  margin: 0 0 12px;
}

.photo-meta .location {
  margin: 0 0 16px;
  color: var(--accent);
  font-weight: 600;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--accent);
}

.about-grid {
  display: grid;
  gap: 18px 24px;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  align-items: start;
}

.about-grid p,
.about-grid li {
  line-height: 1.4;
  margin: 0 0 6px;
}

.about-top-row {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 520px);
  gap: 24px;
  align-items: stretch;
  margin: 8px 0 18px;
}

.about-brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
}

.about-brand-logo {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
  box-shadow: none;
  filter: drop-shadow(0 20px 45px rgba(43, 43, 43, 0.12));
}

.about-grid ul {
  margin: 0;
  padding-left: 18px;
}

.about-contact-block {
  grid-column: 2;
}

.about-contact-card {
  display: grid;
  gap: 14px;
  width: 100%;
  min-height: 220px;
  max-width: none;
  padding: 28px;
  border-radius: 0;
  border: 1px solid rgba(107, 79, 58, 0.12);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.about-contact-identity {
  display: grid;
  grid-template-columns: clamp(132px, 22%, 156px) minmax(0, 1fr);
  grid-template-areas:
    "photo text"
    "photo social";
  gap: 12px;
  align-items: stretch;
}

.about-contact-text h2 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.2;
}

.about-contact-text p {
  margin: 2px 0 0;
  color: var(--muted);
  font-weight: 500;
}

.about-contact-text {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  align-self: stretch;
}

.about-contact-role {
  margin: 2px 0 0;
  color: var(--muted);
  font-weight: 500;
}

.about-contact-lines {
  display: grid;
  gap: 4px;
}

.about-contact-lines p {
  margin: 0;
}

.about-contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.about-contact-line-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex: 0 0 auto;
}

.about-contact-line-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.about-contact-lines a {
  color: var(--text);
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  word-break: normal;
}

.about-contact-lines a:hover {
  color: var(--accent);
}

.about-contact-photo-frame {
  grid-area: photo;
  position: relative;
  width: 100%;
  height: 100%;
  align-self: stretch;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  border: 0;
  background: transparent;
}

.about-contact-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 0;
  margin: 0;
  border: 0;
  box-shadow: none;
}

.social-links {
  display: flex;
  grid-area: social;
  justify-content: flex-start;
  gap: 12px;
  align-items: center;
  margin-top: 2px;
}

.about-contact-text {
  grid-area: text;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--surface);
  border: 1px solid var(--accent);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.social-icon:hover {
  transform: translateY(-1px);
  background: var(--accent-soft);
  color: var(--surface);
}

.social-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.books-section {
  background: var(--page-gradient);
}

body.my-books-page {
  background: var(--page-gradient) !important;
}

body.my-books-page main,
body.my-books-page .section,
body.my-books-page .books-section {
  background: var(--page-gradient) !important;
}

body.my-books-page .container,
body.my-books-page .books-container {
  background: transparent !important;
}

.books-container {
  display: grid;
  gap: 28px;
  min-height: calc(100vh - 220px);
}

.books-title {
  margin: 0;
  text-align: center;
}

.books-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  justify-items: center;
}

.photo-book {
  position: relative;
  width: min(100%, 1120px);
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  perspective: 1800px;
  justify-self: center;
  touch-action: pan-y;
  user-select: none;
}

.book-closed-hint {
  position: absolute;
  top: 50%;
  left: 25%;
  z-index: 4;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  max-inline-size: 40%;
  white-space: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 1;
  transition: opacity 0.2s ease;
}

.book-closed-hint::after {
  content: '';
  position: absolute;
  bottom: -125%;
  right: -10%;
  width: 100px;
  height: 100px;
  background-image: url('../Arrow.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: rotate(30deg);
  transform-origin: center;
  opacity: 0.8;
}

.photo-book.is-active .book-closed-hint,
.photo-book.is-opening .book-closed-hint,
.photo-book.is-opening-preview .book-closed-hint,
.photo-book.is-closing .book-closed-hint,
.photo-book.is-closing-preview .book-closed-hint,
.photo-book.is-closing-last-page .book-closed-hint {
  opacity: 0;
}

.photo-book.is-active .book-closed-hint::after,
.photo-book.is-opening .book-closed-hint::after,
.photo-book.is-opening-preview .book-closed-hint::after,
.photo-book.is-closing .book-closed-hint::after,
.photo-book.is-closing-preview .book-closed-hint::after,
.photo-book.is-closing-last-page .book-closed-hint::after {
  opacity: 0;
}

.photo-book.is-swipe-ready {
  cursor: ew-resize;
}

.photo-book.is-dragging,
.photo-book.is-finishing-turn {
  cursor: grabbing;
  touch-action: pan-y;
}

.book-spread {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(420px, 66vh, 760px);
  border-radius: 20px;
  overflow: hidden;
  background: #F7F4EF;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-book:not(.is-active):not(.is-opening):not(.is-opening-preview) .book-spread {
  clip-path: inset(0 0 0 50%);
}

.photo-book:hover .book-spread,
.photo-book.is-active .book-spread,
.photo-book.is-opening .book-spread,
.photo-book.is-closing .book-spread {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.2);
}

.photo-book.is-opening .book-spread {
  animation: bookSpreadReveal 1.1s ease-in-out forwards;
}

.photo-book.is-opening-preview .book-spread {
  clip-path: inset(0 0 0 var(--opening-clip-left, 50%));
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, clip-path 0.28s ease-out;
}

.photo-book.is-closing .book-spread {
  animation: bookSpreadConceal 1.1s ease-in-out forwards;
}

.photo-book.is-closing-preview .book-spread {
  background: transparent !important;
  box-shadow: none !important;
}

.book-page {
  position: relative;
  min-height: clamp(420px, 66vh, 760px);
  overflow: hidden;
}

.book-page-left {
  background: #F7F4EF;
}

.photo-book:not(.is-active):not(.is-opening):not(.is-opening-preview) .book-page-left {
  opacity: 0;
  visibility: hidden;
}

.book-photo-left .book-page-layout {
  filter: saturate(0.96) brightness(0.98);
}

.book-page-right {
  background:
    linear-gradient(135deg, #6B4F3A 0%, #8C8A85 100%);
  box-shadow: inset 12px 0 24px rgba(0, 0, 0, 0.28);
  border-left: 10px solid rgba(247, 244, 239, 0.22);
}

.photo-book.is-active .book-page-right {
  background: #F7F4EF;
  box-shadow: inset 12px 0 20px rgba(15, 23, 42, 0.08);
  border-left: 1px solid rgba(15, 23, 42, 0.08);
}

.photo-book.is-opening .book-page-right {
  background: #F7F4EF;
  box-shadow: inset 12px 0 20px rgba(15, 23, 42, 0.08);
  border-left: 1px solid rgba(15, 23, 42, 0.08);
}

.photo-book.is-opening-preview .book-page-right {
  background: #F7F4EF;
  box-shadow: inset 12px 0 20px rgba(15, 23, 42, 0.08);
  border-left: 1px solid rgba(15, 23, 42, 0.08);
}

.book-cover-label {
  position: absolute;
  inset: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  border: 1px solid rgba(247, 244, 239, 0.26);
  border-radius: 16px;
  color: #F7F4EF;
  text-align: center;
  background: rgba(107, 79, 58, 0.18);
  box-shadow: inset 0 0 0 1px rgba(247, 244, 239, 0.08);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.book-cover-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.78;
}

.book-cover-label strong {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.2;
}

.photo-book.is-active .book-cover-label,
.photo-book.is-opening .book-cover-label {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
}

.photo-book.is-opening-preview .book-cover-label {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
}

.book-photo-set {
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0;
  transition: none;
  pointer-events: none;
}

.book-page-layout,
.book-turn-page-layout {
  position: absolute;
  inset: 0;
  display: grid;
  grid-auto-flow: dense;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  padding: clamp(14px, 2vw, 24px);
}

.book-page-layout[data-photo-count="1"],
.book-turn-page-layout[data-photo-count="1"] {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.book-page-layout[data-photo-count="1"] .book-page-slot,
.book-turn-page-layout[data-photo-count="1"] .book-page-slot {
  grid-row: 1;
}

.book-page-layout[data-layout-kind="portrait-grid"][data-photo-count="2"],
.book-turn-page-layout[data-layout-kind="portrait-grid"][data-photo-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
}

.book-page-layout[data-layout-kind="portrait-grid"][data-photo-count="3"],
.book-page-layout[data-layout-kind="portrait-grid"][data-photo-count="4"],
.book-turn-page-layout[data-layout-kind="portrait-grid"][data-photo-count="3"],
.book-turn-page-layout[data-layout-kind="portrait-grid"][data-photo-count="4"],
.book-page-layout[data-layout-kind="mixed-3"],
.book-turn-page-layout[data-layout-kind="mixed-3"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.book-page-layout[data-layout-kind="landscape-stack"],
.book-page-layout[data-layout-kind="mixed-2"],
.book-turn-page-layout[data-layout-kind="landscape-stack"] {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.book-turn-page-layout[data-layout-kind="mixed-2"] {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.book-page-layout[data-layout-kind="mixed-3"] .book-page-slot.is-landscape,
.book-turn-page-layout[data-layout-kind="mixed-3"] .book-page-slot.is-landscape {
  grid-column: 1 / -1;
  order: -1;
}

.photo-book.is-single-photo-book .book-page-layout.is-single-photo-page,
.photo-book.is-single-photo-book .book-turn-page-layout.is-single-photo-page {
  grid-template-rows: minmax(0, 1fr);
}

.book-page-slot {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px;
  padding: clamp(6px, 0.9vw, 10px);
  background: transparent;
  box-shadow: none;
  pointer-events: auto;
}

.photo-book.is-active .book-photo-set.active .book-page-slot:not(.is-empty),
.photo-book.is-opening .book-photo-right.active .book-page-slot:not(.is-empty) {
  cursor: zoom-in;
}

.book-page-slot.is-empty {
  background: transparent;
}

.photo-book.is-turning .book-page-slot.is-empty,
.photo-book.is-turning-back .book-page-slot.is-empty,
.photo-book.is-finishing-turn .book-page-slot.is-empty,
.photo-book.is-closing-last-page .book-page-slot.is-empty,
.photo-book.is-closing-preview .book-page-slot.is-empty {
  opacity: 0;
}

.book-page-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  background: transparent;
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
}

.book-turn-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  background: transparent;
  pointer-events: none;
}

.photo-book.is-active .book-photo-set.active,
.photo-book.is-opening .book-photo-right.active {
  opacity: 1;
  pointer-events: auto;
}

.photo-book.is-opening-preview .book-photo-right.active {
  opacity: 1;
  pointer-events: auto;
}

.photo-book.is-closing-preview .book-photo-right.active {
  opacity: 1;
  pointer-events: auto;
}

.photo-book.is-opening .book-page-left {
  opacity: 0;
  visibility: visible;
  animation: bookLeftReveal 1.1s ease-in-out forwards;
}

.photo-book.is-opening-preview .book-page-left {
  opacity: var(--opening-left-opacity, 0);
  visibility: visible;
  transition: opacity 0.28s ease-out;
}

.photo-book.is-closing .book-page-left {
  opacity: 1;
  visibility: visible;
  animation: bookLeftConceal 1.1s ease-in-out forwards;
}

.photo-book.is-opening .book-photo-left.active {
  opacity: 0;
  animation: bookLeftReveal 1.1s ease-in-out forwards;
}

.photo-book.is-opening-preview .book-photo-left.active {
  opacity: var(--opening-left-opacity, 0);
  transition: opacity 0.28s ease-out;
}

.photo-book.is-closing .book-photo-left.active {
  opacity: 1;
  animation: bookLeftConceal 1.1s ease-in-out forwards;
}

.photo-book.is-closing-preview .book-page-left {
  opacity: 0 !important;
  visibility: visible;
  background: transparent !important;
}

.photo-book.is-closing-preview .book-photo-left.active {
  opacity: 0 !important;
  visibility: visible;
}

.photo-book.is-closing-preview .book-photo-left {
  opacity: 0 !important;
}

.photo-book.is-closing-preview .book-page,
.photo-book.is-closing-preview .book-page-left,
.photo-book.is-closing-preview .book-page-right,
.photo-book.is-closing-preview .book-face-front {
  background-color: transparent !important;
}

.photo-book.is-closing-preview .book-page-left,
.photo-book.is-closing-preview .book-spread {
  background: var(--bg) !important;
}

.photo-book.is-closing-preview .book-page-turn,
.photo-book.is-closing-preview .book-face,
.photo-book.is-closing-preview .book-face-front,
.photo-book.is-closing-preview .book-face-back {
  box-shadow: none !important;
  outline: none !important;
}

.book-page-turn {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transform-origin: left center;
  transform-style: preserve-3d;
}

.book-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  overflow: hidden;
}

.book-face-front {
  background: linear-gradient(135deg, #6B4F3A 0%, #8C8A85 100%);
}

.photo-book.is-active .book-face-front,
.photo-book.is-active .book-face-back,
.photo-book.is-turning:not(.is-opening):not(.is-closing):not(.is-closing-preview) .book-face-front,
.photo-book.is-turning:not(.is-opening):not(.is-closing):not(.is-closing-preview) .book-face-back {
  background: #F7F4EF;
}

.photo-book.is-closing .book-face-front {
  background: linear-gradient(135deg, #6B4F3A 0%, #8C8A85 100%);
}

.photo-book.is-closing .book-face-back {
  background: #F7F4EF;
}

.photo-book.is-closing-preview .book-face-front {
  background: transparent;
  opacity: var(--closing-front-opacity, 1);
}

.photo-book.is-closing-preview .book-face-back {
  background: linear-gradient(135deg, #6B4F3A 0%, #8C8A85 100%);
  opacity: var(--closing-back-opacity, 0);
}

.book-turn-cover-label {
  position: absolute;
  inset: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  border: 1px solid rgba(247, 244, 239, 0.26);
  border-radius: 16px;
  color: #F7F4EF;
  text-align: center;
  background: rgba(107, 79, 58, 0.18);
  box-shadow: inset 0 0 0 1px rgba(247, 244, 239, 0.08);
}

.book-turn-cover-label strong {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.2;
}

.book-turn-cover-label-back {
  opacity: 0;
}

.photo-book:not(.is-active) .book-turn-page-layout,
.photo-book.is-opening .book-turn-page-layout {
  opacity: 0;
}

.photo-book.is-active .book-turn-page-layout {
  opacity: 1;
}

.photo-book.is-closing-preview .book-face-front .book-turn-page-layout {
  opacity: var(--closing-front-opacity, 1);
}

.photo-book.is-closing-preview .book-face-back .book-turn-page-layout {
  opacity: 0;
}

.photo-book.is-closing .book-turn-page-layout {
  opacity: 0;
}

.photo-book.is-active .book-turn-cover-label {
  opacity: 0;
}

.photo-book.is-closing-preview .book-turn-cover-label-front {
  opacity: 0;
}

.photo-book.is-closing-preview .book-turn-cover-label-back {
  opacity: var(--closing-back-opacity, 0);
}

.photo-book.is-closing .book-turn-cover-label {
  opacity: 1;
}

.book-face-back {
  transform: rotateY(180deg);
  background: transparent;
  box-shadow: inset -12px 0 18px rgba(0, 0, 0, 0.12);
}

.photo-book.is-closing-preview .book-face-back {
  box-shadow: none !important;
}

/* ── Last-page forward closing (right page folds left to reveal back cover) ── */
.book-close-cover-label {
  position: absolute;
  inset: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  color: #fff;
  text-align: center;
  background: rgba(10, 20, 36, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  opacity: 0;
  pointer-events: none;
}

.book-close-cover-label strong {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.2;
}

.photo-book.is-closing-last-page .book-spread {
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.photo-book.is-closing-last-page .book-page-left {
  border-radius: 20px 0 0 20px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
}

.photo-book.is-closing-last-page .book-page-right {
  visibility: hidden !important;
}

.photo-book.is-closing-last-page .book-photo-right.active {
  opacity: 0 !important;
}

.photo-book.is-closing-last-page .book-page-turn,
.photo-book.is-closing-last-page .book-face {
  box-shadow: none !important;
  outline: none !important;
}

.photo-book.is-closing-last-page .book-face-front {
  background: #F7F4EF !important;
  opacity: var(--closing-last-front-opacity, 1);
}

.photo-book.is-closing-last-page .book-face-back {
  background: linear-gradient(135deg, #6B4F3A 0%, #8C8A85 100%) !important;
  box-shadow: none !important;
  opacity: var(--closing-last-back-opacity, 0);
}

.photo-book.is-closing-last-page .book-face-front .book-turn-page-layout {
  opacity: var(--closing-last-front-opacity, 1);
}

.photo-book.is-closing-last-page .book-face-back .book-turn-page-layout {
  opacity: 0;
}

.photo-book.is-closing-last-page .book-face-back .book-close-cover-label {
  opacity: 1;
}

.photo-book.is-turning:not(.is-turning-back) .book-page-turn {
  opacity: 1;
  animation: bookPageTurn 1.1s ease-in-out forwards;
}

.photo-book.is-turning.is-turning-back .book-page-turn {
  left: 0;
  transform-origin: right center;
  opacity: 1;
  animation: bookPageTurnBack 1.1s ease-in-out forwards;
}

.photo-book.is-paused .book-spread,
.photo-book.is-paused .book-page-left,
.photo-book.is-paused .book-photo-left.active,
.photo-book.is-paused .book-page-turn {
  animation-play-state: paused;
}

@keyframes bookPageTurn {
  0% {
    transform: rotateY(0deg);
  }
  45% {
    transform: rotateY(-89deg);
  }
  100% {
    transform: rotateY(-180deg);
  }
}

@keyframes bookPageTurnBack {
  0% {
    transform: rotateY(0deg);
  }
  45% {
    transform: rotateY(89deg);
  }
  100% {
    transform: rotateY(180deg);
  }
}

@keyframes bookLeftReveal {
  0% {
    opacity: 0;
  }
  65% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes bookSpreadReveal {
  0% {
    clip-path: inset(0 0 0 50%);
  }
  62% {
    clip-path: inset(0 0 0 50%);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes bookLeftConceal {
  0% {
    opacity: 1;
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes bookSpreadConceal {
  0% {
    clip-path: inset(0 0 0 0);
  }
  38% {
    clip-path: inset(0 0 0 0);
  }
  100% {
    clip-path: inset(0 0 0 50%);
  }
}

footer {
  padding: 0;
  color: var(--muted);
}

code {
  background: rgba(107, 79, 58, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
}

@media (max-width: 768px) {
  body.my-books-page {
    overflow-x: hidden;
  }
  body.my-books-page .container {
    width: 100%;
    max-width: 100%;
  }
  body.my-books-page .books-section,
  body.my-books-page .books-container,
  body.my-books-page .books-grid {
    width: 100%;
    overflow-x: clip;
  }
  .container {
    padding: 0 18px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
  }
  .header-inner {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  .brand {
    flex: 1;
    min-width: 0;
  }
  .site-nav-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }
  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 18px;
    z-index: 50;
    min-width: min(260px, calc(100vw - 36px));
    display: flex;
    padding: 10px;
    border: 1px solid rgba(107, 79, 58, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex-wrap: nowrap;
    transform-origin: top right;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    clip-path: inset(0 0 100% 0 round var(--radius));
    transform: translateY(-10px) scale(0.92);
    transition:
      opacity 0.28s ease,
      transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
      clip-path 0.42s cubic-bezier(0.2, 0.8, 0.2, 1),
      visibility 0.28s ease;
  }
  .site-header.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    clip-path: inset(0 0 0 0 round var(--radius));
    transform: translateY(0) scale(1);
  }
  .site-nav a {
    width: 100%;
    position: relative;
    padding: 9px 12px;
    border-radius: 12px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    letter-spacing: 0.01em;
    background: transparent;
    border: 1px solid transparent;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
  }
  .site-nav a:hover,
  .site-nav a:focus-visible {
    transform: translateX(2px);
    background: rgba(163, 181, 160, 0.56);
    border-color: rgba(107, 79, 58, 0.1);
    color: var(--accent);
  }
  .site-nav a.is-active,
  .site-nav a[aria-current='page'] {
    color: var(--accent);
    background: var(--accent-soft);
    border-color: rgba(107, 79, 58, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }
  .section {
    padding: 40px 0;
  }
  .hero {
    min-height: auto;
    padding: 48px 0;
  }
  .hero-inner {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
  .eyebrow {
    margin-bottom: 12px;
    font-size: 0.82rem;
  }
  .hero h1 {
    font-size: clamp(2rem, 9vw, 3.2rem);
  }
  .hero p {
    margin: 18px auto;
    font-size: 0.98rem;
  }
  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-actions .button,
  .hero-actions .button.secondary {
    width: 100%;
    padding: 13px 18px;
  }
  .hero-actions .button {
    background: transparent;
    border: 1px solid rgba(107, 79, 58, 0.18);
    color: var(--text);
    box-shadow: none;
  }
  .hero-actions .button:hover,
  .hero-actions .button:focus-visible {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--text);
    box-shadow: none;
  }
  .cards {
    gap: 18px;
  }
  .card {
    padding: 22px;
  }
  .gallery-grid {
    gap: 12px;
  }
  .section-nav {
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 18px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .text-tabs {
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 18px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .section-nav::-webkit-scrollbar {
    display: none;
  }
  .text-tabs::-webkit-scrollbar {
    display: none;
  }
  .section-btn,
  .text-tabs a {
    flex: 0 0 auto;
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  .category-section {
    margin-bottom: 28px;
  }
  .category-section h2 {
    margin-bottom: 16px;
    font-size: 1.3rem;
  }
  .photo-details h2 {
    font-size: 1.05rem;
  }
  .photo-meta h1 {
    font-size: clamp(1.9rem, 7vw, 2.4rem);
  }
  .photo-meta {
    margin-top: 20px;
  }
  .social-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .hero {
    aspect-ratio: auto;
    min-height: clamp(300px, 82svh, 560px);
    padding: 24px 0;
  }
  .hero-inner {
    width: min(100%, 980px);
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-actions {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero-actions .button,
  .hero-actions .button.secondary {
    width: auto;
    flex: 1 1 170px;
    max-width: 220px;
  }
  .section-nav {
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 14px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .text-tabs {
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 14px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .section-nav::-webkit-scrollbar {
    display: none;
  }
  .text-tabs::-webkit-scrollbar {
    display: none;
  }
  .section-btn,
  .text-tabs a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .about-top-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .about-grid > div {
    min-width: 0;
  }
  .about-contact-block {
    grid-column: auto;
  }
  .about-contact-card {
    width: 100%;
    max-width: none;
    padding: 16px;
  }
  .about-contact-identity {
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-areas:
      "photo text"
      "photo social";
  }
  .about-contact-photo {
    width: 100%;
    height: 100%;
    max-width: none;
    min-width: 0;
    min-height: 0;
    max-height: none;
    object-fit: cover;
    object-position: center top;
  }
  .social-links {
    gap: 10px;
  }
  .books-title {
    width: 100%;
    text-align: center;
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }
  .books-grid {
    gap: 16px;
  }
  .books-container {
    gap: 20px;
    min-height: auto;
    justify-items: center;
  }
  .photo-book {
    width: min(94vw, 420px);
    max-width: 100%;
    margin-inline: auto;
  }
  .book-closed-hint {
    left: 24%;
    top: 50%;
    max-inline-size: 40%;
    font-size: 0.95rem;
    transform: translate(-50%, -50%);
  }
  .book-closed-hint::after {
    left: auto;
    right: -4%;
    top: calc(100% + 8px);
    bottom: auto;
    width: 64px;
    height: 64px;
    transform: rotate(30deg);
  }
  .book-spread,
  .book-page {
    min-height: 0;
  }
  .book-spread {
    aspect-ratio: 16 / 10;
    min-height: 0;
    border-radius: 16px;
  }
  .book-page {
    height: 100%;
  }
  .book-cover-label,
  .book-turn-cover-label,
  .book-close-cover-label {
    inset: 10px;
    gap: 8px;
    padding: 14px;
    border-radius: 14px;
  }
  .book-cover-kicker {
    font-size: 0.72rem;
  }
  .book-cover-label strong,
  .book-turn-cover-label strong,
  .book-close-cover-label strong {
    font-size: clamp(1.05rem, 3.8vw, 1.35rem);
  }
  .book-page-layout,
  .book-turn-page-layout {
    gap: 10px;
    padding: 10px;
  }
  .book-page-slot {
    border-radius: 14px;
  }
  .gallery-lightbox {
    padding: 12px;
  }
  .gallery-lightbox-meta {
    padding: 22px 18px;
  }
}

@media (max-width: 480px) {
  body.my-books-page {
    overflow-x: hidden;
  }
  .container {
    padding: 0 14px;
  }
  .site-nav {
    right: 14px;
    min-width: min(240px, calc(100vw - 28px));
  }
  .section {
    padding: 32px 0;
  }
  .hero {
    padding: 40px 0;
  }
  .hero p {
    font-size: 0.94rem;
  }
  .card {
    padding: 18px;
  }
  .gallery-grid {
    gap: 10px;
  }
  .section-btn {
    padding: 7px 14px;
    font-size: 0.9rem;
  }
  .book-spread {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
  .photo-book {
    width: min(94vw, 340px);
  }
  .book-closed-hint {
    left: 22%;
    max-inline-size: 36%;
    font-size: 0.82rem;
  }
  .book-closed-hint::after {
    right: -2%;
    top: calc(100% + 6px);
    bottom: auto;
    width: 56px;
    height: 56px;
  }
  .book-page-layout,
  .book-turn-page-layout {
    gap: 8px;
    padding: 8px;
  }
  .book-cover-label,
  .book-turn-cover-label,
  .book-close-cover-label {
    inset: 8px;
    padding: 12px;
  }
  .book-page-slot {
    border-radius: 12px;
  }
}

@media (orientation: landscape) and (pointer: coarse) {
  .books-grid {
    justify-items: center;
  }
  .books-container {
    min-height: auto;
  }
  .photo-book {
    width: min(95svw, calc((100svh - 70px) * 1.6));
  }
  .book-spread,
  .book-page {
    min-height: 0;
  }
  .book-spread {
    aspect-ratio: 16 / 10;
    max-height: calc(100svh - 70px);
  }
  .book-page {
    height: 100%;
  }
}

@media (max-width: 900px) and (orientation: portrait) {
  .hero {
    min-height: 0;
    aspect-ratio: 2 / 3;
    padding: 0;
  }

  .hero-inner {
    padding: 20px;
  }
}

@media (orientation: landscape) and (min-width: 901px) {
  .hero {
    min-height: 0;
    aspect-ratio: 3 / 1;
    padding: 0;
  }

  .hero-inner {
    width: min(100%, 980px);
    padding: 0 20px;
  }
}

/* Photo Lightbox / Zoom */
.book-photo-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.book-photo-lightbox.open {
  background: rgba(0, 0, 0, 0.85);
  opacity: 1;
  pointer-events: auto;
}

.book-photo-lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  animation: zoomIn 0.4s ease-out;
}

.book-photo-lightbox.open .book-photo-lightbox-image {
  animation: zoomIn 0.4s ease-out;
}

.book-photo-lightbox:not(.open) .book-photo-lightbox-image {
  animation: zoomOut 0.3s ease-in forwards;
}

@keyframes zoomIn {
  from {
    transform: scale(0.7) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes zoomOut {
  from {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  to {
    transform: scale(0.7) translateY(20px);
    opacity: 0;
  }
}

.delivery-password-rules { background: #f4f7fb; border: 1px solid #c5d0e0; border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; font-size: .9rem; color: #6B4F3A; }
.delivery-password-rules ul { margin: 8px 0 0 18px; padding: 0; }
.delivery-password-rules li { margin-bottom: 4px; }
