/* BY TYPE+LINE */
.by {
    font-weight: 700;
}

.by__header {
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.by__header a {
    color: #b6b6b6;
    cursor: pointer;
}

.by__nav {
    border-bottom: 1px solid #b6b6b6;
    display: block;
}

.by__tab {
    display: block;
    padding: 1rem 20px;
    line-height: 1;
}

@media (min-width: 576px) {
    .by__tab {
        display: inline-block;
    }

    .by__tab:first-child {
        margin-right: 30px;
        text-align: right;
    }

    .by__tab:last-child {
        margin-left: 30px;
    }
}

.by__tab.active {
    color: #0062b0;
}

.by__tab-content {
    padding: 0.5rem 0;
}

.by-box__container {
    padding: 1rem 0;
}

.by-box {
    box-shadow: 1px 1px 1px 0px rgba(0, 0, 0, 0.5);
}

@media (min-width: 992px) {
    .by-box {
        font-size: 1.1rem;
    }
}

.by-box__link {
    display: block;
    background: url('http://release.metascale.co.uk/placeholder/420x280');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.by-box__link--type {
    /* background-position: bottom; */
}

.by-box__link--line {
    background-position: top;
}

@media (min-width: 576px) {
    .by-box__link {
        background-position: center !important;
    }
}

.by-box__link:hover {
    background-size: 125%;
    transition: all 1s ease-out;
}

.by-box__image {
    background: rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.by-box__image:hover {
    background: rgba(0, 0, 0, 0);
    transition: all 1s ease-out;
}

.by-box__img {
    width: 1px;
    height: 90px;
}

@media (min-width: 992px) {
    .by-box__img {
        height: 200px;
    }
}

/* https://css-tricks.com/centering-css-complete-guide/ */
.by-box__overlay {
    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    color: #fff;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}



.by-box__image img {
    opacity: 0.50;
}

.by-box__image:hover img {
    opacity: 1;
    transform: scale(1.33);
    transition: all 1s ease-out;
}