/* Responsive Home Page */

/**
 * Home page basics
 * Home page button and links
 * Home hero carousel
 * Home hero carousel media queries and plate customisation
 * Home hero navigation (dots)
 * Home Tiles
 * Home Tile Media Queries and Customisation
 * Latest News Section
 * Community stories
 */

/**
 * Home page basics
 */
html {
    font-size: 10px;
}
body {
    background-color: #C8DEDD;
    width: 100%;
    overflow: hidden;
}
#gn-sub-placeholder {
    margin-bottom: 0;
}

/**
 * Home page button and links
 */
.home-link {
    margin-top: 2rem;
    display: inline-block;
    padding: 8px 25px 8px 25px;
    font-size: 1.4rem;
    line-height: 1.7rem;
    font-weight: 700;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 2px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.home-link.-large {
    padding: 1vw 2.7vw 1.4vw;
    color: #333;
    line-height: 2.4rem;
    border: 2px solid #333;
    border-radius: 2px;
    font-size: 1.6rem;
    min-width: 224px;
}
.home-button {
    background: #FFB400;
    border-radius: 2px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    padding: 6px 20px 8px 20px;
    display: inline-block;
}
.home-button:hover {
    color: #fff;
}

/**
 * Home hero carousel
 */
.home-hero {
    position: relative;
    overflow: hidden;
    max-width: 1440px;
    width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    background-color: #fff;
    font-family: 'Effra W02', 'Effra W10', 'Open Sans', sans-serif;
    -webkit-transition: height 0.2s;
    -o-transition: height 0.2s;
    transition: height 0.2s;
}
.home-hero-plate {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background-color: #fff;
}
.picture-container picture,
.picture-container {
    width: 100%;
    height: auto;
}
.picture-container .in-stock {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}
.picture-container picture img {
    display: block;
    position: relative;
    left: 50%;
    -ms-transform: translate(-50%, 0);
    -webkit-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
    width: 100%;
    max-height: 550px;
}
.home-hero-plate.active {
    position: relative;
    display: block;
}

.home-hero-plate:not(:first-child) {
    left: 1440px;
}
.home-hero-plate-details {
    position: relative;
    padding: 10px 10px 20px;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}
.home-hero-plate-details h1 {
    margin: 0 auto 1.4rem;
    font-size: 3.2rem;
    line-height: 3.4rem;
    color: #333333;
}
.home-hero-plate-details p {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 70%;
    font-size: 1.4rem;
    color: #000;
}
.home-hero-arrow {
    display: none;
    position: absolute;
    top: 0;
    width: 56px;
    height: 100%;
    background-color: rgba(0,0,0,.4);
    opacity: 0;
    transition: opacity .5s;
    z-index: 3;
}
.home-hero-arrow.-left {
    left: 0;
    background-image: url(https://images.blackmagicdesign.com/images/home/hero/arrow-left.svg?_v=1470269488);
    background-position: center center;
}
.home-hero-arrow.-right {
    right: 0;
    background-image: url(https://images.blackmagicdesign.com/images/home/hero/arrow-right.svg?_v=1470269537);
    background-position: center center;
}
.home-hero:hover .home-hero-arrow {
    opacity: 1;
}
.home-hero-arrow:hover {
    background-color: rgba(0,0,0,.5);
}
.home-hero-plate .home-hero-plate-details .technology {
    margin-top: 20px;
    display: none;
}
.home-hero-plate.reverse .home-hero-plate-details h1,
.home-hero-plate.reverse .home-hero-plate-details p {
    color: #333333;
}
.home-hero-plate.reverse .home-hero-plate-details .home-link {
    color: #333333;
    border-color: #333333;
}


/**
 * Home hero carousel media queries and plate customisation
 */
/* Proportial value (vw) calculated as as Desktop pixel value (px) ÷ 10 */
@media only screen and (min-width: 600px) and (max-width: 999px) {
    .picture-container picture img {
        width: 100%;
    }
    .home-hero-plate .home-hero-plate-details {
        position: absolute;
        padding: 0 56px;
        top: 4vw;
    }
    .home-hero-plate .home-hero-plate-details h1 {
        font-size: 4.3vw;
        line-height: 4.6vw;
        margin-bottom: 0.5vw;
        color: #fff;
    }
    .home-hero-plate-details p {
        font-size: 2.2vw;
        line-height: 2.7vw;
        font-weight: 500;
        color: #fff;
    }
    .home-link.-large {
        margin-top: 2vw;
        min-width: 31.8vw;
        padding: 1vw 2.7vw 1.4vw;
        font-size: 2.8vw;
        line-height: 3.4vw;
        border: 0.35vw solid #fff;
        border-radius: 0.2vw;
        font-weight: 500;
        color: #fff;
        text-align: center;
    }
    .home-hero .home-hero-navigation {
        bottom: 1vw;
    }
    .home-hero-arrow {
        display: block;
    }


    /* Fairlight */
    .fairlight .home-hero-plate-details {
        text-align: left;
    }
    .fairlight .home-hero-plate-details p {
        width: 50vw;

        margin-left: 0;
    }
    .japanese .fairlight .home-hero-plate-details p {
        width: 66vw;
    }

    /* Ultimatte */
    .ultimatte .home-hero-plate-details {
        top: 10vw;
        text-align: left;
    }
    .ultimatte .home-hero-plate-details p {
        width: 36.2vw;
        margin-left: 0;
    }

    /* Teranex AV */
    .teranex-av .home-hero-plate-details {
        top: auto;
        bottom: 6vw;
    }
    .teranex-av .home-hero-plate-details p {
        width: 70vw;
    }

    /* DeckLink Mini */
    .home-hero-plate.decklink-mini .home-hero-plate-details {
        top: 10vw;
        max-width: 49vw;
        left: 47.5%;
        padding: 0;
        text-align: left;
    }
    .home-hero-plate.decklink-mini .home-hero-plate-details p {
        width: 40vw;
        margin-left: 0;
    }
    .home-hero-plate.decklink-mini .home-hero-plate-details .technology {
        display: block;
        margin-top: 2vw;
        width: 24vw;
        height: auto;
    }

    /* HyperDeck Studio 12G */
    .hyperdeck-studio-12g .home-hero-plate-details p {
        width: 86vw;
    }

    /* Blackmagic Video Assist 2.2 */
    .home-hero-plate.video-assist-22 .home-hero-plate-details {
        max-width: 49vw;
        left: 44%;
        padding: 0;
        text-align: left;
    }
    .home-hero-plate.video-assist-22 .home-hero-plate-details p {
        width: 100%;
    }

    /* DaVinci Resolve 12.5.2 */
    .resolve-1252 .home-hero-plate-details p {
        width: 60vw;
    }

    /* Fusion 8.2 */
    .fusion-82-full .home-hero-plate-details p {
        width: 59vw;
    }
}
@media only screen and (min-width: 1000px) {
    .picture-container picture img {
        width: 1440px;
        height: 550px;
    }
    .home-hero-plate .home-hero-plate-details .technology {
        display: block;
    }
    .home-hero-plate-details {
        position: absolute;
        padding: 0 56px;
        top: 4rem;
    }
    .home-hero-plate-details h1 {
        max-width: 960px;
        font-size: 4.3rem;
        line-height: 4.6rem;
        margin-bottom: 5px;
        color: #fff;
    }
    .home-hero-plate-details p {
        font-size: 2.2rem;
        line-height: 2.7rem;
        font-weight: 500;
        color: #fff;
    }
    .home-link.-large {
        min-width: 318px;
        font-weight: 500;
        padding: 8px 27px 14px 27px;
        font-size: 2.8rem;
        line-height: 3.4rem;
        border: 3px solid #fff;
        color: #fff;
        text-align: center;
    }
    .home-hero-arrow {
        display: block;
    }

    /* Fairlight */
    .fairlight .home-hero-plate-details {
        text-align: left;
        max-width: calc(960px + 56px + 56px);
        left: 50%;
        -webkit-transform: translate(-50%, 0);
        -ms-transform: translate(-50%, 0);
        -o-transform: translate(-50%, 0);
        transform: translate(-50%, 0);
    }
    .fairlight .home-hero-plate-details p {
        width: 50rem;
        margin-left: 0;
    }
    .japanese .fairlight .home-hero-plate-details p {
        width: 66rem;
    }

    /* Ultimatte */
    .ultimatte .home-hero-plate-details {
        top: 100px;

        text-align: left;
        max-width: calc(960px + 56px + 56px);
        left: 50%;
        -webkit-transform: translate(-50%, 0);
        -ms-transform: translate(-50%, 0);
        -o-transform: translate(-50%, 0);
        transform: translate(-50%, 0);
    }
    .ultimatte .home-hero-plate-details p {
        width: 36.2rem;
        margin-left: 0;
    }

    /* Teranex AV */
    .teranex-av .home-hero-plate-details {
        top: auto;
        bottom: 60px;
    }
    .teranex-av .home-hero-plate-details p {
        width: 70rem;
    }

    /* DeckLink Mini */
    .decklink-mini .home-hero-plate-details {
        top: 100px;
        width: 512px;
        left: 47.5%;
        padding: 0;
        text-align: left;
    }
    .decklink-mini .home-hero-plate-details p {
        margin-left: 0;
    }

    /* HyperDeck Studio 12G */
    .hyperdeck-studio-12g .home-hero-plate-details p {
        width: 86rem;
    }

    /* Blackmagic Video Assist 2.2 */
    .video-assist-22 .home-hero-plate-details {
        width: 512px;
        left: 44%;
        padding: 0;
        text-align: left;
    }
    .home-hero-plate.video-assist-22 .home-hero-plate-details p {
        margin: 0;
    }

    /* DaVinci Resolve 12.5.2 */
    .resolve-1252 .home-hero-plate-details p {
        width: 60rem;
    }

    /* Fusion 8.2 */
    .fusion-82-full .home-hero-plate-details p {
        width: 59rem;
    }
}
/* End of Plate Customisation */

/**
 * Home hero navigation (dots)
 */
.home-hero-navigation {
    position: absolute;
    bottom: 10px;
    width: 100%;
    margin: 0;
    z-index: 3;
    list-style: none;
    text-align: center;
}
.home-hero-navigation li {
    position: relative;
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 10px;
}
.home-hero-navigation a {
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    overflow: hidden;
    text-indent: 100%;
    border-radius: 50%;
    border-style: solid;
    border-width: 2px;
    border-color: rgba(255,255,255,.6);
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.home-hero-navigation a.current {
    background-color: rgba(255,255,255,1);
}
.home-hero-navigation a:hover {
    border-color: rgba(255,255,255,.8);
}

/**
 * Home Tiles
 */
.home-promos {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Effra W02', 'Effra W10', 'Open Sans', sans-serif;
    overflow: hidden;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.home-promo {
    margin-bottom: 10px;
    position: relative;
}
.home-promo:last-child {
    margin-bottom: 0;
}
.home-promo-large {
    overflow: hidden;
    width: 100%;
}
.home-promo-small {
    overflow: hidden;
}
.home-promo-tile {
    text-align: center;
}
.home-promo-tile picture img {
    position: relative;
    left: 50%;
    -webkit-transform: translate(-50%, 0);
    -ms-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
}
.home-promo-tile-details {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    padding: 14px 20px 0;
    color: #fff;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.home-promo-tile-details h2 {
    margin-bottom: 6px;
    font-size: 2.2rem;
    line-height: 2.4rem;
    font-weight: 700;
}
.home-promo-tile-details p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.5rem;
    line-height: 1.9rem;
    font-weight: 400;
}
.home-promo-tile-details p.price {
    font-weight: 600;
}
.home-promo-tile.reverse .home-promo-tile-details {
    color: #333333;
}
.home-promo-tile.reverse .home-link {
    color: #333333;
    border-color: #333333;
}

/* Home Tile Media Queries and Customisation */
/* WFX 2016 */
.home-promo-tile.wfx-2016 {
    text-align: center;
}
.home-promo-tile.wfx-2016 .home-promo-tile-details h2 {
    margin-top: 17.5rem;
}
/* Photokina */
.home-promo-tile.photokina {
    text-align: center;
}
.home-promo-tile.photokina .home-promo-tile-details img {
    margin-top: 6rem;
    margin-bottom: 5rem;
}
.home-promo-tile.photokina .home-promo-tile-details p {
    margin-top: 1rem;
    margin-bottom: 1rem;
    line-height: 2rem;
}
.italian .home-promo-tile.photokina .home-promo-tile-details img {
    margin-bottom: 3rem;
}

@media only screen and (min-width: 600px) {
    .home-promo-large.large-to-small,
    .home-promo-small {
        float: left;
        width: calc(50% - 5px);
        margin-right: 10px;
    }
    .home-promo-large.large-to-small + .home-promo-small,
    .home-promo-small + .home-promo-small {
        margin-right: 0;
    }
    .home-promo-tile {
        text-align: left;
    }
    .home-promo-tile-details h2 {
        font-size: 2.6rem;
        line-height: 2.6rem;
    }
    .home-promo-tile-details p {
        font-size: 1.4rem;
    }

    /* Teranex AV */
    .home-promo-tile.teranex-av .home-promo-tile-details p {
        width: 400px;
    }
    /* Video Assist 2.2 */
    .home-promo-tile.video-assist-22 .home-promo-tile-details p {
        width: 400px;
    }
    /* WFX 2016 */
    .home-promo-tile.wfx-2016 .home-promo-tile-details h2 {
        margin-top: 14.5rem;
        margin-bottom: 1rem;
    }
    /* Photokina 2016 */
    .home-promo-tile.photokina .home-promo-tile-details img {
        height: auto;
        margin-top: 4rem;
        margin-bottom: 2rem;
    }
}
@media only screen and (min-width: 1000px) {
    .home-promos {
        padding: 20px 0;
        width: calc(100% - 40px);
        max-width: 1000px;
    }
    .home-promo.second {
        float: right;
        margin-right: 0;
    }
    .home-promo-large.large-to-small,
    .home-promo-large {
        width: calc(((100% / 3) * 2) - 5px);
        max-width: 661px;
    }
    .home-promo-small {
        width: calc((100% / 3) - 5px);
        max-width: 329px;
    }

    /* Camera 4.0 Beta 2 */
    .home-promo-tile.camera-40 .home-promo-tile-details h2 {
        font-size: 3.8rem;
        line-height: 4rem;
        width: 440px;
    }
    .home-promo-tile.camera-40 .home-promo-tile-details p {
        width: 235px;
    }
}

/**
 * Latest News Section
 */
.home-news {
    margin-bottom: 26px;
    font-family: 'Effra W02', 'Effra W10', 'Open Sans', sans-serif;
}
.home-news-title {
    margin-bottom: 22px;
    font-family: 'Open Sans', sans-serif;
    font-size: 2.5rem;
    line-height: 3rem;
    color: #12212E;
    text-align: center;
    padding: 0 20px;
}
.home-news-tiles {
    padding: 0 15px;    
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-justify-content: space-between;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.home-news-tile {
    width: 100%;
    padding: 10px;
    margin: 5px;
    background-color: #fff;
    font-family: 'Open Sans', sans-serif;
    color: #12212E;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.home-news-tile h3 {
    font-size: 1.3rem;
    line-height: 1.9rem;
}
.home-news-tile p {
    font-size: 1.3rem;
    line-height: 1.9rem;
}

@media only screen and (min-width: 600px) {
    .home-news-tiles {
        padding: 0;
        max-width: 1000px;
        width: calc(100% - 40px);
    }
    .home-news-tile {
        width: calc(50% - 5px);
        margin: 5px 0;
        margin-right: 10px;
    }
    .home-news-tile:nth-child(even) {
        margin-right: 0;
    }
}

@media only screen and (min-width: 1040px) {
    .home-news-tile {
        margin: 0;
        margin-right: 10px;
        width: calc((100% / 4) - 10px);
    }
    .home-news-tile:nth-child(even) {
        margin-right: 10px;
    }
    .home-news-tile:nth-child(4) {
        margin-right: 0;
    }
}

/**
 * Community stories
 */
.home-stories {
    padding-bottom: 25px;
    padding-top: 20px;
    background-color: #12212E;
    text-align: center;
}
.home-story-tiles {
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
    text-align: left;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.home-story-tile {
    width: calc(100% - 40px);
    position: relative;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.25);
}
.home-story-tile img {
    width: 100px;
    height: auto;
}
.home-story-title {
    position: absolute;
    top: 9px;
    left: 115px;
    pointer-events: none;
    width: calc(100% - 115px);

    -webkit-box-flex: 1;
        -ms-flex-positive: 1;
            flex-grow: 1;
    margin-bottom: 5px;
    font-size: 1.8rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.home-story-tile a {
    display: block;
    margin-bottom: 11px;
    overflow: hidden;
}
.home-story-name {
    position: absolute;
    top: 41px;
    left: 115px;
    pointer-events: none;
    width: calc(100% - 115px);

    font-size: 1.6rem;
    line-height: 1.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.home-stories .home-button {
    margin: 15px 20px 0;
}

@media only screen and (min-width: 400px) {
    .home-story-tile img {
        width: 150px;
        height: auto;
    }
    .home-story-title {
        top: 28px;
        left: 165px;
        width: calc(100% - 165px);
    }
    .home-story-name {
        top: 60px;
        left: 165px;
        width: calc(100% - 165px);
    }
}
@media only screen and (min-width: 768px) {
    .home-stories {
        padding-top: 32px;
    }
    .home-story-tiles {
        width: calc(100% - 40px);
        max-width: 746px;
    }
    .home-story-tile {
        width: calc((100% / 3) - (21px / 3));
        margin-right: 10px;
        border-bottom: 0;
    }
    .home-story-tile:nth-child(3) {
        margin-right: 0;
    }
    .home-story-tile:nth-child(4) {
        display: none;
    }
    .home-story-title {
        position: relative;
        top: auto;
        left: auto;
        width: 242px;
    }
    .home-story-tile img {
        height: auto;
        width: auto;
    }
    .home-story-name {
        position: relative;
        top: auto;
        left: auto;
        width: 242px;
    }
}
@media only screen and (min-width: 1000px) {
    .home-story-tiles {
        width: calc(100% - 40px);
        max-width: 1000px;
    }
    .home-story-tile {
        width: calc((100% / 4) - (30.1px / 4));
    }
    .home-story-tile:nth-child(3) {
        margin-right: 10px;
    }
    .home-story-tile:nth-child(4) {
        display: block;
        margin-right: 0;
    }
}
