/* Anej + Teja v1.84: headline left; navigation at bottom-right.
   Applies to the editable homepage hero as well as legacy post sliders.
   No changes to images, overlays, animation, or link destinations. */
body.home .at-editable-slider { position:relative; }
body.home .at-editable-slider .at-editable-slide-caption,
body.home .at-editable-slider .at-editable-slide-caption :is(h1,h2,h3,p) {
  text-align:left !important;
}
body.home .at-editable-slider .at-editable-slide-caption > :is(.wp-block-heading,.wp-block-paragraph,.wp-block-buttons) {
  margin-left:0 !important;
  margin-right:auto !important;
}
body.home .at-editable-slider .at-editable-slide-caption .wp-block-buttons {
  justify-content:flex-start !important;
}
/* The controls must cover the hero's height: otherwise absolutely positioned
   arrows would be measured against the narrow top bar instead of the hero. */
body.home .at-editable-slider .at-editable-slider-controls {
  position:absolute !important;
  top:0 !important;
  right:0 !important;
  bottom:0 !important;
  left:0 !important;
  width:100% !important;
  max-width:none !important;
  height:100% !important;
  margin:0 !important;
  padding:0 !important;
  z-index:12;
  pointer-events:none;
}
body.home .at-editable-slider .at-editable-slider-controls .at-editable-slider-kicker {
  position:absolute;
  top:clamp(18px,3vw,32px);
  left:max(24px,calc((100% - 1360px)/2));
  margin:0;
}
body.home .at-editable-slider .at-editable-slider-controls .at-editable-slider-arrows {
  position:absolute !important;
  top:auto !important;
  right:max(24px,calc((100% - 1360px)/2)) !important;
  bottom:26px !important;
  left:auto !important;
  margin:0 !important;
  padding:0 !important;
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:10px;
  width:auto !important;
  z-index:14;
  pointer-events:auto;
}
body.home .at-editable-slider .at-editable-slider-controls .at-editable-slider-arrows .wp-block-button {
  margin:0 !important;
}
body.home .at-editable-slider .at-editable-slider-controls .at-editable-slider-arrows .wp-block-button__link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  min-width:46px;
  min-height:46px;
  padding:5px 12px;
}
/* Legacy query-loop hero, used by some saved homepage templates. */
body.home .at-home-v14 .at-posts-slider-heading {
  top:0 !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  margin:0 !important;
  width:100% !important;
  height:100% !important;
  pointer-events:none;
}
body.home .at-home-v14 .at-posts-slider-heading > :first-child {
  position:absolute;
  top:clamp(18px,3vw,32px);
  left:max(24px,calc((100% - 1360px)/2));
}
body.home .at-home-v14 .at-posts-slider-actions {
  position:absolute !important;
  top:auto !important;
  left:auto !important;
  right:max(24px,calc((100% - 1360px)/2)) !important;
  bottom:26px !important;
  pointer-events:auto;
  z-index:14;
}
body.home .at-home-v14 .at-posts-slide-copy,
body.home .at-home-v14 .at-posts-slide-copy :is(h1,h2,h3,p) {
  text-align:left !important;
}
@media(max-width:680px){
  body.home .at-editable-slider .at-editable-slider-controls .at-editable-slider-kicker,
  body.home .at-home-v14 .at-posts-slider-heading > :first-child {left:18px;top:18px;}
  body.home .at-editable-slider .at-editable-slider-controls .at-editable-slider-arrows,
  body.home .at-home-v14 .at-posts-slider-actions {right:18px !important;bottom:16px !important;}
  body.home .at-editable-slider .at-editable-slider-controls .at-editable-slider-arrows .wp-block-button__link {min-width:40px;min-height:40px;}
  body.home .at-editable-slider .at-editable-slide-caption {margin-bottom:78px !important;}
}
/* Never cover the Gutenberg editor's controls with a full-height overlay. */
.editor-styles-wrapper .at-editable-slider .at-editable-slider-controls {position:relative !important;inset:auto !important;height:auto !important;width:auto !important;pointer-events:auto !important;}
.editor-styles-wrapper .at-editable-slider .at-editable-slider-controls .at-editable-slider-kicker,
.editor-styles-wrapper .at-editable-slider .at-editable-slider-controls .at-editable-slider-arrows {position:relative !important;inset:auto !important;}

/* v1.91: Hide the redundant homepage slider label even when WordPress
   stores a customized front-page template in the database. */
body.home .at-editable-slider .at-editable-slider-kicker { display:none !important; }
