* { box-sizing: border-box }
body { margin: 0; color: #565656; background: #fff; font: 1rem/1.6 "Trebuchet MS", Arial, sans-serif }
header, footer, h1 { text-align: center }
header { padding-top: 30px; border-bottom: 1px solid #ddd }
header img { max-width: 88%; height: auto }
nav { margin-top: 22px; border-top: 1px solid #eee; display: flex; justify-content: center; flex-wrap: wrap; font: bold .78rem/1.5 Arial,sans-serif; text-transform: uppercase; letter-spacing: .08em }
nav a, summary { display: block; padding: 16px; text-decoration: none; color: #393939; cursor: pointer }
nav a:hover, summary:hover { color: #42775e }
details { position: relative }
details[open] { z-index: 2 }
details div { position: absolute; min-width: 100%; background: white; text-align: left; box-shadow: 0 4px 12px #0002 }
details div a { padding: 9px 14px }
main { max-width: 1200px; padding: 38px 20px 64px; margin: auto }
h1,h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .07em; color: #333 }
h1::before,h2::before,h1::after { content: " – "; color: #599177 }
h2 { margin-top: 2rem }
.gallery { display: grid; grid-template-columns: repeat(4,1fr); grid-auto-rows: clamp(100px,15.9vw,185px); grid-auto-flow: dense; gap: 10px }
.tile { position: relative; min-width: 0 }
button.tile { padding: 0; border: 0; background: transparent; cursor: zoom-in; font: inherit }
.viewer { padding: 0; border: 0; background: #191919; color: white; max-width: 94vw; overflow: hidden }
.viewer::backdrop { background: rgb(0 0 0 / 85%) }
.viewer img { display: block; max-width: 94vw; max-height: 86vh; max-height: 86dvh; object-fit: contain }
.viewer button { position: absolute; right: .5rem; top: .5rem; padding: .65rem .9rem; border: 1px solid white; border-radius: .25rem; background: #171717; color: white; font: inherit; cursor: pointer }
.tile img { display: block; width: 100%; height: 100%; object-fit: cover }
.width2 { grid-column: span 2 }
.height2 { grid-row: span 2 }
.tile span { position: absolute; inset: auto 0 0; text-align: center; background: #222c; color: white; opacity: 0 }
.tile:hover span,.tile:focus span { opacity: 1 }
footer { background: #292929; color: #ddd; padding: 36px 16px 18px }
footer span { display: inline-block; margin: 0 8px }
address { font-style: normal }
footer a { color: inherit }
footer p { font-size: .85rem }
@media(max-width: 700px) {
  .gallery { grid-template-columns: repeat(2,1fr); grid-auto-rows: 29vw }
  nav a,summary { padding: 12px 7px }
  details:last-child div { right: 0 }
}
