/* Header used on templates for module reference*/
.reference-sub-hero h1{
    word-break: break-word;
    hyphens: auto;
    word-wrap: break-word;
    text-shadow: var( --subHeroTextShadow );
}

.reference-sub-hero h4{
    word-break: break-word;
    hyphens: auto;
    word-wrap: break-word;
    text-shadow: var( --subHeroTextShadow );
}

.reference-sub-hero .btn {
    border: 2px solid var( --subHeroButtonBorderColor );
    background-color: var( --subHeroButtonBackgroundColor );
    color: var( --subHeroButtonTextColor );
    margin-top: 20px;
}

.reference-sub-hero .btn:hover{
    background-color: var( --subHeroButtonBackgroundColorHover );
    opacity: 1;
}

.reference-sub-hero.introsmall {
    background-color: var( --subHeroTypeSmallBackgroundColor );
}

@media (max-width: 894px) {
    .reference-sub-hero.introsmall .intro-body {
        padding: 20px 0 20px !important;
    }
}

.reference-sub-hero.introsmall .intro-body  h1{
    text-shadow: var( --subHeroTypeSmallTextShadow );
}

.reference-sub-hero.introsmall .intro-body  h4{
    text-shadow: var( --subHeroTypeSmallTextShadow );
}

.reference-sub-hero.introsmall .intro-body .btn {
    border: 2px solid var( --subHeroTypeSmallButtonBorderColor );
    background-color: var( --subHeroTypeSmallButtonBackgroundColor );
    color: var( --subHeroTypeSmallButtonTextColor );
}

.reference-sub-hero.introsmall .intro-body .btn:hover{
    background-color: var( --subHeroTypeSmallButtonBackgroundColorHover );
}


/*  Reference sorting */
#reference .reference-sorting {
    text-transform: uppercase;
    margin-bottom: 48px;
}

#reference .reference-sorting li a {
    color: #888;
    text-decoration: none;
    margin: 10px;
    letter-spacing: 2px;
    font-weight: 600;
}

#reference .reference-sorting a:hover, 
#reference .reference-sorting a.active {
    color: #555;
}


/* Reference grid */
#reference .column {
    position: relative;
    min-height: 1px;
    width: 25%;
}

@media (max-width: 991px) {
    #reference .column {
        width: 50%;
    }
}

#reference .reference-items {
    margin-bottom: 0;
}

#reference .reference-item {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    overflow: hidden;
}

#reference .reference-item-inner {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

#reference .aspect--square {
    padding-bottom: 100%;
}

#reference .aspect--16x9 {
    padding-bottom: 56.25%;
}

#reference .reference-item a {
    color: #fff !important;
}

#reference .reference-item a:hover .reference-overlay {
    opacity: 1;
    visibility: visible;
}

#reference .reference-item img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
}

#reference .reference-item:hover img {
    transform: scale(1.2, 1.2) translate(15px, 15px);
    -ms-transform: scale(1.2, 1.2) translate(15px, 15px);
    -webkit-transform: scale(1.2, 1.2) translate(15px, 15px);
}

#reference .reference-overlay {
    background: none repeat scroll 0 0 rgba(0, 0, 0, 0.75);
    height: 100%;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -webkit-transition: all 0.4s ease;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
}

#reference .reference-overlay .caption {
    position: absolute;
    bottom: 100px;
    left: 0;
    padding: 0 30px;
    text-align: left;
    transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -webkit-transition: all 0.4s ease;
    opacity: 0;
}

#reference .reference-item a:hover .reference-overlay .caption {
    bottom: 10%;
    opacity: 1;
}

#reference .reference-item a h5 {
    margin-bottom: 0;
    font-weight: 800;
    color: #fff;
}


/* Reference thumbnails carousel */
#reference #carousel-reference .carousel-indicators {
    margin: 10px 0 0;
    text-align: left;
    width: 100%;
    position: static;
}

#reference #carousel-reference .carousel-indicators img {
    max-width: 101px;
}

#reference #carousel-reference .carousel-indicators li {
    background-color: transparent;
    -webkit-border-radius: 0;
    border-radius: 0;
    display: inline-block;
    height: auto;
    margin: 0 5px 0 0px !important;
    width: auto;
}

#reference #carousel-reference .carousel-indicators li:nth-child( 6n+6 ){
    margin-right: 0px !important;
}

#reference #carousel-reference .carousel-indicators li img {
    display: block;
    opacity: 0.3;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

#reference #carousel-reference .carousel-indicators li.active img {
    opacity: 1;
}

#reference #carousel-reference .carousel-indicators li:hover img {
    opacity: 0.75;
}

#reference #carousel-reference .carousel-outer {
    position: relative;
    padding-bottom: 40px;
}

@media screen and (max-width: 1199px) {
    #reference #carousel-reference .carousel-indicators img {
        max-width: 99px;
    }

    #reference #carousel-reference .carousel-indicators li:nth-child( 6n+6 ){
        margin-right: 5px !important;
    }

    #reference #carousel-reference .carousel-indicators li:nth-child( 5n+5 ){
        margin-right: 0px !important;
    }
}

@media screen and (max-width: 991px) {
    #reference #carousel-reference .carousel-indicators img {
        max-width: 112px;
    }

    #reference #carousel-reference .carousel-indicators li:nth-child( 6n+6 ){
        margin-right: 0px !important;
    }

    #reference #carousel-reference .carousel-indicators li:nth-child( 5n+5 ){
        margin-right: 5px !important;
    }
}

@media screen and (max-width: 768px) {
    #reference #carousel-reference .carousel-indicators {
        text-align: center;
    }

    #reference #carousel-reference .carousel-indicators li:nth-child( 6n+6 ){
        margin-right: 5px !important;
    }

    #reference #carousel-reference .carousel-indicators li:nth-child( 5n+5 ){
        margin-right: 5px !important;
    }
}

@media screen and (max-width: 650px) {
    #reference #carousel-reference .carousel-indicators img {
            max-width: 80px;
        }
}
