/* Gantsev v84 — clean service hero and natural masonry galleries.
   Code-only correction: no generated or replaced images. */

/* Never render legacy reconstructed hero nodes from older patches. */
.v82-hero { display:none !important; }

/* HERO: no frame, no grey/cream plate, one active image only. */
.service-story__hero-media,
.service-story__hero-slider,
.service-story__hero-slides {
  position:relative !important;
  display:block !important;
  width:100% !important;
  height:auto !important;
  min-width:0 !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  overflow:visible !important;
  border:0 !important;
  border-radius:0 !important;
  outline:0 !important;
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
  clip-path:none !important;
}

.service-story__hero-slide,
.service-story__hero-slide:first-child,
.service-story__hero-slide:nth-child(n) {
  position:relative !important;
  inset:auto !important;
  display:none !important;
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  overflow:visible !important;
  border:0 !important;
  border-radius:0 !important;
  outline:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  opacity:1 !important;
  visibility:visible !important;
  transform:none !important;
  clip-path:none !important;
  pointer-events:none !important;
  transition:none !important;
}

.service-story__hero-slide.is-active,
.service-story__hero-slide[aria-hidden="false"],
.service-story__hero-slide[data-v84-active="1"] {
  display:block !important;
  z-index:2 !important;
  pointer-events:auto !important;
}

.service-story__hero-slide img,
.service-story__hero-slide:first-child img,
.service-story__hero-slide:nth-child(n) img {
  display:block !important;
  width:100% !important;
  height:auto !important;
  max-width:100% !important;
  max-height:none !important;
  margin:0 !important;
  padding:0 !important;
  object-fit:contain !important;
  object-position:center center !important;
  border:0 !important;
  border-radius:0 !important;
  outline:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  filter:none !important;
  transform:none !important;
  clip-path:none !important;
}

/* Compact slider controls placed on top of the image, not in a separate field. */
.service-story__hero-nav,
[data-service-hero-dots] {
  position:absolute !important;
  left:18px !important;
  bottom:14px !important;
  z-index:20 !important;
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  width:auto !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
.service-story__hero-nav[hidden],
[data-service-hero-dots][hidden] { display:none !important; }
.service-story__hero-nav button,
[data-service-hero-dot] {
  display:block !important;
  width:34px !important;
  height:3px !important;
  min-width:0 !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:rgba(255,255,255,.92) !important;
  box-shadow:0 1px 5px rgba(0,0,0,.22) !important;
  cursor:pointer !important;
}
.service-story__hero-nav button.is-active,
[data-service-hero-dot].is-active,
[data-service-hero-dot][aria-current="true"] {
  width:54px !important;
  background:#c9953e !important;
}

/* Hide legacy “open fullscreen” plate and any previous visual decorations. */
.service-story__hero-media [class*="fullscreen"],
.service-story__hero-media [class*="open-full"],
.service-story__hero-slide::before,
.service-story__hero-slide::after {
  content:none !important;
  display:none !important;
}

/* Natural masonry layout: vertical and horizontal images retain their real ratio,
   with no artificial empty card space. */
.service-story__album-grid,
.service-story__results-grid,
.service-story__result-grid {
  display:block !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
  gap:0 !important;
  column-gap:14px !important;
  background:transparent !important;
}
.service-story__album-grid { column-count:2 !important; }
.service-story__results-grid,
.service-story__result-grid { column-count:3 !important; }

.service-story__album-card,
.service-story__result-card,
.service-story__album-card:first-child,
.service-story__result-card:first-child,
.service-story__album-card:nth-child(n),
.service-story__result-card:nth-child(n) {
  position:relative !important;
  display:block !important;
  break-inside:avoid !important;
  page-break-inside:avoid !important;
  width:100% !important;
  height:auto !important;
  min-width:0 !important;
  min-height:0 !important;
  aspect-ratio:auto !important;
  margin:0 0 14px !important;
  padding:0 !important;
  overflow:hidden !important;
  border:0 !important;
  border-radius:0 !important;
  outline:0 !important;
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
  transform:none !important;
  clip-path:none !important;
}

.service-story__album-card img,
.service-story__result-card img,
.service-story__album-card:first-child img,
.service-story__result-card:first-child img,
.service-story__album-card:nth-child(n) img,
.service-story__result-card:nth-child(n) img {
  display:block !important;
  width:100% !important;
  height:auto !important;
  max-width:100% !important;
  max-height:none !important;
  margin:0 !important;
  padding:0 !important;
  object-fit:contain !important;
  object-position:center center !important;
  border:0 !important;
  border-radius:0 !important;
  outline:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  filter:none !important;
  transform:none !important;
  clip-path:none !important;
}

/* Remove old black strips, numbers, arrows and captions completely. */
.service-story__album-card::before,
.service-story__album-card::after,
.service-story__result-card::before,
.service-story__result-card::after,
.service-story__album-card > span,
.service-story__result-card > span,
.service-story__album-card .service-story__open-icon,
.service-story__result-card .service-story__open-icon,
.service-story__album-card [class*="caption"],
.service-story__result-card [class*="caption"],
.service-story__album-card [class*="number"],
.service-story__result-card [class*="number"] {
  content:none !important;
  display:none !important;
  opacity:0 !important;
  visibility:hidden !important;
}

/* Prevent old hover rules from scaling/cropping photographs. */
.service-story__album-card:hover img,
.service-story__result-card:hover img {
  transform:none !important;
  filter:none !important;
}

@media (max-width:1100px) {
  .service-story__results-grid,
  .service-story__result-grid { column-count:2 !important; }
}

@media (max-width:760px) {
  .service-story__hero-nav,
  [data-service-hero-dots] { left:12px !important; bottom:10px !important; }
  .service-story__hero-nav button,
  [data-service-hero-dot] { width:28px !important; }
  .service-story__hero-nav button.is-active,
  [data-service-hero-dot].is-active,
  [data-service-hero-dot][aria-current="true"] { width:40px !important; }
  .service-story__album-grid,
  .service-story__results-grid,
  .service-story__result-grid {
    column-count:1 !important;
    column-gap:0 !important;
  }
  .service-story__album-card,
  .service-story__result-card { margin-bottom:12px !important; }
}
