.av-live-home .av-hero > .ag-hero-slides {
    display: block;
    overflow: hidden;
    max-width: none;
}
.av-live-home .ag-hero-slides.wp-block-gallery > figure.wp-block-image {
    position: absolute;
    inset: 0;
    display: none;
    width: 100%;
    min-width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}
.av-live-home .ag-hero-slides.wp-block-gallery > figure.wp-block-image:is(:first-child,.is-current,.is-leaving) { display: block; }
.av-live-home .ag-hero-slides.is-ready > figure:first-child:not(.is-current,.is-leaving) { display: none; }
.av-live-home .ag-hero-slides > .is-current { z-index: 1; }
.av-live-home .ag-hero-slides > .is-leaving { z-index: 2; animation: ag-slide-away .65s ease-out forwards; }
@keyframes ag-slide-away { to { opacity: 0; } }
.av-live-home .av-hero .ag-hero-slides figure:not(:first-child) img { transform: none; object-position: center; }
.av-live-home .ag-hero-slides figcaption { display: none; }
.ag-slide-controls {
    position: absolute;
    z-index: 2;
    right: var(--ag-pad);
    bottom: clamp(56px,5vw,72px);
    display: flex;
    align-items: center;
    border: 1px solid rgb(255 255 255 / .46);
    border-radius: 9px;
    background: #1b241fee;
    color: #fff;
}
.ag-slide-controls button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.ag-slide-controls button:hover { color: #83ee92; background: #324038; }
.ag-slide-controls button:focus-visible { outline: 2px solid #88f49a; outline-offset: -3px; }
.ag-slide-controls button:last-child { border-left: 1px solid #5e6963; border-radius: 0 8px 8px 0; }
.ag-slide-controls svg { width: 17px; height: 17px; }
.ag-slide-count { min-width: 4ch; font: 650 .8rem/1 var(--ag-display); text-align: center; font-variant-numeric: tabular-nums; }
/* In Gutenberg the same gallery stays in the flow so every image can be selected and reordered. */
.editor-styles-wrapper .av-hero:has(.ag-hero-slides) { display: block; }
.editor-styles-wrapper .av-hero .ag-hero-slides.wp-block-gallery { position: relative; z-index: auto; height: auto; }
.editor-styles-wrapper .av-hero .ag-hero-slides img { transform: none; }
@media (max-width: 720px) {
    .av-live-home .av-hero:has(.ag-slide-controls) .av-title { padding-bottom: 102px; }
    .ag-slide-controls { right: var(--ag-edge); bottom: 41px; }
}
@media (prefers-reduced-motion: reduce) {
    .av-live-home .ag-hero-slides > .is-leaving { animation: none; opacity: 0; }
}
