/* Site-specific tweaks for Mile 77 Cottages (not generated; edit directly). */

/* The theme spaces feature paragraphs for a single <p> (3rem below it).
   Multi-paragraph features read as separate blocks at that gap. */
div.theme-atomik .ccm-block-feature-stacked > p {
  margin-bottom: 1rem;
}
div.theme-atomik .ccm-block-feature-stacked > p:last-child {
  margin-bottom: 3rem;
}

/* The offset-title hero pulls every <p> up 1em via p:before (a leading trim
   meant for a single paragraph), which erases the gap between paragraphs.
   Keep the trim on the first paragraph only. */
div.theme-atomik div.ccm-block-hero-image-offset-title div.ccm-block-hero-image-text p + p:before {
  margin-top: 0;
}

/* Gallery grids ("the collage"): the theme butts photos edge to edge. The
   client asked for each photo framed (2026-09-28). Gutter between photos,
   white mat with a drop shadow to match the site's single images, and the
   hover overlay inset so it stays inside the frame. */
div.theme-atomik .ccm-block-gallery a {
  padding: 0.6rem;
}
div.theme-atomik .ccm-block-gallery .ccm-block-gallery-image {
  border: 6px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
div.theme-atomik .ccm-block-gallery .ccm-block-gallery-image-overlay {
  inset: calc(0.6rem + 6px);
  width: auto;
  height: auto;
}

/* Guest review rotator (js/site.js): all reviews share one grid cell, so the
   band is as tall as the longest review and doesn't jump as they fade. */
div.theme-atomik .m77-reviews {
  display: grid;
}
div.theme-atomik .m77-reviews > .ccm-block-testimonial-hero-text {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
}
div.theme-atomik .m77-reviews > .ccm-block-testimonial-hero-text.is-active {
  opacity: 1;
  visibility: visible;
}
div.theme-atomik .ccm-block-testimonial-hero .ccm-block-testimonial-hero-position {
  color: #fff;
  opacity: 0.8;
  text-align: center;
  font-size: 0.875rem;
}
div.theme-atomik .m77-reviews-dots {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
}
div.theme-atomik .m77-reviews-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
div.theme-atomik .m77-reviews-dots button[aria-pressed="true"] {
  background: #fff;
}
