/*
 * Adi Zitter - Cover Buku Utuh v1.1.0 (update of the original plugin)
 * The selectors only apply after JS confirms an element is a book cover.
 * Gallery photography, hero photos and film thumbnails are not targeted.
 */

html body img.azcu-book-cover,
html body picture img.azcu-book-cover,
html body .woocommerce img.azcu-book-cover {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  aspect-ratio: auto !important;
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  scale: 1 !important;
  clip-path: none !important;
  -webkit-clip-path: none !important;
  margin: 0 auto !important;
  vertical-align: middle !important;
}

/* Keep original book proportions when card has no fixed height. */
html body .azcu-cover-frame {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

html body .azcu-cover-frame > img.azcu-book-cover,
html body .azcu-cover-frame > picture > img.azcu-book-cover {
  flex: 0 1 auto !important;
}

html body a:hover img.azcu-book-cover,
html body .book-card:hover img.azcu-book-cover,
html body .product:hover img.azcu-book-cover,
html body [class*="boek"]:hover img.azcu-book-cover {
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  scale: 1 !important;
}

/* Some theme cards render the cover through background-image, not an IMG tag. */
html body .azcu-book-background,
html body .azcu-book-background:hover {
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

@media (max-width: 767px) {
  html body img.azcu-book-cover {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
  }
}

/* 1.6.2: Original Dia yang Kau Rebut image, separate caption, zero cropping. */
html body.azcu-hero-boeken .azcu-book-feature-original,
html body.azcu-hero-boeken .azcu-book-feature-original > .azcu-book-feature-link {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: clamp(12px, 2vw, 22px) !important;
  aspect-ratio: auto !important;
  overflow: visible !important;
  background: rgba(20, 17, 17, .94) !important;
  background-image: none !important;
  text-decoration: none !important;
}
html body.azcu-hero-boeken .azcu-book-feature-original > .azcu-book-feature-link {
  padding: 0 !important;
  background: transparent !important;
}
html body.azcu-hero-boeken .azcu-book-feature-original .azcu-book-feature-media {
  box-sizing: border-box !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  position: static !important;
  transform: none !important;
  background: transparent !important;
}
html body.azcu-hero-boeken .azcu-book-feature-original .azcu-book-feature-media img.azcu-book-feature-image,
html body.azcu-hero-boeken .azcu-book-feature-original .azcu-book-feature-media img.azcu-book-feature-image.azcu-book-cover {
  display: block !important;
  box-sizing: border-box !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: min(53svh, 510px) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  scale: 1 !important;
  clip-path: none !important;
  opacity: 1 !important;
  margin: 0 auto !important;
  border-radius: 0 !important;
}
html body.azcu-hero-boeken .azcu-book-feature-original .azcu-book-feature-caption {
  box-sizing: border-box !important;
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  gap: 6px !important;
  align-items: flex-start !important;
  width: 100% !important;
  margin: 16px 0 0 !important;
  padding: 12px clamp(12px, 2vw, 20px) !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  opacity: 1 !important;
  background: #171312 !important;
  border: 1px solid rgba(200,167,123,.35) !important;
  color: #f5eee5 !important;
  text-align: left !important;
  overflow: visible !important;
  text-shadow: none !important;
}
html body.azcu-hero-boeken .azcu-book-feature-original .azcu-book-feature-caption small {
  color: #c8a77b !important;
  font: 700 10px/1.5 sans-serif !important;
  letter-spacing: .16em !important;
}
html body.azcu-hero-boeken .azcu-book-feature-original .azcu-book-feature-caption strong {
  font-family: Georgia, 'Times New Roman', serif !important;
  font-size: clamp(20px, 2vw, 28px) !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;
}
@media (max-width: 767px) {
  html body.azcu-hero-boeken .azcu-book-feature-original .azcu-book-feature-media img.azcu-book-feature-image {
    max-height: min(47svh, 420px) !important;
  }
}
