.message {
  border: 1px solid #d2d0d0;
  padding: 2em;
  font-size: 1.7vw;
  box-shadow: -2px 2px 10px 0px rgba(68, 68, 68, 0.4);
}

@supports (display: grid) {
  .message {
    display: none;
  }
}

.section {
  display: none;
  padding: 2rem;
}

@media screen and (min-width: 768px) {
  .section {
    padding: 4rem;
  }
}

@supports (display: grid) {
  .section {
    display: block;
  }
}

h1 {
  font-size: 2rem;
  margin: 0 0 1.5em;
}

.grid {
  display: grid;
  grid-gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 225px;
  grid-auto-flow: row dense;
}

.grid--x2 {
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  grid-auto-rows: 40vh;
  grid-gap: 20px;
}

@media screen and (max-width: 768px) {
  .grid--x2 {
    grid-template-columns: repeat(1, minmax(300px, 1fr));
  }
}

@media screen and (-ms-high-contrast: none) {
  .grid {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
  }
}

.item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
  background: #fff;
  color: #fff;
  grid-column-start: auto;
  grid-row-start: auto;
  color: #fff;
  background-size: cover;
  background-position: center;
  outline: 1px solid #555;
  box-shadow: -2px 2px 10px 0px rgba(68, 68, 68, 0.4);
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
  counter-increment: item-counter;
}

.item:after {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.3;
  transition: opacity 0.3s ease-in-out;
}

.item:hover {
  transform: scale(1.02);
}

.item:hover:after {
  opacity: 0;
}

@media screen and (min-width: 768px) {
  .item--2x1 {
    grid-column-end: span 2;
  }
}

@media screen and (min-width: 768px) {
  .item--3x1 {
    grid-column-end: span 3;
  }
}

@media screen and (min-width: 768px) {
  .item--4x1 {
    grid-column-end: span 4;
  }
}

.item--1x2 {
  grid-row-end: span 2;
}

.item--1x3 {
  grid-row-end: span 3;
}

.item--1x4 {
  grid-row-end: span 4;
}

@media screen and (min-width: 768px) {
  .item--2x2 {
    grid-column-end: span 2;
    grid-row-end: span 2;
  }
}

@media screen and (min-width: 768px) {
  .item--2x3 {
    grid-column-end: span 2;
    grid-row-end: span 3;
  }
}

@media screen and (min-width: 768px) {
  .item--3x2 {
    grid-column-end: span 3;
    grid-row-end: span 2;
  }
}

.item--fullx2 {
  grid-column-end: auto;
}

@media screen and (min-width: 768px) {
  .item--fullx2 {
    grid-column: 1/-1;
    grid-row-end: span 2;
  }
}

.item--fullx3 {
  grid-column-end: auto;
}

@media screen and (min-width: 768px) {
  .item--fullx3 {
    grid-column: 1/-1;
    grid-row-end: span 3;
  }
}

.item--fullx4 {
  grid-column-end: auto;
}

@media screen and (min-width: 768px) {
  .item--fullx4 {
    grid-column: 1/-1;
    grid-row-end: span 4;
  }
}

.item--medium {
  grid-row-end: span 2;
}

.item--large {
  grid-row-end: span 3;
}

.item--full {
  grid-column-end: auto;
}

@media screen and (min-width: 768px) {
  .item--full {
    grid-column: 1/-1;
    grid-row-end: span 2;
  }
}

.item__details {
  position: relative;
  z-index: 1;
  padding: 15px;
  color: #444;
  background: #fff;
  text-transform: lowercase;
  letter-spacing: 1px;
  color: #828282;
}

.item__details:before {
  content: counter(item-counter);
  font-weight: bold;
  font-size: 1.1rem;
  padding-right: 0.5em;
  color: #444;
}

.item a {
  height: 100%;
  z-index: 2;
}

.item a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media all and (-ms-high-contrast: none) {
  .item {
    width: 24%;
    margin: 0.5%;
  }
  .item a img {
    max-height: 25vh;
  }
}
/*# sourceMappingURL=grid.css.map */