/* Homepage composition: 300px masthead, two thumbnail rails, unchanged sections. */
body.frontpage.wild-home-redesign #block-wildisrael-gaviassliderlayerhome .wild-fast-header {
  height:300px !important; min-height:300px !important;
}
body.frontpage.wild-home-redesign #block-wildisrael-gaviassliderlayerhome .wild-fast-captions {
  display:flex !important; flex-direction:column; align-items:center; justify-content:center;
  gap:8px; padding:135px 20px 56px; box-sizing:border-box;
}
body.frontpage.wild-home-redesign #block-wildisrael-gaviassliderlayerhome .wild-fast-captions > :is(.wild-fast-title,.wild-fast-description) {
  position:static !important; inset:auto !important; transform:none !important;
  width:100% !important; max-width:100% !important; margin:0 !important;
  text-align:center !important; line-height:1.3 !important;
}
body.frontpage.wild-home-redesign #block-wildisrael-gaviassliderlayerhome .wild-fast-title { font-size:clamp(20px,2.1vw,30px) !important; }
body.frontpage.wild-home-redesign #block-wildisrael-gaviassliderlayerhome .wild-fast-description { font-size:clamp(13px,1.2vw,17px) !important; }
body.frontpage.wild-home-redesign #block-wildisrael-gaviassliderlayerhome .wild-fast-action { bottom:12px !important; top:auto !important; }
body.frontpage.wild-home-redesign #block-wildisrael-gaviassliderlayerhome .wild-fast-header .wild-fast-action a {
  padding:8px 24px !important; min-height:38px !important; min-width:150px !important;
  font-size:18px !important; line-height:1.2 !important; font-weight:500 !important;
  color:#50585b !important; background:linear-gradient(#fafcfd,#e5eaed) !important;
  border:1px solid #e0e5e8 !important; border-radius:3px !important;
  box-shadow:inset 0 1px 0 #fff,0 3px 5px #0005 !important; text-shadow:0 1px 0 #fff !important;
}
body.frontpage.wild-home-redesign #block-wildisrael-gaviassliderlayerhome .wild-fast-header .wild-fast-action a:hover { background:linear-gradient(#fff,#dce4e7) !important; }
.wild-home-redesign .wild-home-all-rows { display:grid; grid-template-columns:150px minmax(0,1fr) 150px; gap:20px; padding:20px; align-items:start; }
.wild-home-redesign .wild-home-center { min-width:0; }
.wild-home-redesign .wild-home-section-nav { display:flex; flex-direction:column; gap:12px; padding:0; margin:0; width:100%; }
.wild-home-redesign .wild-home-section-nav a { display:flex; flex-direction:column; position:relative; width:100%; min-width:0; overflow:hidden; border:1px solid #dce3dd; border-radius:6px; background:#173f31; color:#fff; text-align:center; }
.wild-home-redesign .wild-home-section-nav img { display:block; width:100%; height:100px; object-fit:cover; }
.wild-home-redesign .wild-home-section-nav span { position:static; display:block; padding:8px 6px; font-size:14px; line-height:1.4; writing-mode:horizontal-tb; transform:none; background:#173f31; color:#fff; }
.wild-home-redesign .wild-home-center > .wild-home-builder-row { padding-block:22px; }
.wild-home-redesign .wild-home-center > .wild-home-row-tinted { background:#eaf0e6; }
.wild-home-redesign .wild-home-center .bb-container.container { max-width:none; padding-inline:12px; }
.wild-home-redesign .wild-home-section-banner { scroll-margin-top:20px; }
@media(max-width:767px) {
 body.frontpage.wild-home-redesign #content .content-main-inner { padding-top:0; }
 body.frontpage.wild-home-redesign #content #block-wildisrael-5pxslideshowspacer-2 { margin:0; }
 body.frontpage.wild-home-redesign .wild-home-all-rows { padding-top:5px; }
 body.frontpage.wild-home-redesign #content .block-local-tasks-block { margin-bottom:0; }
}
@media(min-width:1600px) { .wild-home-redesign .wild-home-all-rows { grid-template-columns:180px minmax(0,1fr) 180px; max-width:1800px; margin-inline:auto; } }
@media(max-width:1199px) { .wild-home-redesign .wild-home-all-rows { grid-template-columns:115px minmax(0,1fr) 115px; gap:12px; padding:16px 12px; } }
@media(max-width:991px) {
 body.frontpage.wild-home-redesign #block-wildisrael-gaviassliderlayerhome .wild-fast-captions { padding:100px 16px 58px; }
 .wild-home-redesign .wild-home-all-rows { grid-template-columns:1fr 1fr; gap:16px; }
 .wild-home-redesign .wild-home-center { grid-column:1 / -1; grid-row:1; }
 .wild-home-redesign .wild-home-section-nav { grid-row:2; }
 .wild-home-redesign .wild-home-section-nav img { height:120px; }
}

/* Compact section spacing and outlined photo headings on phones. */
@media (max-width: 767px) {
  body.frontpage.wild-home-redesign .wild-home-center > .wild-home-builder-row {
    padding-block: 8px;
  }
  body.frontpage.wild-home-redesign .wild-home-all-rows .wild-home-section-banner {
    border: 1px solid #000;
    box-sizing: border-box;
    margin-bottom: 0;
  }
  body.frontpage.wild-home-redesign .wild-home-center .wild-home-item {
    margin-bottom: 12px;
  }
  body.frontpage.wild-home-redesign .wild-home-center .wild-home-item:last-child {
    margin-bottom: 0;
  }
}

/* Match section-header spacing to the gaps between post cards. */
body.frontpage.wild-home-redesign .wild-home-all-rows .wild-home-section-banner {
  margin-bottom: 20px;
}
@media (max-width: 767px) {
  body.frontpage.wild-home-redesign .wild-home-all-rows .wild-home-section-banner {
    margin-bottom: 12px;
  }
}

/* Keep list-card text clear of the card edge in both reading directions. */
body.frontpage.wild-home-redesign .wild-home-all-rows .view-list-item .post-block > .post-content {
  padding-inline: 5px;
  box-sizing: border-box;
}

/* Show complete card photos on phones while keeping card sizes stable. */
@media (max-width: 767px) {
  body.frontpage.wild-home-redesign .wild-home-updates__photo > a {
    height: 100%;
  }
  body.frontpage.wild-home-redesign .wild-home-updates__link img,
  body.frontpage.wild-home-redesign .wild-home-cover,
  body.frontpage.wild-home-redesign .wild-home-layout .post-block img,
  body.frontpage.wild-home-redesign .wild-home-section-nav img,
  body.frontpage.wild-home-redesign .wild-home-section-banner .wild-home-banner-photo {
    object-fit: contain;
    object-position: center;
    background-color: #eaf0e6;
  }
}
