/* Homepage additions - palette from the art-therapy landing page */
:root {
  --at-navy: #071F4F;
  --at-coral: #F87250;
}

/* category banners: four-column layout with 5+ banners (template-parts/four-column-layout.php) */
.cat-banners .col-item { padding-inline: 8px; }
.cat-banners .col-item > a { display: block; text-decoration: none; }
.cat-banners .position-relative { overflow: hidden; aspect-ratio: 2 / 3; }
.cat-banners .position-relative img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; } /* uniform crop for photos of any ratio */
.cat-banners img { transition: transform .5s ease; }
.cat-banners .col-item > a:hover img { transform: scale(1.03); }
.cat-banners .box-title { color: var(--at-navy); font-weight: 400; letter-spacing: .02em; }
.cat-banners .box-title::after {
  content: ""; display: block; width: 0; height: 2px; margin: 6px auto 0; background: var(--at-coral);
  transition: width .3s ease;
}
.cat-banners .col-item > a:hover .box-title::after { width: 28px; }
@media (min-width: 1200px) {
  .cat-banners .box-title { font-size: 22px; }
}

/* full-width banner with a video file (template-parts/homelayout-two.php) - art-therapy hero look */
.at-hero-slide { position: relative; overflow: hidden; background: #EFE6D8; }
.home-layout-two:has(.at-hero-slide) { padding-top: 0; } /* flush under the header, like the hero slider it replaces */
.at-hero-slide > a { display: block; color: inherit; text-decoration: none; }
.home-layout-two .at-hero-slide .at-hero-media { position: relative; height: clamp(420px, 42vw, 620px) !important; min-height: 0; max-height: none; padding: 0 !important; } /* same height for video and image slides */
.at-hero-slide .at-hero-media video, .at-hero-slide .at-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 25% 50%; display: block; }
.at-hero-slide .at-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(239,230,216,.96) 0%, rgba(239,230,216,.88) 30%, rgba(239,230,216,.35) 55%, rgba(239,230,216,0) 75%);
}
.at-hero-slide .box-content {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-inline: clamp(24px, 7vw, 140px); text-align: right; transform: none; width: auto; max-width: none;
}
.at-hero-slide .box-title { text-shadow: none; color: #235B4E !important; font-weight: 700; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.6rem); line-height: 1.15; margin: 0 0 26px; max-width: 14ch; }
.at-hero-slide .box-subtitle { text-shadow: none; display: block; margin-top: 12px; font-size: .48em; line-height: 1.35; color: var(--at-coral); font-weight: 500; }
.at-hero-slide .btn,
.at-hero-slide .btn.has_width { width: auto; padding-inline: 28px; white-space: nowrap; } /* theme button look, sized to its text */
@media (max-width: 767.98px) {
  .home-layout-two .at-hero-slide .at-hero-media { height: min(64vh, 560px) !important; min-height: 440px; }
  .at-hero-slide .at-hero-media video, .at-hero-slide .at-hero-media img { object-position: 55% 50%; }
  .at-hero-slide .at-hero-media::after { background: linear-gradient(to top, rgba(239,230,216,.97) 0%, rgba(239,230,216,.9) 34%, rgba(239,230,216,0) 62%); }
  .home-layout-two .at-hero-slide .box-content,
  .rtl .home-layout-two .at-hero-slide .box-content { justify-content: flex-end; align-items: center; text-align: center; padding-bottom: 36px; }
  .at-hero-slide .box-title { margin-inline: auto; margin-bottom: 20px; }
  .home-layout-two .at-hero-slide .box-content .btn { margin-left: auto; margin-right: auto; align-self: center; }
}
/* 2 square banners (home_layout_nine) - square crop, title + button at the bottom */
.home-layout-five .col-inner-wrap { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.home-layout-five .col-inner-wrap > a { display: block; height: 100%; }
.home-layout-five .col-inner-wrap picture,
.home-layout-five .col-inner-wrap picture img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.home-layout-five .col-inner-wrap picture img { transition: transform .5s ease; }
.home-layout-five .col-inner-wrap > a:hover picture img { transform: scale(1.03); }
.home-layout-five .box-title { color: var(--at-navy) !important; text-shadow: none; }
.home-layout-five .col-inner-wrap > a::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; pointer-events: none;
  background: linear-gradient(to top, rgba(250,246,239,.97) 0%, rgba(250,246,239,.9) 45%, rgba(250,246,239,0) 100%); }
@media (max-width: 767.98px) { .home-layout-five .col-inner-wrap > a::after { height: 65%; } }
.home-layout-five .box-content { z-index: 1; }

/* hero carousel: image slide (subject on the left, text on the right) */
.at-hero-slide picture.at-hero-media { display: block; }
.at-hero-slide picture.at-hero-media img { object-position: 0% 50%; }
@media (max-width: 767.98px) { .at-hero-slide picture.at-hero-media img { object-position: 22% 50%; } }
/* banner without a link yet (url "#") - no pointer */
.home-layout-five a[href="#"], .home-layout-five a[href="#"] .btn { cursor: default; }
