@import url("https://fonts.googleapis.com/css2?family=Momo+Trust+Display&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased; /* MacOS / iOS Safari */
  -moz-osx-font-smoothing: grayscale; /* Firefox on macOS */
  text-rendering: optimizeLegibility;
}

.logo {
  display: block;
  width: 100%;
  max-width: 900px;
  padding: 2rem;
  margin: 0 auto;
}

body {
  font-family: "Momo Trust Display", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: black;
}

em {
  font-weight: bold;
  font-style: normal;
}

a:hover {
  text-decoration: underline 2px;
}

.tagline,
.contact {
  text-align: center;
  font-size: 2rem;
  margin: 0 auto;
  color: white;
}

.tagline a,
.contact a {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .tagline,
  .contact {
    font-size: 1.5rem;
  }
}

header {
  padding: 1rem;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  align-items: center;
  background: url("assets/roofing_01.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center center;
}

@media (max-width: 768px) {
  header {
    background: url("assets/roofing_01-mobile.webp");
    background-size: cover;
  }
}

main {
  min-height: 100vh;
  background-color: #0666ab;
  padding: 2rem;
}

main p {
  font-family: Arial, Helvetica, sans-serif;
  max-width: 65ch;
  margin: 0 auto;
  color: white;
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
}

.gallery {
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-items: center;
  justify-items: center;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3; /* maintains 400x300 proportion */
  object-fit: cover;
  cursor: pointer;
  max-width: 400px;
}

#lightbox {
  position: fixed;
  z-index: 1000;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
}

#lightbox.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

#lightbox img {
  padding: 2rem;
  max-width: 100%;
  max-height: 100vh;
}

footer {
  width: 100%;
  min-height: 100vh;
  padding: 2rem;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  color: black;
  font-family: Arial, Helvetica, sans-serif;
}

footer .contact a {
  color: black !important;
}

footer .tagline {
  font-family: "Momo Trust Display", sans-serif;
  font-weight: 400;
  text-align: center;
  font-size: 2rem;
  margin: 0 auto;
  color: #0666ab;
}

@media (max-width: 768px) {
  footer .tagline {
    font-size: 1.5rem;
  }
}

.colophone {
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.about {
  margin: 3rem 0;
}
