/**
* Block Name: gallery_swiper
*/

section.gallery_slider {
    overflow: hidden;
}

section.gallery_slider .container {
    margin: 0 auto;
    height: 100%;
}

section.gallery_slider .swiper-container {
    width: 100%;
    height: 100%;
}


section.gallery_slider .swiper-slide {
    transition: all 300ms ease-in-out;
    position: relative;
    text-decoration: none;
    display: block;
    width: 100%;    
}

section.gallery_slider .swiper-slide img {
    max-height: 543px;
    height: 100%;
    margin-bottom: 0;
    padding-bottom: 0;
    border-radius: var(--radius-medium);
    z-index: 1;
    position: relative;
    display: block; 
    width: 100%;   
}

section.gallery_slider .svg_wrapper {
    position: absolute;
    background: var(--green);
    padding: 5px;
    border-radius: 100px;
    right: 8px;
    top: 8px;
    z-index: 99;
    height: 40px;
    width: 40px;
    opacity: 0;
    transition: all 150ms ease-in;
}

section.gallery_slider img:hover + .svg_wrapper {
    opacity: 1;
}

section.gallery_slider .svg_wrapper:hover {
    background: var(--viridian);
    box-shadow:
        0 0 0 3px var(--light-green),
        0 -1px 2px 0 rgba(58, 12, 57, 0.10) inset,
        0 -2px 3px 0 rgba(255, 255, 255, 0.50),
        0 0 5px 0 rgba(0, 0, 0, 0.15),
        0 3px 6px 0 rgba(144, 25, 142, 0.06),
        0 10px 30px 0 rgba(107, 54, 106, 0.08);
    opacity: 1;
}

section.gallery_slider .svg_wrapper:focus,
section.gallery_slider .svg_wrapper:active,
section.gallery_slider .svg_wrapper:focus-within,
section.gallery_slider .svg_wrapper:target {
    box-shadow: none;
}

section.gallery_slider .svg_wrapper .zoom {
    position: relative;
    right: -5px;
    top: -2px;
}

section.gallery_slider .swiper-slide .caption {
    background: var(--white-alt);
    color: var(--black);
    padding: 38px 30px 8px 30px;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    height: max-content;
    top: -30px;
    z-index: 0;
    border-bottom-left-radius: var(--radius-medium);
    border-bottom-right-radius: var(--radius-medium);
}

section.gallery_slider .swiper-slide .caption span {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

section.gallery_slider .swiper_nav {
    gap: 22px;
    position: relative;
    z-index: 9;
}

section.gallery_slider .swiper_nav .button-next,
section.gallery_slider .swiper_nav .button-prev {
    -webkit-box-shadow: 0px 1px 2px 3px rgba(94,112,92,0);
    box-shadow: 0px 1px 2px 3px rgba(94,112,92,0);
    transition: box-shadow 200ms ease-in;
    border-radius: 100px;
}

/* Real buttons now */
section.gallery_slider .gallery_swiper__nav-btn {
    border: none;
    background: transparent;
    padding: 0;
    border-radius: 100px;
    cursor: pointer;
}

/* Focus state for keyboard users */
section.gallery_slider .gallery_swiper__nav-btn:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 3px;
}

section.gallery_slider .swiper_nav .button-next:hover,
section.gallery_slider .swiper_nav .button-prev:hover {
    box-shadow: 0 -1px 2px 0 rgba(58, 12, 57, 0.10) inset, 0 -2px 3px 0 rgba(255, 255, 255, 0.50), 0 0 5px 0 rgba(0, 0, 0, 0.15), 0 3px 6px 0 rgba(144, 25, 142, 0.06), 0 10px 30px 0 rgba(107, 54, 106, 0.08);
}

section.gallery_slider .swiper_nav .button-next svg rect,
section.gallery_slider .swiper_nav .button-prev svg rect {
    fill: var(--green);
}

section.gallery_slider .swiper_nav .button-next svg rect,
section.gallery_slider .swiper_nav .button-prev svg rect,
section.gallery_slider .swiper_nav .button-next svg path,
section.gallery_slider .swiper_nav .button-prev svg path {
    transform-origin: center;
    transition: fill 160ms ease-in, transform 200ms ease-in;
}

section.gallery_slider .swiper_nav .button-next:hover svg path,
section.gallery_slider .swiper_nav .button-prev:hover svg path {
    transform: scale(1.2);
}

section.gallery_slider .swiper_nav .button-next:hover svg rect,
section.gallery_slider .swiper_nav .button-prev:hover svg rect {
    fill: var(--viridian);
}

section.gallery_slider .swiper-slide-prev,
section.gallery_slider .swiper-slide-next {
    opacity: 0.6;
}

/* SR-only helper for hidden text */
section.gallery_slider .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 767px) {
    section.gallery_slider .title {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    section.gallery_slider .title .swiper_nav {
        align-self: flex-start !important;
        width: 100%;
        justify-content: space-between;
    }

    section.gallery_slider .swiper-slide .caption span {
        width: 100%;
        align-items: flex-start;
    }
}
