.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 0.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: rgb(0, 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%;
  }
}

.hero {
  height: 100svh;
  display: flex;
  flex-direction: column;
}

.hero__media {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-base);
  padding-bottom: 3.5rem;
  /* gap: var(--space-base); */
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero__overlay {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-base);
  z-index: 15;
  pointer-events: none;
  margin-top: var(--space-base);
}



.hero__overlay-text {
  color: var(--color-white);
  font-size: var(--type-sm);
  line-height: var(--line-base);
  max-width: 70ch;
  opacity: 0.85;
  height: 2lh;
  overflow: hidden;
  text-wrap: balance;
}


.hero__overlay-link {
  pointer-events: auto;
  color: var(--color-white);
  font-size: var(--type-sm);
  white-space: nowrap;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-small);
  transition: background-color 0.2s;
  border: 1px solid var(--color-white);
}

.hero__overlay-link.is-coming-soon {
  cursor: default;
  opacity: 0.5;
  border-style: dashed;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

@media (max-width: 767.98px){
  .hero__overlay {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__overlay-text {
    max-width: 100%;
  }
}


.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slides img,
.hero__slides video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: opacity;
}

.hero__slides img.is-active,
.hero__slides video.is-active {
  opacity: 1;
}

/* Progress bar */
.hero__progress {
  position: static;
  width: 100%;
  display: flex;
  gap: var(--space-xs);
  z-index: 20;
}

.hero__progress-bar {
  flex: 1;
  height: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.hero__progress-bar__fill {
  height: 100%;
  width: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}

.hero__progress-bar__fill.is-filling {
  animation: story-fill var(--story-duration, 5s) linear forwards;
}

.hero__progress-bar__fill.is-done {
  transform: scaleX(1);
  animation: none;
}

@keyframes story-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Nav buttons */
.hero__nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.hero__nav--prev {
  left: 0;
  cursor: w-resize;
  /* cursor: url("data:image/svg+xml,%3Csvg width='30' height='28' viewBox='0 0 12 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.09091 10.1818L0 5.09091L5.09091 0L5.96591 0.863636L2.36364 4.46591H11.6932V5.71591H2.36364L5.96591 9.30682L5.09091 10.1818Z' fill='white'/%3E%3C/svg%3E") 15 14, w-resize; */
}

.hero__nav--next {
  right: 0;
  cursor: e-resize;
  /* cursor: url("data:image/svg+xml,%3Csvg width='30' height='28' viewBox='0 0 12 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.60227 10.1818L5.72727 9.31818L9.32955 5.71591H0V4.46591H9.32955L5.72727 0.875L6.60227 0L11.6932 5.09091L6.60227 10.1818Z' fill='white'/%3E%3C/svg%3E") 15 14, e-resize; */
}


.hero__logo {
  position: absolute;
  inset: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  margin-top: -2.25rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: var(--space-base);
  padding: var(--space-base);
  background-color: var(--color-background);
  border-radius: 1rem 1rem 0 0;
  z-index: 110;
}

.hero__drawer {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
}

.hero__drawer::after {
  content: '';
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 0.25rem;
  border-radius: 99px;
  background-color: rgb(var(--color-black-rgb), 0.25);
}

@media (max-width: 991.98px){
  .hero__drawer::after {
    width: 80px;
  }
}

.hero__content h1 {
  position: relative;
  z-index: 1;
  pointer-events: none;
  max-width: 100%;
  margin: 0;
  margin-top: 1.25rem;
}

.hero__scroll {
  font-size: 30px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  color: currentColor;
  transition: opacity 0.2s;

}


@media (max-width: 991.98px) {

  .hero__content h1 {
    max-width: 100%;
    font-size: var(--type-base);
    line-height: var(--line-base);
  }
}

.main-content {
  padding-top: var(--space-lg);
}
