/* Horizontal Gallery Rows */

.gallery-rows-section {
  position: relative;
  background: #ffffff !important;
  background-image: none !important;
  color: #111;
  padding: 90px 0 120px;
  overflow: hidden;
}

.gallery-rows-section::before,
.gallery-rows-section::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
  background-image: none !important;
}

.gallery-rows-head {
  width: min(1320px, calc(100% - 120px));
  margin: 0 auto 42px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 36px;
  background: transparent !important;
  background-image: none !important;
}

.gallery-rows-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.6;
  font-weight: 500;
  color: #111111;
}

.gallery-rows-title span {
  color: var(--kd-gold);
}

.gallery-rows-desc {
  max-width: 470px;
  margin: 0;
  color: #685b46;
  font-size: 13.5px;
  line-height: 2.1;
}

.gallery-row {
  margin: 34px 0;
  background: transparent !important;
  background-image: none !important;
}

.gallery-row::before,
.gallery-row::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
  background-image: none !important;
}

.gallery-row-header {
  width: min(1320px, calc(100% - 120px));
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: transparent !important;
  background-image: none !important;
}

.gallery-row-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #1d1710;
}

.gallery-row-hint {
  color: #9d6f1e;
  font-size: 12px;
  white-space: nowrap;
}

.gallery-viewport {
  width: 100%;
  overflow: hidden;
  background: transparent !important;
  background-image: none !important;
}

.gallery-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  padding: 6px max(60px, calc((100vw - 1320px) / 2)) 18px;
  scrollbar-width: none;
  direction: ltr;
  background: transparent !important;
  background-image: none !important;
}

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

.gallery-card {
  position: relative;
  flex: 0 0 clamp(230px, 25vw, 360px);
  height: clamp(170px, 19vw, 250px);
  border-radius: 28px;
  overflow: hidden;
  background: #1d1710;
  box-shadow: 0 18px 38px rgba(50, 38, 18, .14);
  transform: translateZ(0);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.96) contrast(1.04);
  transform: scale(1.01);
  transition: .55s cubic-bezier(.16, 1, .3, 1);
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, .54),
      rgba(0, 0, 0, .05) 58%,
      rgba(255, 255, 255, .08));
  opacity: .9;
  transition: .35s;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-card:hover::after {
  opacity: .72;
}

.gallery-card-label {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .65);
}

.gallery-card-label strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.gallery-card-label small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  opacity: .78;
  direction: ltr;
}

.gallery-row:nth-child(even) .gallery-track {
  flex-direction: row-reverse;
}