.gallery-card-preview {
  position: relative;
  overflow: hidden;
  background: #0d0808;
}

.art-card .gallery-card-preview {
  aspect-ratio: 4 / 3;
}

.gallery-card-preview > .gallery-card-room,
.gallery-card-preview > .gallery-card-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.gallery-card-preview > .gallery-card-pattern,
.mural-work-image .gallery-card-preview > .gallery-card-pattern {
  object-fit: contain;
  background: #0d0808;
  opacity: 0;
  transition: opacity 160ms ease-out;
}

:is(.art-card, .mural-work-image):focus-visible .gallery-card-preview > .gallery-card-pattern {
  opacity: 1;
}

@media (hover: hover) {
  :is(.art-card, .mural-work-image):hover .gallery-card-preview > .gallery-card-pattern {
    opacity: 1;
  }
}

.gallery-clean-grid .art-card:hover .gallery-card-preview > .gallery-card-pattern,
.mural-work-image:hover .gallery-card-preview > .gallery-card-pattern {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-card-preview > .gallery-card-pattern,
  .mural-work-image .gallery-card-preview > .gallery-card-pattern {
    transition: none;
  }
}
