/**
 * Architecture gallery page — section contrast + project cards (marquee + links).
 */

.page-architecture .km-arch-gallery-section {
  background: var(--km-ceo-bg);
  padding-top: clamp(2.5rem, 6vw, 3.5rem);
  padding-bottom: clamp(3rem, 8vw, 4.5rem);
}

.page-architecture .km-arch-gallery-section .heading_container h2 {
  color: #fff !important;
}

.page-architecture .km-arch-gallery-section .heading_container p {
  color: rgba(255, 255, 255, 0.78) !important;
}

.page-architecture .km-arch-gallery-section .heading_container h2 span {
  color: var(--color-blue-400) !important;
}

/* architecture.html uses .team_section for this block — same treatment as .km-arch-gallery-section */
.page-architecture .team_section.layout_padding {
  background: var(--km-ceo-bg);
}

.page-architecture .team_section.layout_padding .heading_container h2 {
  color: #fff !important;
}

.page-architecture .team_section.layout_padding .heading_container p {
  color: rgba(255, 255, 255, 0.78) !important;
}

/* Match home marquee card look on architecture */
.page-architecture .km-gallery-grid-cell {
  display: flex;
  min-width: 0;
}

.page-architecture .km-gallery-card-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit;
  min-height: 100%;
}

.page-architecture .km-gallery-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
}

.page-architecture .km-card-grid .km-gallery-card {
  margin-bottom: 0;
}

.page-architecture .km-gallery-card__viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: clamp(220px, 32vw, 300px);
  height: clamp(220px, 32vw, 300px);
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid rgba(14, 29, 66, 0.45);
  background: var(--km-ceo-bg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.page-architecture .km-gallery-card__track {
  display: flex;
  flex-direction: column;
  width: 100%;
  animation: kmArchGalleryMarquee var(--km-gallery-dur, 26s) linear infinite;
  will-change: transform;
}

.page-architecture .km-gallery-card__strip {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.page-architecture .km-gallery-card__strip img {
  display: block;
  width: 100%;
  height: clamp(200px, 30vw, 280px);
  object-fit: cover;
  flex-shrink: 0;
}

.page-architecture .km-gallery-card__category {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.page-architecture .km-gallery-card__title {
  margin: 0.35rem 0 0;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  font-weight: 700;
  color: var(--color-blue-400);
  line-height: 1.35;
}

/* Category filter chips */
.page-architecture .km-arch-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  justify-content: center;
  margin: 0 auto clamp(1.75rem, 5vw, 2.75rem);
  max-width: 56rem;
  padding: 0 0.5rem;
}

.page-architecture .km-arch-filters__btn {
  appearance: none;
  border: 1px solid rgba(14, 29, 66, 0.65);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-architecture .km-arch-filters__btn:hover,
.page-architecture .km-arch-filters__btn:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-blue-400, #5b7fd4);
  color: #fff;
  outline: none;
}

.page-architecture .km-arch-filters__btn.is-active {
  background: var(--color-blue-800, #0e1d42);
  border-color: var(--color-blue-400, #5b7fd4);
  color: #fff;
}

.page-architecture .km-arch-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(2rem, 6vw, 3.5rem) 1rem;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
}

.page-architecture .km-gallery-card-link:hover .km-gallery-card__title,
.page-architecture .km-gallery-card-link:focus .km-gallery-card__title {
  color: #fff;
  text-decoration: underline;
}

@keyframes kmArchGalleryMarquee {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-architecture .km-gallery-card__track {
    animation: none;
  }
}
