/* Studiofolio-inspired reconstruction of original Unwords page, no WordPress dependency. */
:root { --page-bg:#f5f5f5; --side-bg:#fff; --ink:#333; --muted:#999; --edge:#e5e5e5; --sidebar-width:300px; --space:20px; }
*,*::before,*::after { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; min-height:100vh; color:#515151; background:var(--page-bg); font-family:Manrope, sans-serif; font-weight:400; -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; }
a:focus-visible, button:focus-visible { outline:2px solid #777; outline-offset:4px; }
.site-sidebar { width:var(--sidebar-width); position:fixed; height:100vh; left:0; top:0; z-index:20; border-right:1px solid var(--edge); background:var(--side-bg); display:flex; flex-direction:column; }
.site-brand { display:flex; align-items:flex-end; justify-content:flex-end; flex-direction:column; height:123px; min-height:123px; border-bottom:1px solid var(--edge); padding:30px 32px 14px 12px; text-align:right; }
.brand-top { font-size:24px; line-height:29px; font-weight:800; letter-spacing:-.065em; color:#262626; white-space:nowrap; }
.brand-bottom { margin-top:3px; font-size:10.5px; line-height:15px; font-weight:700; color:#777; letter-spacing:-.025em; white-space:nowrap; }
.sidebar-nav { padding:49px 32px 0 18px; }
.sidebar-nav a { display:block; padding:5px 0; text-align:right; color:#262626; font-size:14px; line-height:20px; font-weight:400; transition:color .2s ease; white-space:nowrap; }
.nav-group-primary a { text-transform:uppercase; }
.nav-group-secondary { margin-top:30px; }
.nav-group-secondary a { text-transform:none; }
.sidebar-nav a:hover,.sidebar-nav a.active { color:#999; }
.sidebar-footer { margin-top:auto; border-top:1px solid var(--edge); text-align:center; padding:20px 0 17px; }
.sidebar-footer p { margin:0; color:#8b8b8b; font-family:Manrope,sans-serif; font-size:11px; font-weight:400; }
.content { margin-left:var(--sidebar-width); min-height:100vh; }
.content-inner { padding:0 var(--space) 20px; }
.filter-bar { height:62px; display:flex; align-items:flex-start; justify-content:flex-end; padding-top:21px; }
.filter-all { color:#777; font-size:12px; line-height:16px; font-weight:400; text-transform:uppercase; border:0; background:none; padding:0; cursor:pointer; }
.filter-all:hover { color:#333; }
.portfolio-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:2px; }
.portfolio-tile { position:relative; display:block; aspect-ratio:1/1; overflow:hidden; background:#d8d8d8; isolation:isolate; }
.placeholder { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:var(--placeholder-bg,#d8d8d8); color:rgba(0,0,0,.24); text-align:center; font-size:11px; line-height:1; letter-spacing:.13em; font-weight:500; transition: transform .3s ease, opacity .3s ease; }
.portfolio-tile img { position:absolute; height:100%; width:100%; inset:0; object-fit:cover; transition:transform .3s ease,opacity .3s ease; }
.tile-overlay { position:absolute; inset:0; background:rgba(0,0,0,.8); z-index:2; opacity:0; transition:opacity .20s ease-out; }
.tile-caption { position:absolute; z-index:3; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:400; font-size:12px; line-height:23px; text-transform:uppercase; text-align:center; padding:20px; opacity:0; transform:scale(.8); transition:opacity .24s ease-out; }
.portfolio-tile:hover .placeholder,.portfolio-tile:focus-visible .placeholder,.portfolio-tile:hover img,.portfolio-tile:focus-visible img { transform:scale(1.5); opacity:.7; }
.portfolio-tile:hover .tile-overlay,.portfolio-tile:focus-visible .tile-overlay { opacity:1; }
.portfolio-tile:hover .tile-caption,.portfolio-tile:focus-visible .tile-caption { opacity:1; transform:scale(1); }
.page-placeholder { margin:0 auto; min-height:50vh; display:flex; align-items:center; justify-content:center; flex-direction:column; text-align:center; gap:10px; color:#888; }
.page-placeholder h1 { font-weight:400; text-transform:uppercase; font-size:17px; letter-spacing:.02em; color:#555; margin:0; }
.page-placeholder p { max-width:500px; font-size:13px; line-height:1.6; margin:0; }
.page-placeholder a,.project-back { font-size:11px; text-transform:uppercase; font-weight:700; letter-spacing:.03em; margin-top:25px; border-bottom:1px solid #999; padding-bottom:3px; }
.project-page { max-width:960px; margin:0 auto; padding:0 20px 80px; }
.project-heading { padding:9px 0 24px; display:flex; justify-content:space-between; align-items:center; }
.project-heading h1 { font-weight:400; text-transform:uppercase; color:#333; font-size:13px; margin:0; }
.project-back { margin:0; }
.project-media { aspect-ratio:3/2; background:#dedede; display:grid; place-items:center; color:#888; text-transform:uppercase; font-size:12px; letter-spacing:.14em; }
.project-caption { font-size:13px; max-width:600px; margin:28px auto; line-height:1.8; text-align:center; }
.menu-toggle { display:none; }
@media (max-width:1150px) and (min-width:769px) { .portfolio-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:768px) {
 .site-sidebar { width:100%; height:auto; position:relative; border-right:0; border-bottom:1px solid var(--edge); }
 .site-brand { display:flex; align-items:flex-end; justify-content:flex-end; flex-direction:column; height:123px; min-height:123px; border-bottom:1px solid var(--edge); padding:30px 32px 14px 12px; text-align:right; }
 .sidebar-nav { display:none; padding:10px 22px 15px; border-top:1px solid var(--edge); }
 .site-sidebar.open .sidebar-nav { display:block; }
 .sidebar-nav a { text-align:right; padding:9px 8px; border-bottom:1px solid #f0f0f0; white-space:normal; }
 .nav-group-secondary { margin-top:16px; }
 .sidebar-footer { display:none; }
 .menu-toggle { display:block; position:absolute; right:18px; top:30px; padding:8px 10px; border:1px solid var(--edge); color:#444; background:#fff; font:700 11px Manrope,sans-serif; text-transform:uppercase; cursor:pointer; }
 .content { margin-left:0; }
 .content-inner { padding:0 12px 12px; }
 .filter-bar { height:52px; padding-top:17px; }
 .portfolio-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:520px) { .portfolio-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .brand-top { font-size:24px; line-height:29px; font-weight:800; letter-spacing:-.065em; color:#262626; white-space:nowrap; } .brand-bottom { margin-top:3px; font-size:10.5px; line-height:15px; font-weight:700; color:#777; letter-spacing:-.025em; white-space:nowrap; } .tile-caption {font-size:10px;padding:7px} }
@media (prefers-reduced-motion: reduce) {html {scroll-behavior:auto}}

/* Revision 3 — bigger text logo, Adobe tracking 50 and single-row mobile header. */
.sidebar-nav a { letter-spacing: .05em; }
@media (min-width:769px) {
  .site-brand { padding: 27px 18px 14px 8px; }
  .brand-top { font-size:28px; line-height:34px; }
  .brand-bottom { font-size:11.5px; line-height:16px; }
}
@media (max-width:768px) {
  .site-sidebar {
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    padding:18px 18px 0;
  }
  .site-brand {
    flex:0 1 auto;
    max-width:calc(100% - 85px);
    height:auto;
    min-height:0;
    border:0;
    padding:0;
    align-items:flex-start;
    justify-content:center;
    text-align:left;
  }
  .brand-top {
    font-size:clamp(16px,5.2vw,28px);
    line-height:1.15;
    white-space:nowrap;
  }
  .brand-bottom {
    font-size:clamp(8px,2.3vw,11.5px);
    line-height:1.45;
    white-space:nowrap;
  }
  .menu-toggle {
    position:static;
    flex:0 0 auto;
    margin:0 0 0 auto;
    align-self:center;
  }
  .sidebar-nav {
    flex:0 0 100%;
    width:100%;
    padding:12px 0 16px;
    margin-top:18px;
    border-top:1px solid var(--edge);
  }
  .sidebar-nav a { padding:9px 0; }
}

/* Revision 4 — optical desktop divider, Manrope Medium nav, centred mobile header. */
.sidebar-nav a { font-weight:500; }
/* The redundant Show All control is removed from the gallery markup. */
.filter-bar, .filter-all { display:none; }
@media (min-width:769px) {
  /* Keep logo and Home vertically in place while moving the dividing rule down. */
  .site-brand { height:140px; min-height:140px; padding-bottom:31px; }
  .sidebar-nav { padding-top:32px; }
  .portfolio-grid { margin-top:62px; }
  .project-page { padding-top:62px; }
}
@media (max-width:768px) {
  .site-sidebar {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:100px auto;
    align-items:center;
    padding:0 18px;
  }
  .site-brand {
    grid-column:1;
    grid-row:1;
    justify-self:start;
    align-self:center;
    max-width:100%;
  }
  .menu-toggle {
    grid-column:2;
    grid-row:1;
    align-self:center;
    justify-self:end;
    margin:0 0 0 12px;
  }
  .sidebar-nav {
    grid-column:1 / -1;
    grid-row:2;
    width:100%;
    margin-top:0;
  }
  .portfolio-grid { margin-top:0; }
  .project-page { padding-top:16px; }
}


/* V5: original Studiofolio two-column photographic detail page, refreshed. */
.photo-layout {
  display:grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(295px, 0.94fr);
  align-items:start;
  gap:34px;
  padding:20px 0 42px;
  max-width:1900px;
  margin:0 auto;
}
.photo-media-column { min-width:0; }
.photo-view {
  position:relative;
  width:100%;
  aspect-ratio:1;
  background:#d7d7d7;
  overflow:hidden;
  user-select:none;
  -webkit-user-select:none;
  -webkit-touch-callout:none;
  touch-action:pan-y pinch-zoom;
}
.photo-view img {
  display:block;
  width:100%; height:100%;
  object-fit:contain;
  cursor:zoom-in;
}
.photo-view .photo-empty { background:#d6d6d6; width:100%; height:100%; display:grid; place-items:center; font-size:13px; font-weight:500; color:#999; letter-spacing:.12em; text-align:center; padding:20px; }
.photo-expand {
  position:absolute; top:13px; right:13px;
  display:inline-flex; justify-content:center; align-items:center;
  width:38px; height:38px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(25,25,25,.45); color:#fff;
  border-radius:0; cursor:pointer; opacity:0;
  transition:opacity .18s ease, background .18s ease;
}
.photo-view:hover .photo-expand,.photo-expand:focus-visible{opacity:1}
.photo-expand:hover{background:rgba(25,25,25,.78)}
.photo-expand svg,.photo-nav svg,.photo-to-gallery svg,.photo-lightbox svg { width:17px; height:17px; flex:none; }
.photo-details { min-width:0; background:#fff; padding:32px 34px 30px; }
.photo-title {
  margin:0;
  color:#323232;
  font-family:Manrope,sans-serif;
  font-size:clamp(20px,1.7vw,25px);
  line-height:1.38;
  letter-spacing:-.03em;
  font-weight:700;
  text-transform:none;
  overflow-wrap:anywhere;
}
.photo-rule {height:1px; background:#e4e4e4; margin:18px 0 23px;}
.photo-description { font-size:13px; line-height:1.77; font-weight:400; color:#686868; }
.photo-description p { margin:0 0 12px; }
.photo-description .poem-lines { white-space:normal; }
.photo-description .author { margin-top:13px; }
.photo-description .placeholder-description { color:#9b9b9b; }
.photo-date { font-size:12px; line-height:1.7; color:#777; padding:17px 0 4px; }
.photo-date strong { color:#3c3c3c; font-weight:700; margin-right:7px; }
.photo-detail-toolbar { margin-top:19px; padding-top:17px; border-top:1px solid #e5e5e5; }
.photo-nav-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.photo-to-gallery { display:inline-flex; align-items:center; gap:9px; color:#555; font-size:11px; font-weight:600; line-height:1.2; letter-spacing:.005em; }
.photo-to-gallery:hover{color:#111}
.photo-pager { display:flex; align-items:center; gap:8px; }
.photo-nav { width:34px; height:34px; display:inline-flex; justify-content:center; align-items:center; border:1px solid #e3e3e3; background:#fafafa; color:#363636; cursor:pointer; }
.photo-nav:hover:not([disabled]) { background:#e7e7e7; }
.photo-nav[disabled] { color:#c9c9c9; cursor:not-allowed; opacity:.7; }
.photo-position { font-size:11px; color:#999; min-width:50px; text-align:center; font-variant-numeric:tabular-nums; }
.photo-mobile-toolbar {display:none}
.photo-swipe-hint {display:none}
.photo-lightbox {border:0; padding:0; max-width:none; max-height:none; width:100vw; height:100vh; background:#101010; color:#fff;}
.photo-lightbox::backdrop { background:rgba(0,0,0,.94); }
.photo-lightbox[open] {display:flex; flex-direction:column;}
.photo-lightbox-head {display:flex; align-items:center; justify-content:space-between; gap:16px; padding:13px 18px; height:62px; font-size:12px; font-weight:500;}
.photo-lightbox-close {width:37px;height:37px;display:grid;place-items:center; background:none; border:1px solid #555; color:white; cursor:pointer; }
.photo-lightbox-stage { flex:1; min-height:0; display:grid; place-items:center; padding:0 18px; touch-action:pan-y pinch-zoom; user-select:none; }
.photo-lightbox-stage img { max-height:100%; max-width:100%; width:auto; height:auto; object-fit:contain; }
.photo-lightbox-foot { display:flex; justify-content:center; align-items:center; gap:20px; padding:12px 20px 19px; min-height:69px; }
.photo-lightbox .photo-nav {background:transparent;color:white;border-color:#555}
.photo-lightbox .photo-nav[disabled] {color:#656565}
.photo-lightbox .photo-nav:hover:not([disabled]) {background:#303030}
.photo-lightbox .photo-position { color:#bbb; }
.collection-intro { margin:0; padding:20px 0 18px; }
.collection-intro h1 {margin:0; font-size:17px; font-weight:600; letter-spacing:-.02em; color:#333; text-transform:none;}
.collection-intro p {margin:6px 0 0; font-size:12px; color:#888;}
.collection-grid { margin-top:0; }
.collection-grid .tile-caption { text-transform:none; }
.collection-grid .portfolio-tile .placeholder {font-size:10px}
@media(max-width:1200px) and (min-width:769px) {
  .photo-layout { grid-template-columns:minmax(0,1.55fr) minmax(255px,1fr); gap:20px; }
  .photo-details {padding:26px 24px;}
  .photo-description {font-size:12px;}
}
@media(max-width:980px) and (min-width:769px) {
 .photo-layout {display:block; max-width:730px; }
 .photo-details {margin-top:20px;}
}
@media (max-width:768px) {
  .photo-layout {display:flex; flex-direction:column; gap:0; padding:0 0 28px; }
  .photo-media-column { width:100%; }
  .photo-view { width:100%; }
  .photo-expand {opacity:1; background:rgba(25,25,25,.5);}
  .photo-mobile-toolbar {display:block; background:#fff; padding:13px 13px 9px; }
  .photo-detail-toolbar {display:none;}
  .photo-details {width:100%; padding:20px 18px 30px;}
  .photo-title {font-size:23px;}
  .photo-rule { margin:16px 0 20px; }
  .photo-description {font-size:13px; line-height:1.8; }
  .photo-swipe-hint {display:block; margin:9px 0 0; color:#aaa; font-size:10px; text-align:right; }
  .collection-intro {padding:18px 0;}
}
@media(max-width:400px) {
 .photo-nav-row {gap:6px}
 .photo-to-gallery {font-size:10px; gap:6px}
 .photo-pager {gap:5px}
 .photo-nav {width:32px;height:32px}
 .photo-position {min-width:39px}
}
@media (prefers-reduced-motion:reduce) {.photo-expand {transition:none}}


/* V6 — edge-to-edge gallery and photographic detail layout.
   The approved Manrope identity, desktop sidebar and 100px mobile header remain unchanged. */
:root { --photo-panel:#f2f2f2; --photo-divider:#dddddd; }
.content-inner { padding:0; }
.portfolio-grid, .collection-grid {
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0; margin:0;
}
.portfolio-tile { aspect-ratio:1 / 1; }
.tile-overlay {background:rgba(0,0,0,.70)}
.tile-caption {
  text-transform:none;
  font-size:clamp(12px,1.1vw,16px);
  line-height:1.45;
  font-weight:500;
  letter-spacing:0;
  transform:none;
  padding:clamp(12px,2vw,30px);
}
.portfolio-tile:hover .placeholder, .portfolio-tile:focus-visible .placeholder,
.portfolio-tile:hover img, .portfolio-tile:focus-visible img {transform:none;opacity:1}
.portfolio-tile:hover .tile-caption,.portfolio-tile:focus-visible .tile-caption {transform:none}
.collection-grid .tile-caption {text-transform:none}
/* Square and portrait: 2-column edge-to-edge presentation, text panel fills height. */
.photo-layout {
  display:grid;
  grid-template-columns:minmax(0,2.05fr) minmax(300px,1fr);
  gap:0;
  align-items:stretch;
  min-height:100vh;
  max-width:none;
  padding:0;
  margin:0;
  background:var(--photo-panel);
}
.photo-media-column {align-self:start; width:100%; min-width:0}
.photo-view { aspect-ratio:auto; background:#dedede; overflow:hidden; }
.photo-view img { width:100%; height:auto; object-fit:contain; }
.photo-view:has(.photo-empty) {aspect-ratio:var(--photo-aspect,1 / 1)}
.photo-details {
  min-width:0;
  width:100%;
  min-height:100%;
  padding:clamp(24px,3.1vw,50px) clamp(24px,3.1vw,50px) 28px;
  background:var(--photo-panel);
  border-left:1px solid var(--photo-divider);
  display:flex;
  flex-direction:column;
  align-items:stretch;
}
.photo-title {font-size:clamp(19px,1.55vw,25px);line-height:1.35;font-weight:700}
.photo-rule {margin:18px 0 24px;border:0;background:#dedede}
.photo-description { max-width:560px; font-size:13px; line-height:1.82; color:#666; }
.photo-description p {margin-bottom:14px}
.photo-date {padding-top:16px}
.photo-detail-toolbar { margin-top:auto; padding-top:25px; padding-bottom:4px; border-top:0; }
.photo-nav-row {border-top:1px solid #ddd;padding-top:16px}
.photo-nav {background:transparent; border:1px solid #d5d5d5; }
.photo-nav:hover:not([aria-disabled="true"]) {background:#e4e4e4}
.photo-nav[aria-disabled="true"] {color:#bdbdbd;cursor:default;opacity:.7}
.photo-swipe-hint,.photo-mobile-toolbar {display:none}
/* Horizontal landscape: full-width image, panel below with fine top divider. */
.photo-layout--landscape {display:block;min-height:0}
.photo-layout--landscape .photo-details {
  min-height:320px;
  border-left:0;
  border-top:1px solid var(--photo-divider);
  padding:32px clamp(25px,3.3vw,54px) 28px;
}
.photo-layout--landscape .photo-description {max-width:850px}
.photo-layout--landscape .photo-detail-toolbar {padding-top:32px}
@media (max-width:1150px) and (min-width:769px){
  .portfolio-grid,.collection-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
  .photo-layout:not(.photo-layout--landscape) {grid-template-columns:minmax(0,1.45fr) minmax(250px,1fr)}
  .photo-details {padding:26px 25px}
  .photo-description {font-size:12px}
}
/* Preserve two-column desktop even between 769 and 980 (old V5 collapsed it). */
@media(max-width:980px) and (min-width:769px){
  .photo-layout:not(.photo-layout--landscape) {display:grid;max-width:none}
  .photo-details {margin-top:0}
}
@media(max-width:768px){
  .content-inner {padding:0}
  .portfolio-grid,.collection-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0}
  .photo-layout,.photo-layout--landscape {
    display:flex;
    flex-direction:column;
    min-height:0;
    padding:0;
    gap:0;
  }
  .photo-media-column,.photo-view {width:100%;}
  .photo-view {aspect-ratio:auto}
  .photo-view:has(.photo-empty){aspect-ratio:var(--photo-aspect,1 / 1)}
  .photo-details,.photo-layout--landscape .photo-details {
    width:100%; min-height:0; margin:0;
    border-left:0; border-top:1px solid var(--photo-divider);
    padding:24px 20px 25px;
    background:var(--photo-panel);
  }
  .photo-detail-toolbar {display:block;padding-top:24px;margin-top:12px}
  .photo-nav-row {padding-top:16px}
  .photo-description{font-size:13px;line-height:1.85}
  .photo-title {font-size:22px}
  .photo-expand{opacity:1}
}
@media(max-width:520px){
  .portfolio-grid,.collection-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .tile-caption {font-size:12px;padding:12px}
}

/* HOME v7: fully edge-to-edge photostory, using the approved v6 identity. */
body[data-page="home"] { overflow-x:hidden; }
body[data-page="home"] .content { min-height:100vh; }
.home-slideshow {
  position:relative;
  height:100vh;
  height:100dvh;
  min-height:340px;
  width:100%;
  overflow:hidden;
  isolation:isolate;
  background:#181a19;
}
.home-slide {
  position:absolute;
  inset:0;
  display:block;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  overflow:hidden;
  transition:opacity 1.15s ease-in-out, visibility 0s linear 1.15s;
}
.home-slide.active {
  z-index:2;
  visibility:visible;
  opacity:1;
  pointer-events:auto;
  transition:opacity 1.15s ease-in-out, visibility 0s;
}
.home-slide.leaving {
  z-index:1;
  visibility:visible;
  transition:opacity 1.15s ease-in-out, visibility 0s linear 1.15s;
}
.home-slide img {
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  transform:scale(1);
  transform-origin:center center;
  will-change:transform;
}
/* V8 continuous zoom: keep the departing image animating throughout the fade. */
.home-slideshow.is-ready .home-slide.active img,
.home-slideshow.is-ready .home-slide.leaving img { animation:homeSlowZoom 5.15s linear both; }
.home-slideshow.is-ready.is-entering .home-slide.active img {
  animation:homeSlowZoom 5.15s linear both, homeIntroFocus 1.1s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes homeSlowZoom { from {transform:scale(1)} to {transform:scale(1.084)} }
@keyframes homeIntroFocus {from {filter:blur(10px);opacity:.78} to {filter:blur(0);opacity:1}}
@media (max-width:768px) {
  body[data-page="home"] .content {min-height:0}
  .home-slideshow {height:calc(100vh - 100px);height:calc(100dvh - 100px);min-height:320px}
}
/* iPad portrait: the previously agreed single-row menu and full-width images. */
@media (min-width:769px) and (max-width:1024px) and (orientation:portrait) {
  .site-sidebar {
    width:100%;height:auto;position:relative;display:grid;
    grid-template-columns:minmax(0,1fr) auto;grid-template-rows:100px auto;
    align-items:center; padding:0 22px;border-right:0;border-bottom:1px solid var(--edge);
  }
  .site-brand {
    grid-column:1;grid-row:1;justify-self:start;align-self:center;
    flex:0 1 auto;max-width:100%;height:auto;min-height:0;
    border:0;padding:0;text-align:left;align-items:flex-start;justify-content:center;
  }
  .brand-top {font-size:28px;line-height:1.15}
  .brand-bottom {font-size:11.5px;line-height:1.45}
  .menu-toggle {
    display:block;grid-column:2;grid-row:1;position:static;justify-self:end;
    align-self:center;margin:0 0 0 12px;padding:8px 12px;
    border:1px solid var(--edge);font:700 11px Manrope,sans-serif;
    background:#fff;color:#444;text-transform:uppercase;cursor:pointer;
  }
  .sidebar-nav {display:none;grid-column:1 / -1;grid-row:2;width:100%;padding:12px 0 16px;margin:0;border-top:1px solid var(--edge)}
  .site-sidebar.open .sidebar-nav {display:block}
  .sidebar-nav a {padding:9px 0;text-align:right;white-space:normal;border-bottom:1px solid #f0f0f0}
  .nav-group-secondary {margin-top:16px}
  .sidebar-footer {display:none}
  .content {margin-left:0;min-height:0}
  body[data-page="home"] .content {min-height:0}
  .home-slideshow {height:calc(100vh - 100px);height:calc(100dvh - 100px);min-height:420px}
  .content-inner {padding:0}
  .photo-layout,.photo-layout--landscape {display:flex;flex-direction:column;min-height:0;gap:0;padding:0}
  .photo-media-column,.photo-view {width:100%}
  .photo-view {aspect-ratio:auto}
  .photo-details,.photo-layout--landscape .photo-details {
    width:100%;min-height:0;margin:0;border-left:0;border-top:1px solid var(--photo-divider);
    padding:26px 25px;background:var(--photo-panel);
  }
  .photo-detail-toolbar {display:block;padding-top:24px;margin-top:12px}
  .portfolio-grid,.collection-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
}


/* Unwords — source text and poem formatting. */
.photo-description .work-paragraph {
  margin:0 0 1.15em;
  overflow-wrap:break-word;
}
.photo-description .work-paragraph:last-child { margin-bottom:0; }

/* iPad portrait: one photo across the full available width, description below. */
@media (min-width:769px) and (max-width:1024px) and (orientation:portrait) {
  #photo-layout {
    display:flex;
    flex-direction:column;
    gap:0;
    min-height:0;
    max-width:none;
  }
  .photo-media-column, .photo-view {width:100%}
  .photo-details, .photo-layout--landscape .photo-details {
    margin:0;
    width:100%;
    min-height:0;
    border-left:0;
    border-top:1px solid var(--photo-divider);
    padding:32px 34px;
  }
  .photo-detail-toolbar {display:block;margin-top:22px}
}


/* V8.2: finish the text logo on the same right edge as the menu,
   without changing the already approved iPad portrait / mobile header. */
@media (min-width:1025px), (min-width:769px) and (orientation:landscape) {
  .site-brand { padding-right:32px; }
}


/* V8.3 – Gallery hover option 1: static image, dark fade, delayed text reveal. */
.portfolio-tile img {transform:none;opacity:1;transition:none;}
.portfolio-tile:hover img,.portfolio-tile:focus-visible img {transform:none;opacity:1;}
.tile-overlay {background:rgba(0,0,0,.70);transition:opacity .56s ease-in-out;}
.tile-caption {
  opacity:0;
  transform:translateY(8px);
  transition:opacity .56s ease .10s,transform .60s cubic-bezier(.22,.61,.36,1) .10s;
}
.portfolio-tile:hover .tile-caption,.portfolio-tile:focus-visible .tile-caption {
  opacity:1;transform:translateY(0);
}

/* V8.3 – Home: original V8 photo-title reveal, continuous zoom and crossfade. */
.home-slide-title {
  position:absolute;
  z-index:3;
  left:var(--home-title-x,50%);
  top:50%;
  transform:translateY(calc(-50% + 10px));
  color:#fff;
  font-family:Manrope, sans-serif;
  font-size:clamp(23px,3.1vw,54px);
  font-weight:700;
  letter-spacing:-.035em;
  line-height:1.08;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  text-shadow:0 2px 18px rgba(0,0,0,.3);
  transition:opacity .58s ease .22s,transform .70s cubic-bezier(.22,.61,.36,1) .18s;
}
.home-slide.active .home-slide-title {opacity:1;transform:translateY(-50%);}
.home-slide.leaving .home-slide-title {opacity:0;transition:opacity .25s ease,transform .25s ease;}
.home-slide {transition:opacity 1.15s ease-in-out,visibility 0s linear 1.15s;}
.home-slide.active {transition:opacity 1.15s ease-in-out,visibility 0s;}
.home-slide.leaving {transition:opacity 1.15s ease-in-out,visibility 0s linear 1.15s;}
.home-slide img {will-change:auto;}
.home-slide.active img,.home-slide.leaving img {will-change:transform;}
/* 1600×1067 desktop image remains uncropped in the temporary mobile version.
   Replace with individually composed mobile files when supplied. */
@media (max-width:768px) {
  .home-slide img {object-fit:contain;}
  .home-slide-title {
    left:20px!important;
    right:20px;
    top:auto;
    bottom:18px;
    width:auto;
    font-size:clamp(20px,5.4vw,30px);
    white-space:normal;
    transform:translateY(8px);
    text-shadow:0 2px 14px rgba(0,0,0,.8);
  }
  .home-slide.active .home-slide-title {transform:translateY(0);}
}
@media (min-width:769px) and (max-width:1024px) and (orientation:portrait) {
  .home-slide img {object-fit:contain;}
  .home-slide-title {left:5%!important;top:auto;bottom:26px;transform:translateY(10px);}
  .home-slide.active .home-slide-title {transform:translateY(0);}
}


/* V8.4 – repair photographic transitions, including Firefox with Reduce Motion enabled.
   This page explicitly asks for photographic fades; never globally disable them. */
.home-slide {opacity:0; visibility:hidden; pointer-events:none; z-index:0; transition:opacity 1.15s ease-in-out, visibility 0s linear 1.15s;}
.home-slide.preparing {visibility:visible;opacity:0;z-index:3;transition:none;}
.home-slide.active {visibility:visible;opacity:1;z-index:3;pointer-events:auto;transition:opacity 1.15s ease-in-out, visibility 0s;}
.home-slide.leaving {visibility:visible;opacity:1;z-index:2;pointer-events:none;transition:none;}
.home-picture {display:block;position:absolute;inset:0;width:100%;height:100%;overflow:hidden;}
.home-slide .home-picture img {display:block;width:100%;height:100%;object-fit:cover;object-position:center;}
/* Keep an actual dissolve and title fade in all motion settings. */
.home-slideshow:not(.is-ready) .home-slide-title {opacity:0;}
@media (max-width:1024px) and (orientation:portrait) {
  .home-slide .home-picture img {object-fit:cover;object-position:center center;}
}
/* V8.4 – Unwords hover no zoom, overlay fades 560ms, title fades/raises 8px. */
.portfolio-tile img {transform:none!important;opacity:1!important;transition:none!important;}
.portfolio-tile .tile-overlay {opacity:0;transition:opacity .56s ease-in-out;}
.portfolio-tile .tile-caption {opacity:0;transform:translateY(8px);transition:opacity .56s ease .10s,transform .60s cubic-bezier(.22,.61,.36,1) .10s;}
.portfolio-tile:is(:hover,:focus-visible) .tile-overlay {opacity:1;}
.portfolio-tile:is(:hover,:focus-visible) .tile-caption {opacity:1;transform:translateY(0);}

/* V9 — raise homepage gallery labels on portrait touch devices. */
@media (max-width:1024px) and (orientation:portrait) {
  .home-slide .home-slide-title {
    top:55%;bottom:auto;left:6%!important;right:6%;
    transform:translateY(calc(-50% + 10px));
    text-shadow:0 2px 18px rgba(0,0,0,.55);
  }
  .home-slide.active .home-slide-title {transform:translateY(-50%)}
  .home-slide.leaving .home-slide-title {transform:translateY(-50%)}
}

/* Accessible but visually hidden SEO headings on edge-to-edge galleries. */
.seo-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}

/* v10.5 — Mobile photo pages: no full-screen control or zoom affordance.
   Preserve photo swiping and the desktop full-screen viewer. */
@media (max-width: 768px) {
  .photo-view .photo-expand { display: none !important; }
  .photo-view img { cursor: default !important; }
}

/* Mobile sticky header — keeps the white logo/Menu bar above scrolling content.
   In normal document flow, so galleries and blogs retain their original spacing. */
@media (max-width:768px),
       (min-width:769px) and (max-width:1024px) and (orientation:portrait) {
  .site-sidebar {
    position:-webkit-sticky;
    position:sticky;
    top:0;
    z-index:100;
    background:#fff;
  }
  /* Avoid a competing body scroll container on the homepage. */
  body[data-page="home"] { overflow-x:clip; }
}

/* Site-wide selected navigation item — Playing Backwards accent. */
.sidebar-nav a.active, .sidebar-nav a[aria-current="page"] { color:#bb49a1; }
