/* Makeover Mantra – site-specific overrides (loaded after style.css) */

/* Photo grids: every tile gets the same square shape, whatever the source photo size */
.gallery-style1 .gallery-img img,
.mm-photo-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
}

.mm-photo-grid a {
  display: block;
  overflow: hidden;
}

.mm-photo-grid img {
  transition: transform ease 0.4s;
}

.mm-photo-grid a:hover img {
  transform: scale(1.05);
}

/* Home page on 1399–1499px screens (e.g. MacBook Air 13", 1470px): show it exactly the way it looks at
   90% browser zoom. At 90% zoom the browser lays the page out as a ~1633px screen, so: scale by 0.9 and
   use the template's 1500px+ rules instead of its "max-width: 1500px" ones. */
@media (min-width: 1399px) and (max-width: 1499px) {
  html:has(body.mm-home) {
    zoom: 0.9;
  }
  /* 1500px+ rules from style.css */
  .mm-home .header-layout5 {
    --main-container: 1700px;
  }
  .mm-home .d-xxxl-block {
    display: block !important;
  }
  /* cancel the "max-width: 1500px" rules (back to the template's normal values) */
  .mm-home .main-menu a {
    font-size: 14px;
  }
  .mm-home .sec-title4 {
    font-size: 50px;
  }
  .mm-home .sec-title {
    font-size: 55px;
  }
  .mm-home .sec-subtitle5 {
    font-size: 18px;
    margin-bottom: 30px;
  }
  .mm-home .img-box6 .img-2 {
    max-width: none;
    bottom: -80px;
    right: -180px;
  }
  .mm-home .img-box7 .img-3 {
    left: -130px;
  }
  .mm-home .slick-arrow:not(.default) {
    --pos-x: -40px;
  }
}

/* Home page "Happy Brides" / "Years Experience" counters: smaller numbers (template default is 80px) */
@media (min-width: 768px) {
  .mm-home .media-style5 .media-number {
    font-size: 56px;
  }
}
