/* These are the default albums styles to place the image and then hover the text. */
/* This works fine for the blogs. */
.album-wrapper {
    z-index: 100;
    padding-top: 100%;
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
    margin-bottom: 2rem;
}
.album-background {
    z-index: 200;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    overflow: hidden;
}
.album-layover {
    z-index: 300;
}

.album-background .field--type-image {
    height: 100%;
    width: 100%;
}

.album-background img {
    width: 100%;
    height: 100% !important;
    object-fit: cover !important;
    box-sizing: border-box;
}



/*

.album-wrapper {
    z-index: 100;
    overflow: hidden;
    margin-bottom:2rem;
}
.album-background {
    z-index: 200;
    padding-top: 100%;
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
}
.album-layover {
    z-index: 300;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    overflow: hidden;
}
*/

/* Default Product album */
.latest-product .product-teaser .product-album-bkgd {
    background-image: url("../images/global/workout-album-bkgd.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    padding-bottom: 100%;
    z-index: 300;
    position: relative;
    margin-bottom: 3rem;
    margin-top: 2rem;
    background-size: cover;
    background-repeat: no-repeat;
}
/* Default Podcast album */
.latest-podcast .podcast-teaser .podcast-album-bkgd {
    background-image: url("../images/global/podcast-album-bkgd.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    padding-bottom: 100%;
    z-index: 300;
    position: relative;
    margin-bottom: 3rem;
}

.product-teaser .product-album-bkgd > .product-album,
.podcast-teaser .podcast-album-bkgd > .podcast-album {
    position: absolute;
    top:0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 400;
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
}

.product-teaser .product-overlay,
.podcast-teaser .podcast-overlay {
    z-index: 500;
    overflow: hidden;
    padding:1rem;
    text-align: center;
    background-color: unset;
    -webkit-transition: background-color ease-in-out 400ms;
    -moz-transition: background-color ease-in-out 400ms;
    -o-transition: background-color ease-in-out 400ms;
    transition: background-color ease-in-out 400ms;
    /* This helps to center the text better */
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-direction: normal;
    -moz-box-direction: normal;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -moz-box-pack: justify;
    -webkit-justify-content: space-around;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    -webkit-align-content: center;
    -ms-flex-line-pack: center;
    align-content: center;
    -webkit-box-align: center;
    -moz-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    height: 100%;
}

.product-teaser .product-overlay {
    background-color: rgba(0,0,0,.35);
}

.product-teaser .product-overlay h2,
.podcast-teaser .podcast-overlay h2,
.product-teaser .product-overlay h2 a,
.podcast-teaser .podcast-overlay h2 a {
    color: #000;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: .005rem;
    -webkit-transition: color ease-in-out 400ms;
    -moz-transition: color ease-in-out 400ms;
    -o-transition: color ease-in-out 400ms;
    transition: color ease-in-out 400ms;
}

/* Products has a different color */
.product-teaser .product-overlay h2,
.product-teaser .product-overlay h2 a {
    color: #fff;
}

.product-teaser .product-overlay:hover,
.podcast-teaser .podcast-overlay:hover {
    background: #000;
    background-color: rgba(0,0,0,.85);
    -webkit-transition: background-color ease-in-out 800ms;
    -moz-transition: background-color ease-in-out 800ms;
    -o-transition: background-color ease-in-out 800ms;
    transition: background-color ease-in-out 800ms;
}
.product-teaser .product-teaser .product-album-bkgd:hover,
.podcast-teaser .podcast-teaser .podcast-album-bkgd:hover {
    -webkit-filter: sepia(10%) contrast(80%) saturate(300%);
    filter: sepia(10%) contrast(80%) saturate(300%);
    -webkit-transition: all linear 200ms;
    -moz-transition: all linear 200ms;
    -o-transition: all linear 200ms;
    transition: all linear 200ms;
}
/* Product */
.product-teaser .product-overlay:hover h2 a,
.product-teaser .product-overlay h2 a:hover,
.product-teaser .product-overlay h2 a:active,
.product-teaser .product-overlay h2 a:focus,
/* Podcast */
.podcast-teaser .podcast-overlay:hover h2 a,
.podcast-teaser .podcast-overlay h2 a:hover,
.podcast-teaser .podcast-overlay h2 a:active,
.podcast-teaser .podcast-overlay h2 a:focus {
    color: #fc0691;
    -webkit-transition: color ease-in-out 600ms;
    -moz-transition: color ease-in-out 600ms;
    -o-transition: color ease-in-out 600ms;
    transition: color ease-in-out 600ms;
}
.product-teaser .product-overlay:hover .product-title,
.podcast-teaser .podcast-overlay:hover .podcast-title {
    color: #fff;
    -webkit-transition: color ease-in-out 800ms;
    -moz-transition: color ease-in-out 800ms;
    -o-transition: color ease-in-out 800ms;
    transition: color ease-in-out 800ms;
}
.product-teaser .field--name-field_program_image img,
.podcast-teaser .field--name-field-podcast-image img {
    width: 100%;
    height: auto;
}

.node--view-mode-album-product-teaser.product-teaser .product-overlay .product-title,
    /* @todo Remove the below products when everything is fixed */
.node--view-mode-program-product-teaser.product-teaser .product-overlay .product-title,
.node--view-mode-overview-podcast-teaser.podcast-teaser .podcast-overlay .podcast-title {
    -webkit-box-ordinal-group: 1;
    -moz-box-ordinal-group: 1;
    -webkit-order: 0;
    -ms-flex-order: 0;
    order: 0;
    -webkit-box-flex: 0;
    -moz-box-flex: 0;
    -webkit-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    -webkit-align-self: auto;
    -ms-flex-item-align: auto;
    align-self: auto;
}
.node--view-mode-album-product-teaser.product-teaser .product-overlay h2,
    /* @todo Remove the below products when everything is fixed */
.node--view-mode-program-product-teaser.product-teaser .product-overlay h2,
.node--view-mode-overview-podcast-teaser.podcast-teaser .podcast-overlay h2 {
    -webkit-box-ordinal-group: 1;
    -moz-box-ordinal-group: 1;
    -webkit-order: 0;
    -ms-flex-order: 0;
    order: 0;
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    -webkit-align-self: auto;
    -ms-flex-item-align: auto;
    align-self: auto;
    margin-top: 10%;

}

/* Here we set our initial album margin for desktop width */
/* Products */
.view-product .view-content > .four.columns:nth-child(4),
.view-product .view-content > .four.columns:nth-child(7),
.view-product .view-content > .four.columns:nth-child(10),
/* @todo Remove the below products when everything is fixed */
.view-program-products .view-content > .four.columns:nth-child(4),
.view-program-products .view-content > .four.columns:nth-child(7),
.view-program-products .view-content > .four.columns:nth-child(10),
/* Podcast */
.block-views-blockpodcast-latest-podcast-block .view-content > .four.columns:nth-child(4),
.block-views-blockpodcast-latest-podcast-block .view-content > .four.columns:nth-child(7) {
    margin-left: 0;
}

/* This helps to show the albums side by side on tablet size devices */
@media only screen and (min-width: 550px) and (max-width: 850px) {
    .latest-product .four.columns,
    .latest-podcast .four.columns {
        width: 48%;
    }
    .latest-product .four.columns:nth-child(odd),
    .latest-podcast .four.columns:nth-child(odd) {
        margin-left: 0;
    }
}

@media only screen and (max-width: 850px) {
    .node--view-mode-album-product-teaser.product-teaser .product-overlay h2,
        /* @todo Remove the below products when everything is fixed */
    .node--view-mode-program-product-teaser.product-teaser .product-overlay h2,
    .node--view-mode-overview-podcast-teaser.podcast-teaser .podcast-overlay h2 {
        font-size: 2.4rem;
    }
    .node--view-mode-program-product-teaser.product-teaser .product-overlay .product-title,
    .node--view-mode-overview-podcast-teaser.podcast-teaser .podcast-overlay .podcast-title {
        font-size: 1.6rem;
        font-weight: 700;
    }
    /* Products */
    .view-product .view-content > .four.columns:nth-child(4),
    .view-product .view-content > .four.columns:nth-child(7),
    .view-product .view-content > .four.columns:nth-child(10),
    .view-product .view-content > .four.columns:nth-child(even),
    /* @todo Remove the below products when everything is fixed */
    .view-program-products .view-content > .four.columns:nth-child(4),
    .view-program-products .view-content > .four.columns:nth-child(7),
    .view-program-products .view-content > .four.columns:nth-child(10),
    .view-program-products .view-content > .four.columns:nth-child(even),
    /* Podcast */
    .block-views-blockpodcast-latest-podcast-block .view-content > .four.columns:nth-child(4),
    .block-views-blockpodcast-latest-podcast-block .view-content > .four.columns:nth-child(7),
    .block-views-blockpodcast-latest-podcast-block .view-content > .four.columns:nth-child(even) {
        margin-left: 4%;
    }
    .view-program-products .view-content > .four.columns:nth-child(odd),
    .block-views-blockpodcast-latest-podcast-block .view-content > .four.columns:nth-child(odd) {
        margin-left: 0;
    }
}

@media only screen and (max-width: 550px) {
    .node--view-mode-album-product-teaser.product-teaser .product-overlay h2,
        /* @todo Remove the below products when everything is fixed */
    .node--view-mode-program-product-teaser.program-teaser .program-overlay h2,
    .node--view-mode-overview-podcast-teaser.podcast-teaser .podcast-overlay h2 {
        font-size: 3rem;
        line-height: 3rem;
        font-weight: 700;
    }
    .node--view-mode-album-product-teaser.product-teaser .product-overlay .product-title,
        /* @todo Remove the below products when everything is fixed */
    .node--view-mode-program-product-teaser.product-teaser .product-overlay .product-title,
    .node--view-mode-overview-podcast-teaser.podcast-teaser .podcast-overlay .podcast-title {
        font-size: 1.8rem;
        font-weight: 700;
    }
    /* Products */
    .view-product .view-content > .four.columns:nth-child(4),
    .view-product .view-content > .four.columns:nth-child(7),
    .view-product .view-content > .four.columns:nth-child(10),
    .view-product .view-content > .four.columns:nth-child(even),
    .view-product .view-content > .four.columns:nth-child(odd),
    /* @todo Remove the below products when everything is fixed */
    .view-program-products .view-content > .four.columns:nth-child(4),
    .view-program-products .view-content > .four.columns:nth-child(7),
    .view-program-products .view-content > .four.columns:nth-child(10),
    .view-program-products .view-content > .four.columns:nth-child(even),
    .view-program-products .view-content > .four.columns:nth-child(odd),
    /* Podcast */
    .block-views-blockpodcast-latest-podcast-block .view-content > .four.columns:nth-child(4),
    .block-views-blockpodcast-latest-podcast-block .view-content > .four.columns:nth-child(7),
    .block-views-blockpodcast-latest-podcast-block .view-content > .four.columns:nth-child(even),
    .block-views-blockpodcast-latest-podcast-block .view-content > .four.columns:nth-child(odd) {
        margin-left: 0;
    }
}
