/* ---------------------------------- backend ---------------------------------- */

.blb-profile-gallery-container-backend {
    display:flex;
}

.blb-profile-gallery-container-backend .blb-profile-gallery-item {
    position:initial;
    width:auto;
    padding: 15px;
}

.blb-profile-gallery-container-backend .blb-profile-gallery-item img {
    max-width:100%;
    object-fit: contain;
}

/* ---------------------------------- frontend ---------------------------------- */


.blb-profile-gallery {
    position: relative;
    overflow: visible;
}

.blb-profile-gallery-tabs {
    grid-area: tabs;
    display: flex;
    flex-direction: column;
    gap: var(--fluid-10);
}

.blb-profile-gallery .blb-profile-gallery-container {
    display: flex;
    opacity: 0;
    overflow: hidden;
    transition: all 600ms ease;
    gap: 0.5rem;
    grid-area: cards;
    position: relative;
}

.blb-profile-gallery.slider-loaded .blb-profile-gallery-container {
    opacity: initial;
}

.blb-profile-gallery-shifter {
    width: 100%;
    display: grid;
    grid-template-areas:
        "tabs cards";
    grid-template-columns: calc(33.3% - var(--fluid-5)) 1fr;
    gap: var(--fluid-10);
}


.blb-profile-gallery-item {
    width: 20rem;
    min-height: 30rem;
    position: absolute;
    left: 0;
    top: 0;
    -ms-transition: all 600ms ease;
    -o-transition: all 600ms ease;
    transition: all 600ms ease;
    border-radius: 1rem;
    overflow: hidden;
    background: #FFFFFF;
    padding: var(--fluid-30);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.blb-profile-gallery-item:nth-child(1n)
{
    background:var(--blb-grey-200);
}

.blb-profile-gallery-item:nth-child(2n)
{
    background:var(--blb-cyan-200);
}

.blb-profile-gallery-item:nth-child(3n)
{
    background:var(--blb-vert-200);
}

.blb-profile-gallery-item:nth-child(4n)
{
    background:var(--blb-bleu-200);
}


.blb-profile-gallery-item > img {
    height: 100%;
    width: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 50%;
}


/* - tabs - */

.blb-profile-gallery-tab {
    display: flex;
    column-gap: 0.5rem;
    align-items: center;
    line-height: 1;
    border-radius: 0.5rem;
    padding: var(--fluid-5);
    cursor:pointer;
    max-width: 20rem;
}

.blb-profile-gallery-tab.active {
    background: var(--blb-grey-600-10);
}

.blb-profile-gallery-tab:hover
{
    background: var(--blb-grey-600-10);
}

.blb-profile-gallery-tab-title {
    font-size: var(--fs-16);
    margin-bottom: 0;
    margin-bottom: var(--fluid-3);
    font-weight: 600;
}

span.blb-profile-gallery-tab-icon > img {
    height: var(--fluid-40);
    max-width: var(--fluid-40);
}

.blb-profile-gallery-tab-subtitle {
    font-size: var(--fs-12);
}


.blb-profile-gallery-item-title {
    font-weight: 600;
}

.blb-profile-gallery-item-subtitle {
    font-size: var(--fs-12);
}

.blb-profile-gallery-item-head {
    display: flex;
    justify-content: space-between;
    min-height: 2.8rem;
}

.blb-profile-gallery-item-icon {
    width: 2.2rem;
    height: 2.2rem;
    background: #FFFFFF;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blb-profile-gallery-item-content {
    margin: 1rem 0 0 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blb-profile-gallery-item-image {
    width: 10rem;
    height: 10rem;
    margin: 0 auto auto auto;
    background-image: url("/wp-content/themes/biologbook/blocks/blb-profile-gallery/images/profil-frame.svg");
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.blb-profile-gallery-item-image-inner {
    border-radius: 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.blb-profile-gallery-item-image-inner > img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    object-position: center;
}

.blb-profile-gallery-item-text {
    font-size: var(--fs-12);
    min-height: 11rem;
    margin-bottom: var(--fluid-30);
}

.blb-profile-gallery-item-lien {
    text-transform: uppercase;
    font-weight: 500;
    font-size: var(--fs-12);
    margin-top: auto;
}

a.blb-profile-gallery-item-lien-button span:nth-child(1):hover
{
    text-decoration:underline;
}

a.blb-profile-gallery-item-lien-button span:nth-child(2) {
    display:inline-block;
    margin-left:var(--fluid-5);
    height: 0;
    width: 0;
    border-top: var(--fluid-5) solid transparent;
    border-bottom: var(--fluid-5) solid transparent;
    border-left: var(--fluid-7) solid var(--blb-grey-800-txt);
}

/* ---------------------------------- controls ---------------------------------- */


.blb-profile-gallery-controls {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 2rem;
    margin-top: var(--fluid-40);
}

.blb-profile-gallery-controls .prev,
.blb-profile-gallery-controls .next {
    width: var(--fluid-40);
    height: var(--fluid-40);
    border: 1px solid var(--blb-grey-800-txt);
    border-radius: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.blb-profile-gallery-controls .prev:hover,
.blb-profile-gallery-controls .next:hover {
    background:var(--blb-grey-800-txt);
}

.blb-profile-gallery-controls .prev:hover svg path,
.blb-profile-gallery-controls .next:hover svg path {
    stroke:white;
}

.blb-profile-gallery-dots {
    display: flex;
    gap: var(--fluid-10);
}

.blb-profile-gallery-dot {
    cursor: pointer;
    padding: var(--fluid-10);
}

.blb-profile-gallery-dot span {
    width: var(--fluid-8);
    height: var(--fluid-8);
    border-radius:100%;
    border:1px solid var(--blb-grey-800-txt);
    display: block;
}

.blb-profile-gallery-dot:hover span {
    background: var(--blb-grey-500);
}

.blb-profile-gallery-dot.active span {
    background: var(--blb-grey-800-txt);
}

/* ---------------------------------- responsive ---------------------------------- */

@media screen and (max-width: 1500px) {
    .blb-profile-gallery-controls .prev {
        left: 0;
    }

    .blb-profile-gallery-controls .next {
        right: 0;
    }
}

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

    .blb-profile-gallery-shifter {
        width: 100%;
        display: grid;
        grid-template-areas:
            "tabs"
            "cards";
        grid-template-columns: 1fr;
        gap: var(--fluid-10);
    }

    .blb-profile-gallery-tabs
    {
        flex-direction: row;
        width: calc( 100vw - (2 * (var(--normal-spacing) + var(--fluid-10))) );
        flex-wrap: wrap;
        margin-bottom:35px;
    }

    .blb-profile-gallery-item {
        width:100%;
    }

}


@media screen and (max-width: 768px) {
    .blb-profile-gallery-controls>div>img {
        transform: scale(.65);
    }

    .blb-profile-gallery-tabs-container {
        width: calc( 100vw - (2 * (var(--normal-spacing) + var(--fluid-10))) );
        height: 60px;
        z-index: 9;
        background: var(--blb-grey-400);
        border-radius: 0.5rem;
    }

    .blb-profile-gallery-tabs
    {
        width: 100%;
        margin: 0;
    }

    .blb-profile-gallery-tabs-container:after {
        content:"";
        display:block;
        background-image:url("/wp-content/themes/pndo-starter-theme-gutenberg/blocks/faq/ic-arrow-down.svg");
        width:15px;
        height:15px;
        background-size:contain;
        background-repeat:no-repeat;
        right:15px;
        top:20px;
        position:absolute;
    }

    .blb-profile-gallery-tabs .blb-profile-gallery-tab {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        max-width: 100%;
        display:none;
    }

    .blb-profile-gallery-tab.active {
        display:flex;
    }

    .blb-profile-gallery-tabs-container.open {
    }

    .blb-profile-gallery-tabs-container.open .blb-profile-gallery-tabs {
        row-gap:0;
        background:var(--blb-grey-200);
        border-radius:var(--fluid-5);
        overflow:hidden;
        box-shadow:0px 0px 10px #00000047;
        display: flex;
        flex-direction: column;
    }

    .blb-profile-gallery-tabs-container.open .blb-profile-gallery-tab {
        position: initial;
        display:flex;
        background: var(--blb-grey-200);
        border-top:1px solid var(--blb-grey-400);
        border-radius:0;
    }

    .blb-profile-gallery-tabs-container.open .blb-profile-gallery-tab.active {
        background:var(--blb-grey-400);
        order: -1;
    }

    .blb-profile-gallery-tabs-container.open .blb-profile-gallery-tab:hover {
        background:var(--blb-grey-400);
    }

    .blb-profile-gallery-tabs-container.open .blb-profile-gallery-tab:first-child {
        border-top:0;
    }

    .blb-profile-gallery-item-text,
    .blb-profile-gallery-item-lien {
        font-size:var(--fs-16);
    }

}