html {
  box-sizing: border-box;
  background-color: #222;
  font-size: 16px;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  color: white;
  font-style: normal;
  font-weight: 300;
  font-family: "Manrope", sans-serif;
  font-optical-sizing: auto;
}

h1,
h2 {
  font-style: normal;
  font-weight: 400;
  font-family: "Poppins", sans-serif;
  font-optical-sizing: auto;
}

img {
  max-width: 100%;
}

.container {
  position: relative;
  margin: 0 1rem 4rem;
  max-width: 64rem;
}
@media (width >= 64rem) {
  .container {
    margin: 0 auto 4rem;
  }
}

.hero {
  position: relative;
  background-image: url("/wp-content/themes/kbis-theme/assets/img/pexels-tobiasbjorkli-1562058.jpg");
  background-size: auto;
  height: calc(100vh / 3 * 2);
  height: 50vh;
}
@media (width >= 40rem) {
  .hero {
    background-size: cover;
  }
}
/* .hero::before {
  position: absolute;
  opacity: 0.5;
  background-image: radial-gradient(circle at left, rgba(0, 0, 0, 0.5) 0 50%, transparent 50% 100%);
  background-image: url("/wp-content/themes/kbis-theme/pexels-eva-bronzini-7599547.jpg");
  background-position: center;
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  content: "";
} */

.hero .container > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: calc(100vh / 3 * 2);
  height: 50vh;
}
@media (width >= 40rem) {
  .hero .container > div {
    width: 50%;
  }
}

aside {
  margin-top: -2rem;
  margin-left: auto;
  background-color: #181818;
  padding: 10px;
  width: 100%;
  & .slick-prev {
    left: calc(50% - 25px);
    z-index: 999;
  }
  & figure {
    display: flex;
    flex-direction: row-reverse;
    margin-bottom: 0;
    & > * {
      width: 50%;
    }
    & figcaption {
      padding-right: calc(25px + 1em);
    }
  }
}
@media (width >= 40rem) {
  aside {
    width: calc(50% - 2rem);
  }
}

@media (width >= 40rem) {
  .booth > div:first-child {
    position: relative;
    float: left;
    width: calc(100% / 6);
    height: calc(300px + 2rem);
    & > h2 {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      margin: 0;
    }
  }

  .booth > div:last-child {
    float: right;
    width: calc(100% / 6 * 5);
  }
}

.booth .slick-slide {
  transition: padding 0.5s;
  padding: 1rem 0.5rem;
  &.slick-center {
    padding: 0 0.5rem;
  }
}

.booth figure {
  position: relative;
  transition: height 0.5s;
  height: 300px;
}

.booth,
.booth .slick-center figure {
  height: calc(300px + 2rem);
}

.booth figure::after {
  position: absolute;
  top: 0;
  transition: background-color 0.5s;
  background-color: rgba(0, 0, 0, 0.25);
  width: 100%;
  height: 100%;
  content: "";
}
.booth .slick-center figure::after {
  background-color: transparent;
}

.booth figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.booth figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 1em;
  width: 100%;
  height: auto;
  color: black;
  font-weight: 500;
  text-align: center;
}

/* Cards */
.cards {
  grid-gap: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card {
  display: flex;
  position: relative;
  flex-direction: column;
  color: black;
  text-align: center;
}

.card > div:first-child {
  background-image: url("/wp-content/themes/kbis-theme/assets/img/pexels-tobiasbjorkli-1562058.jpg");
  background-size: cover;
  height: 125px;
}

.card > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: white;
  padding: 0 1rem;
  height: 125px;
}

.thumbnail {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  aspect-ratio: 1 / 1;
  width: calc(100% / 3);
}

.thumbnail img {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-container {
  position: relative; /* Essential for positioning child elements relative to this container */
  width: 100%;
  height: 100vh; /* Example height, adjust as needed (e.g., 500px, 100%) */
  overflow: hidden; /* Hides any part of the video that overflows the container */
}

.video-container video {
  position: absolute; /* Positions the video relative to the container */
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%); /* Centers the video */
  z-index: -1; /* Puts the video behind other content in the div */
  width: auto;
  min-width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover; /* Ensures the video covers the entire space without stretching, similar to background-size: cover */
}

.video-container .content {
  position: relative; /* Ensures content is above the video (since video has z-index: -1) */
  z-index: 1;
  padding: 20px;
  /* Add styles for your content (padding, color, alignment) */
  color: white;
  text-align: center;
}
