/* Masonry gallery — Figma 731:3726 */

.wh-masonry {
  display: flex;
  align-items: stretch;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  width: 100%;
  max-width: 79.6875rem;
  margin-inline: auto;
}

.wh-masonry__col {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  min-width: 0;
}

.wh-masonry__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 1rem;
  background: #e5e7eb;
  box-shadow:
    0 2px 4px 2px rgb(0 0 0 / 5%),
    0 4px 6px 1px rgb(0 0 0 / 10%);
}

.wh-masonry__item--tall {
  flex: 459 1 0;
  min-height: 12rem;
}

.wh-masonry__item--md {
  flex: 298 1 0;
  min-height: 9rem;
}

.wh-masonry__item--sm {
  flex: 213 1 0;
  min-height: 7rem;
}

.wh-masonry__link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}

.wh-masonry__link:focus-visible {
  outline: 2px solid #0c50c1;
  outline-offset: 2px;
}

.wh-masonry__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.wh-masonry__link:hover .wh-masonry__image {
  transform: scale(1.02);
  transition: transform 0.25s ease;
}

.wh-carousel__empty {
  margin: 0;
  padding: 1rem 1.25rem;
  border: 1px dashed #99a1af;
  border-radius: 0.5rem;
  background: #f9fafb;
  color: #0b1f41;
  font-size: 0.9375rem;
}

@media (max-width: 767px) {
  .wh-masonry {
    flex-direction: column;
  }

  .wh-masonry__item--tall,
  .wh-masonry__item--md,
  .wh-masonry__item--sm {
    flex: 0 0 auto;
    min-height: 14rem;
    aspect-ratio: 4 / 3;
  }
}
