/* Load after the Aspro theme and bm-palette-preview/palette.css. */

/* The existing white MAX glyph had no background in the mobile menu. */
body .social-icons ul li.bm-max a {
  background-color: #6258db !important;
  border-radius: 6px;
}

body .social-icons ul li.bm-max a:hover,
body .social-icons ul li.bm-max a:focus-visible {
  background-color: #4b40bd !important;
}

/* Match the other social links against the site's rose footer. */
body #footer .social-icons ul li.bm-max a {
  background-color: transparent !important;
  border-radius: 50%;
}

body #footer .social-icons ul li.bm-max a:hover,
body #footer .social-icons ul li.bm-max a:focus-visible {
  background-color: rgb(255 248 244 / 12%) !important;
}

@media (max-width: 767px) {
  /* Aspro caps the gallery at 300px and puts portrait photos in a square. */
  body .product-container .detail-gallery-big {
    --slider-max-width: 100%;
    --slider-max-height: none;
    --slider-proportion: calc(4 / 3);
  }

  body .product-container .detail-gallery-big--ratio-horizontal {
    --slider-proportion: calc(3 / 4);
  }

  body .product-container .detail-gallery-big-slider-main__inner {
    max-width: 100%;
  }

  body .product-container .detail-gallery-big__picture {
    object-fit: contain;
  }

  /* Keep the title and both existing view controls in document flow. */
  body .tab-pane.stores > .ordered-block__title {
    line-height: 1.35;
    margin-bottom: 16px;
    overflow-wrap: anywhere;
  }

  body .tab-pane.stores .stores-title {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 0 0 24px;
  }

  body .tab-pane.stores .stores-title .stores-title__list {
    padding-left: 0;
    white-space: nowrap;
  }
}
