@import url("https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap");

/* Big, black, centered DOWNLOAD button under each photo/video */

/* ---------- Custom high-res header image ---------- */
body::before {
  content: "" !important;
  display: block !important;
  width: 82% !important;                /* side breathing room */
  max-width: 480px !important;
  aspect-ratio: 5 / 1 !important;       /* trims the empty space above/below the logo */
  margin: 24px auto -24px !important;   /* negative = pulls the title up closer */
  background: url("https://lh3.googleusercontent.com/d/1qGUPi2RC1P6vJu4y4zhd3ikLj0aiTQSX=w2000") center / cover no-repeat !important;
}

/* ---------- Black DOWNLOAD bar (exact rules from the working version) ---------- */
[class*="download"] {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;           /* same width as the photo above it */
  min-height: 52px !important;
  position: static !important;
  float: none !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  align-self: center !important;
  margin: 0 !important;                 /* no gap: attached to the photo */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 0 !important;
  padding: 20px 24px !important;
  font-size: 0 !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  color: #000 !important;
  background: #fff !important;
  border: 3px solid #000 !important;          /* outline so it reads as a button */
  border-top: none !important;               /* sits flush against the photo */
  border-radius: 0 0 12px 12px !important;   /* rounded bottom only */
  box-shadow: none !important;
}
[class*="download"] > * {
  display: none !important;
}
/* The arrow icon (kept in the icon font) */
[class*="download"]::before {
  content: "\2B07" !important;
  font-size: 1.3rem !important;
  line-height: 1 !important;
  color: #000 !important;
}
/* The button label, in Space Mono: "DOWNLOAD PHOTO" by default... */
[class*="download"]::after {
  content: "DOWNLOAD PHOTO" !important;
  margin-left: 14px !important;
  font-family: "Space Mono", monospace !important;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  line-height: 1 !important;
  color: #000 !important;
}
/* ...and "DOWNLOAD VIDEO" on any card that contains a video */
.card:has(video) [class*="download"]::after {
  content: "DOWNLOAD VIDEO" !important;
}

/* ---------- Photo + button as one attached unit ---------- */
.card {
  margin: 0 auto 48px !important;       /* space between each photo+button pair */
  border: none !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25) !important;
}
.card-body {
  padding: 0 !important;
  margin: 0 !important;
}
.card-body img,
.card-body video {
  display: block !important;            /* removes the tiny gap under images */
  width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

/* ---------- Centering (the fix that worked) ---------- */
.card-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
}
.card-footer .action-buttons {
  order: -1 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.action-buttons form {
  width: 100% !important;
  margin: 0 !important;
}
.action-buttons button {
  box-sizing: border-box !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  touch-action: manipulation !important;
}
