/* Site additions on top of the WordPress theme CSS. */

/* Historical Info and Recommended Reads grids, drawn without Essential Grid's script (see app/content.php,
   grid_cards_static). The cards keep EG's markup and skin styles; this lays them out the way EG did:
   4 columns, 3 under 778px, 1 under 480px. */
.esg-grid.gg-grid { display: block !important; }
.gg-grid ul.mainul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; align-items: start;
  list-style: none; margin: 0; padding: 0; height: auto !important; overflow: visible; }
@media (max-width: 777px) { .gg-grid ul.mainul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
@media (max-width: 479px) { .gg-grid ul.mainul { grid-template-columns: 1fr; } }
.gg-grid ul.mainul > li { position: relative !important; display: block; width: auto !important; left: auto !important;
  top: auto !important; opacity: 1 !important; visibility: visible !important; margin: 0; list-style: none; }
.gg-grid ul.mainul > li[hidden] { display: none; }
.gg-grid .esg-media-cover-wrapper { position: relative; overflow: hidden; }
.gg-grid .esg-entry-media { position: relative; }
.gg-grid .esg-entry-media img { display: block; width: 100%; height: auto; }
.gg-grid .esg-entry-cover { position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease; }
.gg-grid li:hover .esg-entry-cover, .gg-grid li:focus-within .esg-entry-cover { opacity: 1; }
.gg-grid .esg-entry-cover .esg-overlay { position: absolute; inset: 0; }
.gg-grid .esg-entry-cover .esg-center { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); text-align: center; z-index: 2; }
.gg-grid .esg-entry-content { position: relative; }
.gg-grid .esg-loadmore-wrapper { margin-top: 40px; }
.gg-grid .esg-loadmore { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .gg-grid .esg-entry-cover { transition: none; } }
/* Masonry: 1px rows; site.js sets each card's row span from its height. Without JS it is a plain grid. */
.gg-grid ul.mainul.gg-masonry { grid-auto-rows: 1px; row-gap: 0; }

/* ---------------------------------------------------------------- Home hero: Island of Orphans (Nov 2026)
   Background: the cover's own sky, blurred and darkened for the white text. Title set in the site's
   script (Balletica). The book is the cover with a CSS spine and page edges. */
.gg-hero { position: relative; overflow: hidden; isolation: isolate; background-color: #16323a; }
.gg-hero::before { content: ""; position: absolute; inset: -80px; z-index: -2;
  background: url(../uploads/2026/11/island-of-orphans-cover.jpg) 50% 28% / cover no-repeat;
  filter: blur(38px) saturate(1.2) brightness(.78); transform: scale(1.12); }
.gg-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 32% 42%, rgba(10, 34, 42, .18), rgba(6, 20, 26, .72) 78%), linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .3)); }
.gg-hero .gg-hero-title { margin: 6px 0 22px; text-align: center; }
.gg-hero .gg-hero-kicker { margin: 0 0 4px; color: #eac97e; font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.gg-hero .gg-hero-h { margin: 0; font-family: "Balletica", cursive; font-weight: normal; font-size: clamp(64px, 7.4vw, 118px);
  line-height: 1.02; letter-spacing: 0; color: #f7ecd2; text-shadow: 0 2px 22px rgba(0, 0, 0, .35); }
.gg-hero .gg-hero-novel { margin: 2px 0 0; font-family: "Balletica", cursive; font-size: 34px; line-height: 1.2; color: #eac97e; }
.gg-hero .gg-hero-date { display: inline-block; margin: 18px 0 0; padding: 6px 18px; border: 1px solid rgba(234, 201, 126, .65);
  border-radius: 999px; color: #f7ecd2; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.gg-hero .column_image .image_wrapper { text-align: center; }
.gg-book { position: relative; display: inline-block; width: min(360px, 82%); margin: 8px 14px 34px 0; }
.gg-book img { position: relative; z-index: 1; display: block; width: 100%; height: auto; border-radius: 2px 4px 4px 2px;
  box-shadow: 0 34px 54px -20px rgba(0, 0, 0, .7), 0 12px 22px -10px rgba(0, 0, 0, .45); }
.gg-book::before { content: ""; position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; width: 7%; border-radius: 2px 0 0 2px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .38), rgba(255, 255, 255, .2) 38%, rgba(0, 0, 0, .1) 70%, rgba(0, 0, 0, 0)); pointer-events: none; }
.gg-book::after { content: ""; position: absolute; z-index: 0; top: 1.4%; bottom: 1.4%; right: -11px; width: 14px; border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(#f5f1e8 0 2px, #dcd5c7 2px 3px); box-shadow: 2px 8px 14px -6px rgba(0, 0, 0, .5); }
@media (max-width: 767px) { .gg-book { width: min(260px, 70%); } .gg-hero .gg-hero-novel { font-size: 28px; } }

/* Book page: release date and the store buttons */
.gg-release { display: inline-block; margin: 0 0 18px; padding: 5px 16px; border-radius: 999px; background: #eac97e; color: #1d1d1d;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.gg-buy .button-4 { display: inline-block; margin: 0 8px 12px 0; }

/* Contact page: the two contact blocks side by side, no form */
.section .column_attr h3.gg-contact-title { font-size: 72px !important; line-height: 1.1; margin: 10px 0 30px; }
.gg-contact-col { padding: 30px 40px; }
.section .gg-contact-col p { font-size: 18px; line-height: 1.8; }
.section .gg-contact-col p:first-child { font-size: 22px !important; line-height: 1.4; }
.gg-contact-col p:first-child { margin-bottom: 18px; }
@media (max-width: 767px) { .gg-contact-col { padding: 10px 0; } }

/* Footer: small sign-in link beside the copyright */
.gg-admin-link { margin-left: 10px; font-size: 10px; letter-spacing: 1px; color: rgba(255,255,255,.55) !important; text-decoration: none; }
.gg-admin-link:hover { color: #fff !important; }
