/* Fonts */
@font-face {
    font-family: 'Futura Book';
    src: url('../fonts/futurabookc-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Futura Demi';
    src: url('../fonts/futurademic-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

/* Main wrap */
.b-specproject {
    padding: 0 5px;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
}

@media (max-width: 1030px) {
    .b-specproject {
        padding: 0 20px;
    }
}

/* Reset */
.b-specproject * {
    margin: 0;
    padding: 0;
    font: inherit;
    box-sizing: border-box;
}

/* Intro image */
.b-specproject__intro-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 350px;
    margin-bottom: 20px;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
}

.b-specproject__intro-img:before {
    content: '';
    display: block;
    width: 1px;
    margin: 0 0 0 -1px;
    padding: calc(327 / 700 * 100%) 0 0;
}

/* Header */
.b-specproject__header {
    width: 810px;
    height: 230px;
    color: #000;
    background: #fff;
    border: 1px solid #ca2142;
    text-align: justify;
    padding: 10px 20px 18px;
}

.b-specproject__header-text {
    font: normal 400 16px/24px 'Futura Book', sans-serif;
}

.b-specproject__header-text a {
    color: inherit;
    text-decoration: underline;
}

.b-specproject__header-text a:hover {
    color: inherit;
    text-decoration: none;
}

.b-specproject__header-link {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px auto 0;
    width: 165px;
    height: 40px;
    font: normal 600 19px/1 'Futura Demi', sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    color: #4e3c24;
    background: linear-gradient(122deg, rgba(183,149,59,1) 0%, rgba(236,216,137,1) 65%, rgba(183,149,59,1) 100%);
    transition: all 0.3s;
}

/* Blocks */
.b-specproject__blocks-row {
    display: flex;
    margin: 0 0 20px;
}

.b-specproject__blocks-col {
    flex: 0 0 auto;
}

.b-specproject__blocks-col + .b-specproject__blocks-col {
    margin-left: 20px;
}

.b-specproject__blocks-col--w1 {
    width: 810px;
}

.b-specproject__blocks-col--w2 {
    width: 300px;
}

.b-specproject__block {
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 400px;
    border: 1px solid #ca2142;
}

.b-specproject__block:hover {
    color: inherit;
}

.b-specproject__block + .b-specproject__block {
    margin-left: 20px;
}

.b-specproject__block--w3 {
    width: 300px;
    height: 600px;
    border: none;
    display: block;
}

.b-specproject__block-content {
    display: flex;
    flex-direction: column;
    margin: 0 5px 15px 10px;
}

.b-specproject__block-title {
    font: normal 600 18px/22px 'Futura Demi', sans-serif;
    margin-bottom: 10px;
}

.b-specproject__block-name {
    font: normal 600 20px/24px 'Futura Demi', sans-serif;
    color: #ca2142;
}

.b-specproject__block-text {
    font: normal 400 16px/18px 'Futura Book', sans-serif;
    margin-bottom: 20px;
}

.b-specproject__block-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 165px;
    height: 40px;
    margin: 0 auto;
    font: normal 600 19px/1 'Futura Book', sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    color: #4e3c24;
    background: linear-gradient(122deg, rgba(183,149,59,1) 0%, rgba(236,216,137,1) 65%, rgba(183,149,59,1) 100%);
    transition: all 0.3s;
}

.b-specproject__block-img-container {
    height: 100%;
}

.b-specproject__block-img {
    display: block;
    height: 100%;
}

/* iframe video */
.b-specproject__video {
    position: relative;
    width: 100%;
    height: auto;
}

.b-specproject__video:before {
    content: '';
    display: block;
    width: 100%;
    padding: calc(315 / 560 * 100%) 0 0;
}

.b-specproject__video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Slider */
.b-specproject__slider {
    width: 100%;
    overflow: hidden;
}

.b-specproject__slides {
    position: relative;
    display: flex;
    margin: 0 0 20px;
    user-select: none;
    -webkit-touch-callout: none;
    -khtml-user-select: none;
    -ms-touch-action: pan-y;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

.b-specproject__slide {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    width: calc(100% / 3 - 13px);
    min-height: 100%;
    border: 1px solid #ca2142;
    will-change: transform;
}

a.b-specproject__slide,
a.b-specproject__slide:hover {
    color: inherit;
    text-decoration: none;
}

[data-keen-slider-moves] .b-specproject__slide {
    pointer-events: none;
}

.b-specproject__slide > * {
    width: 100%; /* Fix IE flex column bug */
}

.b-specproject__slide + .b-specproject__slide {
    margin-left: 20px;
}

.b-specproject__slider--initialized .b-specproject__slide {
    width: auto;
    margin: 0;
}

.b-specproject__slide-img-container {
    position: relative;
}

.b-specproject__slide-img-container:before {
    content: '';
    display: block;
    width: 100%;
    padding: calc(220 / 328 * 100%) 0 0;
}

.b-specproject__slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.b-specproject__slide-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 10px;
}

.b-specproject__slide-content > * {
    width: 100%; /* Fix IE flex column bug */
}

.b-specproject__slide-title {
    margin: 0 0 15px;
    font: normal 400 20px/24px 'Futura Demi', sans-serif;
}

.b-specproject__slide-name {
    font: normal 400 20px/24px 'Futura Demi', sans-serif;
    color: #ca2142;
}

.b-specproject__slide-text {
    margin: 0;
    font: normal 400 18px/20px 'Futura Book', sans-serif;
}

.b-specproject__slide-text:before {
    content: '«';
    position: relative;
    top: -35px;
    float: left;
    width: 28px;
    height: 29px;
    margin: 0 5px 0 0;
    font: normal 400 77px/1 'Futura Book', sans-serif;
    color: #ca2142;
}

.b-specproject__slide-text--before-empty:before {
    content: none;
}

.b-specproject__slider-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
}

.b-specproject__slider-page {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 5px;
    background: #c5c5c5;
    border: none;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
}

.b-specproject__slider-page:focus,
.b-specproject__slider-page:hover,
.b-specproject__slider-page--active {
    background: #ca2142;
}

/* Archive */
.b-specproject__block-archive {
    height: auto;
}

.b-specproject__block-img-archive {
    width: 100%;
}

@media (max-width: 1030px) {
    .b-specproject__header {
        width: 100%;
        height: auto;
        padding: 15px;
        text-align: center;
    }
    
    .b-specproject__blocks-row {
        flex-wrap: wrap;
    }

    .b-specproject__blocks-col {
        width: 100%;
        margin: 0;
    }

    .b-specproject__blocks-col + .b-specproject__blocks-col {
        margin: 20px 0 0;
    }

    .b-specproject__block {
        width: 100%;
        margin: 0;
    }

    .b-specproject__block-img {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .b-specproject__intro-img:before {
        padding: calc(448 / 640 * 100%) 0 0;
    }
    
    .b-specproject__blocks-row {
        justify-content: center;
    }

    .b-specproject__block {
        flex-direction: column;
        justify-content: space-between;
        height: auto;
        color: inherit;
        text-decoration: none;
    }

    .b-specproject__block--reverse {
         flex-direction: column-reverse;
     }

    .b-specproject__block + .b-specproject__block {
        margin-left: 0;
        margin-top: 20px;
    }

    .b-specproject__block-content {
        margin: 0;
        padding: 40px 30px 20px;
    }

    .b-specproject__block-img-container {
        width: 100%;
    }

    .b-specproject__slide {
        width: 100%;
    }

    .b-specproject__slide + .b-specproject__slide {
        margin-left: 0;
    }
}

/* Share */
.b-specproject__share {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0 30px;
}

.b-specproject__share-title {
    font: normal 400 14px/1 Arial, sans-serif;
}

.b-specproject__share-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 0 20px;
}

.b-specproject__share-btn {
    position: relative;
    display: block;
    width: 30px;
    height: 30px;
    font-size: 1px;
    color: #fff;
    background: #4e3c24;
    border: 1px solid #4e3c24;
    border-radius: 50%;
    overflow: hidden;
    transition: background 0.3s;
}

.b-specproject__share-btn + .b-specproject__share-btn {
    margin-left: 5px;
}

.b-specproject__share-btn:focus:active {
    outline: none;
}

.b-specproject__share-btn:hover {
    background: #775930;
    color: #fff;
    border: 1px solid #775930;
}

.b-specproject__share-btn svg {
    position: absolute;
    top: 50%;
    left: 50%;
    fill: currentColor;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

/* Hide the search form of the main layout */
#search-form {
    display: none;
}