﻿/* .flex_layout.service_carousel .content_wrapper{
    grid-column: 9 / span 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
} */

/* .flex_layout.service_carousel .content_wrapper a,
.flex_layout.service_carousel .content_wrapper .heading_wrapper{ */

/* .flex_layout.service_carousel .indicator{

} */

.flex_layout.service_carousel .heading_wrapper{

    grid-row: 1 / 2;

}

.flex_layout.service_carousel .indicator_container{
    grid-row: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

.flex_layout.service_carousel .indicator{
    display: flex; flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: .25rem;
}

.flex_layout.service_carousel .indicator .spacer{
    width: .25rem;
    aspect-ratio: 1;
    background-color: currentColor;
}

.flex_layout.service_carousel .indicator .total{
    opacity: .35;
}

.flex_layout.service_carousel .indicator_container,
.flex_layout.service_carousel .heading_wrapper{
    margin: var(--grid-margin);
    grid-column: 9 / span 4;
}

.flex_layout.service_carousel .pCarousel{
    grid-column: 1 / -1;
    grid-row: 1 / span 3;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    cursor: grab;
}

.flex_layout.service_carousel .pCarousel:active{
    cursor: grabbing;
}

.flex_layout.service_carousel .service_wrapper{
    grid-column: 1 / span 8;
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.flex_layout.service_carousel .next_services {
    grid-column: 9 / span 4;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: relative;
    /* aspect-ratio: 4 / 5; */
    height: 70vh;
    overflow: hidden;
    align-self: center;
}

.flex_layout.service_carousel .next_services > div{
    position: relative;
}
.flex_layout.service_carousel .next_services > div:nth-child(1){
    grid-column-end: span 3;
}

.flex_layout.service_carousel .next_services > div:nth-child(2){
    grid-column-end: span 1;
}

.flex_layout.service_carousel .service{
    position: absolute;
    inset: 0;
    isolation: isolate;
}

.flex_layout.service_carousel .service__outer{
    position: relative;
}
.flex_layout.service_carousel .service__outer,
.flex_layout.service_carousel .service__inner{
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.flex_layout.service_carousel .service__inner img{
    position: absolute;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    z-index: -2;
}

.flex_layout.service_carousel .service{
    color: #fff;
    user-select: none;
}

.flex_layout.service_carousel .service *{
    color: inherit;
}

.flex_layout.service_carousel .service__inner{
    display: flex;
}

.flex_layout.service_carousel .service .content_wrapper{
    position: relative;
    z-index: 1;
    padding: 8rem var(--grid-margin) var(--grid-margin) var(--grid-margin);
    width: 100%;
    display: flex;
    flex-direction: column;
}

.flex_layout.service_carousel .service h2{
    line-height: 1.2;
}

.flex_layout.service_carousel .service .content_wrapper::before{
    content: '';
    inset: 0;
    position: absolute;
    background-image: linear-gradient(90deg, rgba(0,0,0,0.5), rgba(0,0,0,0));
    z-index: -1;
}

.flex_layout.service_carousel .service a{
    margin-top: auto;
}


@media only screen and (max-width: 992px){

    .flex_layout.service_carousel .heading_wrapper{
        grid-column: 1 / span 4;
        grid-row: 1 / span 1;
    }

    .flex_layout.service_carousel .pCarousel{
        grid-template-columns: repeat(4, minmax(0, 1fr));
        height: 80vh;
        grid-row: unset;
    }
    .flex_layout.service_carousel .service_wrapper{
        height: 70vh;
        grid-column: 1 / span 4;
        grid-row: 2 / span 1;
    }

    .flex_layout.service_carousel .service .content_wrapper{
        padding-top: 2.5rem;
    }

    .flex_layout.service_carousel .service a{
        margin-left: auto;
    }

    .flex_layout.service_carousel .indicator_container{
        grid-column: 1 / span 4;
        grid-row: 3 / span 1;
    }

    .flex_layout.service_carousel .next_services{
        display: none;
    }

}