/* Shared styles for adanorman.com (on top of w3.css) */

body,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", sans-serif;
}

body,
html {
  height: 100%;
  line-height: 1.8;
}

/* Full height image header */
.bgimg-1 {
  background-position: center;
  background-size: cover;
  background-image: url("/img/front-1920.webp");
  min-height: 100%;
}

.w3-bar .w3-button {
  padding: 16px;
}

/* Gallery thumbnails are buttons so they work with the keyboard */
.gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.gallery-thumb img {
  display: block;
  width: 100%;
  height: auto;
}
.gallery-thumb:focus-visible,
#modal01 button:focus-visible {
  outline: 3px solid #2196f3;
  outline-offset: 2px;
}

/* Home page headline: large on desktop, smaller on phones */
.hero-title {
  font-size: 64px;
  line-height: 1.2;
  margin: 0 0 8px;
}
@media (max-width: 600px) {
  .hero-title {
    font-size: 36px;
  }
}

/* Property cards on the home page */
.property-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* Gallery grid: even rows at every width (floats left gaps when photo
   heights differed by a pixel) */
#gallery .w3-row-padding {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0 8px;
}
#gallery .w3-row-padding::before,
#gallery .w3-row-padding::after {
  display: none;
}
#gallery .w3-row-padding > .w3-col {
  float: none;
  width: auto;
  padding: 0;
}
@media (max-width: 992px) {
  #gallery .w3-row-padding {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  #gallery .w3-row-padding {
    grid-template-columns: 1fr;
  }
}
