/* Gallery slider — uses variables from styles.css */

.gallery-page {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.gallery-page-head {
  margin-bottom: 1.25rem;
}

.gallery-intro a {
  color: var(--blue-700);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gallery-slider {
  margin-bottom: 1.25rem;
}

.gallery-slider-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #deebff;
  background: var(--white);
}

.gallery-counter-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink-900);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(18, 45, 106, 0.12);
  pointer-events: none;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue-900);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(18, 45, 106, 0.18);
  transition: background var(--transition), transform var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  background: var(--white);
  transform: translateY(-50%) scale(1.04);
}

.gallery-arrow--prev {
  left: 0.5rem;
}

.gallery-arrow--next {
  right: 0.5rem;
}

@media (min-width: 640px) {
  .gallery-arrow--prev {
    left: 0.85rem;
  }

  .gallery-arrow--next {
    right: 0.85rem;
  }
}

.gallery-slider-track {
  display: flex;
  width: calc(100% * var(--slide-count, 10));
  transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-slider-track {
    transition: none;
  }
}

.gallery-slide {
  flex: 0 0 calc(100% / var(--slide-count, 10));
  width: calc(100% / var(--slide-count, 10));
  min-width: 0;
}

.gallery-slide img,
.gallery-slide-video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.gallery-slide-video {
  background: #000;
}

.gallery-video-wrap {
  position: relative;
  width: 100%;
}

.gallery-video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.2);
  transition: opacity var(--transition);
}

.gallery-video-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.gallery-video-overlay:focus-visible {
  outline: 3px solid #93b3ff;
  outline-offset: 2px;
}

.gallery-card-below {
  max-width: 520px;
  margin-inline: auto;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #deebff;
}

.gallery-card-below .taxi-body {
  padding: 1.25rem;
}

.gallery-footnote {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.gallery-footer-contact {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
}

.gallery-footer-contact a {
  color: var(--blue-700);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
