.d-none {
    display: none;
}

/*
fix for error:
"[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive."
see https://stackoverflow.com/q/42455548
*/
[js-role="owl-carousel"] {
    touch-action: manipulation;
}

.designers-loft {
    margin-top: 25px;
    position: relative;
}

.designers-loft__picture {
    height: 393px;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left;
    background-image: url(/img/designers/loft_mob.jpg);
}

.letter-selector {
    margin-top: 11px;
}

.letter-selector__all {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 50px;
    background: #F7F7F7;
    border-radius: 4px;
    font-family: Montserrat;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    color:black;
}

.letter-selector__all:hover {
    background: #fafafa;
    box-shadow: inset -1px -1px 4px #eaeaea, 1px 1px 5px#eaeaea;
    text-decoration: underline;
}

.letter-selector__all:active {
    background: #fafafa;
    box-shadow: inset 1px 1px 4px #d9d9d9, inset 1px 1px 4px #ffffff;
}

.alphabet {
    position: relative;
    margin-top: 4px;
    height: 50px;
}

.alphabet .owl-stage {
    display: flex;
}

.alphabet .owl-item {
    min-width: 30px;
    max-width: 30px;
}

.alphabet__letter {
    width: 100%;
    height: 50px;
    background: #F7F7F7;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 17px;
    color: #000000;
}

.alphabet__letter:hover {
    background: #fafafa;
    box-shadow: inset -1px -1px 4px #eaeaea, 1px 1px 5px#eaeaea;
    text-decoration: underline;
}

.alphabet__letter:active {
    background: #fafafa;
    box-shadow: inset 1px 1px 4px #d9d9d9, inset 1px 1px 4px #ffffff;
}

.selected-letter {
    color: #9C0F0C;
}

.alphabet .owl-stage-outer {
    left: 42px;
    position: absolute;
    width: calc(100% - 84px);
    overflow: hidden;
    z-index: 1;
}

.alphabet .owl-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 0;
}

.alphabet .owl-nav.disabled {
    display: none;
}

.alphabet .owl-nav button {
    width: 40px;
    height: 50px;
    border: none;
    background: #F7F7F7;
    cursor: pointer;
}

.alphabet .owl-nav button.disabled {
    cursor: auto;
}

.alphabet .owl-nav button:not(.disabled):hover {
    background: #fafafa;
    border: 1px solid #cdcdcd;
    box-shadow: inset -1px -1px 4px #eaeaea, 1px 1px 5px#eaeaea;
}

.alphabet .owl-nav button:not(.disabled):active {
    background: #fafafa;
    border: 1px solid #d9d9d9;
    box-shadow: inset 1px 1px 4px #d9d9d9, inset 1px 1px 4px #ffffff;
}

.alphabet .owl-nav .owl-prev {
    float: left;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.alphabet .owl-nav .owl-next {
    float: right;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.alphabet .owl-nav button img {
    height: 23px;
    width: 12px;
}

.alphabet .owl-nav button.disabled img {
    opacity: .5;
}


.group-letter {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 58px;
    height: 58px;
    background: #F7F7F7;
    font-weight: 500;
    font-size: 24px;
    line-height: 29px;
    text-align: center;
    color: #9C0F0C;
}

.group-letter-wrap {
    border-bottom: 1px solid #ECECEC;
    margin-bottom: 29px;
    margin-top: 27px;
}


.designer-info__main {
    position: relative;
    display: block;
    width: 280px;
    margin: 0 auto;
}

.designer-info__picture {
    display: block;
    /* width: 100%; */
    width: auto;
    height: auto;
    /* margin: auto; */
    max-width: 280px;
    border-radius: 4px;
    margin-bottom: 21px;
}

.designer-info__full-name-ru {
    display: block;
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    margin: 4px 0;
    color: black;
    cursor: pointer;
}

.designer-info__full-name-ru:hover {
    text-decoration: underline;
}

.designer-info__full-name-en {
    font-weight: 300;
    font-size: 18px;
    line-height: 22px;
    margin: 4px 0;
}

.designer-info__location {
    font-weight: 300;
    font-size: 14px;
    line-height: 17px;
    margin-top: 10px;
}

.designer-info__link {
    display: inline-block;
    position: relative;
    padding: 10px 20px 12px;
    background: #9C0F0C;
    font-weight: 600;
    font-size: 14px;
    line-height: 17px;
    color: white;
    text-decoration: none;
    margin-top: 21px;
}

.designer-info__link:hover {
    box-shadow: 1px 4px 8px rgb(156 15 12 / 30%);
}

.designer-gallery {
    margin-top: 21px;
}


@media (min-width: 576px) {
    /* tablet */
    .designer-info .designer-gallery {
        min-width: 400px;
    }
}

@media (min-width: 768px) {
    /* desctop */

    .designers-loft__picture {
        margin-top: 34px;
        background-image: url(/img/designers/loft_desk.jpg);
    }

    .designer-info {
        display: flex;
    }

    .designer-info__main {
        flex: 1;
        display: flex;
        margin-right: 40px;
    }

    .designer-info__picture {
        flex: 0;
        width: 200px;
    }

    .designer-info__text-block {
        flex: 1;
        padding-left: 21px;
    }

    .designer-info .designer-gallery {
        flex: 0;
        margin: 0 40px;
    }

    .designer-info .designer-gallery .owl-stage {
        margin: 0;
    }
}

@media (min-width: 992px) {
    /* large desctop */

    .letter-selector {
        position: absolute;
        display: flex;
        flex-flow: row;
        bottom: 19px;
        left: 19px;
        width: calc(100% - 2*19px);
    }

    .letter-selector__all {
        flex: 0;
        height: auto;
        border-radius: 0;
        padding: 13px;
    }

    .letter-selector__alphabets {
        flex: 1;
    }

    .alphabet {
        margin-top: 0;
        height: 49px;
    }

    .alphabet .owl-stage-outer {
        left: 3px;
        max-width: calc(100% - 3px);
        width: auto;
        overflow: visible;
        background: #F7F7F7;
        height: 100%;
    }

    .alphabet .owl-stage {
        padding: 10px 25px;
        height: 100%;
        width: auto !important;
    }

    .alphabet__letter {
        height: 100%;
        padding: 5px;
    }

    .designer-info .designer-gallery {
        min-width: 600px;
    }
}



.designer-gallery__item {
    position: relative;
    display: block;
}
.designer-gallery__item-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}