:root {
  --bg:#fff;
  --text:#565656;
  --strong:#242424;
  --muted:#7d7d7d;
  --soft:#a0a0a0;
  --overlay:rgba(242,242,242,.94);
  --sidebar:220px;
  --content-max:1000px;
}
*{box-sizing:border-box}
html{min-height:100%;background:var(--bg);color-scheme:light}
body{
  min-height:100vh;margin:0;background:var(--bg);color:var(--text);
  font-family:"Source Sans 3",Seravek,"Avenir Next",Avenir,"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size:16px;font-weight:400;line-height:1.48;letter-spacing:.002em;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility
}
a{color:inherit;text-decoration:none}
a:hover{color:#111}
a:focus-visible,
button:focus-visible{
  color:#111;
  outline:1px solid #666;
  outline-offset:3px;
}
button{font:inherit;color:inherit}
img{display:block;max-width:100%}
.site-shell{
  width:100%;
  min-height:100vh;
  margin:0 auto;
  display:grid;
  grid-template-columns:var(--sidebar) minmax(0,1fr);
}
.sidebar{padding:32px 22px 32px 15px}
.brand{margin:0 0 14px;color:var(--strong);font-size:1rem;font-weight:500;line-height:1;text-transform:uppercase;letter-spacing:.075em}
.brand a{color:var(--strong)}
.menu-button{display:none;width:34px;height:34px;padding:7px;border:0;background:transparent;cursor:pointer}
.menu-button svg{width:100%;height:100%}
.site-nav,.site-nav ul{margin:0;padding:0;list-style:none}
.site-nav>li{margin:4px 0}
.site-nav a{display:inline-block;padding:1px 0}
.site-nav .projects-children{padding:6px 0 5px 15px}
.site-nav .projects-children li{margin:3px 0;font-size:.95rem}
.site-nav .current>a{color:#1f1f1f;font-weight:500}
.main{min-width:0;padding:28px 0 38px 0}
.content{width:min(var(--content-max),100%)}

.home-stage{
  position:relative;
  width:100%;
  height:min(78svh,600px);
  min-width:0;
  min-height:0;
  margin:0;
  overflow:hidden;
}

.home-slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  opacity:0;
  pointer-events:none;
  transition:opacity 1000ms ease;
}

.home-slide.is-active{
  opacity:1;
  pointer-events:auto;
}

.home-slide img{
  display:block;
  flex:0 1 auto;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  object-position:center;
}

.project-head{
  width:100%;
  min-height:24px;
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:20px;
  margin:0 0 4px;
}
.project-title{margin:0;color:var(--strong);font-size:1rem;font-weight:400;font-style:italic;letter-spacing:.015em}
.text-toggle{
  flex:none;
  padding:4px 0 4px 12px;
  border:0;
  background:transparent;
  color:#6b6b6b;
  font-size:.84rem;
  font-weight:400;
  cursor:pointer;
  transition:color 150ms ease;
}
.text-toggle:hover{color:#222}
.gallery-page{
  width:100%;
  max-width:100%;
}
.viewer{width:100%}
.image-stage{
  position:relative;
  width:100%;
  height:auto;
  min-height:0;
  display:block;
  text-align:center;
}
.image-frame{
  position:relative;
  display:inline-grid;
  max-width:100%;
  max-height:none;
  cursor:e-resize;
}
.viewer-image{
  grid-area:1/1;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:calc(100svh - 125px);
  margin:0 auto;
  object-fit:contain;
  cursor:inherit;
  transition:opacity 250ms ease;
}
.project-overlay{
  grid-area:1/1;position:absolute;inset:0;z-index:2;overflow:auto;
  padding:clamp(20px,3vw,40px);background:var(--overlay);color:#252525;
  text-align:left;line-height:1.56;
  opacity:0;visibility:hidden;transition:opacity 160ms ease,visibility 0s linear 160ms
}
.project-overlay.is-open{opacity:1;visibility:visible;transition-delay:0s}
.project-overlay p:first-child{margin-top:0}
.project-overlay p:last-child{margin-bottom:0}

.gallery-footer{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  align-items:start;
  gap:12px;
  min-height:42px;
  padding-top:4px;
}

.grid-toggle{
  position:relative;
  z-index:5;
  width:27px;
  height:27px;
  padding:4px;
  border:0;
  background:transparent;
  color:#666;
  opacity:.68;
  cursor:pointer;
}

.grid-toggle:hover,.grid-toggle:focus-visible{color:#222;opacity:1}
.grid-toggle svg{width:100%;height:100%}

.nav-controls{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  white-space:nowrap;
  padding-top:1px;
}

.nav-controls button{
  padding:2px 0;
  border:0;
  background:transparent;
  color:#666;
  font-size:.84rem;
  font-weight:400;
  cursor:pointer;
  transition:color 150ms ease;
}
.nav-controls button:hover{color:#222}

.caption{
  min-width:0;
  padding:2px 4px 0;
  text-align:center;
  font-size:.84rem;
}

.caption-name{
  width:100%;
  color:var(--strong);
  text-align:center;
  font-style:italic;
}

.caption-name:empty{display:none}

.caption-count{
  margin-top:1px;
  color:#6a6a6a;
  text-align:center;
}

.thumbnail-toolbar{
  display:flex;
  justify-content:flex-start;
  min-height:36px;
  padding-top:4px;
}

.viewer,.thumbnail-view{
  opacity:1;
}

.viewer.is-view-fading,
.thumbnail-view.is-view-fading{
  opacity:0;
}

.thumbnail-view[hidden],.viewer[hidden]{display:none!important}

.thumbnail-grid,.month-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(22px,4vw,52px) clamp(16px,3vw,34px);
  margin:24px 0 50px;padding:0;list-style:none
}
.thumbnail-button,.month-card a{
  width:100%;padding:0;border:0;background:transparent;color:inherit;cursor:pointer
}
.thumbnail-box,.month-image{aspect-ratio:1/1;display:grid;place-items:center}
.thumbnail-box img,.month-image img{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
.thumbnail-label{margin-top:5px;text-align:center;font-size:.78rem;color:var(--muted)}
.month-title{margin-top:8px;text-align:center;font-size:.9rem;color:var(--strong)}

.projects-page{
  padding-top:4px;
}
.projects-page h1,.info-page h1,.year-page h1{
  margin:0 0 18px;
  color:var(--strong);
  font-size:1.1rem;
  font-weight:300;
}
.projects-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:start;
  gap:54px 16px;
  width:100%;
  margin:8px 0 50px;
  padding:0;
  list-style:none;
}
.project-card{
  min-width:0;
}
.project-card a{
  display:block;
  width:100%;
  text-align:center;
}
.project-card-title{
  display:block;
  margin:0 0 4px;
  color:#626262;
  font-size:.92rem;
  font-weight:400;
  line-height:1.25;
  text-align:center;
}
.project-card-image{
  display:block;
  width:100%;
  overflow:visible;
}
.project-card-image img{
  display:block;
  width:100%;
  height:auto;
  max-width:none;
  max-height:none;
  object-fit:initial;
  opacity:0;
  transition:opacity 450ms ease;
}
.project-card-image img.is-loaded{
  opacity:1;
}
.project-card a:hover .project-card-image img,
.project-card a:focus-visible .project-card-image img{
  opacity:.65;
}
.info-page{max-width:900px;padding-top:28px}
.info-page h2{margin:28px 0 9px;color:var(--strong);font-size:1.05rem;font-weight:400}
.info-page h3{color:var(--strong);font-size:.95rem;font-weight:400}
.info-page p{max-width:720px}
.info-page table{width:100%;border-collapse:collapse}
.info-page td{padding:5px 14px 5px 0;vertical-align:top}
.info-page .ex_title{color:var(--strong)}
.info-page .ex_place{color:var(--text);font-size:.9em}
.year-page{padding-top:24px}

@media (hover:none){
  .image-frame{cursor:default}
}

@media(max-width:768px){
  :root{--content-max:100%}
  .site-shell{display:block;width:100%;margin:0}
  .sidebar{position:relative;padding:14px 10px 0}
  .sidebar-head{display:flex;align-items:center;justify-content:space-between}
  .brand{margin:0;padding:7px 0 8px}
  .menu-button{display:block}
  .site-nav{
    display:none;margin:7px -10px 0;padding:12px 18px 15px;
    background:#eee;text-align:center
  }
  .site-nav.is-open{display:block}
  .site-nav .projects-children{padding-left:0}
  .main{padding:4px 7px 28px}
  .home-stage{
    width:100%;
    height:min(78svh,600px);
    min-height:0;
    margin:0
  }
  .project-head{
    margin:0 0 3px;
    min-height:20px;
  }
  .image-stage{
    height:auto;
    min-height:0;
    padding:0;
    display:block;
  }
  .image-frame{
    max-width:100%;
    max-height:none;
  }
  .viewer-image{
    max-width:100%;
    max-height:calc(100svh - 112px);
  }
  .gallery-footer{
    margin-top:0;
    min-height:34px;
    padding-top:3px;
  }
  .thumbnail-grid,.month-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 18px}
  .projects-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:28px 10px;
    margin-top:4px;
  }
  .project-card-title{
    margin-bottom:3px;
    font-size:.82rem;
  }
  .project-overlay{padding:18px;font-size:.95rem}
  .info-page{padding-top:8px}

  .site-nav{
    background:#f4f4f4;
  }
  .site-nav a{
    padding:3px 0;
  }
  .menu-button{
    color:#555;
  }
  .project-overlay{
    background:rgba(247,247,247,.975);
    color:#202020;
    line-height:1.58;
  }
  .grid-toggle{
    width:29px;
    height:29px;
    opacity:.78;
  }
  .nav-controls button{
    color:#555;
    font-size:.86rem;
  }
  .caption{
    font-size:.84rem;
  }
}

/*
 * Homepage slideshow sizing.
 *
 * These dimensions deliberately mirror the original Barritt theme:
 *   769–1019px viewport: 505 × 404
 *   1020–1449px viewport: 740 × 592
 *   1450px+ viewport:     960 × 768
 *
 * Images are always contained within the box and are never cropped.
 * A portrait therefore appears narrower than a landscape on desktop.
 */
@media (min-width:769px){
  .site-shell{
    width:765px; /* 220px navigation + 545px gallery */
  }

  .home-stage{
    width:505px;
    height:404px;
    margin:20px 0 0
  }
  .home-project-label{width:505px}

  .gallery-page{
    width:545px;
  }
  .project-head,
  .gallery-footer,
  .thumbnail-view{
    padding-left:20px;
    padding-right:20px;
  }
  .image-stage{
    width:545px;
    height:404px;
    padding:0 20px;
    display:grid;
    place-items:center;
  }
  .image-frame,
  .viewer-image{
    max-width:505px;
    max-height:404px;
  }
  .projects-page{
    width:545px;
  }
}

@media (min-width:1020px){
  .site-shell{
    width:1000px; /* 220px navigation + 780px gallery */
  }

  .home-stage{
    width:740px;
    height:592px
  }
  .home-project-label{width:740px}

  .gallery-page{
    width:780px;
  }
  .image-stage{
    width:780px;
    height:592px;
  }
  .image-frame,
  .viewer-image{
    max-width:740px;
    max-height:592px;
  }
  .projects-page{
    width:780px;
  }
}

@media (min-width:1450px){
  .site-shell{
    width:1220px; /* 220px navigation + 1000px gallery */
  }

  .home-stage{
    width:960px;
    height:768px
  }
  .home-project-label{width:960px}

  .gallery-page{
    width:1000px;
  }
  .image-stage{
    width:1000px;
    height:768px;
  }
  .image-frame,
  .viewer-image{
    max-width:960px;
    max-height:768px;
  }
  .projects-page{
    width:1000px;
  }
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    scroll-behavior:auto!important;transition-duration:.001ms!important;
    animation-duration:.001ms!important;animation-iteration-count:1!important
  }
}


/* v1.5 project index: images are visible even without the optional load class. */
.no-js .project-card-image img{opacity:1}

.thumbnail-box img,
.month-image img{
  transition:opacity 180ms ease;
}
.thumbnail-button:hover .thumbnail-box img,
.thumbnail-button:focus-visible .thumbnail-box img,
.month-card a:hover .month-image img,
.month-card a:focus-visible .month-image img{
  opacity:.72;
}
.home-project-label{
  width:100%;
  min-height:24px;
  margin-top:6px;
  color:#666;
  font-size:.84rem;
  font-style:italic;
  text-align:center;
  opacity:0;
  transition:opacity 180ms ease;
}
.home-stage:hover + .home-project-label,
.home-stage:focus-within + .home-project-label{
  opacity:1;
}
.home-slide img{
  transition:opacity 180ms ease;
}
.home-slide:hover img,
.home-slide:focus-visible img{
  opacity:.94;
}

@media (hover:none){
  .home-project-label{opacity:1}
}

/* Accessible semantic headings: available to search engines and screen readers,
   but deliberately not part of the visual composition. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
