/* === About section === */

.about-content {
  padding: 80px 8vw 0 8vw;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  justify-items: center;
  align-items: center;
}

.about-images {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(5, 1fr);
  align-content: start;
}

.about-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-images img:nth-child(1) {
  grid-column: 1 / span 2;
  grid-row: 1 / span 3;
  border-right: 10px solid #fff;
}

.about-images img:nth-child(2) {
  grid-column: 3 / span 2;
  grid-row: 1 / span 5;
}

.about-images img:nth-child(3) {
  grid-column: 5 / span 2;
  grid-row: 1 / span 2;
  border-left: 10px solid #fff;
}

.about-images img:nth-child(4) {
  grid-column: 5 / span 2;
  grid-row: 3 / span 3;
  border-left: 10px solid #fff;
  border-top: 10px solid #fff;
}

.about-images img:nth-child(5) {
  grid-column: 1 / span 3;
  grid-row: 4 / span 2;
  position: relative;
  z-index: 2;
  border-top: 10px solid #fff;
  border-right: 10px solid #fff;
}

.mobile-about-info-container {
  display: none;
}

/* === Design breakpoints === */

/* Mobile */
@media screen and (max-width: 640px) {
  .about-content {
    grid-template-columns: 1fr;
    padding: 130px 8vw 50px 8vw;
  }

  .about-images,
  .about-info-container {
    display: none;
  }

  .mobile-about-info-container {
    display: block;
  }

  .slideshow {
    max-width: 350px;
  }
}

/* Tablet */
@media screen and (min-width: 641px) and (max-width: 1007px) {
  .about-content {
    padding: 80px 5vw 0 5vw;
    grid-template-columns: 1fr 1.2fr;
  }

  .about-images {
    display: none;
  }
}

/* Laptop */
@media screen and (min-width: 1008px) {
  .slideshow {
    display: none;
  }
}

/* === img carousel === */
* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

.mySlides img {
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.mySlides:nth-of-type(4) img {
  object-position: 50% 70%;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}


/* The dots/bullets/indicators */
.dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  cursor: pointer;
  height: 1px;
  width: 100%;
  background-color: #bbb;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active {
  height: 3px;
}

.active, .dot::before {
  content: '';
  background-color: var(--brand);
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}