* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body {
  margin: 0;
  background: #fff;
  color: #20201e;
  font-family: Garamond, "Times New Roman", "Songti SC", serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
body.viewer-open { overflow: hidden; }
.page { max-width: 1120px; margin: 0 auto; padding: 56px 28px 40px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #806243; }
a:focus-visible, button:focus-visible { outline: 2px solid #806243; outline-offset: 5px; }
.profile-header { width: 100%; }
.heading-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
h1 { margin: 0; font-size: 38px; line-height: 1.25; font-weight: 600; }
h2 { margin: 0 0 12px; font-size: 27px; font-weight: 500; line-height: 1.4; }
p { margin: 0 0 13px; }
.profile-intro { display: grid; grid-template-columns: minmax(0, 1fr) 192px; gap: 64px; align-items: center; }
.portrait { width: 192px; height: 192px; border-radius: 4px; display: block; }
.contact { margin: 18px 0 3px; font-size: 16px; }
.contact a { text-decoration: none; }
.profile-links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 16px; }
.profile-links span { color: #8b8b85; }
.blog-tab { padding: 3px 12px; border: 1px solid #d9d7d2; border-radius: 3px; font-size: 16px; text-decoration: none; white-space: nowrap; }
.blog-tab span { margin-left: 4px; font-size: 14px; }
.blog-tab:hover { border-color: #806243; }
.portfolio-header { margin-bottom: 40px; }
.portfolio-name { margin: 0 0 10px; font-size: 20px; }
.portfolio-header h1 { margin-bottom: 16px; }
.portfolio-header .contact { margin-bottom: 0; }
.photography { margin-top: 55px; border-top: 1px solid #e8e6e0; padding-top: 32px; }
.gallery-intro { margin: 0 0 30px; }
.gallery-intro p { margin: 0; color: #68665f; font-size: 16px; line-height: 1.9; }
.photo-gallery { display: grid; gap: 18px; }
.photo-row { display: flex; gap: 18px; align-items: flex-start; }
.photo { display: block; flex: var(--aspect) 1 0; min-width: 0; cursor: zoom-in; }
.photo img { display: block; width: 100%; height: auto; background: #f1efeb; }
.photo:focus-visible { outline-offset: 4px; }
.page-footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid #e8e6e0; font-size: 14px; color: #77746b; }
.page-footer p { margin: 0; }
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 64px 72px 30px; border: 0; background: #171715; color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: #171715; }
.lightbox-figure { margin: 0; max-width: 100%; }
.lightbox-image { display: block; max-width: 100%; max-height: calc(100dvh - 152px); width: auto; height: auto; margin: auto; object-fit: contain; }
.lightbox figcaption { display: flex; justify-content: space-between; gap: 24px; margin-top: 16px; font-size: 15px; color: #d4d2cb; }
.lightbox-count { white-space: nowrap; }
.lightbox button { position: absolute; width: 48px; height: 48px; border: 0; background: transparent; color: #fff; font-family: Arial, sans-serif; font-size: 38px; cursor: pointer; }
.lightbox button:hover { background: #ffffff18; }
.lightbox button:focus-visible { outline-color: #e5cba8; }
.lightbox-close { top: 12px; right: 16px; }
.lightbox-prev { left: 12px; top: calc(50% - 24px); }
.lightbox-next { right: 12px; top: calc(50% - 24px); }
.lightbox-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 900px) {
  .photo-gallery, .photo-row { gap: 12px; }
  .profile-intro { gap: 28px; }
}
@media (max-width: 600px) {
  .page { padding: 28px 20px 28px; }
  h1 { font-size: 33px; }
  h2 { font-size: 25px; }
  .heading-row { margin-bottom: 22px; }
  .profile-intro { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .portrait { grid-row: 1; width: 128px; height: 128px; }
  .photography { margin-top: 36px; padding-top: 26px; }
  .gallery-intro { margin-bottom: 24px; }
  .photo-gallery, .photo-row { display: grid; gap: 14px; }
  .lightbox { padding: 64px 16px 80px; }
  .lightbox-image { max-height: calc(100dvh - 230px); }
  .lightbox figcaption { font-size: 14px; gap: 14px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 14px; }
  .lightbox-prev { left: calc(50% - 64px); }
  .lightbox-next { right: calc(50% - 64px); }
}
