/* Keep each gallery inside its Bootstrap column; only the photo track scrolls. */
.home-gallery {
  min-width: 0;
}

/* The home footer's email must also fit its narrow tablet column. */
#layout-footer.home a[href^="mailto:"] h5 {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.home-gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.home-gallery-track::-webkit-scrollbar {
  display: none;
}

.home-gallery-slide {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  scroll-snap-align: start;
}

.home-gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-gallery-arrow {
  position: absolute;
  bottom: 30px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #a7a7a7;
  background: white;
  border: 1px solid var(--Grey, #ddd);
  box-shadow: var(--softShadow, 0 1px 4px rgba(0, 0, 0, .15));
  border-radius: 100%;
}

.home-gallery-prev { left: 30px; }
.home-gallery-next { right: 30px; }

.home-gallery-pagination {
  position: absolute;
  bottom: 38px;
  left: 50%;
  z-index: 1;
  display: flex;
  transform: translateX(-50%);
}

.home-gallery-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: 0;
}

.home-gallery-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 2px #333;
  opacity: .65;
}

.home-gallery-dot[aria-current="true"]::before { opacity: 1; }

.home-gallery-track:focus-visible {
  outline: 3px solid #165581;
  outline-offset: -3px;
}

.home-gallery button:focus-visible {
  outline: 3px solid #165581;
  outline-offset: 2px;
}

@media (max-width: 359px) {
  .home-gallery-pagination { bottom: 86px; }
}
