/* Plain, like eg-arch.co.il: white page, light grey nav, images do the talking. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: #333; font: 300 17px/1.7 "Open Sans", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.top { position: relative; display: flex; align-items: center; justify-content: space-between; height: 102px; padding: 0 16px; }
.logo { display: flex; flex-direction: column; align-items: flex-start; direction: ltr; line-height: 1; order: 3; }
.logo__a { font: 400 21px/1 Georgia, "Times New Roman", serif; letter-spacing: .14em; color: #6d6d6d; }
.logo__b { margin-top: 6px; font: 400 10.5px/1 Georgia, serif; letter-spacing: .5em; color: #7d2232; }
.top .nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 22px; }
.nav a { color: #8a8a8a; font-size: 18px; }
.nav a:hover { color: #222; }
.burger { display: none; order: 1; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 28px; height: 3px; margin: 5px 0; background: #555; }

/* home: slider, 3 tall images in view, arrows like the example */
.slider { position: relative; }
.track { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 calc((100% - 16px) / 3); scroll-snap-align: start; }
.slide img { width: 100%; height: calc(100vh - 102px - 90px); min-height: 420px; object-fit: cover; }
.arr { position: absolute; top: 50%; transform: translateY(-50%); width: 68px; height: 300px; border: 0; background: rgba(20,20,20,.35); color: #fff; font-size: 54px; line-height: 1; cursor: pointer; opacity: .55; transition: opacity .2s; }
.arr:hover { opacity: 1; background: rgba(20,20,20,.6); }
.arr--prev { left: 20px; } .arr--next { right: 20px; }
.wa { position: fixed; right: 70px; bottom: 26px; z-index: 20; width: 64px; height: 64px; border-radius: 50%; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.18); display: grid; place-items: center; }
.wa svg { width: 36px; height: 36px; fill: #111; }

/* projects: 3 columns, black & white, colour on hover */
.grid { max-width: 1165px; margin: 0 auto 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0 0; }
.tile { position: relative; display: block; overflow: hidden; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1); transition: filter .4s, transform .6s; }
.tile span { position: absolute; inset: auto 0 0 0; padding: 10px 14px; background: rgba(255,255,255,.88); color: #333; font-size: 15px; opacity: 0; transition: opacity .3s; }
@media (hover: hover) { .tile:hover img { filter: none; transform: scale(1.02); } .tile:hover span { opacity: 1; } }

/* project page: title, basic info, images one under the other */
.project { max-width: 900px; margin: 10px auto 60px; padding: 0 16px; text-align: center; }
.project h1 { margin: 0 0 6px; font-size: 30px; font-weight: 400; color: #555; }
.project .info { margin: 0 0 26px; color: #666; font-size: 17px; }
.project figure { margin: 0 auto 20px; max-width: 760px; }
.project figure img { margin: 0 auto; }
.project figcaption { margin-top: 6px; color: #888; font-size: 15px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 34px; font-size: 15px; color: #888; }
.pager a:hover { color: #222; }

/* text pages */
.text { max-width: 820px; margin: 10px auto 70px; padding: 0 20px; }
.text h1 { font-size: 30px; font-weight: 400; color: #555; margin: 0 0 18px; }
.text h2 { font-size: 21px; font-weight: 600; color: #444; margin: 30px 0 8px; }
.text p { margin: 0 0 12px; }
.contact p { margin: 0 0 6px; font-size: 18px; }
.contact a { color: #7d2232; }

.foot { border-top: 1px solid #eee; padding: 26px 16px 34px; text-align: center; color: #888; font-size: 15px; }
.foot { border-top: 0; font-size: 19px; color: #999; }
.foot__nav { display: flex; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.foot__nav a { padding: 0 24px; border-left: 1px solid #bbb; }
.foot__nav a:last-child { border-left: 0; }

@media (max-width: 900px) {
  .top { height: 76px; }
  .top .nav { display: none; }
  .burger { display: block; }
  .menu-open .top .nav { display: flex; position: absolute; top: 76px; left: 0; right: 0; transform: none; flex-direction: column; gap: 0; background: #fff; z-index: 5; border-top: 1px solid #eee; box-shadow: 0 10px 20px rgba(0,0,0,.06); }
  .menu-open .top .nav a { padding: 14px 20px; border-bottom: 1px solid #f1f1f1; font-size: 19px; }
  .slide { flex-basis: 100%; }
  .slide img { height: 118vw; max-height: 72vh; min-height: 0; }
  .arr { width: 44px; height: 120px; font-size: 40px; }
  .arr--prev { left: 0; } .arr--next { right: 0; }
  .wa { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .foot__nav a { padding: 0 12px; font-size: 16px; }
  .grid { grid-template-columns: 1fr; gap: 14px; padding: 0 16px; }
  .tile img { filter: none; }
  .tile span { opacity: 1; }
  .project h1, .text h1 { font-size: 25px; }
}
