/* -------------------------------------------------------------------------
   Homepage featured-collection cards — mobile height fix
   2026-12-03

   The live rule in custom.css already asks for aspect-ratio: 1 / 0.77, but
   it never sets height: auto. The images also have HTML width/height
   attributes (e.g. width="2400" height="1600"). Browsers treat those
   attributes as a definite height, so aspect-ratio is ignored and each
   card becomes 1,333–1,600px tall. object-fit: cover then shows only a
   narrow, zoomed-in strip of the landscape photo — the full-screen blurry
   close-ups on iPhone.

   This file sets height: auto so the intended 1 / 0.77 ratio is honored.
   At a 360px mobile card width that is about 277px tall (inside the
   220–280px range). At the current 403px desktop card width it is about
   310px tall — the ratio the stylesheet already asked for. No parallax.
   Hover zoom is disabled on touch, where a tap would otherwise leave the
   image sticky-zoomed.
   ------------------------------------------------------------------------- */

.featured-collections-image figure img,
.case-study-image figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 0.77;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 991.98px) {
  .featured-collections-item {
    height: auto;
    margin-bottom: 36px;
  }
}

/* Phones and other touch devices: no hover-zoom, keep the arrow visible. */
@media (hover: none), (pointer: coarse) {
  .featured-collections-item {
    height: auto;
    margin-bottom: 36px;
  }

  .featured-collections-item:hover .featured-collections-image figure img,
  .case-study-item:hover .case-study-image figure img {
    transform: none;
  }

  .featured-collections-btn {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
  }
}
