﻿
/* Resource Library Widget 
 ****************************************/

.resource-library-widget {
    position: relative;
}

    .resource-library-widget ul.resource-category-list li,
    .resource-library-widget ul.resource-list li {
        padding: 0;
        margin: 0 0 2.5em 0;
        list-style-type: none;
    }

.resource-library-widget--list h3 {
    background: #ccc;
    text-align: center;
    padding: 5px;
    margin-bottom: 15px;
    margin-top: 25px;
}

.resource-library-widget--list li:first-child h3 {
    margin-top: 0;
}

.resource-library-widget--list .resource-list {
    display: block;
    width: 100%;
    height: auto;
}

    .resource-library-widget--list .resource-list li {
        position: relative;
        display: block;
        overflow: hidden;
        min-height: 50px;
        height: auto;
    }

        .resource-library-widget--list .resource-list li a.resource-link {
            display: inline-block;
            position: absolute;
            top: 25px;
            right: 0;
            width: 100px;
            height: 25px;
            line-height: 25px;
            margin-bottom: 0;
            text-decoration: none;
            background: #b11f25;
            color: #fff;
            text-align: center;
            border: none;
            outline: none;
            border-radius: 500px;
            text-transform: uppercase;
            font-size: 0.75rem;
        }

.resource-library-widget--list .resource-thumbnail {
    display: block;
    position: relative;
    float: left;
    padding: 0 35px 0 0;
    min-width: 100px;
    max-width: 140px;
}

    .resource-library-widget--list .resource-thumbnail img {
        display: block;
        max-width: 100%;
    }

.resource-library-widget--list .resource-extension /* Document-type text when thumb img is absent */ {
    font-family: sans-serif;
    display: inline-block;
    height: 100%;
    line-height: 1.0em;
    width: 100%;
    padding-top: 40%;
    text-align: center;
    font-size: 1.3em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ccc;
    text-shadow: -1px -1px 0 #aaa, 1px -1px 0 #aaa, -1px 1px 0 #aaa, 1px 1px 0 #aaa;
}

.resource-library-widget--list .resource-name {
    font-size: 0.95em;
    float: left;
    width: calc(100% - 300px);
}

    .resource-library-widget--list .resource-name > p:first-child {
        font-weight: 500;
        font-size: 1.2em;
        margin: 0;
    }

    .resource-library-widget--list .resource-name p.resource-description {
        margin: 0;
        padding: 0;
    }

#resource-image-popup {
    position: fixed;
    top: 10%;
    left: 50%;
    margin-left: 0; /* This is adjusted at run time in js */
    padding: 25px;
    max-width: 90%;
    background: #eee;
    border: solid 1px #ccc;
    -webkit-box-shadow: 0 8px 6px -6px #444;
    -moz-box-shadow: 0 8px 6px -6px #444;
    box-shadow: 0 8px 6px -6px #444;
    z-index: 101;
}

    #resource-image-popup img {
        max-width: 100%;
    }



.resource-library-widget--cards .resource-link {
    display: none;
}

.resource-library-widget--cards .resource-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

    .resource-library-widget--cards .resource-list li {
        width: 28%;
        text-align: center;
        overflow: hidden;
    }

        .resource-library-widget--cards .resource-list li:not(.filler) {
            border-radius: 15px;
            box-shadow: 0px 0px 15px -4px rgba(0,0,0,0.85);
            cursor: pointer;
        }

    .resource-library-widget--cards .resource-list .resource-thumbnail img {
        width: 100%;
    }

.resource-library-widget--cards .resource-name {
    margin: 20px;
    font-size: .85rem;
    line-height: 1.3;
    text-transform: uppercase;
    font-weight: 600;
}

@media only screen and (max-width : 700px) {
    .resource-library-widget--list .resource-name {
        width: 100%;
    }

    .resource-library-widget--list .resource-list li a.resource-link {
        position: relative;
        top: 0;
        margin-top: 0;
    }
}

@media only screen and (max-width : 500px) {
    .resource-library-widget--cards .resource-list li {
        width: 47%;
    }
}

@media only screen and (max-width : 425px) {
    .resource-library-widget--cards .resource-list li {
        width: 100%;
    }
}


/* Resource Widget 
 ****************************************/
.resource-widget {
    margin-top: 15px;
}

.resource-widget__link {
    display: block;
    overflow: hidden; /* clear floats */
    color: #000 !important;
    text-decoration: none;
}

    .resource-widget__link:hover {
        background: #eee;
    }

.resource-widget__thumbnail {
    float: left;
    width: 50px;
}

.resource-widget__name {
    float: left;
    width: calc(100% - 75px);
    padding-left: 15px;
}

    .resource-widget__name h4,
    .resource-widget__name p {
        margin: 0;
    }

/* Slideshow Widget 
 ****************************************/

.slideshow {
    border: solid 1px #a1a1a1;
    position: relative;
}

.slideshow__thumb {
    max-width: 100%;
}

.slideshow__thumb-caption {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 10px;
    margin: 0;
}

.bx-pager-link {
    text-align: center;
    color: #000 !important;
    text-decoration: none;
    outline: 0 !important;
    display: block;
}

    .bx-pager-link.active {
        border-bottom: solid 5px #941f2f;
    }

.bx-controls {
    overflow: hidden;
    white-space: nowrap;
    width: calc(100% - 100px);
    margin: 0 auto;
}

.bx-pager {
    position: relative;
    left: 0;
    transition: all 0.25s ease;
    z-index: 1;
}

.bx-pager-item {
    display: inline-block;
    width: 33.33%;
    padding: 25px 15px;
}

.bx-caption {
    padding: 25px 100px;
    text-align: center;
}

.slideshow img {
    max-width: 100%;
}

.slideshow__nav {
    border: none;
    background-color: transparent;
    color: #cccccc;
}

.slideshow__nav-controls {
    overflow: hidden;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
}

.slideshow__nav--prev {
    float: left;
    padding: 20px;
}

.slideshow__nav--next {
    float: right;
    padding: 20px;
}

.slideshow__pager {
    position: absolute;
    right: 25px;
    top: 0;
    z-index: 1;
    background: #fff;
    display: none;
}

.slideshow__pager-prev,
.slideshow__pager-next {
    cursor: pointer;
}

.catalog.index.railing-systems .slideshow,
.catalog.index.shower-products .slideshow {
    max-width: 839px;
}


/* Gallery Widget 
 ****************************************/

.gallery-widget__category-list {
    display: flex;
    flex-wrap: wrap;
}

.gallery-widget__category {
    cursor: pointer;
    width: 30%;
    margin: 1.5%;
    margin-bottom: 2.5%;
    background: #d9d9d9;
    border-radius: 15px;
    overflow: hidden;
}

@media only screen and (max-width : 750px) {
    .gallery-widget__category {
        width: 46%;
    }
}

@media only screen and (max-width : 500px) {
    .gallery-widget__category {
        width: 100%;
    }
}

.gallery-widget__category-image {
    background-size: cover;
    width: 100%;
    height: 0;
    padding: 0 0 75% 0;
}

.gallery-widget__category-title {
    line-height: 1.4em;
    color: #000;
    font-size: 1.1em;
    font-weight: bold;
    padding: 20px 25px 0 25px;
    text-transform: uppercase;
    text-align: center;
    min-height: 100px;
    margin: 0;
}

.gallery-widget__category-description {
    display: none;
}

.gallery-widget__galleria-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 100px;
    background-color: rgba(0, 0, 0, .7);
    z-index: 100;
}

@media only screen and (max-width : 1200px) {
    .gallery-widget__galleria-container {
        padding: 50px;
    }
}

@media only screen and (max-width : 768px) {
    .gallery-widget__galleria-container {
        padding: 10px;
    }

    .gallery-widget__galleria-close {
        top: 22.5px !important;
        right: 23.5px !important;
        z-index: 99999 !important;
        font-size: 1.5em !important;
    }
}

.gallery-widget__galleria {
    width: 100%;
    height: 100%;
}

.gallery-widget__galleria-close {
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
}

.gallery-widget .galleria-theme-azur .galleria-counter {
    opacity: 1 !important;
    top: calc(50% - 1em) !important;
    left: 100px !important;
}

.gallery-widget .galleria-theme-azur .galleria-thumbnails-container {
    left: 150px;
}

.gallery-widget .galleria-theme-azur .galleria-image-nav-left {
    background-image: url('../images/arrow-left.png');
    background-size: 75%;
    opacity: 1;
}

.gallery-widget .galleria-theme-azur .galleria-image-nav-right {
    background-image: url('../images/arrow-right.png');
    background-size: 75%;
    opacity: 1;
}

.gallery-widget .galleria-theme-azur .galleria-info {
    height: 100px;
    padding: 15px;
    text-align: center;
}

.gallery-widget .galleria-theme-azur .galleria-info-title,
.gallery-widget .galleria-theme-azur .galleria-info-description {
    padding-right: 0;
}

.gallery-widget .galleria-theme-azur .galleria-captionclose {
    right: 20px;
}

/* Carousel Widget 
 ****************************************/

.carousel-widget {
    position: relative;
    border: solid 1px #a8a8a8;
    border-radius: 15px;
    padding: 45px 25px 35px 25px;
}

.carousel-widget__title {
    position: relative;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.75rem;
    text-align: center;
    margin: 0 0 40px 0;
}

    .carousel-widget__title:after {
        content: ' ';
        display: block;
        background-color: #000;
        position: absolute;
        bottom: -20px;
        left: calc(50% - 65px);
        width: 130px;
        height: 1px;
    }

.carousel-widget__description {
    text-align: center;
    margin: 0 0 10px 0;
}

.carousel-widget__slide {
    padding: 10%;
    text-align: center;
    outline: none;
}

.carousel-widget__image {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 5px 5px 10px 1px rgba(0,0,0,0.25);
}

.carousel-widget__caption {
    font-size: .8rem;
    font-weight: 500;
}

.carousel-widget__slider .slick-arrow {
    position: absolute;
    bottom: -20px;
    padding: 0;
    border-radius: 0;
    background-color: transparent;
    width: 40px;
    height: 40px;
    font-size: 0;
    color: transparent;
    z-index: 1;
    outline: none;
}

.carousel-widget__slider .slick-next {
    background-image: url(../Images/carousel-right-arrow.png);
    right: calc(50% - 175px);
    outline: none;
}

    .carousel-widget__slider .slick-next:after {
        content: '';
        display: block;
        background-color: #a8a8a8;
        position: absolute;
        height: 1px;
        top: calc(50% - 4px);
        left: -96px;
        width: 100px;
        outline: none;
    }

.carousel-widget__slider .slick-prev {
    background-image: url(../Images/carousel-left-arrow.png);
    left: calc(50% - 175px);
    outline: none;
}

    .carousel-widget__slider .slick-prev:after {
        content: '';
        display: block;
        background-color: #a8a8a8;
        position: absolute;
        height: 1px;
        top: calc(50% - 4px);
        right: -90px;
        width: 100px;
        outline: none;
    }

@media only screen and (max-width : 1250px) {
    .carousel-widget__slider .slick-next {
        right: calc(50% - 75px);
    }

        .carousel-widget__slider .slick-next:after {
            display: none;
        }

    .carousel-widget__slider .slick-prev {
        left: calc(50% - 75px);
    }

        .carousel-widget__slider .slick-prev:after {
            display: none;
        }
}

.carousel-widget__pages {
    text-align: center;
    position: absolute;
    bottom: 28px;
    left: calc(50% - 50px);
    width: 100px;
    font-weight: 700;
}
