/*
 * Danielle Sarah Hair review-image standard
 *
 * Review cards: 3:2 landscape frame.
 * Review article hero and feature images: 4:3 frame, max 480px wide.
 * Review galleries: 4:3 frame, maximum two columns.
 * Portrait product photography uses object-fit: contain so bottles and labels
 * remain visible without making the page excessively tall.
 */
.review-media-card {
  aspect-ratio: 3 / 2;
  width: 100%;
  overflow: hidden;
  background: #eee7dc;
}

.review-media-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-media-card.contain img {
  object-fit: contain;
  padding: 0.7rem;
}

.review-media-hero,
.review-media-feature {
  aspect-ratio: 4 / 3;
  width: min(100%, 480px);
  max-height: 360px;
  margin-inline: auto;
  overflow: hidden;
  background: #eee7dc;
}

.review-media-hero img,
.review-media-feature img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 0.65rem;
}

.review-media-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 920px;
  margin-inline: auto;
}

.review-media-gallery img {
  display: block;
  aspect-ratio: 4 / 3;
  width: 100% !important;
  height: auto !important;
  max-height: 330px !important;
  object-fit: contain !important;
  padding: 0.65rem;
  border-radius: 1rem;
  background: #eee7dc;
}

@media (max-width: 767px) {
  .review-media-card {
    aspect-ratio: 3 / 2;
  }

  .review-media-hero,
  .review-media-feature {
    width: 100%;
    max-height: none;
  }

  .review-media-gallery {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .review-media-gallery img {
    max-height: none !important;
  }
}
