main {
  overflow-x: hidden;
}

.home-grid {
  display: grid;
  list-style: none;
  grid-gap: 1.5rem;
  line-height: 0;
  grid-template-columns: repeat(1, 1fr);
  grid-auto-flow: dense;
}

.home-grid li {
  position: relative;
  --cols: 1;
  --rows: 1;

  overflow: hidden;
  background: #000;
  line-height: 0;
}

.home-grid li:first-child {
  --cols: 2;
  --rows: 2;
}

.home-grid li:nth-child(5) {
  --cols: 2;
}

.home-grid li:nth-child(6) {
  --rows: 2;
}

.home-grid li:nth-child(7) {
  --cols: 2;
}

.home-grid a {
  display: block;
  height: 10rem;
}

.home-grid img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all .3s;
}

.home-grid figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  color: #fff;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  line-height: 1;
  text-align: center;
  background: rgba(0, 0, 0, .5);
}

@media screen and (min-width: 45em) {
  .home-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-grid li {
    grid-column-start: span var(--cols);
    grid-row-start: span var(--rows);
  }

  .home-grid a {
    padding-bottom: 52.65%;
  }
}

/* Floating Elements Animation */
.elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.element {
  position: absolute;
  animation: float 6s ease-in-out infinite;
}

.element img {
  width: auto;
  height: auto;
}

/* Sticker - Top Leftish */
.element:nth-child(1) {
  top: 14%;
  left: 10%;
  animation-delay: 0s;
}

/* Sticker - Bottom Left */
.element:nth-child(2) {
  bottom: 30%;
  left: 16%;
  animation-delay: 1s;
}

/* Sticker - Top Right */
.element:nth-child(3) {
  top: 15%;
  right: 15%;
  animation-delay: 2s;
}

/* Sticker - Bottom Right */
.element:nth-child(4) {
  bottom: 12%;
  right: 22%;
  animation-delay: 3s;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .element {
    animation: none;
  }
}

.mobile-cta-container {
  display: flex;
}

@media screen and (min-width: 48rem) {
  .mobile-cta-container {
    display: none !important;
  }
}
