/*
---------------------------------------------------------
MOVED FROM GLOBAL
---------------------------------------------------------
*/

#container-list .textbox p {
    margin-bottom: 10px !important;
}


/*
---------------------------------------------------------
*/

.textbox-inner {
    width: 100%;
}

.textbox-inner, .textbox-inner p, .textbox-inner h2, .col-link {
    transition: none !important;
}

.col-link {
    transition: color 0.5s ease, background-color 0.5s ease !important;
}


/*
----------------------------------------------------------
ARTICLE LISTING SETTINGS
----------------------------------------------------------
*/
#container-list .innercol {
    overflow: hidden;
}

.outercol {
    position: relative;
    margin: 0 auto;
    display: inline-block;
    overflow: visible;
    z-index: 1;
    min-width: 280px
}

.single-article-related {
    background-color: transparent !important
}

.outercol:before {
    content: "";
    display: block;
}

.clear {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.spacer {
    overflow: hidden;
    position: absolute;
    bottom: 0;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
}

.innercol {
    position: relative;
    height: 100%;
}

#article-related .innercol,
#article-related .spacer {
    background-color: transparent !important;
}


/*
-----------------------------------------
INSIDE OUTERCOL MIXED
-----------------------------------------
*/

.media {
    background-size: cover;
    background-position: center;
    margin: auto 0;
    overflow: hidden;
    display: inline-block;
    float: left;
}

#container-list .responsive-video iframe { /* youtube + istribute */
    height: 100%;
    width: 100%;
    backface-visibility: hidden;
}

.textbox {
    margin: 0 auto;
}

.textbox h2 {
    margin-top: 0 !important;
    width: 100%;
}

body .teaser:empty {
    display: none;
}

.teaser,
.date,
.time,
#container-list .book {
    display: none;
}

.custom-date {
    display: none;
}


/*
-----------------------------------------
BUTTON FIX
-----------------------------------------
*/

#wrap #container-list .col-links a.book,
#wrap #container-list .col-links a.read {
    border: 0px !important;
}

#wrap .col-links a.book,
#wrap .col-links a.read {
    margin: 0 !important;
    margin-left: 0px !important;
    margin-right: 0px !important;
    margin-top: 5px !important;
}

#wrap .col-links a:nth-child(2) {
    margin-left: 0px !important;
}

#wrap .col-links a:nth-last-child(2) {
    margin-right: 10px !important;
}

body #wrap .teaser:empty {
    display: none !important
}

/*
-------------------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////////////
-------------------------------------------------------------------------------------
ORIGINAL CODE CONTINUES BELOW
-------------------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////////////
-------------------------------------------------------------------------------------
*/

/* ----------------- LISTING SETTINGS ----------------- */

/* --------------- Mixed-style-4.css --------------- */

/* 
------------------------------------------------------- 
OVERRIDES WRAPPER DESIGN
------------------------------------------------------- 
*/

@media all and (min-width: 1200px) and (max-width: 1240px) {
    body #mainContent, .featured-textbox, #header {
        margin-left: 0px !important;
        margin-right: 0px !important;
    }
}

/* 
------------------------------------------------------- 
LAYOUT FRAMESET - IMAGE and TEXT container
------------------------------------------------------- 
*/
#wrap div#mainContent {
    max-width: 100% !important;
}

body#bg:not(.read-more) #wrap #outerContent #center div#pagetitle, body#bg:not(.read-more) #wrap #outerContent #center div#sitepath {
    display: none !important;
}

#container-list .outercol {
    display: block;
    vertical-align: top;
    float: left;
    width: 25%;
    min-width: 25%;
}

#container-list .clear {
    display: block;
    position: relative;
}

#container-list .spacer {
    position: relative;
    border: none !important;
}

#container-list .innercol {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #333;
    padding-bottom: 90%;
}

#container-list .media {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

#container-list div.responsive-video iframe {
    position: absolute;
    top: -10%;
    bottom: -10%;
    left: -50%;
    right: -50%;
    width: 200%;
    height: 120%;
    overflow: hidden;
}

#container-list .textbox {
    position: absolute;
    top: 0px;
    bottom: 0;
    padding: 5%;
    width: 100%;
    height: 100%;
    text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2),
    1px 1px 0px rgba(0, 0, 0, 0.2),
    1px 0px 0px rgba(0, 0, 0, 0.2);
    z-index: 2;
    opacity: 0;
    zoom: 1.05;
}

#container-list .textbox-inner {
    position: absolute;
    left: 10%;
    right: 10%;
    top: 0;
    bottom: 0;
    width: 80%;
    display: flex;
    align-content: center;
    /* align-items: center; */
    justify-content: center;
    flex-direction: column;
}

/*
------------------------------------------------------- 
TEXT SETTINGS - TITLE + INGRESS + DATE + TEASER TEXT
------------------------------------------------------- 
*/

#container-list .textbox a {
    display: inline-block;
    /* position: relative; */
}

#container-list .textbox h2 {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 1.4em;
    max-height: 6.15em;
    line-height: 1.5em;
    margin: 0;
    bottom: 5%;
    overflow: hidden;
    float: left;
    /* font-weight:normal; */
    margin: 0;
    padding-bottom: 0.5em !important;
}

#container-list .textbox p {
    display: none;
}

#container-list .teaser {
    display: block;
    position: absolute;
    max-width: 90%;
    min-width: 0%;
    width: auto;
    top: 6%;
    left: 0;
    padding: 0em 15px;
    line-height: 1.2em;
    max-height: 3.3em;
    overflow: hidden;
    font-size: 15px;
    text-align: left;
    font-size: 13px;
}

#container-list .col-links {
    position: relative;
    width: 100%;
    height: auto;
    margin: 0 auto;
    line-height: 0;
    padding: 0;
    float: none;
    display: inline-block;
}

#container-list a.col-link {
    width: auto;
    margin: 0;
    padding: 5px 5%;
    position: relative;
    display: inline-block;
    border: 0px solid;
    line-height: 1.25em;
    /*font-size: 16px*/
}

#container-list .book,
#container-list .book ~ a.read {
    margin-right: 7px;
    margin-left: 7px;
    margin-top: 5px !important;
}

/*
------------------------------------------------------- 
COLOR SWITCHER > Select 1 of 2 color settings from 
customer adjustment settings - INCLUDE ONLY VERSION 1 OR 2 
------------------------------------------------------- 
*/

/* VERSION 1 */
#container-list .textbox .textbox.inner > a,
#container-list .textbox h2,
#container-list .textbox-inner {
    color: inherit !important;
}

/* VERSION 2 
#container-list .textbox {
	background-color: transparent; 
	}
*/
/* 
------------------------------------------------------- 
BUTTON SETTINGS - CUSTOM BUTTON and READ MORE BUTTON
------------------------------------------------------- 
*/


/* 
------------------------------------------------------- 
HOVER EFFECTS
------------------------------------------------------- 
*/

#container-list .outercol:hover .textbox,
#container-list .outercol:focus-within .textbox,
#container-list .outercol:hover .teaser,
#container-list .outercol:focus-within .teaser {
    opacity: 1;
    -webkit-transition: all .75s ease;
    transition: all .75s ease;
}

#container-list .outercol:hover .teaser,
#container-list .outercol:focus-within .teaser{
    opacity: 0;
}

#container-list .outercol .textbox,
#container-list .outercol .teaser {
    -webkit-transition: all .5s ease;
    transition: all .5s ease;
}

/* 
------------------------------------------------------- 
NTH-CHILD LAYOUT 
------------------------------------------------------- 
*/
#container-list .outercol:nth-child(1),
#container-list .outercol:nth-child(10n),
#container-list .outercol:nth-child(10n+1) {
    width: 50%;
}

#container-list .outercol:nth-child(1) .textbox,
#container-list .outercol:nth-child(10n) .textbox,
#container-list .outercol:nth-child(10n+1) .textbox {
    top: 0;
    left: 0;
    right: 0;
    padding: 0;
    font-size: 150%;
    opacity: 1;
}

#container-list .outercol:nth-child(1):not(:hover) .textbox,
#container-list .outercol:nth-child(10n):not(:hover) .textbox,
#container-list .outercol:nth-child(10n+1):not(:hover) .textbox {
    background-color: transparent;
}

#container-list .outercol:nth-child(1) .teaser,
#container-list .outercol:nth-child(10n) .teaser,
#container-list .outercol:nth-child(10n+1) .teaser {
    /* display:none; */
}

#container-list .outercol:nth-child(1) .col-links,
#container-list .outercol:nth-child(10n) .col-links,
#container-list .outercol:nth-child(10n+1) .col-links {
    display: block;
    position: relative;
    width: 100%;
    padding: 0;
    float: left;
    margin: 0;
    /* text-align: center; */
}

#container-list .outercol:nth-child(1) .col-link,
#container-list .outercol:nth-child(10n) .col-link,
#container-list .outercol:nth-child(10n+1) .col-link {
    position: relative;
}

#container-list .outercol:nth-child(1) .col-link.book,
#container-list .outercol:nth-child(10n) .col-link.book,
#container-list .outercol:nth-child(10n+1) .col-link.book {
    display: inline-block;
}

#container-list .outercol:nth-child(1) .textbox-inner,
#container-list .outercol:nth-child(10n) .textbox-inner,
#container-list .outercol:nth-child(10n+1) .textbox-inner {
    display: inline-block;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    position: absolute;
    top: 50%;
    bottom: auto;
}

#container-list .outercol:nth-child(1) h2,
#container-list .outercol:nth-child(10n) h2,
#container-list .outercol:nth-child(10n+1) h2 {
    padding: 0;
    margin: auto;
    position: relative;
    vertical-align: -webkit-baseline-middle;
    bottom: auto;
    top: auto;
    width: 100%;
    /* text-align: center; */
    display: block !important;
}

#container-list .outercol:nth-child(1) .textbox-inner > a,
#container-list .outercol:nth-child(10n) .textbox-inner > a,
#container-list .outercol:nth-child(10n+1) .textbox-inner > a {
    position: relative;
    float: left;
    width: 100%;
}

#container-list .outercol:nth-child(10n+6) {
    clear: both;
}

@media all and (min-width: 960px) {
    #container-list .outercol:nth-child(10n-1) {
        margin-top: 22.5%;
        margin-left: -50%;
    }

    #container-list .outercol:nth-child(10n-2) {
        margin-top: 22.5%;
        margin-left: -25%;
    }
}

/* 
------------------------------------------------------- 
RESPONSIVE - general adjustment
------------------------------------------------------- 
*/


/* 
------------------------------------------------------- 
RESPONSIVE COLUMN COUNT / HEIGHTS / ASPECT RATIO
------------------------------------------------------- 
*/

@media all and (min-width: 100px) and (max-width: 679px) {
    #container-list .outercol {
        width: 100%;
    }

    #container-list .outercol:nth-child(1),
    #container-list .outercol:nth-child(10n),
    #container-list .outercol:nth-child(10n+1) {
        width: 100%;
    }
}

@media all and (min-width: 680px) and (max-width: 959px) {
    #container-list .outercol {
        width: 50%;
    }

    #container-list .outercol:nth-child(1),
    #container-list .outercol:nth-child(10n),
    #container-list .outercol:nth-child(10n+1) {
        width: 100%;
    }
}

@media all and (min-width: 960px) and (max-width: 1199px) {
}

@media all and (min-width: 1200px) and (max-width: 1499px) {
}

@media all and (min-width: 1500px) {
}


/* 
------------------------------------------------------- 
RESPONSIVE FONT SIZE - 4 COLS
------------------------------------------------------- 
*/

@media all and (min-width: 100px) and (max-width: 679px) {
    #container-list .textbox h2 {
        font-size: 65%;
    }

    #container-list .outercol:nth-child(1) h2,
    #container-list .outercol:nth-child(10n) h2,
    #container-list .outercol:nth-child(10n+1) h2 {
        margin-bottom: 15px;
        /* max-height: 6.9em; */
    }

    #container-list .outercol:nth-child(1) .textbox,
    #container-list .outercol:nth-child(10n) .textbox,
    #container-list .outercol:nth-child(10n+1) .textbox {
        font-size: 100%;
    }
}

@media all and (min-width: 680px) and (max-width: 959px) {
    #container-list .textbox h2 {
        font-size: 34%;
    }
}

@media all and (min-width: 960px) and (max-width: 1199px) {
    #container-list .textbox h2 {
        font-size: 37%;
    }
}

@media all and (min-width: 1200px) and (max-width: 1499px) {
    #container-list .textbox h2 {
        font-size: 42%;
    }
}

@media all and (min-width: 1500px) {
    #container-list .textbox h2 {
        font-size: 44%;
    }
}

@media all and (min-width: 1920px) {
    #container-list .textbox h2 {
        font-size: 35px;
    }
}
