/*
Theme Name: Chris Le Roy Premium
*/

/* =========================
   VARIABLES
========================= */
:root {
  --navy: #0B1F2A;
  --navy-2: #102D3D;
  --steel: #2C4F73;
  --gold: #C9A24A;
  --white: #F7F9FB;
  --muted: #A0AAB4;
  --card: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.14);
}

/* =========================
   RESET (CRITICAL)
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: Inter, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at top left, #18384A 0%, var(--navy) 42%, #050B10 100%);
  color: var(--white);
  line-height: 1.6;
}

/* Remove ugly browser defaults */
a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   LAYOUT
========================= */
.page {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* =========================
   HEADER
========================= */
.header {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.logo span {
  color: var(--gold);
}

/* NAVIGATION */
.menu {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
}

.menu a {
  color: var(--muted);
  font-weight: 500;
  transition: 0.2s ease;
}

.menu a:hover {
  color: var(--white);
}

/* =========================
   HERO SECTION
========================= */
.hero {
  padding: 78px 0 58px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
  margin-bottom: 28px;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: #D5DCE3;
  margin-bottom: 34px;
}

/* =========================
   BUTTONS
========================= */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--white);
  font-weight: 700;
  transition: 0.2s;
}

.button.primary {
  background: var(--gold);
  color: #101010;
  border-color: var(--gold);
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.35);
}

/* =========================
   PROFILE CARD
========================= */
.profile-card {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.035));
  border-radius: 28px;
  padding: 30px;
  max-width: 380px;
}

.profile-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center top;
  border-radius: 22px;
  border: 1px solid var(--border);
  margin-bottom: 22px;
}

.profile-card h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.profile-card p {
  color: var(--muted);
}

/* =========================
   SECTIONS
========================= */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: 2rem;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}

/* =========================
   GRID
========================= */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* =========================
   CARDS
========================= */
.card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 24px;
  padding: 24px;
  min-height: 210px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
}

/* =========================
   BOOK CARDS
========================= */
.book-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.book-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.book-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-content p {
  margin-bottom: 18px;
}

.book-content .button {
  margin-top: auto;
  text-align: center;
}

/* =========================
   FEATURE BLOCK
========================= */
.feature {
  margin-top: 20px;
  padding: 30px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(44,79,115,0.55), rgba(11,31,42,0.55));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.feature p {
  color: #D5DCE3;
}

/* =========================
   FOOTER
========================= */
.footer {
  padding: 50px 0 30px;
  margin-top: 60px;
  border-top: 1px solid var(--border);

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;

  font-size: 0.9rem;
  color: var(--muted);
}

.footer a {
  color: var(--white);
  opacity: 0.85;
}

.footer a:hover {
  opacity: 1;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .feature {
    grid-template-columns: 1fr;
  }

  .header {
    flex-direction: column;
    gap: 15px;
  }
}

/* SECTION WRAPPER */
section {
  padding: 60px 0;
}

/* SECTION TITLE */
.section-title {
  font-size: 32px;
  margin-bottom: 30px;
}

/* GRID FIX */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* BOOK CARD */
.book-card {
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
}

/* IMAGE CONTROL (THIS IS THE BIG FIX) */
.book-card img {
  width: 100%;
  height: 300px;            /* 🔥 locks size */
  object-fit: cover;        /* 🔥 prevents stretching */
  display: block;
}

/* CONTENT */
.book-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-content h3 {
  margin-bottom: 10px;
}

.book-content p {
  color: var(--grey);
  font-size: 14px;
  margin-bottom: 15px;
}

/* BUTTON FIX */
.book-content .btn {
  margin-top: auto;
}

/* MOBILE FIX */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* NAVBAR FIX */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 80px;
}

/* LOGO */
.logo a {
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  color: var(--white);
}

.logo span {
  color: var(--gold);
}

/* MENU */
.menu {
  display: flex;
  gap: 30px;
}

.menu a {
  text-decoration: none;
  color: var(--grey);
  font-size: 15px;
  transition: 0.3s;
}

.menu a:hover {
  color: var(--white);
}

/* WORDPRESS MENU FIX */
.menu ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  list-style: none;
}

.menu a {
  text-decoration: none;
  color: var(--grey);
  font-size: 15px;
  transition: 0.3s;
}

.menu a:hover {
  color: var(--white);
}

/* ALIGN HEADER WITH PAGE */

.nav {

  width: 100%;

  padding: 30px 0;

}

.nav-inner {

  width: min(1120px, 92%);

  margin: 0 auto;

  display: flex;

  justify-content: space-between;

  align-items: center;

}

/* SECTION WRAPPER (BRINGS BACK THE CARDS) */

.section-box {
  padding: 40px;
  margin-bottom: 40px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.02)
  );

  box-shadow: 0 25px 60px rgba(0,0,0,0.35);

}

.section-box .grid {
  margin-top: 20px;
}

/* =========================

   BOOK IMAGE DISPLAY FIX

   Add this at the VERY BOTTOM of the CSS file

========================= */

/* Keeps every book card consistent */

.book-card {

  display: flex;

  flex-direction: column;

  height: 100%;

}

/* Creates a controlled image area for every book */

.book-card > img {

  width: 100%;

  height: 360px;

  object-fit: contain;

  object-position: center center;

  background: #ffffff;

  padding: 0;

  border-bottom: 1px solid var(--border);

}

/* Makes the text/button area consistent */

.book-content {

  flex: 1;

  display: flex;

  flex-direction: column;

  min-height: 245px;

}

/* Keeps buttons aligned at the bottom */

.book-content .button,

.book-content .btn {

  margin-top: auto;

  text-align: center;

}

/* Prevents bottom row images from appearing oversized */

.section-box .book-card img,

.grid .book-card img {

  height: 360px;

  object-fit: contain;

  background: #ffffff;

}

/* Better spacing for book cards */

.grid .book-card {

  min-height: 620px;

}

/* Optional: make 2-item bottom row behave cleanly */

.grid {

  align-items: stretch;

}

/* Tablet adjustment */

@media (max-width: 900px) {

  .book-card > img,

  .section-box .book-card img,

  .grid .book-card img {

    height: 340px;

  }

  .grid .book-card {

    min-height: auto;

  }

}

/* Mobile adjustment */

@media (max-width: 600px) {

  .book-card > img,

  .section-box .book-card img,

  .grid .book-card img {

    height: 300px;

  }

  .book-content {

    min-height: auto;

  }

}

/* =========================
   HOMEPAGE ARTICLES
   Add this at the VERY BOTTOM
========================= */

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin-bottom: 28px;
}

.article-grid {
  align-items: stretch;
}

.article-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.article-image {
  display: block;
  width: 100%;
  height: 230px;
  background: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.article-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-meta {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.article-card h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  margin-bottom: 12px;
}

.article-card h3 a {
  color: var(--white);
}

.article-card h3 a:hover {
  color: var(--gold);
}

.article-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

.article-link {
  margin-top: auto;
  color: var(--gold);
  font-weight: 800;
}

.article-link:hover {
  color: var(--white);
}

/* Mobile article heading fix */
@media (max-width: 700px) {
  .section-heading-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-image {
    height: 220px;
  }
}

/* =========================
   SINGLE ARTICLE TEMPLATE
   Add this at the VERY BOTTOM
========================= */

.single-post-page {
  padding-top: 40px;
  padding-bottom: 80px;
}

.single-post-shell {
  width: 100%;
}

/* Featured image above article title */
.single-featured-image {
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 3 / 2;
  margin: 0 auto 36px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 25px 60px rgba(0,0,0,0.35);
}

.single-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Rounded box around the article */
.single-post-card {
  max-width: 940px;
  margin: 0 auto;
  padding: 52px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.02)
  );
  box-shadow: 0 25px 60px rgba(0,0,0,0.35);
}

/* Article header */
.single-post-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.single-post-header h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  margin-bottom: 18px;
}

.single-post-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Article typography */
.single-post-content {
  font-size: 1.12rem;
  line-height: 1.85;
  color: #E6ECF2;
}

.single-post-content p {
  margin-bottom: 1.45em;
}

.single-post-content h2 {
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 2.1em 0 0.7em;
  color: var(--white);
}

.single-post-content h3 {
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 1.8em 0 0.6em;
  color: var(--white);
}

.single-post-content strong {
  color: var(--white);
}

.single-post-content em {
  color: #F0F3F7;
}

/* Images inside articles */
.single-post-content img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 34px auto 14px;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(0,0,0,0.28);
}

/* Captions */
.single-post-content figure {
  margin: 38px 0;
}

.single-post-content figcaption,
.single-post-content .wp-caption-text {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
  text-align: center;
}

/* Lists inside articles */
.single-post-content ul,
.single-post-content ol {
  margin: 0 0 1.6em 1.4em;
  padding-left: 1em;
}

.single-post-content li {
  margin-bottom: 0.65em;
}

.single-post-content ul {
  list-style: disc;
}

.single-post-content ol {
  list-style: decimal;
}

/* Quotes */
.single-post-content blockquote {
  margin: 36px 0;
  padding: 24px 28px;
  border-left: 4px solid var(--gold);
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  color: #F0F3F7;
  font-size: 1.2rem;
  line-height: 1.65;
}

/* Links */
.single-post-content a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.single-post-content a:hover {
  color: var(--white);
}

/* WordPress alignment classes */
.single-post-content .aligncenter {
  margin-left: auto;
  margin-right: auto;
}

.single-post-content .alignwide {
  width: 100%;
  max-width: 1100px;
  margin-left: 50%;
  transform: translateX(-50%);
}

.single-post-content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  border-radius: 0;
}

/* Mobile fixes */
@media (max-width: 800px) {
  .single-post-page {
    padding-top: 24px;
  }

  .single-featured-image {
    border-radius: 22px;
    margin-bottom: 24px;
  }

  .single-post-card {
    padding: 30px 22px;
    border-radius: 22px;
  }

  .single-post-header h1 {
    font-size: 2.25rem;
  }

  .single-post-content {
    font-size: 1.03rem;
    line-height: 1.75;
  }
}

/* =========================
   ARTICLES PAGE BY CATEGORY
   Add this at the VERY BOTTOM
========================= */

.articles-page {
  padding-top: 40px;
  padding-bottom: 80px;
}

.articles-hero {
  margin-bottom: 40px;
}

.articles-lead {
  max-width: 820px;
  margin-bottom: 0;
}

.article-category-section {
  margin-bottom: 42px;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 28px;
}

.category-description {
  color: var(--muted);
  max-width: 740px;
  font-size: 1rem;
  margin-top: -8px;
}

.article-grid {
  align-items: stretch;
}

.article-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.article-image {
  display: block;
  width: 100%;
  height: 230px;
  background: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.article-image-placeholder {
  background: linear-gradient(
    135deg,
    rgba(44,79,115,0.85),
    rgba(11,31,42,0.95)
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-image-placeholder span {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

.article-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-meta {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.article-card h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  margin-bottom: 12px;
}

.article-card h3 a {
  color: var(--white);
}

.article-card h3 a:hover {
  color: var(--gold);
}

.article-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

.article-link {
  margin-top: auto;
  color: var(--gold);
  font-weight: 800;
}

.article-link:hover {
  color: var(--white);
}

/* Mobile fixes */
@media (max-width: 900px) {
  .section-heading-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-image {
    height: 220px;
  }
}

/* =========================
   ARTICLE CARD IMAGE FIX
   Add this at the VERY BOTTOM
========================= */

/* Make article cards behave differently from book cards */
.article-card {
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: auto;
}

/* Control the article image box */
.article-card .article-image {
  width: 100%;
  height: 220px;
  display: block;
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

/* Force the actual WordPress featured image to fill properly */
.article-card .article-image img,
.article-card img.wp-post-image {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  border-radius: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

/* Make article text area consistent */
.article-card .article-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Stop article cards becoming huge portrait cards */
.article-grid .article-card {
  min-height: 520px;
}

/* Better 3-column article layout */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

/* If a category only has one article, don't let the card stretch strangely */
.article-category-section .article-grid {
  justify-items: start;
}

.article-category-section .article-card {
  width: 100%;
  max-width: 360px;
}

/* Tablet */
@media (max-width: 900px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-category-section .article-card {
    max-width: none;
  }
}

/* Mobile */
@media (max-width: 650px) {
  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-card .article-image {
    height: 210px;
  }
}

/* =========================

   SINGLE FEATURED IMAGE RATIO FIX

   For 1200 x 600 featured images

========================= */

.single-featured-image {

  max-width: 1200px;

  aspect-ratio: 2 / 1;

  margin: 0 auto 36px;

  border-radius: 28px;

  overflow: hidden;

  border: 1px solid var(--border);

  background: #ffffff;

  box-shadow: 0 25px 60px rgba(0,0,0,0.35);

}

.single-featured-image img {

  width: 100%;

  height: 100%;

  object-fit: contain;

  object-position: center center;

  display: block;

}

/* =========================

   HOMEPAGE LATEST ARTICLE FIX

   Add this at the VERY BOTTOM

========================= */

/* Make the homepage article area feel premium */

#articles .article-grid {

  display: grid;

  grid-template-columns: 1fr;

  gap: 24px;

}

/* Turn article cards on the homepage into wide feature cards */

#articles .article-card {

  display: grid;

  grid-template-columns: 44% 56%;

  min-height: 360px;

  max-width: 100%;

  width: 100%;

  padding: 0;

  overflow: hidden;

  border-radius: 28px;

}

/* Control the image area */

#articles .article-card .article-image {

  width: 100%;

  height: 100%;

  min-height: 360px;

  display: block;

  overflow: hidden;

  background: #ffffff;

  border-bottom: none;

  border-right: 1px solid var(--border);

}

/* Make the image fit cleanly */

#articles .article-card .article-image img,

#articles .article-card img.wp-post-image {

  width: 100% !important;

  height: 100% !important;

  object-fit: contain !important;

  object-position: center center !important;

  background: #ffffff;

  display: block !important;

  border-radius: 0 !important;

  margin: 0 !important;

}

/* Text side */

#articles .article-content {

  padding: 42px;

  display: flex;

  flex-direction: column;

  justify-content: center;

}

/* Better title size for wide card */

#articles .article-card h3 {

  font-size: clamp(1.7rem, 3vw, 2.4rem);

  line-height: 1.1;

  letter-spacing: -0.04em;

  margin-bottom: 18px;

}

/* Better excerpt */

#articles .article-card p {

  font-size: 1.08rem;

  line-height: 1.65;

  color: var(--muted);

  max-width: 620px;

}

/* Read link */

#articles .article-link {

  margin-top: 24px;

  font-size: 1rem;

}

/* Mobile version */

@media (max-width: 850px) {

  #articles .article-card {

    grid-template-columns: 1fr;

  }

  #articles .article-card .article-image {

    height: auto;

    min-height: 260px;

    border-right: none;

    border-bottom: 1px solid var(--border);

  }

  #articles .article-card .article-image img,

  #articles .article-card img.wp-post-image {

    height: auto !important;

    object-fit: contain !important;

  }

  #articles .article-content {

    padding: 28px;

  }

}

/* =========================
   HOMEPAGE ARTICLES CLEAN FIX
   Add at the VERY BOTTOM
========================= */

#articles .section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 32px;
}

.article-home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Wide homepage article card */
.article-home-card {
  display: grid;
  grid-template-columns: 46% 54%;
  padding: 0;
  overflow: hidden;
  min-height: 360px;
  border-radius: 28px;
}

/* Image side */
.article-home-card .article-image {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  background: #ffffff;
  overflow: hidden;
  border-right: 1px solid var(--border);
  border-bottom: none;
}

/* Featured image handling */
.article-home-card .article-image img,
.article-home-card img.wp-post-image {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  background: #ffffff;
  border-radius: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

/* Text side */
.article-home-card .article-content {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-home-card .article-meta {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.article-home-card h3 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin-bottom: 18px;
}

.article-home-card h3 a {
  color: var(--white);
}

.article-home-card h3 a:hover {
  color: var(--gold);
}

.article-home-card p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  margin-bottom: 22px;
}

.article-home-card .article-link {
  margin-top: auto;
  color: var(--gold);
  font-weight: 800;
  font-size: 1rem;
}

.article-image-placeholder {
  background: linear-gradient(
    135deg,
    rgba(44,79,115,0.85),
    rgba(11,31,42,0.95)
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-image-placeholder span {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

/* Mobile */
@media (max-width: 850px) {
  #articles .section-heading-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-home-card {
    grid-template-columns: 1fr;
  }

  .article-home-card .article-image {
    min-height: 240px;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .article-home-card .article-image img,
  .article-home-card img.wp-post-image {
    height: auto !important;
    object-fit: contain !important;
  }

  .article-home-card .article-content {
    padding: 28px;
  }
}

/* =========================
   REVERT HOMEPAGE ARTICLES TO CARD STYLE
   Add this at the VERY BOTTOM
========================= */

/* Revert homepage article grid back to card layout */
#articles .article-home-grid,
#articles .article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

/* Revert homepage article card back to vertical card */
#articles .article-home-card,
#articles .article-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 360px;
  min-height: 620px;
  padding: 0;
  overflow: hidden;
  border-radius: 28px;
}

/* Keep cards aligned to the left like the screenshot */
#articles .article-home-grid,
#articles .article-grid {
  justify-items: start;
}

/* Revert image area to top thumbnail */
#articles .article-home-card .article-image,
#articles .article-card .article-image {
  width: 100%;
  height: 260px;
  min-height: 260px;
  display: block;
  overflow: hidden;
  background: #ffffff;
  border-right: none;
  border-bottom: 1px solid var(--border);
}

/* Article card image behaviour */
#articles .article-home-card .article-image img,
#articles .article-card .article-image img,
#articles .article-home-card img.wp-post-image,
#articles .article-card img.wp-post-image {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  background: #ffffff;
  border-radius: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

/* Text area */
#articles .article-home-card .article-content,
#articles .article-card .article-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: flex-start;
}

/* Date */
#articles .article-home-card .article-meta,
#articles .article-card .article-meta {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

/* Title */
#articles .article-home-card h3,
#articles .article-card h3 {
  font-size: 1.55rem;
  line-height: 1.18;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}

/* Title link */
#articles .article-home-card h3 a,
#articles .article-card h3 a {
  color: var(--white);
}

#articles .article-home-card h3 a:hover,
#articles .article-card h3 a:hover {
  color: var(--gold);
}

/* Excerpt */
#articles .article-home-card p,
#articles .article-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

/* Read link */
#articles .article-home-card .article-link,
#articles .article-card .article-link {
  margin-top: auto;
  color: var(--gold);
  font-weight: 800;
  font-size: 1rem;
}

/* Keep the View All button clean */
#articles .section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 32px;
}

/* Tablet */
@media (max-width: 900px) {
  #articles .article-home-grid,
  #articles .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #articles .article-home-card,
  #articles .article-card {
    max-width: none;
  }
}

/* Mobile */
@media (max-width: 650px) {
  #articles .article-home-grid,
  #articles .article-grid {
    grid-template-columns: 1fr;
  }

  #articles .section-heading-row {
    flex-direction: column;
    align-items: flex-start;
  }

  #articles .article-home-card,
  #articles .article-card {
    min-height: auto;
  }

  #articles .article-home-card .article-image,
  #articles .article-card .article-image {
    height: 230px;
    min-height: 230px;
  }
}

/* =========================
   FIX ARTICLE CARD CONTENT DISPLAY
   Add this at the VERY BOTTOM
========================= */

#articles .article-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

#articles .article-home-card,
#articles .article-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100%;
  max-width: 360px;
  min-height: 620px;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
}

#articles .article-image {
  width: 100%;
  height: 260px;
  min-height: 260px;
  display: block;
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

#articles .article-image img,
#articles .article-card img,
#articles .article-home-card img,
#articles img.wp-post-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  border-radius: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

/* THIS RESTORES THE TEXT AREA */
#articles .article-content {
  display: flex !important;
  flex-direction: column !important;
  flex: 1;
  padding: 30px !important;
  background: rgba(255,255,255,0.03);
  visibility: visible !important;
  opacity: 1 !important;
}

#articles .article-meta {
  display: block !important;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

#articles .article-card h3,
#articles .article-home-card h3 {
  display: block !important;
  font-size: 1.55rem;
  line-height: 1.18;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
  color: var(--white);
}

#articles .article-card h3 a,
#articles .article-home-card h3 a {
  color: var(--white);
  text-decoration: none;
}

#articles .article-card h3 a:hover,
#articles .article-home-card h3 a:hover {
  color: var(--gold);
}

#articles .article-card p,
#articles .article-home-card p {
  display: block !important;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

#articles .article-link {
  display: inline-block !important;
  margin-top: auto;
  color: var(--gold);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
}

#articles .article-link:hover {
  color: var(--white);
}

/* Tablet */
@media (max-width: 900px) {
  #articles .article-home-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #articles .article-home-card,
  #articles .article-card {
    max-width: none;
  }
}

/* Mobile */
@media (max-width: 650px) {
  #articles .article-home-grid {
    grid-template-columns: 1fr;
  }

  #articles .article-home-card,
  #articles .article-card {
    min-height: auto;
  }

  #articles .article-image {
    height: 230px;
    min-height: 230px;
  }
}

/* =========================
   FORCE IMAGE TEXT WRAP IN POSTS
   Add at the VERY BOTTOM
========================= */

/* Let WordPress aligned image blocks wrap text */
.single-post-content .wp-block-image.alignleft,
.single-post-content figure.wp-block-image.alignleft,
.single-post-content figure.alignleft,
.single-post-content .alignleft {
  float: left !important;
  width: 320px !important;
  max-width: 320px !important;
  margin: 8px 34px 22px 0 !important;
  clear: none !important;
}

/* Right aligned version */
.single-post-content .wp-block-image.alignright,
.single-post-content figure.wp-block-image.alignright,
.single-post-content figure.alignright,
.single-post-content .alignright {
  float: right !important;
  width: 320px !important;
  max-width: 320px !important;
  margin: 8px 0 22px 34px !important;
  clear: none !important;
}

/* Control image inside the floated block */
.single-post-content .wp-block-image.alignleft img,
.single-post-content figure.wp-block-image.alignleft img,
.single-post-content figure.alignleft img,
.single-post-content .alignleft img,
.single-post-content img.alignleft,
.single-post-content .wp-block-image.alignright img,
.single-post-content figure.wp-block-image.alignright img,
.single-post-content figure.alignright img,
.single-post-content .alignright img,
.single-post-content img.alignright {
  width: 100% !important;
  max-width: 320px !important;
  height: auto !important;
  display: block !important;
  margin: 0 !important;
  border-radius: 22px;
}

/* Captions under wrapped images */
.single-post-content .wp-block-image.alignleft figcaption,
.single-post-content figure.alignleft figcaption,
.single-post-content .wp-block-image.alignright figcaption,
.single-post-content figure.alignright figcaption {
  width: 100% !important;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 10px;
  color: var(--muted);
}

/* Make sure normal paragraphs can flow beside floated images */
.single-post-content p {
  clear: none !important;
}

/* Clear the float before major new sections */
.single-post-content h2,
.single-post-content h3,
.single-post-content h4,
.single-post-content blockquote,
.single-post-content hr {
  clear: both;
}

/* Mobile: stop wrapping */
@media (max-width: 700px) {
  .single-post-content .wp-block-image.alignleft,
  .single-post-content figure.wp-block-image.alignleft,
  .single-post-content figure.alignleft,
  .single-post-content .alignleft,
  .single-post-content .wp-block-image.alignright,
  .single-post-content figure.wp-block-image.alignright,
  .single-post-content figure.alignright,
  .single-post-content .alignright {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 28px auto !important;
  }

  .single-post-content .wp-block-image.alignleft img,
  .single-post-content figure.wp-block-image.alignleft img,
  .single-post-content figure.alignleft img,
  .single-post-content .alignleft img,
  .single-post-content img.alignleft,
  .single-post-content .wp-block-image.alignright img,
  .single-post-content figure.wp-block-image.alignright img,
  .single-post-content figure.alignright img,
  .single-post-content .alignright img,
  .single-post-content img.alignright {
    max-width: 100% !important;
  }
}

/* =========================
   CENTER FOOTER
========================= */

.footer-inner {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-brand {
  text-align: center;
}

.footer-links {
  justify-content: center;
  margin-top: 12px;
}

/* =========================
   TRUE CENTER FOOTER FIX
   Add at the VERY BOTTOM
========================= */

.footer {
  width: 100%;
  display: block !important;
  text-align: center !important;
}

.footer-inner {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;

  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;

  text-align: center !important;
}

.footer-brand,
.footer-brand p,
.footer-links {
  width: 100%;
  text-align: center !important;
  justify-content: center !important;
  align-items: center !important;
}

.footer-links {
  display: flex !important;
  gap: 10px;
  margin-bottom: 8px;
}
/* =========================

   FOOTER FINAL LAYOUT

========================= */

.footer {

  width: 100%;

  display: block !important;

  text-align: center !important;

  padding: 42px 0;

  border-top: 1px solid var(--border);

}

.footer-inner {

  width: 100% !important;

  max-width: none !important;

  margin: 0 auto !important;

  display: flex !important;

  flex-direction: column !important;

  align-items: center !important;

  justify-content: center !important;

  text-align: center !important;

}

/* Top footer links stay on ONE line */

.footer-links {

  display: flex !important;

  flex-direction: row !important;

  gap: 10px !important;

  align-items: center !important;

  justify-content: center !important;

  text-align: center !important;

  margin-bottom: 12px;

  width: 100%;

}

.footer-links a,

.footer-links span {

  display: inline-block !important;

  color: var(--white);

  opacity: 0.85;

  font-size: 0.95rem;

  font-weight: 700;

}

/* Copyright and website on separate lines */

.footer-brand {

  width: 100%;

  text-align: center !important;

}

.footer-brand p {

  display: block !important;

  margin: 4px 0 !important;

  text-align: center !important;

  color: var(--muted);

}

/* Links hover */

.footer a:hover {

  color: var(--gold);

  opacity: 1;

}

/* Mobile: still keep footer links together unless screen is tiny */

@media (max-width: 480px) {

  .footer-links {

    flex-wrap: wrap;

    gap: 8px;

  }

}

/* =========================
   PRIVACY POLICY FORMAT FIX
   Add at the VERY BOTTOM
========================= */

.privacy-policy-page {
  padding-top: 40px;
  padding-bottom: 90px;
}

.privacy-policy-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 60px;
}

/* Header area */
.privacy-policy-header {
  margin-bottom: 44px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.privacy-policy-header .eyebrow {
  margin-bottom: 18px;
}

.privacy-policy-header .section-title {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.06em;
  margin-bottom: 28px;
}

.privacy-policy-header .lead {
  max-width: 860px;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.7;
  color: #D5DCE3;
  margin-bottom: 34px;
}

/* Metadata box */
.privacy-policy-meta {
  margin-top: 30px;
  padding: 24px 28px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.045);
  color: var(--muted);
  max-width: 620px;
}

.privacy-policy-meta p {
  margin: 0 0 8px;
  line-height: 1.55;
}

.privacy-policy-meta p:last-child {
  margin-bottom: 0;
}

.privacy-policy-meta strong {
  color: var(--white);
}

/* Main content */
.privacy-policy-content {
  max-width: 820px;
  font-size: 1.08rem;
  line-height: 1.85;
  color: #E6ECF2;
}

.privacy-policy-content p {
  margin-bottom: 1.35em;
  color: #D5DCE3;
}

/* Section headings */
.privacy-policy-content h2 {
  font-size: 1.65rem;
  line-height: 1.25;
  letter-spacing: -0.035em;
  margin: 2.2em 0 0.75em;
  color: var(--white);
  padding-top: 0.4em;
}

/* Add subtle separation between sections */
.privacy-policy-content h2:not(:first-of-type) {
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Intro sentence */
.privacy-policy-content > p:first-child {
  font-size: 1.12rem;
  color: var(--white);
  margin-bottom: 2em;
}

/* Links */
.privacy-policy-content a,
.privacy-policy-meta a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.privacy-policy-content a:hover,
.privacy-policy-meta a:hover {
  color: var(--white);
}

/* Mobile fixes */
@media (max-width: 800px) {
  .privacy-policy-card {
    padding: 34px 24px;
  }

  .privacy-policy-header .lead {
    font-size: 1.12rem;
  }

  .privacy-policy-meta {
    max-width: 100%;
    padding: 20px;
  }

  .privacy-policy-content {
    font-size: 1rem;
    line-height: 1.75;
  }

  .privacy-policy-content h2 {
    font-size: 1.35rem;
  }
}

/* =========================
   TAGS PAGE
========================= */

.tags-page {
  padding-top: 40px;
  padding-bottom: 80px;
}

.tags-hero {
  margin-bottom: 40px;
}

.tags-lead {
  max-width: 850px;
  margin-bottom: 0;
}

.tags-list-section {
  margin-bottom: 42px;
}

.tag-cloud-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.tag-pill-card {
  display: flex;
  flex-direction: column;
  gap: 4px;

  min-width: 210px;
  padding: 18px 20px;

  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);

  transition: 0.2s ease;
}

.tag-pill-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: rgba(255,255,255,0.08);
}

.tag-name {
  color: var(--white);
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.25;
}

.tag-count {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.2;
}

@media (max-width: 700px) {
  .tag-cloud-grid {
    flex-direction: column;
  }

  .tag-pill-card {
    width: 100%;
    border-radius: 22px;
  }
}

/* =========================
   CONTROLLED BOOK AD ALIGNMENT
========================= */

.book-ad-box {
  margin: 44px 0;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.07),
    rgba(255,255,255,0.025)
  );
  box-shadow: 0 20px 50px rgba(0,0,0,0.28);

  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 26px;
  align-items: center;
}

/* Default / center */
.book-ad-center {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Full width inside article */
.book-ad-full {
  width: 100%;
  max-width: 100%;
}

/* Float left */
.book-ad-left {
  float: left;
  width: 420px;
  max-width: 45%;
  margin: 10px 34px 24px 0;
  grid-template-columns: 1fr;
}

/* Float right */
.book-ad-right {
  float: right;
  width: 420px;
  max-width: 45%;
  margin: 10px 0 24px 34px;
  grid-template-columns: 1fr;
}

/* Image */
.book-ad-image {
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.book-ad-image img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  display: block;
}

/* Smaller image when floated */
.book-ad-left .book-ad-image img,
.book-ad-right .book-ad-image img {
  height: 260px;
}

/* Content */
.book-ad-content h3 {
  font-size: 1.65rem;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 8px 0 12px;
  color: var(--white);
}

.book-ad-content p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.book-ad-content .button {
  display: inline-block;
  text-align: center;
}

/* Clear floats after major headings */
.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
  clear: both;
}

/* Mobile */
@media (max-width: 800px) {
  .book-ad-box,
  .book-ad-left,
  .book-ad-right,
  .book-ad-center,
  .book-ad-full {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 36px 0;
    grid-template-columns: 1fr;
  }

  .book-ad-image img {
    height: 260px;
  }
}

/* =========================
   BOOK AD TIGHTENED DESIGN
========================= */

.book-ad-box {
  margin: 34px 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.075),
    rgba(255,255,255,0.025)
  );
  box-shadow: 0 18px 45px rgba(0,0,0,0.24);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
}

/* Image should look like an advert, not a framed photo */
.book-ad-image {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.10);
  cursor: pointer;
  transition: 0.2s ease;
}

.book-ad-image:hover {
  transform: translateY(-2px);
  opacity: 0.96;
}

.book-ad-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 420 / 260;
  object-fit: cover;
  object-position: center center;
  display: block;
  margin: 0;
  border-radius: 0;
}

/* Content */
.book-ad-content .eyebrow {
  margin-bottom: 12px;
}

.book-ad-content h3 {
  font-size: 1.45rem;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
  color: var(--white);
}

.book-ad-content p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  margin-bottom: 18px;
}

.book-ad-content .button {
  display: inline-block;
  padding: 12px 22px;
  font-size: 0.9rem;
}

/* Centre style */
.book-ad-center {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Full width */
.book-ad-full {
  width: 100%;
  max-width: 100%;
}

/* Right / left floated ads */
.book-ad-left,
.book-ad-right {
  width: 430px;
  max-width: 45%;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 20px;
}

.book-ad-left {
  float: left;
  margin: 10px 34px 26px 0;
}

.book-ad-right {
  float: right;
  margin: 10px 0 26px 34px;
}

/* Tighten floated ad content */
.book-ad-left .book-ad-content h3,
.book-ad-right .book-ad-content h3 {
  font-size: 1.35rem;
}

.book-ad-left .book-ad-content p,
.book-ad-right .book-ad-content p {
  font-size: 0.95rem;
}

/* Compact mode */
.book-ad-style-compact {
  padding: 18px;
}

.book-ad-style-compact .book-ad-content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.book-ad-style-compact .book-ad-content p {
  font-size: 0.92rem;
  line-height: 1.45;
  margin-bottom: 14px;
}

.book-ad-style-compact .book-ad-content .eyebrow {
  font-size: 0.7rem;
  margin-bottom: 8px;
}

/* Image only mode */
.book-ad-style-image {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  display: block;
}

.book-ad-style-image .book-ad-image {
  border-radius: 22px;
}

.book-ad-style-image.book-ad-center {
  max-width: 560px;
}

.book-ad-style-image.book-ad-left,
.book-ad-style-image.book-ad-right {
  width: 420px;
  max-width: 45%;
}

/* Mobile */
@media (max-width: 800px) {
  .book-ad-box,
  .book-ad-left,
  .book-ad-right,
  .book-ad-center,
  .book-ad-full {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 34px 0;
    grid-template-columns: 1fr;
  }

  .book-ad-style-image.book-ad-left,
  .book-ad-style-image.book-ad-right,
  .book-ad-style-image.book-ad-center {
    max-width: 100%;
  }
}

/* =========================
   BOOK AD IMAGE FIT FIX
   Prevents advert images from being cropped
========================= */

.book-ad-image {
  background: #ffffff;
  padding: 0 !important;
  overflow: hidden;
}

.book-ad-image img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 420 / 260;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  background: #ffffff;
}

/* For image-only ads, keep the image clean and full */
.book-ad-style-image .book-ad-image img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 420 / 260;
  object-fit: contain !important;
}

/* If the ad is floated left or right, preserve the full image */
.book-ad-left .book-ad-image img,
.book-ad-right .book-ad-image img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 420 / 260;
  object-fit: contain !important;
}