@font-face {
  font-family: 'Roboto Condensed';
  src: url('roboto-condensed-light.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Condensed';
  src: url('roboto-condensed-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: #000;
  background: #fff;
  font: 300 16px/1.4 'Roboto Condensed', 'Arial Narrow', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.landing { overflow: hidden; }

.welcome {
  min-width: 980px;
  min-height: max(694px, 100svh);
  background: #222 url('toronto.jpg') center / cover no-repeat;
  color: white;
  position: relative;
}

.welcome-links {
  position: absolute;
  top: 292px;
  left: calc((max(100%, 980px) - 980px) / 2 + 496px);
  text-align: center;
  transform: translateX(-50%);
}

.welcome h1 {
  margin: 0;
  font-size: 45px;
  font-weight: 400;
  line-height: 1.22;
}

.enter { display: inline-block; font-size: 20px; }

.sidebar {
  position: fixed;
  top: 33px;
  left: 90px;
  z-index: 2;
  width: 139px;
  text-align: right;
}

.wordmark {
  display: block;
  font-size: 30px;
  line-height: 42px;
  white-space: nowrap;
}

.sidebar nav { margin-top: 10px; }
.sidebar nav :is(a, .nav-unavailable) { display: block; line-height: 42px; }
.sidebar nav a:hover { color: #555252; }
.social { display: inline-block; margin: 18px -2px 0 0; }
.social img { display: block; }

.journal {
  overflow: hidden;
  padding-top: 41px;
  min-height: 1947px;
}

.gallery {
  position: relative;
  width: 1059px;
  height: 1906px;
  margin-left: calc((max(100%, 980px) - 980px) / 2 + 111px);
}

.tile {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  border: 0;
  padding: 0;
  overflow: hidden;
  background: #aaa9a7;
  cursor: pointer;
}

.tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.tile:hover img { transform: scale(1.05); }
.tile:focus-visible { outline: 2px solid #111; outline-offset: -4px; }

footer {
  min-height: 84px;
  padding-top: 17px;
  width: max(100%, 980px);
  text-align: center;
  font-size: 14px;
}

.about {
  margin-top: 5px;
  padding-left: 245px;
  background: #f7f7f7;
}

.about-inner {
  position: relative;
  margin: 0 auto;
  min-height: 653px;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  --bio-left: clamp(20px, 5vw, 64px);
  padding: 123px 24px 48px var(--bio-left);
  background: #222;
}

.portrait {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.about-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(0 0 0 / 66%) 0 min(calc(var(--bio-left) + 335px), 100%), transparent calc(var(--bio-left) + 570px));
}

.about-page footer { width: 100%; }

.bio {
  width: min(100%, 335px);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}

.bio p { margin: 0 0 21px; }

.viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  background: #fff;
}

.viewer[open] { display: grid; grid-template-columns: minmax(0, 70%) 1fr; }
body:has(.viewer[open]) { overflow: hidden; }
.viewer-media {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  padding: 48px 55px;
}

.viewer-image { display: block; max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; }
.viewer-details { padding: 66px 34px 20px 4px; }
.viewer-details h2 { margin: 0 0 14px; font-size: 24px; font-weight: 400; }
.viewer-details p { margin: 0; white-space: pre-line; line-height: 1.25; }
.viewer.expanded { grid-template-columns: 1fr; }
.viewer.expanded .viewer-details { display: none; }

.icon {
  position: absolute;
  height: 44px;
  width: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  z-index: 1;
}

.close { right: 2px; top: 32px; }
.close::before, .close::after {
  content: '';
  position: absolute;
  width: 34px;
  height: 1px;
  top: 50%;
  left: 5px;
  background: currentColor;
}
.close::before { transform: rotate(45deg); }
.close::after { transform: rotate(-45deg); }
.expand { left: 2px; top: 28px; font: 29px/1 sans-serif; }
.previous, .next { top: 50%; transform: translateY(-50%); }
.previous { left: 18px; }
.next { right: 22px; }
.previous::before, .next::before {
  content: '';
  position: absolute;
  width: 17px;
  height: 17px;
  left: 13px;
  top: 13px;
  border-top: 1px solid;
  border-right: 1px solid;
}
.previous::before { transform: rotate(-135deg); }
.next::before { transform: rotate(45deg); }

@media (max-width: 600px) {
  .welcome { min-width: 0; min-height: 100svh; }
  .welcome-links { top: 39.4%; left: 50%; }
  .sidebar { position: relative; top: 0; left: 0; width: auto; padding: 13px 16px; text-align: center; }
  .sidebar nav { display: flex; justify-content: center; gap: 20px; margin: 0; }
  .sidebar nav :is(a, .nav-unavailable) { line-height: 30px; }
  .social { margin: 6px 0 0; }
  .journal { min-height: auto; padding: 0 10px 20px; }
  .gallery { columns: 2; column-gap: 8px; width: auto; height: auto; margin: 0; }
  .tile { position: relative; inset: auto; width: 100%; height: auto; display: block; margin-bottom: 8px; break-inside: avoid; }
  .tile img { height: auto; }
  footer { width: 100%; }
  .about { padding-left: 0; }
  .about-inner { min-height: 550px; padding: 28px 20px; }
  .about-inner::before { background: linear-gradient(180deg, rgb(0 0 0 / 72%) 0 58%, transparent 90%); }
  .viewer[open] { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .viewer.expanded { grid-template-rows: minmax(0, 1fr); }
  .viewer-details { padding: 0 18px 28px; }
  .viewer-media { padding: 74px 35px 14px; }
  .previous { left: 0; }
  .next { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tile img { transition: none; }
}
