/* ==========================================================================
   PWP Print Studio – Related Exhibitions [pwpps_related_exhibitions]
   ========================================================================== */

/* Card structure and dimensions (Overrides pwpps-carousel-layout) */

.pwpps-carousel-layout__card.pwpps-related-exhibitions__card {
  position: relative;
  flex: 0 0 384px;
  width: 384px;
  overflow: hidden;
  text-decoration: none;
  background: transparent;
}

/* 4:5 Aspect Ratio (Taller portrait layout per DESIGN_SYSTEM.md) */
.pwpps-related-exhibitions__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-neutral-100, #f5f5f5);
}

.pwpps-related-exhibitions__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms cubic-bezier(0.2, 0, 0, 1);
}

/* Hover Zoom effect */
a.pwpps-related-exhibitions__card:hover .pwpps-related-exhibitions__img {
  transform: scale(1.03);
}

/* Absolute bottom overlay for text */
.pwpps-related-exhibitions__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Dark linear gradient to ensure text readability over white/light backgrounds */
  background: linear-gradient(
    to top,
    rgba(20, 20, 20, 0.85) 0%,
    rgba(20, 20, 20, 0.4) 60%,
    rgba(20, 20, 20, 0) 100%
  );
  pointer-events: none;
  z-index: 2;
  transition: background var(--motion-fast, 150ms) var(--ease-out, cubic-bezier(0.2, 0, 0, 1));
}

a.pwpps-related-exhibitions__card:hover .pwpps-related-exhibitions__body {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.5) 60%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* Heading/H4 token per DESIGN_SYSTEM.md (24px/32px, white color) */
.pwpps-related-exhibitions__title {
  margin: 0 0 8px;
  color: var(--color-primary-white, #ffffff) !important;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: var(--font-size-24);
  font-weight: var(--font-weight-heading);
  line-height: 32px;
  letter-spacing: 0;
  transition: transform 300ms cubic-bezier(0.2, 0, 0, 1);
}

a.pwpps-related-exhibitions__card:hover .pwpps-related-exhibitions__title {
  transform: translateY(-4px);
}

/* Body/Small token per DESIGN_SYSTEM.md (14px/20px, neutral-300 color) */
.pwpps-related-exhibitions__meta {
  margin: 0;
  color: var(--color-neutral-300, #cccccc) !important;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: var(--font-size-14);
  font-weight: var(--font-weight-body);
  line-height: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 300ms cubic-bezier(0.2, 0, 0, 1);
}

a.pwpps-related-exhibitions__card:hover .pwpps-related-exhibitions__meta {
  transform: translateY(-4px);
}

.pwpps-related-exhibitions__meta-separator {
  color: var(--color-neutral-500, #8c8c8c) !important;
}

/* ---------- Responsive Adjustments ---------- */

@media (max-width: 1023px) {
  .pwpps-carousel-layout__card.pwpps-related-exhibitions__card {
    flex: 0 0 240px;
    width: 240px;
  }

  .pwpps-related-exhibitions__body {
    padding: 36px 16px 16px;
  }

  .pwpps-related-exhibitions__title {
    font-size: var(--font-size-18);
    line-height: 24px;
  }
}
