/* v12.5 Manchevski Home Template */
body.page-template-template-home {
  background: var(--msp-bg, #070707);
  color: var(--msp-text, #f7f1e8);
}

.msp-home-page {
  background: var(--msp-bg, #070707);
  color: var(--msp-text, #f7f1e8);
}

.msp-home-hero {
  min-height: 82vh;
  padding: 170px 0 110px;
  display: flex;
  align-items: flex-end;
  background: radial-gradient(circle at 72% 25%, rgba(200,164,93,.28), rgba(7,7,7,0) 34%), linear-gradient(135deg, #1b130f, #070707 64%);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--msp-line, rgba(255,255,255,.13));
  position: relative;
  overflow: hidden;
}

.msp-home-hero.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.92), rgba(0,0,0,.45)), linear-gradient(to top, #070707, rgba(7,7,7,.1));
  pointer-events: none;
}

.msp-home-hero-inner {
  position: relative;
  z-index: 1;
}

.msp-home-title {
  margin: 0;
  max-width: 900px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 11vw, 98px);
  line-height: .86;
  font-weight: 400;
  letter-spacing: normal;
}

.msp-home-intro {
  max-width: 780px;
  margin-top: 30px;
  color: rgba(255,255,255,.82);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 28px);
  line-height: 1.18;
}

.msp-home-intro p,
.msp-home-bio-text p {
  margin-top: 0;
}

.msp-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.msp-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(200,164,93,.58);
  color: var(--msp-gold, #c8a45d);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 800;
  background: rgba(0,0,0,.2);
}

.msp-home-button-primary {
  background: rgba(200,164,93,.16);
  color: #f7e1aa;
}

.msp-home-button:hover,
.msp-home-button:focus-visible,
.msp-home-view-more:hover,
.msp-home-view-more:focus-visible {
  color: #f5d889;
  border-color: currentColor;
  outline: none;
}

.msp-home-section {
  padding: 92px 0;
  border-bottom: 1px solid var(--msp-line, rgba(255,255,255,.13));
}

.msp-home-section-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-end;
  margin-bottom: 32px;
}

.msp-home-section-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5.6vw, 70px);
  line-height: .92;
  font-weight: 400;
  letter-spacing: normal;
}

.msp-home-view-more {
  color: var(--msp-gold, #c8a45d);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(200,164,93,.55);
  padding-bottom: 6px;
  white-space: nowrap;
}

.msp-home-bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 72px;
  align-items: center;
}

.msp-home-bio-text {
  margin: 28px 0 28px;
  max-width: 760px;
  color: var(--msp-muted, #b8aea0);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.5vw, 31px);
  line-height: 1.24;
}

.msp-home-bio-image {
  margin: 0;
  border: 1px solid var(--msp-line, rgba(255,255,255,.13));
  background: rgba(255,255,255,.04);
  padding: 12px;
}

.msp-home-bio-image img {
  width: 100%;
  height: auto;
  display: block;
}

.msp-home-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.msp-home-featured-book .msp-home-card-grid,
.msp-home-featured-art .msp-home-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.msp-home-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  border: 1px solid var(--msp-line, rgba(255,255,255,.13));
  background: rgba(255,255,255,.04);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.msp-home-card-image {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(200,164,93,.32), rgba(255,255,255,.04));
  background-size: cover;
  background-position: center;
  filter: saturate(.92);
  transition: transform .32s ease, filter .32s ease;
}

.msp-home-card:hover .msp-home-card-image,
.msp-home-card:focus-visible .msp-home-card-image {
  transform: scale(1.04);
  filter: saturate(1.05);
}

.msp-home-card-body {
  padding: 22px;
}

.msp-home-card-body h3 {
  margin: 0;
  color: var(--msp-text, #f7f1e8);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.1vw, 30px);
  line-height: 1.08;
  font-weight: 400;
}

.msp-home-card-body p {
  margin: 14px 0 0;
  color: var(--msp-muted, #b8aea0);
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .msp-home-card-grid,
  .msp-home-featured-book .msp-home-card-grid,
  .msp-home-featured-art .msp-home-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .msp-home-bio-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .msp-home-bio-image {
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .msp-home-hero {
    min-height: 72vh;
    padding: 130px 0 72px;
  }

  .msp-home-section {
    padding: 68px 0;
  }

  .msp-home-section-head {
    display: block;
  }

  .msp-home-section-head .msp-home-view-more {
    display: inline-flex;
    margin-top: 24px;
  }

  .msp-home-card-grid,
  .msp-home-featured-book .msp-home-card-grid,
  .msp-home-featured-art .msp-home-card-grid {
    grid-template-columns: 1fr;
  }

  .msp-home-actions {
    display: grid;
  }

  .msp-home-button {
    width: 100%;
  }
}


/* v12.6 Home Featured sections are scoped only to the Home template */
body.page-template-template-home .msp-home-featured {
  display: block;
}

body:not(.page-template-template-home) .msp-home-featured {
  display: none;
}

/* v12.6 Improved mobile responsiveness for Home featured cards */
body.page-template-template-home .msp-home-card-grid {
  align-items: stretch;
}

body.page-template-template-home .msp-home-card,
body.page-template-template-home .msp-home-card-body {
  min-width: 0;
}

@media (max-width: 1180px) {
  body.page-template-template-home .msp-home-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.page-template-template-home .msp-home-featured-book .msp-home-card-grid,
  body.page-template-template-home .msp-home-featured-art .msp-home-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.page-template-template-home .msp-home-card-grid,
  body.page-template-template-home .msp-home-featured-book .msp-home-card-grid,
  body.page-template-template-home .msp-home-featured-art .msp-home-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  body.page-template-template-home .msp-home-section-head {
    align-items: flex-start;
    text-align: center;
  }
}

@media (max-width: 640px) {
  body.page-template-template-home .msp-home-card-grid,
  body.page-template-template-home .msp-home-featured-book .msp-home-card-grid,
  body.page-template-template-home .msp-home-featured-art .msp-home-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body.page-template-template-home .msp-home-card-image {
    aspect-ratio: 16 / 10;
  }

  body.page-template-template-home .msp-home-card-body {
    padding: 18px;
  }

  body.page-template-template-home .msp-home-card-body h3 {
    font-size: clamp(24px, 8vw, 32px);
  }

  body.page-template-template-home .msp-home-card-body p {
    font-size: 14px;
  }

  body.page-template-template-home .msp-home-view-more {
    width: fit-content;
  }
}

@media (max-width: 420px) {
  body.page-template-template-home .msp-home-hero {
    min-height: auto;
    padding: 40px 0 64px;
  }

  body.page-template-template-home .msp-home-title {
    font-size: clamp(48px, 3vw, 48px);
  }

  body.page-template-template-home .msp-home-intro {
    font-size: 22px;
  }

  body.page-template-template-home .msp-home-section {
    padding: 58px 0;
  }
}


/* v12.7 Home intro right image */
body.page-template-template-home .msp-home-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(34px, 6vw, 86px);
  align-items: end;
}

body.page-template-template-home .msp-home-intro-copy {
  min-width: 0;
}

body.page-template-template-home .msp-home-intro-image {
  margin: 0;
  position: relative;
  border: 1px solid var(--msp-line, rgba(255,255,255,.13));
  background: rgba(255,255,255,.04);
  padding: 12px;
  box-shadow: 0 36px 90px rgba(0,0,0,.46);
}

body.page-template-template-home .msp-home-intro-image img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (max-width: 900px) {
  body.page-template-template-home .msp-home-intro-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  body.page-template-template-home .msp-home-intro-image {
    max-width: 440px;
  }
}

@media (max-width: 640px) {
  body.page-template-template-home .msp-home-intro-image {
    max-width: none;
    padding: 10px;
  }

  body.page-template-template-home .msp-home-intro-image img {
    aspect-ratio: 4 / 4.8;
  }
}


/* v12.8 Home title max size 98px */
body.page-template-template-home .msp-home-title {
  font-size: clamp(64px, 11vw, 98px);
}


/* v12.9 Optional Home Bio section */
body.page-template-template-home .msp-home-bio-section {
  display: block;
}

/* v12.9 Home Films short text limited to 3 lines */
body.page-template-template-home .msp-home-featured-film .msp-home-card-body p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* v13.1 Home page background options */
body.page-template-template-home .msp-home-page.has-custom-bg {
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

body.page-template-template-home .msp-home-page.has-custom-bg .msp-home-section {
  background: rgba(7,7,7,.72);
  backdrop-filter: blur(0px);
}

@media (max-width: 640px) {
  body.page-template-template-home .msp-home-page.has-custom-bg {
    background-attachment: scroll;
  }
}


/* v13.3 Home Hero background color / gradient / image options */
body.page-template-template-home .msp-home-hero.has-custom-hero-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body.page-template-template-home .msp-home-hero.has-custom-hero-bg::before {
  background: linear-gradient(to right, rgba(0,0,0,.72), rgba(0,0,0,.28)), linear-gradient(to top, rgba(7,7,7,.92), rgba(7,7,7,.08));
}


/* v13.5 Home card kicker placeholder */
body.page-template-template-home .msp-home-card-kicker {
  min-height: 1.35em;
}


/* v13.6 Home intro max size 28px */
body.page-template-template-home .msp-home-intro {
  font-size: clamp(24px, 3vw, 28px);
}


/* v15.9 Home hero fixed background */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .msp-ab-hero.msp-ab-hero--image,
  .msp-ab-hero.msp-ab-hero--image::before,
  .msp-bio-hero,
  .msp-home-hero {
    background-attachment: fixed !important;
  }
}
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .msp-ab-hero.msp-ab-hero--image,
  .msp-ab-hero.msp-ab-hero--image::before,
  .msp-bio-hero,
  .msp-home-hero {
    background-attachment: scroll !important;
  }
}




/* v19.6 Home featured images less tall */
body.page-template-template-home .msp-home-featured-film .msp-home-card-image {
  aspect-ratio: 3 / 4;
  min-height: clamp(260px, 26vw, 420px);
}

body.page-template-template-home .msp-home-featured-book .msp-home-card-image {
  aspect-ratio: 4 / 5;
  min-height: clamp(260px, 24vw, 400px);
}

body.page-template-template-home .msp-home-featured-film .msp-home-card-image,
body.page-template-template-home .msp-home-featured-book .msp-home-card-image {
  background-size: cover;
  background-position: center;
}

@media (max-width: 900px) {
  body.page-template-template-home .msp-home-featured-film .msp-home-card-image,
  body.page-template-template-home .msp-home-featured-book .msp-home-card-image {
    min-height: clamp(240px, 58vw, 400px);
  }

body.page-template-template-home .msp-home-card-image {
  aspect-ratio: 4 / 5;
    min-height: clamp(240px, 78vw, 390px);

}

@media (max-width: 640px) {
  body.page-template-template-home .msp-home-featured-film .msp-home-card-image,
  body.page-template-template-home .msp-home-featured-book .msp-home-card-image {
    aspect-ratio: 4 / 5;
    min-height: clamp(240px, 78vw, 390px);
  }
}


/* v19.7.2 Home mobile order, centered images, title sizes */
body.page-template-template-home .msp-home-title,
body.page-template-template-home .msp-home-section-title {
  font-size: 48px !important;
  line-height: .92;
}

body.page-template-template-home .msp-home-intro {
  font-size: 22px !important;
  line-height: 1.22;
}

@media (max-width: 640px) {
  body.page-template-template-home .msp-home-intro-grid {
    display: flex !important;
    flex-direction: column-reverse !important;
    align-items: center !important;
    gap: 28px !important;
    text-align: center;
  }

  body.page-template-template-home .msp-home-intro-image,
  body.page-template-template-home .msp-home-bio-image {
    margin-left: auto !important;
    margin-right: auto !important;
    width: min(100%, 420px);
    justify-self: center !important;
  }

  body.page-template-template-home .msp-home-bio-grid {
    display: flex !important;
    flex-direction: column-reverse !important;
    align-items: center !important;
    text-align: center;
  }

  body.page-template-template-home .msp-home-actions {
    justify-content: center;
  }

  body.page-template-template-home .msp-home-card {
    width: min(100%, 420px);
    margin-left: auto;
    margin-right: auto;
  }

  body.page-template-template-home .msp-home-card-image {
    background-position: center center !important;
    margin-left: auto;
    margin-right: auto;
  }

  body.page-template-template-home .msp-home-card-body {
    text-align: center;
  }
}




/* v19.8.6 No date/meta on archives and homepage cards */
.msp-home-card-kicker,
body.post-type-archive-film .msp-film-card-kicker,
body.post-type-archive-book .msp-book-archive-meta,
body.post-type-archive-art .msp-ab-archive-card-body .msp-kicker {
  display: none !important;
}


