/*
 * Overrides recovered from the source site's database during migration.
 *
 *   - WP Customizer "Additional CSS"        (custom_css post 15821)
 *   - custom-css-js post 15995              "GravityView Donation Note"
 *
 * Kept as a real file so it is version-controlled, rather than living in
 * wp_posts where no theme diff would ever surface it. Note post 15821 is NOT
 * only GravityView styling - it also sizes the NiCER Hub landing hero, so it
 * loads on every page, not just library pages.
 *
 * custom-css-js post 15961 ("... Deactivated") was inactive at source and is
 * deliberately not carried over.
 */

/* ---- from Customizer Additional CSS (post 15821) ---- */
/* GravityView Library (container 15809) — BOOK COVERS on MULTI-entry only */

/* Portrait “cover frame” ONLY inside the multi-entry wrapper */
.gv-list-multiple-container.gv-container-15809 figure.gv-image{
  width: 100% !important;
  aspect-ratio: 3 / 4 !important;
  overflow: hidden !important;
  margin: 0 0 10px 0 !important;
}

/* Image fills the frame; keep top, crop bottom */
.gv-list-multiple-container.gv-container-15809 figure.gv-image img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: top center !important;
  display: block !important;
}

/* Single entry: make the GF download link show only "Download" (hide filename) */
.gv-entry-view .entry-content a[href*="gf-download="],
body[class*="gv-entry"] .entry-content a[href*="gf-download="]{
  font-size: 0 !important; /* hide the existing filename text */
  position: relative;
}

/* Replace with clean label */
.gv-entry-view .entry-content a[href*="gf-download="]::after,
body[class*="gv-entry"] .entry-content a[href*="gf-download="]::after{
  content: "Download";
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
}




/* to refresh CloudFlare: /view/library/?v=777 */




/* GravityView Single Entry — Clean Download Buttons (theme-ish blue) */
.gv-clean-download-button{
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none !important;
  line-height: 1.2;
  margin: 12px 0 18px 0;

  /* Theme-friendly: falls back to a nice blue if theme vars aren't present */
  background-color: var(--qode-main-color, #2c7be5);
  color: #fff !important;
}

.gv-clean-download-button:hover{
  background-color: var(--qode-main-hover-color, #1a5fc4);
}

/* Extra spacing for the bottom one */
#gv-download-bottom{
  margin-top: 28px;
}

/* =========================================================
   NiCER Hub template — Increase hero/header height to 400px
   ========================================================= */
body.page-template-template-nicer-hub .hero-nicer-hub#hero {
  height: 400px !important;
  min-height: 400px !important;
  max-height: 400px !important;
  overflow: hidden;
}

/* Center the title vertically */
body.page-template-template-nicer-hub .hero-nicer-hub .wrap.narrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
}

/* Ensure the background image scales correctly */
body.page-template-template-nicer-hub .hero-nicer-hub figure,
body.page-template-template-nicer-hub .hero-nicer-hub figure img {
  height: 400px;
  width: 100%;
  object-fit: cover;
}

/* No extra gap below the hero */
body.page-template-template-nicer-hub .nicer-hub-content {
  margin-top: 0;
  padding-top: 0;
}

/* ---- from custom-css-js post 15995: GravityView donation note ---- */
/* =========================================================
   GravityView donation note — force full-width & proper flow
   ========================================================= */
.gv-donation-note {
  clear: both;
  width: 100%;
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid #ddd;
}

.gv-org-link {
  display: inline-block;
  margin-top: 0.25em;
  font-weight: 600;
  text-decoration: underline;
}
