/*
 * Home page slider. Values measured on the live site at 375 / 768 / 1024 / 1366 / 1920 px.
 */

.home-slider {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  min-height: 300px;
  background: var(--color-coffee);
}

/* the photos column may grow taller than the photos (min-height above): the extra shows the coffee colour */
.home-slider-photos {
  width: 100%;
}

/* photos: 16:9, on top of each other; the active one is visible */
.home-slider-images {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 1080;
  overflow: hidden;
}

.home-slider-images img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 1s;
}

.home-slider-images img.is-active {
  opacity: 1;
}

/* dots at the bottom: filled white dot, the active one is a ring */
.home-slider-bullets {
  position: absolute;
  bottom: 10px;
  z-index: 9;
  width: 100%;
}

.home-slider-bullets-inner {
  width: 144px;
  margin: 0 auto;
}

.home-slider-bullet {
  position: relative;
  float: left;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
}

.home-slider-bullet span {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 10px;
  height: 10px;
  margin: auto;
  border: 2px solid var(--color-white);
  border-radius: 10px;
  background: var(--color-white);
  transition: 0.1s;
}

.home-slider-bullet:hover span,
.home-slider-bullet.is-active span {
  width: 15px;
  height: 15px;
  background: transparent;
}

/* arrows: only while the pointer is over the photos (our own SVG triangles) */
.home-slider-prev,
.home-slider-next {
  display: none;
  position: absolute;
  top: 50%;
  z-index: 9;
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border: 1px solid var(--color-white);
  border-radius: 1px;
  background: no-repeat center;
  cursor: pointer;
}

.home-slider-prev {
  left: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath d='M18.5 10.5v9l-7-4.5z' fill='none' stroke='%23fff'/%3E%3C/svg%3E");
}

.home-slider-next {
  right: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath d='M11.5 10.5v9l7-4.5z' fill='none' stroke='%23fff'/%3E%3C/svg%3E");
}

.home-slider-images:hover .home-slider-prev,
.home-slider-images:hover .home-slider-next {
  display: block;
}

.home-slider-prev:hover,
.home-slider-next:hover {
  border-color: var(--color-black);
}

/* title and description over the photo (empty on the live site) */
.home-slider-caption {
  position: absolute;
  top: 40%;
  width: 100%;
  box-sizing: border-box;
  padding: 30px;
  text-align: center;
}

.home-slider-description {
  margin-top: 15px;
  font-size: var(--size-hero);
  font-weight: var(--weight-extra);
  line-height: 72px;
  color: var(--color-white);
  text-shadow: var(--shadow-title);
}

.home-slider-title {
  position: relative;
  margin: 11px 0 30px;
  font-family: var(--font-page-title);
  font-size: var(--size-2xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-h1);
  color: var(--color-white);
  text-shadow: var(--shadow-title);
}

@media (max-width: 1024px) {
  .home-slider-caption { top: 20%; }
}

@media (max-width: 767px) {
  .home-slider-caption { padding: 30px 15px; }

  .home-slider-description {
    margin-top: 0;
    font-size: var(--size-lg);
    line-height: 24px;
  }

  .home-slider-title { font-size: 28px; }
}

@media (max-width: 600px) {
  .home-slider-caption { position: static; }
  .home-slider-title { margin-bottom: 0; }
}
