.dome-project-gallery-shortcode,
.dome-project-gallery-shortcode * {
  box-sizing: border-box;
}

.dome-project-gallery-shortcode {
  padding: 90px 15px 140px;
  color: #808080;
  background-color: #f9f9f9;
  text-align: center;
}

.dome-project-gallery-shortcode .title {
  margin: 0;
  color: #808080;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 300;
  line-height: 1.2;
}

.dome-project-gallery-shortcode .paragraph {
  max-width: 720px;
  margin: 1rem auto 0;
  color: #808080;
  font-size: 1rem;
  line-height: 1.6;
}

.dome-project-gallery-shortcode .project-gallery {
  display: flex;
  flex-flow: row wrap;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  max-width: 1140px;
  margin: 75px auto 15px;
  padding: 0;
  list-style: none;
}

.dome-project-gallery-shortcode .project-item,
.dome-project-gallery-shortcode .project-title,
.dome-project-gallery-shortcode .project-link {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: stretch;
}

.dome-project-gallery-shortcode .project-item {
  position: relative;
  flex-grow: 0;
  flex-shrink: 0;
  margin: 0 0 15px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.dome-project-gallery-shortcode .project-title,
.dome-project-gallery-shortcode .project-link {
  width: 100%;
  height: 100%;
  margin: 0;
}

.dome-project-gallery-shortcode .project-title {
  background-image: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.72) 100%);
}

.dome-project-gallery-shortcode .project-link {
  padding: 0 2em 1.4em;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.2;
  text-decoration: none;
}

.dome-project-gallery-shortcode .button-bar {
  display: flex;
  justify-content: center;
  margin-top: 65px;
}

.dome-project-gallery-shortcode .button {
  display: inline-block;
  min-width: min(560px, 100%);
  padding: 20px 80px;
  border: 1px solid currentColor;
  color: #808080;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  line-height: 1.2;
  text-decoration: none;
  text-transform: capitalize;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.dome-project-gallery-shortcode .button:hover,
.dome-project-gallery-shortcode .button:focus {
  color: #fff;
  background-color: #808080;
}

@media screen and (min-width: 961px) {
  .dome-project-gallery-shortcode .project-item {
    flex-basis: calc((100vw - 144px) / 3);
    max-width: calc((1140px - 108px) / 3);
    min-width: 300px;
    height: calc((100vw - 144px) / 3);
    min-height: 300px;
    max-height: calc((1140px - 108px) / 3.2);
  }
}

@media screen and (min-width: 37.5em) and (max-width: 960px) {
  .dome-project-gallery-shortcode .project-item {
    flex-basis: calc((100vw - 60px) / 2);
    min-width: 270px;
    height: calc((100vw - 60px) / 2);
    min-height: 270px;
  }
}

@media only screen and (max-width: 37.5em) {
  .dome-project-gallery-shortcode {
    padding-top: 30px;
    padding-bottom: 50px;
  }

  .dome-project-gallery-shortcode .project-gallery {
    margin-top: 35px;
  }

  .dome-project-gallery-shortcode .project-item {
    flex-basis: 100%;
    height: calc(100vw - 30px);
  }

  .dome-project-gallery-shortcode .button {
    padding-right: 24px;
    padding-left: 24px;
  }
}
