/* Van photo carousel, interior slots, and airport photo slots.
   Loaded after main.min.css. Does not change the booking form. */

header.hero {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: min(66.666vw, 100svh);
  min-height: 34rem;
  background: #1a1c1e;
  text-align: center;
  color: #fff;
}

header.hero:before,
header.hero:after {
  content: none;
  display: none;
  background: none;
}

header.hero .container {
  padding-top: 0;
  padding-bottom: 0;
}

.hero-carousel,
.hero-viewport {
  position: absolute;
  inset: 0;
}

.hero-carousel {
  z-index: 0;
}

.hero-carousel:focus {
  outline: none;
}

.hero-carousel:focus-visible {
  outline: 3px solid #db3040;
  outline-offset: -3px;
}

.hero-viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

header.hero .hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: var(--slide-focus, center 46%);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 16%),
    linear-gradient(to top, rgba(10, 12, 14, 0.94) 0%, rgba(10, 12, 14, 0.78) 18%, rgba(10, 12, 14, 0.28) 38%, rgba(10, 12, 14, 0) 52%);
}

header.hero .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 12px 0 28px;
}

header.hero img.header-logo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.navbar-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

header.hero .intro-text .name {
  font-size: clamp(1.7rem, 3.4vw, 3.15rem);
  line-height: 1.12;
  margin: 0 0 8px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
}

header.hero .intro-text .skills {
  display: block;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

header.hero hr.star-light {
  margin: 14px auto 16px;
}

header.hero .hero-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 1080px;
  margin: 8px auto 0;
}

header.hero .hero-actions .btn {
  margin: 0;
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
}

header.hero .btn-outline:hover,
header.hero .btn-outline:focus,
header.hero .btn-outline:active {
  background: #fff;
  color: #111;
  border-color: #fff;
}

.hero-control {
  position: absolute;
  top: 42%;
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 28px;
  line-height: 44px;
  text-align: center;
}

.hero-control:hover,
.hero-control:focus {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
}

.hero-prev {
  left: 12px;
}

.hero-next {
  right: 12px;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  top: 92px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
}

.hero-dot[aria-selected="true"] {
  background: #fff;
}

.hero-carousel[data-slides="1"] .hero-control,
.hero-carousel[data-slides="1"] .hero-dots {
  display: none;
}

.photo-frame,
.airport-photo {
  position: relative;
  overflow: hidden;
  margin: 0 0 20px;
  border-radius: 8px;
  background: #1a1c1e;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.photo-frame {
  aspect-ratio: 4 / 3;
}

.airport-photo {
  aspect-ratio: 3 / 2;
}

.photo-frame picture,
.airport-photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.photo-frame img,
.airport-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--slide-focus, center center);
}

.airport-gallery[hidden] {
  display: none !important;
}

#about-us .about-layout:not(:has(.airport-gallery:not([hidden]))) .about-copy {
  width: 100%;
  float: none;
}

#inside-the-van[hidden] {
  display: none !important;
}

@media (min-width: 768px) {
  header.hero .container {
    padding-top: 0;
    padding-bottom: 0;
  }

  header.hero .hero-slide img {
    object-position: var(--slide-focus-desktop, var(--slide-focus, center 58%));
  }

  header.hero .hero-content {
    padding-bottom: 36px;
  }

}

@media (max-width: 767px) {
  .navbar-fixed-top {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .navbar-fixed-top > .container {
    width: 100%;
    max-width: 100%;
    padding-left: 8px;
    padding-right: 8px;
  }

  .navbar-fixed-top .navbar-header {
    float: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    text-align: center;
  }

  .navbar-fixed-top .navbar-brand {
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: auto;
    max-width: calc(100% - 104px);
    margin: 8px auto;
    padding: 0;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    text-align: left;
  }

  .navbar-fixed-top .navbar-logo {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }

  .navbar-fixed-top .navbar-toggle {
    position: absolute;
    right: 0;
    top: 8px;
    margin: 0;
    z-index: 3;
  }

  header.hero {
    display: block;
    height: auto;
    min-height: 0;
    margin-top: 60px;
    background: #2c2f33;
  }

  header.hero .hero-carousel {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  header.hero .hero-viewport {
    position: absolute;
    inset: 0;
  }

  header.hero .hero-scrim {
    display: none;
  }

  header.hero .hero-content {
    padding: 28px 16px 36px;
    box-sizing: border-box;
    max-width: 100%;
  }

  header.hero .intro-text .name,
  header.hero .intro-text .skills {
    text-shadow: none;
  }

  /* The longer hero line stays about as tall as the short one,
     so both buttons remain in the same place on a phone. */
  header.hero .intro-text .skills {
    font-size: 14px;
    line-height: 1.27;
  }

  /* Keep the four booking boxes on the first phone screen.
     Pull the action buttons up under the van photo; leave the
     logo, heading, and about line for scrolling below. */
  header.hero .hero-content > .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
  }

  header.hero .intro-text {
    display: contents;
  }

  header.hero .hero-actions {
    order: -1;
    margin: 16px 0 12px;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
  }

  header.hero .hero-actions .btn {
    width: 100%;
    max-width: none;
    min-height: 48px;
    padding: 8px 6px;
    font-size: 14px;
    box-sizing: border-box;
  }

  .hero-control {
    top: 50%;
    margin-top: -22px;
  }

  .hero-dots {
    top: auto;
    bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}
