/* Cloud Age Photo, rebuilt from the Squarespace site.
   Colours: page #e0e0e0, text #000, dark grey #4a4a4a, inputs #fafafa
   Fonts: Anton (menu, footer email) and Hanken Grotesk (body) from Google Fonts */

:root {
  --bg: #e0e0e0;
  --ink: #000;
  --grey: #4a4a4a;
  --pad: 4vw;           /* side margins */
  --gap: 1vw;           /* gallery spacing */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header {
  position: relative;
  height: 141px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
}
.main-nav { display: flex; gap: 34px; margin-top: -1px; }
.main-nav a {
  font-family: "Anton", sans-serif;
  font-size: 15.96px;
  letter-spacing: normal;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 21px;
}
.main-nav a:hover { opacity: .6; }
.main-nav a.active { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.logo { position: absolute; left: 50%; top: 26px; transform: translateX(-50%); }
.logo img { width: 349px; height: auto; }
.burger { display: none; }

/* ---------- home ---------- */
.home-collage { padding: 68px var(--pad) 0; }
.home-collage img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- galleries ---------- */
.gallery {
  padding: 68px var(--pad) 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.gallery a { display: block; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: opacity .2s; }
.gallery a:hover img { opacity: .9; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(224, 224, 224, .9);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: calc(100vw - 140px); max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; }
.lightbox button {
  position: absolute; background: none; border: 0; cursor: pointer; color: var(--ink);
  font: 300 40px/1 "Hanken Grotesk", sans-serif; padding: 10px 14px;
}
.lb-close { top: 10px; right: 14px; font-size: 32px !important; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }

/* ---------- about ---------- */
.about { padding: 17px var(--pad) 0; }
.about-img { width: 100%; height: auto; }
.about .text { margin-top: 40px; }

/* ---------- contact ---------- */
.contact {
  padding: 17px var(--pad) 103px;
  display: grid;
  grid-template-columns: 46.3% 1fr;
  column-gap: 4.2%;
  align-items: start;
}
.contact-img img { width: 100%; aspect-ratio: 717 / 807; object-fit: cover; }
.contact .text p { margin-bottom: 1em; }
.contact-form { margin-top: 44px; }
.contact-form label { display: block; margin-bottom: 21px; }
.contact-form .req { font-size: 13px; color: #777; margin-left: 4px; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 5px;
  background: #fafafa; border: 1px solid var(--ink); border-radius: 0;
  font: inherit; font-size: 18px; letter-spacing: -0.03em; color: var(--ink);
  height: 45px; padding: 0 12px;
}
.contact-form textarea { height: 100px; padding: 10px 12px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--grey); outline-offset: 0; }
.contact-form .hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.contact-form button {
  background: var(--grey); color: var(--bg); border: 0; border-radius: 0; cursor: pointer;
  font: inherit; padding: 21.6px 36px; margin-top: 6px;
}
.contact-form button:hover { opacity: .85; }
.contact-form button:disabled { opacity: .6; cursor: default; }
.form-error { color: #b00020; }
.form-done { margin-top: 30px; }

/* ---------- 404 ---------- */
.notfound { padding: 68px var(--pad) 0; max-width: 900px; }
.notfound h1 { font-family: "Anton", sans-serif; font-weight: 400; letter-spacing: normal; text-transform: uppercase; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 68px;
  padding: 29px var(--pad) 30px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.f-social { justify-self: start; margin-left: 6.2vw; }
.f-social a { display: flex; width: 48px; height: 48px; align-items: center; justify-content: center; color: var(--ink); }
.f-social a:hover { opacity: .6; }
.f-logo img { width: 244px; height: auto; }
.f-email {
  justify-self: end; margin: 0;
  font-family: "Anton", sans-serif; font-weight: 400; font-size: 18.8px;
  letter-spacing: normal; text-transform: uppercase; color: var(--grey);
}

/* ---------- mobile ---------- */
@media (max-width: 767px) {
  :root { --pad: 6vw; --gap: 2vw; }
  .site-header { height: auto; padding-top: 20px; padding-bottom: 20px; justify-content: center; }
  .logo { position: static; transform: none; }
  .logo img { width: 220px; }
  .main-nav {
    display: none; position: fixed; inset: 0; z-index: 40; background: var(--bg);
    flex-direction: column; align-items: center; justify-content: center; gap: 24px; margin: 0;
  }
  .main-nav a { font-size: 32px; line-height: 1.2; }
  body.menu-open { overflow: hidden; }
  body.menu-open .main-nav { display: flex; }
  .burger {
    display: block; position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; background: none; border: 0; cursor: pointer; z-index: 41; padding: 0;
  }
  .burger span { display: block; height: 1px; background: var(--ink); margin: 8px 6px; transition: transform .2s; }
  body.menu-open .burger { position: fixed; top: 38px; }
  body.menu-open .burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
  body.menu-open .burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

  .home-collage, .gallery, .notfound { padding-top: 10px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; row-gap: 30px; padding-bottom: 0; }
  .about .text { margin-top: 30px; }
  .lightbox img { max-width: 100vw; max-height: calc(100vh - 120px); }
  .lb-prev { left: 0; } .lb-next { right: 0; }

  .site-footer { grid-template-columns: 1fr; justify-items: center; row-gap: 18px; }
  .f-social { margin-left: 0; justify-self: center; }
  .f-email { justify-self: center; }
}
