.glide {
  display: grid;
}

.glide__track {
  grid-column: 1 / 4;
  grid-row: 1 / 6;
}

.glide__slide {
  width: 100vw;
}

@media screen and (min-width: 660px) {
  .glide__slide {
    width: 40rem;
  }
}

[data-glide-el="controls"],
.glide__bullets {
  grid-column: 1 / 4;
  z-index: 1;
}

[data-glide-el="controls"] {
  display: flex;
  grid-row: 3 / 4;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;

  button {
    align-content: center;
    background: hsla(0, 0%, 84.7%, 0.8); /* #d8d8d8cc */
    block-size: 4.1rem;
    border: 0 solid transparent;
    color: var(--background);
    display: flex;
    inline-size: 1.625rem;
    justify-content: center;
    pointer-events: all;
  }

  svg {
    display: inline-block;
    aspect-ratio: 259 / 439;
    fill: var(--background);
    opacity: 0.8;
    inline-size: 1.3125rem;
    block-size: auto;
    pointer-events: none;
  }
}

.glide__bullets {
  display: grid;
  grid-row: 6 / 7;
  gap: 0.3125rem;
  grid-template-columns: repeat(auto-fit, minmax(5px, 1fr));
}

@media screen and (min-width: 660px) {
	.glide__bullets {
	  display: none;
	}
}

.glide__bullet {
  block-size: 0.33rem;
  border: 0;
  background: #8e8e8e;
}

.glide__bullet--active {
    background: var(--accent-primary);
}

.carousel__home {
  margin-block: 1rem 2rem;
}

.carousel__home__slide {
    background: #000;
}

.carousel__home__link {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(2.9375rem, 1fr));
  inline-size: 100vw;
  text-decoration: none;
  aspect-ratio: 414/268;
  overflow: hidden;
  position: relative;

  img {
    block-size: auto;
    width: 100%;
    grid-row: 1 / 10;
    grid-column: 1 / 10;
  }
}

@media screen and (min-width: 990px) {
  .carousel__home__link {
    width: 100%;

    img {
      aspect-ratio: 3/2;
      /*
        This fixes the distorted aspect ratio of portrait-oriented images. It does,
        however, make them fuzzier. Going forward, the answer may be to crop Featured images.
     */
      object-fit: cover;
      object-position: 50% 0;
    }
  }
}

.carousel__home__text {
  position: absolute;
  inset-block-end: 0;
}

.carousel__home__tag {
  background: var(--accent-primary);
  color: var(--background);
  display: block;
  font: 400 0.75rem / 1 var(--font-accent);
  padding: 0.25rem 0.5rem;
  margin-inline: 2rem 0;
  text-transform: uppercase;
  white-space: nowrap;
  width: min-content;
}

.carousel__home__title {
  color: var(--background);
  font-size: 2rem;
  letter-spacing: -0.046875rem;
  margin-inline:  2rem 0;
  margin-block-start: 0.5rem;
  text-shadow: 2px 2px 7px rgba(0, 0, 0, 0.95);
}
