/* Approved search-results frame: live artwork and copy remain HTML layers. */
.library-result-card {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  isolation: isolate;
  min-width: 0;
  color: var(--navy);
  text-decoration: none;
  transition: transform .18s ease, filter .18s ease;
}

.library-result-card:hover {
  color: var(--navy);
  transform: translateY(-5px);
  filter: drop-shadow(0 9px 11px rgba(73, 53, 26, .16));
}

.library-result-card:focus-visible {
  outline: 4px solid var(--navy);
  outline-offset: 5px;
}

.library-result-card-art {
  position: absolute;
  z-index: 1;
  /* The frame overlay sits above this broad interior viewport and masks its
     posts, lantern, and foliage while the artwork fills the visible opening. */
  /* Extend beneath the transparent edge details so no white seams show
     above or below the scene.  The frame remains the visible top layer. */
  top: 8%;
  right: 4%;
  bottom: 31%;
  left: 8%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--kc-white, #fff);
}

.library-result-card::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: url('../images/search/results-frame.png') center / 100% 100% no-repeat;
  content: '';
}

.library-result-card-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
}

.library-result-card-copy {
  position: absolute;
  z-index: 3;
  top: 70%;
  right: 13%;
  bottom: 10.25%;
  left: 13%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
  text-align: center;
}

.library-result-card-copy h3 {
  margin: 0;
  max-width: 78%;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(.88rem, 1.22vw, 1.16rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.library-result-card-copy p {
  margin: .3rem 0 0;
  color: #5c6c82;
  font-size: clamp(.74rem, .9vw, .84rem);
  line-height: 1.2;
}

@media (max-width: 900px) {
  .library-result-card-copy h3 { font-size: clamp(.88rem, 2vw, 1.08rem); }
}

@media (max-width: 500px) {
  .library-result-card-copy h3 {
    font-size: 1.18rem;
  }
}
