/* Current project photography, full width, with a quiet crossfade and readable copy. */
#kb-site-preview .home-commercial-opening { display: block; }
#kb-site-preview .home-hero-gallery {
  position: relative; isolation: isolate; display: grid; width: 100%;
  min-height: clamp(620px, 76svh, 860px); background: #303033; overflow: hidden;
}
#kb-site-preview .home-hero-slides,
#kb-site-preview .home-hero-slide { position: absolute; inset: 0; margin: 0; }
#kb-site-preview .home-hero-slides { z-index: 0; }
#kb-site-preview .home-hero-slide {
  opacity: 0; visibility: hidden;
  transition: opacity 1200ms ease, visibility 0s linear 1200ms;
}
#kb-site-preview .home-hero-slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
#kb-site-preview .photo-home .home-hero-slide img {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%; max-height: none;
  object-fit: cover; object-position: var(--hero-position, center); margin: 0; border: 0; border-radius: 0;
}
#kb-site-preview .home-hero-gallery::before {
  content: none;
}
#kb-site-preview .home-hero-gallery .home-commercial-copy {
  position: relative; isolation: isolate; z-index: 2; grid-area: 1 / 1; align-self: center;
  width: min(680px, 57%); padding: 72px 0 142px; margin-left: var(--studio-pad, 5.6%);
  background: transparent; color: #fff; text-shadow: 0 1px 4px #000000b3;
}
/* Keep the photograph clear: a small, neutral shadow sits only behind the copy. */
#kb-site-preview .home-hero-gallery .home-commercial-copy::before {
  content: ''; position: absolute; inset: 52px -16px 126px -20px; z-index: -1;
  background: #00000070; filter: blur(25px); pointer-events: none;
}
#kb-site-preview .home-hero-gallery .home-commercial-copy .kicker {
  color: #f4f2ef; font-size: 11px; letter-spacing: .13em; line-height: 1.65; margin-bottom: 20px;
}
#kb-site-preview .home-hero-gallery .home-commercial-copy h1 {
  color: #fff; font-size: clamp(48px, 5.1vw, 74px); line-height: 1.06;
  letter-spacing: -.035em; margin: 0 0 25px; text-shadow: 0 2px 8px #00000080;
}
#kb-site-preview .home-hero-gallery .home-commercial-deck {
  color: #fff; max-width: 43ch; font-size: 18px; line-height: 1.65; margin: 0;
}
#kb-site-preview .home-hero-gallery .home-commercial-copy .actions { gap: 14px 25px; margin-top: 28px; }
#kb-site-preview .home-hero-gallery .home-commercial-copy .action { text-shadow: none; }
#kb-site-preview .home-hero-gallery .home-commercial-copy .textlink { color: #fff; border-color: #dfd1e6; }
#kb-site-preview .home-hero-gallery .home-commercial-copy .action:hover { background: #ece1f0; border-color: #ece1f0; }
#kb-site-preview .home-gallery-footer {
  position: absolute; inset: auto var(--studio-pad, 5.6%) 28px; z-index: 2;
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  border-top: 1px solid #ffffff52; padding-top: 19px; color: #fff;
}
#kb-site-preview .home-gallery-project {
  display: flex; flex-direction: column; gap: 7px; color: #fff; text-decoration: none;
  max-width: 58%; padding: 9px 12px; min-height: 44px; justify-content: center;
  background: #00000066; text-shadow: 0 1px 3px #00000080;
}
#kb-site-preview .home-gallery-project [data-gallery-title] { font: 500 12px/1.5 var(--font-navigation, Arial, sans-serif); text-transform: uppercase; letter-spacing: .12em; }
#kb-site-preview .home-gallery-project [data-gallery-detail] { font-size: 12px; line-height: 1.5; color: #f4f2ef; }
#kb-site-preview .home-gallery-project:hover [data-gallery-title] { text-decoration: underline; text-underline-offset: 5px; }
#kb-site-preview .home-gallery-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-right: 164px; }
#kb-site-preview .home-gallery-controls[hidden] { display: none; }
#kb-site-preview .home-gallery-counter { font-size: 12px; letter-spacing: .12em; font-variant-numeric: tabular-nums; margin-right: 10px; }
#kb-site-preview .home-gallery-controls button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 10px; border: 1px solid #ffffff80;
  border-radius: 0; background: #00000066; color: #fff; cursor: pointer;
  font: 400 12px/1 var(--font-navigation, Arial, sans-serif);
}
#kb-site-preview .home-gallery-controls button:hover { background: #ffffff24; border-color: #fff; }
#kb-site-preview .home-gallery-controls svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
#kb-site-preview .home-gallery-controls [data-gallery-toggle] { min-width: 84px; padding-inline: 14px; }
#kb-site-preview .home-hero-gallery :focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
#kb-site-preview .home-gallery-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 1800px) {
  #kb-site-preview .home-hero-gallery .home-commercial-copy { width: 680px; }
}
@media (max-width: 1000px) {
  #kb-site-preview .home-hero-gallery .home-commercial-copy { width: min(590px, 75%); margin-left: 28px; }
  #kb-site-preview .home-gallery-footer { left: 28px; right: 28px; }
}
@media (max-width: 700px) {
  #kb-site-preview .home-hero-gallery { min-height: 740px; }
  #kb-site-preview .photo-home .home-hero-slide img { object-position: var(--hero-position-mobile, 65% center); }
  #kb-site-preview .home-hero-gallery .home-commercial-copy {
    width: auto; margin: 0; align-self: end; padding: 180px 24px 164px;
  }
  #kb-site-preview .home-hero-gallery .home-commercial-copy::before { inset: 164px 10px 152px; filter: blur(20px); }
  #kb-site-preview .home-hero-gallery .home-commercial-copy .kicker { font-size: 10px; letter-spacing: .08em; margin-bottom: 15px; }
  #kb-site-preview .home-hero-gallery .home-commercial-copy h1 { font-size: clamp(38px, 10vw, 52px); margin-bottom: 20px; }
  #kb-site-preview .home-hero-gallery .home-commercial-deck { font-size: 16px; line-height: 1.6; max-width: 42ch; }
  #kb-site-preview .home-hero-gallery .home-commercial-copy .actions { margin-top: 22px; gap: 12px 20px; }
  #kb-site-preview .home-gallery-footer { left: 24px; right: 24px; bottom: 20px; align-items: start; flex-direction: column; gap: 12px; padding-top: 14px; }
  #kb-site-preview .home-gallery-project { max-width: 100%; min-height: 38px; gap: 3px; }
  #kb-site-preview .home-gallery-project [data-gallery-title] { font-size: 11px; }
  #kb-site-preview .home-gallery-controls { width: calc(100% - 60px); gap: 6px; margin-right: 0; }
  #kb-site-preview .home-gallery-controls [data-gallery-toggle] { min-width: 60px; padding-inline: 10px; }
  #kb-site-preview .home-gallery-counter { margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  #kb-site-preview .home-hero-slide { transition: none; }
}
/* Clean, continuously changing photography without a navigation strip. */
#kb-site-preview .home-gallery-footer { border:0; padding-top:0; }
#kb-site-preview .home-gallery-project { max-width:calc(100% - 170px); }
@media(max-width:700px) {
 #kb-site-preview .home-hero-gallery .home-commercial-copy { padding-bottom:112px; }
 #kb-site-preview .home-hero-gallery .home-commercial-copy::before { bottom:100px; }
 #kb-site-preview .home-gallery-project { max-width:calc(100% - 56px); }
}
