/* =====================================================
   DS CONTENT PAGES: reviews, gallery, privacy policy
   Builds on css/design-system.css tokens. Scoped to body.ds.
   ===================================================== */

/* ---------- Shared page hero ---------- */
.ds .ds-page-hero {
  position: relative;
  padding: 0;
  color: var(--ds-white);
  background-color: var(--ds-graphite);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(201, 160, 106, 0.25);
  overflow: hidden;
}

.ds .ds-page-hero--reviews {
  background-image:
    linear-gradient(90deg, rgba(17, 19, 22, 0.95) 0%, rgba(17, 19, 22, 0.78) 50%, rgba(17, 19, 22, 0.45) 100%),
    url('https://storage.googleapis.com/kws-clients/Waldman%20Electrical%20Contractors/Reviews/five-stars.webp');
}

.ds .ds-page-hero--gallery {
  background-image:
    linear-gradient(90deg, rgba(17, 19, 22, 0.95) 0%, rgba(17, 19, 22, 0.75) 50%, rgba(17, 19, 22, 0.35) 100%),
    url('https://storage.googleapis.com/kws-clients/Waldman%20Electrical%20Contractors/Gallery/gallery7.webp');
}

/* Maroon glow in the corner, matching the homepage reviews band */
.ds .ds-page-hero::after {
  content: '';
  position: absolute;
  inset: auto -10% -40% auto;
  width: 60%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(176, 38, 72, 0.28), transparent);
  pointer-events: none;
}

.ds .ds-page-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(48px, 8vw, 104px);
  padding-bottom: clamp(40px, 6vw, 80px);
}

.ds .ds-page-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.38em 0.95em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #e8dcc8;
  font-size: 0.85rem;
  font-weight: 600;
}

.ds .ds-page-chip::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ds-maroon-bright);
}

.ds .ds-page-title {
  font-family: var(--ds-font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ds-white);
  margin: 0.45em 0 0.25em;
  text-align: left;
  padding: 0;
}

.ds .ds-page-sub {
  max-width: 34rem;
  margin: 0 0 clamp(22px, 3vw, 32px);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.ds .ds-page-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 0;
}

.ds .ds-page-stat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 2px 26px 2px 0;
  margin-right: 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.ds .ds-page-stat:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: 0;
}

.ds .ds-page-stat-icon {
  flex: none;
  margin-top: 3px;
  color: var(--ds-brass);
  font-size: 0.95rem;
}

.ds .ds-page-stat-text b {
  display: block;
  font-family: var(--ds-font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--ds-white);
}

.ds .ds-page-stat-text > span:not(.open-status) {
  display: block;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.68);
}

/* Live open/closed status inside a stat chip */
.ds .ds-page-stat .open-status {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: none;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.ds .ds-page-stat .open-status .status {
  display: block;
  margin: 0 0 1px;
  padding: 0;
  background: none;
  font-family: var(--ds-font-display);
  font-size: 1.2rem;
  line-height: 1.1;
  text-shadow: none;
}

.ds .ds-page-stat .open-status .status.open {
  color: #2ecc71;
}

.ds .ds-page-stat .open-status .status.closed {
  color: #ff6b6b;
}

/* ---------- Shared bits ---------- */
.ds .ds-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--ds-oxblood);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ds .ds-text-link:hover {
  color: var(--ds-maroon-bright);
}

.ds .ds-section a:focus-visible,
.ds .ds-section button:focus-visible,
.ds .ds-doc-layout a:focus-visible,
.ds .main-image-container:focus-visible,
.ds .thumbnail:focus-visible {
  outline: 3px solid var(--ds-maroon-bright);
  outline-offset: 3px;
}

/* ---------- Reviews: intro with a typographic rating ---------- */
.ds .ds-rv-intro {
  background: var(--ds-white);
}

.ds .ds-rv-intro-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
}

.ds .ds-rating-card {
  padding-left: clamp(20px, 3vw, 40px);
  border-left: 3px solid var(--ds-brass);
}

.ds .ds-rating-top {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}

.ds .ds-rating-number {
  font-family: var(--ds-font-display);
  font-weight: 700;
  font-size: clamp(4.4rem, 10vw, 7rem);
  line-height: 0.82;
  letter-spacing: -0.02em;
  color: var(--ds-oxblood);
}

.ds .ds-rating-stars {
  color: var(--ds-brass-deep);
  font-size: 1.15rem;
}

.ds .ds-rating-count {
  display: block;
  margin-top: 6px;
  font-size: 0.98rem;
  color: var(--ds-ink-2);
}

.ds .ds-rating-card .hero-btn {
  width: auto;
  display: inline-block;
}

/* ---------- Reviews: map with a plain info column ---------- */
.ds .ds-rv-map {
  background: var(--ds-steel);
}

.ds .ds-map-grid {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}

.ds .ds-map-frame {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(26, 29, 33, 0.5);
}

.ds .ds-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
}

.ds .ds-map-info {
  align-self: center;
}

.ds .ds-map-block {
  padding: 18px 0;
  border-top: 1px solid var(--ds-rule);
}

.ds .ds-map-block:first-child {
  border-top: 2px solid var(--ds-graphite);
}

.ds .ds-map-block .ds-h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
}

.ds .ds-map-block .ds-h3 i {
  color: var(--ds-oxblood);
  font-size: 0.95rem;
}

.ds .ds-map-block address,
.ds .ds-map-block p {
  margin: 0;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ds-ink-2);
}

.ds .ds-map-block a {
  color: var(--ds-graphite);
}

.ds .ds-map-block a:hover {
  color: var(--ds-oxblood);
}

.ds .ds-map-block strong {
  color: var(--ds-graphite);
}

.ds .ds-map-block .ds-text-link {
  margin-top: 8px;
  color: var(--ds-oxblood);
}

/* ---------- Reviews: a stream of quotes, not boxes ---------- */
.ds .ds-rv-list {
  background: var(--ds-white);
}

.ds .ds-rv-list-head {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    'title google'
    'filter filter';
  align-items: end;
  gap: 0 32px;
  margin-bottom: 8px;
}

.ds .ds-rv-list-head .ds-h2 {
  grid-area: title;
  margin: 0;
}

.ds .ds-rv-google {
  grid-area: google;
}

.ds .ds-rv-google .hero-btn {
  width: auto;
  display: inline-block;
}

/* Filter as text tabs */
.ds .reviews-filter {
  grid-area: filter;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px 28px;
  margin: 22px 0 0;
  padding: 0 0 0;
  background: none;
  border: 0;
  border-bottom: 2px solid var(--ds-graphite);
}

.ds .filter-btn {
  position: relative;
  margin: 0;
  padding: 6px 0;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--ds-ink-2);
  font-family: var(--ds-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.ds .filter-btn::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ds-maroon-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.ds .filter-btn:hover {
  color: var(--ds-graphite);
  background: none;
  transform: none;
}

.ds .filter-btn.active {
  color: var(--ds-graphite);
  background: none;
}

.ds .filter-btn.active::after {
  transform: scaleX(1);
}

.ds .reviews-container {
  max-width: none;
}

/* Masonry-style columns; JS show/hide via .hidden-review still works */
.ds .reviews-grid {
  display: block;
  columns: 2;
  column-gap: clamp(32px, 5vw, 72px);
  margin: 0;
}

.ds .review-item {
  display: block;
  break-inside: avoid;
  height: auto;
  margin: 0;
  padding: 26px 0 28px;
  background: none;
  border-radius: 0;
  border-top: 1px solid var(--ds-rule);
  box-shadow: none;
  overflow: visible;
  transition: none;
}

.ds .review-item:hover {
  transform: none;
  box-shadow: none;
}

.ds .review-item.hidden-review {
  display: none;
}

.ds .google-review::before,
.ds .testimonial-review::before {
  display: none;
}

/* Featured review: a full-width pull quote */
.ds .featured-review {
  column-span: all;
  position: relative;
  margin-bottom: 8px;
  padding: clamp(28px, 4vw, 48px) 0 clamp(28px, 4vw, 44px) clamp(56px, 8vw, 120px);
  border: 0;
}

.ds .featured-review::after {
  content: '\201C';
  position: absolute;
  top: clamp(4px, 1vw, 12px);
  left: 0;
  right: auto;
  padding: 0;
  background: none;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(5rem, 11vw, 9rem);
  font-weight: 400;
  line-height: 1;
  color: var(--ds-maroon-bright);
  letter-spacing: 0;
  text-transform: none;
  border-radius: 0;
}

.ds .featured-review .review-text {
  max-width: 52ch;
  font-family: var(--ds-font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ds-graphite);
}

/* Name and date sit above the quote as a byline */
.ds .review-item {
  position: relative;
}

.ds .review-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.ds .reviewer-image-placeholder {
  display: none;
}

.ds .reviewer-info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.ds .reviewer-name {
  margin: 0;
  font-family: var(--ds-font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ds-graphite);
}

.ds .review-date {
  display: inline;
  font-size: 0.88rem;
  color: var(--ds-ink-2);
}

.ds .review-recent-tag {
  display: inline-block;
  margin: 0;
  padding: 0;
  background: none;
  color: var(--ds-maroon-bright);
  font-size: 0.85rem;
  font-weight: 700;
}

.ds .review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 10px;
  color: var(--ds-brass-deep);
  font-size: 0.85rem;
}

.ds .review-text {
  margin-bottom: 12px;
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ds-graphite);
}

/* Tags read as a quiet line of text */
.ds .review-tags {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

.ds .review-tag {
  display: inline;
  padding: 0;
  background: none;
  border-radius: 0;
  color: var(--ds-ink-2);
  font-size: 0.85rem;
  font-weight: 600;
}

.ds .review-badges {
  display: block;
  margin: 0;
}

.ds .review-badge {
  display: inline;
  padding: 0;
  background: none;
  border-radius: 0;
  color: var(--ds-ink-2);
  font-size: 0.85rem;
  font-weight: 600;
}

.ds .review-badge + .review-badge::before,
.ds .review-tag + .review-tag::before {
  content: ' / ';
  color: var(--ds-rule);
  font-weight: 400;
}

/* "Load More" is created by JS with inline colors; restyle it */
.ds .load-more-container {
  margin-top: 36px !important;
}

.ds .load-more-btn {
  font-family: var(--ds-font-body);
  font-size: 1rem;
  letter-spacing: 1px;
  background: var(--ds-maroon) !important;
  border: 2px solid #d3ab79 !important;
  border-radius: 50px !important;
  color: var(--ds-white) !important;
  padding: 13px 28px !important;
  transform: none !important;
}

.ds .load-more-btn:hover {
  background: var(--ds-maroon-bright) !important;
}

/* ---------- Reviews: closing band ---------- */
.ds .ds-rv-cta {
  background:
    radial-gradient(60% 120% at 50% 120%, rgba(176, 38, 72, 0.45), transparent 70%),
    linear-gradient(170deg, #4a0e1c 0%, var(--ds-oxblood) 50%, #3a0a15 100%);
  text-align: center;
}

.ds .ds-rv-cta .ds-h2 {
  max-width: 20ch;
  margin: 0 auto 0.35em;
  color: var(--ds-white);
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.ds .ds-rv-cta p {
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
}

.ds .ds-rv-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.ds .ds-rv-cta-actions .hero-btn {
  width: auto;
}

/* ---------- Gallery: hero with a photo collage ---------- */
.ds .ds-page-hero--gallery {
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(176, 38, 72, 0.3), transparent 60%),
    linear-gradient(160deg, #24282e, var(--ds-graphite));
}

.ds .ds-gl-hero-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.ds .ds-gl-hero-copy .ds-page-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 12px 28px;
}

.ds .ds-gl-hero-copy .ds-page-stat {
  margin: 0;
  padding: 0;
  border: 0;
}

.ds .ds-gl-collage {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: clamp(300px, 34vw, 460px);
}

.ds .ds-gl-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.ds .ds-gl-collage-a {
  grid-row: span 2;
}

/* ---------- Gallery: intro as an editorial split ---------- */
.ds .ds-gl-intro {
  background: var(--ds-white);
}

.ds .ds-gl-intro-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(20px, 5vw, 72px);
  align-items: start;
}

.ds .ds-gl-intro-grid .ds-h2 {
  margin: 0;
}

.ds .ds-gl-intro-copy p + p {
  margin-top: 1em;
}

/* ---------- Gallery: viewer + image mosaic ---------- */
.ds .ds-gl-wrap {
  padding: var(--ds-section-y) 0;
  background: #121417;
}

.ds .ds-gl-wrap .gallery-row {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 7vw, 96px);
  max-width: var(--ds-max);
  margin: 0 auto;
  padding: 0 var(--ds-gutter);
}

.ds .ds-gl-wrap .gallery-section {
  flex: none;
  margin: 0;
  padding: 0;
}

.ds .ds-gl-wrap .gallery-section > .container {
  max-width: none;
  width: auto;
  margin: 0;
  padding: 0;
}

.ds .ds-gl-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
  padding: 0;
  color: var(--ds-white);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  text-align: left;
}

.ds .ds-gl-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(201, 160, 106, 0.35);
}

.ds .gallery-viewer {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 10px;
  align-items: stretch;
}

.ds .main-image-container {
  position: relative;
  height: 100%;
  min-height: 340px;
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #0b0c0e;
  cursor: zoom-in;
}

.ds .main-image-container .main-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100% !important; /* beats the fixed 500/550px !important heights in styles.css */
  object-fit: cover;
  transform: none;
}

.ds .image-overlay {
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.5));
}

.ds .image-overlay i {
  color: var(--ds-white);
}

/* The thumbnails are the mosaic */
.ds .thumbnails-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  align-content: start;
}

.ds #commercial-gallery .thumbnails-container {
  grid-template-columns: repeat(5, 1fr);
}

.ds .thumbnail {
  height: auto;
  aspect-ratio: 1;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.ds .thumbnail:hover {
  opacity: 0.9;
}

.ds .thumbnail.active {
  border: 0;
  opacity: 1;
  outline: 2px solid var(--ds-brass);
  outline-offset: -2px;
}

/* ---------- Gallery: closing row ---------- */
.ds .ds-gl-cta {
  padding: clamp(40px, 6vw, 72px) 0;
  background: var(--ds-steel);
  border-top: 3px solid var(--ds-maroon-bright);
}

.ds .ds-gl-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}

.ds .ds-gl-cta .ds-h2 {
  margin: 0 0 0.25em;
}

.ds .ds-gl-cta p {
  margin: 0;
  font-size: 1.06rem;
  color: var(--ds-ink-2);
}

.ds .ds-gl-cta .hero-btn {
  flex: none;
  width: auto;
}

/* Lightbox sits above the fixed header and mobile bottom bar */
.ds .lightbox {
  z-index: 10050;
  background: rgba(10, 11, 13, 0.94);
}

.ds .lightbox-image {
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.ds .close-lightbox {
  background: var(--ds-maroon);
  border: 2px solid #d3ab79;
  color: var(--ds-white);
}

.ds .lightbox-counter {
  font-family: var(--ds-font-body);
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Privacy policy ---------- */
.ds .privacy-content {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  background: var(--ds-white);
  line-height: 1.6;
}

.ds .ds-doc-head {
  position: relative;
  padding: clamp(44px, 7vw, 88px) 0 clamp(32px, 5vw, 56px);
  background:
    radial-gradient(60% 120% at 100% 100%, rgba(176, 38, 72, 0.28), transparent 60%),
    linear-gradient(160deg, #24282e, var(--ds-graphite));
  border-bottom: 1px solid rgba(201, 160, 106, 0.25);
}

.ds .privacy-content h1.ds-page-title {
  margin: 0 0 0.2em;
  padding: 0;
  color: var(--ds-white);
  text-align: left;
}

.ds .privacy-content .last-updated {
  margin: 0;
  text-align: left;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  font-style: normal;
}

.ds .ds-doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(48px, 7vw, 96px);
}

.ds .ds-doc-toc {
  position: sticky;
  top: 130px;
  padding: 18px 18px 14px;
  background: var(--ds-steel);
  border-radius: 10px;
  font-size: 0.92rem;
}

.ds .ds-doc-toc-title {
  display: block;
  margin-bottom: 8px;
  font-family: var(--ds-font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ds-graphite);
}

.ds .ds-doc-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ds .ds-doc-toc li {
  border-top: 1px solid var(--ds-rule);
}

.ds .ds-doc-toc a {
  display: block;
  padding: 7px 0;
  color: var(--ds-ink-2);
  text-decoration: none;
}

.ds .ds-doc-toc a:hover {
  color: var(--ds-oxblood);
}

.ds .ds-doc {
  max-width: 68ch;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--ds-ink-2);
}

.ds .ds-doc h2,
.ds .privacy-content .ds-doc h2 {
  margin: 2.2em 0 0.6em;
  padding: 0 0 0.35em;
  border-bottom: 1px solid var(--ds-rule);
  font-family: var(--ds-font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.15;
  color: var(--ds-graphite);
}

.ds .ds-doc > h2:first-child {
  margin-top: 0;
}

.ds .ds-doc h3,
.ds .privacy-content .ds-doc h3 {
  margin: 1.5em 0 0.4em;
  font-family: var(--ds-font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ds-graphite);
}

.ds .ds-doc p {
  margin: 0 0 1em;
}

.ds .ds-doc ul {
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
}

.ds .ds-doc li {
  position: relative;
  margin: 0 0 0.45em;
  padding-left: 1.3em;
}

.ds .ds-doc li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--ds-brass);
}

.ds .ds-doc .contact-info {
  margin: 2.2em 0;
  padding: clamp(20px, 3vw, 32px);
  background: var(--ds-steel);
  border-left: 4px solid var(--ds-maroon-bright);
  border-radius: 10px;
}

.ds .ds-doc .contact-info h2 {
  margin-top: 0;
  border-bottom: 0;
}

.ds .ds-doc .contact-info p:last-child {
  margin-bottom: 0;
  color: var(--ds-graphite);
}

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
  .ds .ds-rv-intro-grid,
  .ds .ds-map-grid,
  .ds .ds-gl-hero-grid,
  .ds .ds-gl-intro-grid,
  .ds .ds-doc-layout {
    grid-template-columns: 1fr;
  }

  .ds .gallery-viewer {
    grid-template-columns: 1fr;
  }

  .ds .main-image-container {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .ds .thumbnails-container,
  .ds #commercial-gallery .thumbnails-container {
    grid-template-columns: repeat(6, 1fr);
  }

  .ds .ds-doc-toc {
    position: static;
  }

  .ds .ds-doc-toc ol {
    columns: 2;
    column-gap: 24px;
  }

  .ds .ds-doc-toc li {
    break-inside: avoid;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .ds .ds-page-hero::after {
    display: none;
  }

  .ds .ds-page-hero-inner {
    padding-top: 36px;
    padding-bottom: 32px;
  }

  .ds .ds-page-stats,
  .ds .ds-gl-hero-copy .ds-page-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .ds .ds-page-stat {
    gap: 7px;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .ds .ds-page-stat-icon {
    font-size: 0.8rem;
  }

  .ds .ds-page-stat-text b,
  .ds .ds-page-stat .open-status .status {
    font-size: 1.05rem;
  }

  .ds .ds-page-stat-text > span:not(.open-status),
  .ds .ds-page-stat .open-status {
    font-size: 0.8rem;
  }

  .ds .ds-gl-collage {
    height: 240px;
    gap: 6px;
  }

  .ds .ds-map-frame iframe {
    min-height: 260px;
    height: 260px;
  }

  .ds .reviews-grid {
    columns: 1;
  }

  .ds .ds-rv-list-head {
    grid-template-columns: 1fr;
    grid-template-areas:
      'title'
      'google'
      'filter';
    gap: 14px;
  }

  .ds .featured-review {
    padding: 56px 0 26px;
  }

  .ds .featured-review::after {
    top: -6px;
    font-size: 5rem;
  }

  .ds .featured-review .review-text {
    font-size: 1.3rem;
  }

  .ds .review-item {
    padding: 20px 0 22px;
  }

  .ds .review-text {
    font-size: 1rem;
  }

  .ds .reviews-filter {
    gap: 4px 20px;
  }

  .ds .filter-btn {
    font-size: 1.05rem;
  }

  .ds .ds-gl-wrap {
    padding: 40px 0;
  }

  .ds .thumbnails-container {
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
  }

  .ds #commercial-gallery .thumbnails-container {
    grid-template-columns: repeat(5, 1fr);
  }

  .ds .gallery-viewer {
    gap: 6px;
  }

  .ds .ds-gl-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .ds .ds-doc {
    font-size: 1rem;
  }

  .ds .ds-doc-toc {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ds .filter-btn,
  .ds .filter-btn::after,
  .ds .thumbnail {
    transition: none;
  }
}
