/* IRON GOAT AL v15.8 — route-powered homepage gallery */

#gallery > div > .mt-14 {
  display: none !important;
}

.ig-gallery-shell {
  position: relative;
  min-height: 20rem;
  margin-top: 3rem;
}

.ig-gallery-shell:not(.has-photos)::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid #e4e4e7;
  border-radius: 2rem;
  background: linear-gradient(110deg, #f4f4f5 25%, #ffffff 42%, #f4f4f5 58%);
  background-size: 240% 100%;
  color: #71717a;
  content: "Loading trail photos…";
  font-size: 0.875rem;
  font-weight: 700;
  animation: ig-gallery-loading 1.6s linear infinite;
}

.ig-gallery-shell.is-empty::before {
  content: "Route photos will appear here automatically.";
  animation: none;
}

.ig-gallery-strip {
  display: flex;
  gap: 1rem;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.25rem 0.25rem 1.15rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: #8b1e2d #e7e5e4;
  scrollbar-width: thin;
  cursor: grab;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.ig-gallery-strip:active {
  cursor: grabbing;
}

.ig-gallery-strip::-webkit-scrollbar {
  height: 6px;
}

.ig-gallery-strip::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #e7e5e4;
}

.ig-gallery-strip::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #8b1e2d;
}

.ig-gallery-photo {
  position: relative;
  display: block;
  flex: 0 0 min(76vw, 680px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 2rem;
  background: #e7e5e4;
  box-shadow: 0 20px 50px rgba(24, 24, 27, 0.14);
  scroll-snap-align: start;
}

.ig-gallery-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  transition: transform 500ms ease;
  -webkit-user-drag: none;
}

.ig-gallery-photo:hover img {
  transform: scale(1.025);
}

.ig-gallery-photo::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(9, 9, 11, 0.82), transparent);
  content: "";
  pointer-events: none;
}

.ig-gallery-photo figcaption {
  position: absolute;
  z-index: 1;
  right: 1.25rem;
  bottom: 1.1rem;
  left: 1.25rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -0.01em;
}

@keyframes ig-gallery-loading {
  to { background-position: -240% 0; }
}

@media (max-width: 639px) {
  .ig-gallery-shell {
    min-height: 15rem;
    margin-top: 2.25rem;
  }

  .ig-gallery-strip {
    gap: 0.75rem;
    margin-right: -1rem;
    width: calc(100% + 1rem);
    padding-right: 1rem;
  }

  .ig-gallery-photo {
    flex-basis: 86vw;
    border-radius: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ig-gallery-strip {
    scroll-behavior: auto;
  }

  .ig-gallery-photo img,
  .ig-gallery-shell:not(.has-photos)::before {
    animation: none;
    transition: none;
  }
}
