/* abboud/hero-slide: one slide of the hero carousel, in three kinds the markup decides (inc/blocks.php): image only, link (the whole photo is one <a>), overlay (heading,
   text and buttons over the photo, on a scrim). Loaded where the block is used (block.json "style"), in the editors too. Stacking and fading of slides on the site is
   ".ab-hcar__photo > .ab-hslide"; the editor shows one slide at a time (hero-carousel/editor.css). The scrim (.ab-hslide__shade) is a real aria-hidden element
   printed by PHP on the site only. Logical properties only (RTL-ready). */
.ab-hslide, .ab-hslide * { box-sizing: border-box; }
.ab-hslide { margin: 0; }
.ab-hcar__photo > .ab-hslide { position: absolute; inset: 0; opacity: 0; visibility: hidden; z-index: 0; transition: opacity .6s ease, visibility 0s linear .6s; }
.ab-hcar__photo > .ab-hslide.is-on { opacity: 1; visibility: visible; z-index: 1; transition: opacity .6s ease, visibility 0s; }
.ab-hslide__img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; max-inline-size: none; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); margin: 0; display: block; }
.ab-hslide__link { position: absolute; inset: 0; display: block; }
.ab-hslide__link:focus-visible { outline: 3px solid var(--wp--preset--color--focus); outline-offset: -6px; }

/* overlay: scrim (black, strongest on the text side), then the content */
.ab-hslide__shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to right, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .8) 48%, rgba(0, 0, 0, .62) 78%, rgba(0, 0, 0, 0) 100%); }
.ab-hslide__shade:dir(rtl) { background: linear-gradient(to left, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .8) 48%, rgba(0, 0, 0, .62) 78%, rgba(0, 0, 0, 0) 100%); }
.ab-hslide__cap { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding-block: 16px 48px; padding-inline: clamp(16px, 2.4vw, 32px); color: #fff; }
.ab-hcar__photo > .ab-hslide > .ab-hslide__cap { pointer-events: none; }
.ab-hcar__photo > .ab-hslide > .ab-hslide__cap .wp-block-buttons { pointer-events: auto; }
.ab-hslide__cap > * { margin: 0; max-inline-size: 28ch; color: #fff; }
.ab-hslide__cap :is(h1, h2, h3, h4, h5, h6) { max-inline-size: 18ch; font-size: clamp(1.2rem, 1.05rem + 1.3vw, 2.25rem); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; }
.ab-hslide__cap p { font-size: .9375rem; line-height: 1.4; }
.ab-hslide__cap .wp-block-buttons { margin-block-start: 4px; gap: 8px; max-inline-size: none; }
.ab-hslide__cap .wp-block-button .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-block-size: 44px; padding-block: 0; padding-inline: .95rem; border-radius: 10px; border: 3px solid #fff; background: #fff; color: var(--h-ink); font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none; }
.ab-hslide__cap .wp-block-button .wp-block-button__link:hover { background: var(--h-red); border-color: var(--h-red); color: #fff; }
.ab-hslide__cap .wp-block-button.is-style-outline .wp-block-button__link { background: #1B1F24; color: #fff; }
.ab-hslide__cap .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff; border-color: #fff; color: var(--h-ink); }
.ab-hslide__cap :focus-visible { outline-color: #fff; }

@media (min-width: 1000px) {
	.ab-hslide__shade { background: linear-gradient(to right, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .46) 26%, rgba(0, 0, 0, .24) 46%, rgba(0, 0, 0, 0) 68%); }
	.ab-hslide__shade:dir(rtl) { background: linear-gradient(to left, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .46) 26%, rgba(0, 0, 0, .24) 46%, rgba(0, 0, 0, 0) 68%); }
	.ab-hslide__cap { padding-inline: clamp(20px, 2.4vw, 36px); padding-block: 16px 20px; }
}
@media (max-width: 699px) {
	.ab-hslide__cap p { display: none; }
	.ab-hslide__cap :is(h1, h2, h3, h4, h5, h6) { max-inline-size: 22ch; }
}
/* phones and tablets (below 1000px, the 4:3 frame): the optional mobile photo (<picture> source, same breakpoint) has its own focal point; a light scrim from the bottom only, the text sits low and keeps the top of the photo clear */
@media (max-width: 999px) {
	.ab-hslide__img { object-position: var(--mfx, var(--fx, 50%)) var(--mfy, var(--fy, 50%)); }
	.ab-hslide__shade, .ab-hslide__shade:dir(rtl) { background: linear-gradient(to top, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .34) 42%, rgba(0, 0, 0, 0) 72%); }
	.ab-hslide__cap { justify-content: flex-end; padding-inline: 16px; padding-block: 8px 48px; gap: 6px; }
	.ab-hslide__cap :is(h1, h2, h3, h4, h5, h6) { font-size: 1.25rem; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
	.ab-hslide__cap .wp-block-button .wp-block-button__link { font-size: .9375rem; padding-inline: .8rem; border-width: 2px; }
}
@media (max-height: 500px) and (min-width: 600px) {
	.ab-hslide__cap p { display: none; }
	.ab-hslide__cap { padding-block: 8px; }
}

/* ---------- entrance (site only, overlay slides, while the carousel is in view: it replays when it scrolls back in): each time a slide turns on (.is-on is added by view.js, or is there at load) the scrim slides in from the text side
   (from the bottom on phones/tablets, where the scrim is a bottom gradient), then the heading, text and buttons rise in one after the other. Opacity/transform only. */
@keyframes ab-hslide-shade-x { from { opacity: 0; transform: translateX(-60%); } to { opacity: 1; transform: none; } }
@keyframes ab-hslide-shade-x-rtl { from { opacity: 0; transform: translateX(60%); } to { opacity: 1; transform: none; } }
@keyframes ab-hslide-shade-y { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }
@keyframes ab-hslide-item { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
html.ab-rv-on .wp-block-abboud-hero-carousel.is-in .ab-hcar__photo > .ab-hslide.is-on .ab-hslide__shade { animation: ab-hslide-shade-y .6s cubic-bezier(.2, .7, .2, 1) both; }
html.ab-rv-on .wp-block-abboud-hero-carousel.is-in .ab-hcar__photo > .ab-hslide.is-on .ab-hslide__cap > * { animation: ab-hslide-item .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: .35s; }
html.ab-rv-on .wp-block-abboud-hero-carousel.is-in .ab-hcar__photo > .ab-hslide.is-on .ab-hslide__cap > :nth-child(2) { animation-delay: .47s; }
html.ab-rv-on .wp-block-abboud-hero-carousel.is-in .ab-hcar__photo > .ab-hslide.is-on .ab-hslide__cap > :nth-child(3) { animation-delay: .59s; }
html.ab-rv-on .wp-block-abboud-hero-carousel.is-in .ab-hcar__photo > .ab-hslide.is-on .ab-hslide__cap > :nth-child(n+4) { animation-delay: .71s; }
@media (min-width: 1000px) {
	html.ab-rv-on .wp-block-abboud-hero-carousel.is-in .ab-hcar__photo > .ab-hslide.is-on .ab-hslide__shade { animation-name: ab-hslide-shade-x; }
	html.ab-rv-on .wp-block-abboud-hero-carousel.is-in .ab-hcar__photo > .ab-hslide.is-on .ab-hslide__shade:dir(rtl) { animation-name: ab-hslide-shade-x-rtl; }
}
@media (prefers-reduced-motion: reduce) {
	.ab-hslide, .ab-hslide * { transition: none !important; animation: none !important; }
}
