/* =Popper
---------------------------------------------------------------------------- */
/* no large thumb image found */
.agi-close span {
    float:left;
}

/*=Detail Popup Page Defined
--------------------------------------------------------------------------*/
.agi-detailpopup {
    background-color: #e1f2f8;
    background-image: url(/bmr/sitewide/page/hex-border.jpg) repeat-x;
    -mox-box-shadow: 1px 2px 10px #666;
    -webkit-box-shadow: 1px 2px 10px #666;
    box-shadow: 1px 2px 10px #666;
    padding-bottom: 37px;
    width: 450px;
}

.agi-detailpopup .popper-bottom {
    background: url(/bmr/sitewide/page/hex-border.jpg) repeat-x;
    bottom: 0;
    display: block;
    height: 37px;
    left: 0;
    position: absolute;
    width: 100%;
}

.agi-detailpopup h2 {
    font-size: 1.25rem;
}

.clickable {
    cursor: pointer;
}

.agi-detailpopup iframe.dijitBackgroundIframe {
    display:none;
}

.section-sub-hdr.page-results {
    margin: 15px;
}


/*exception for lightbox tops*/
.agi-detailpopup .agi-close img {
    float: right;
    height: 20px;
    margin: 5px 5px 0 0;
    width: 20px;
}

.agi-detailpopup .agi-tabless {
    border-top: none;
    margin: 5px 0;
    padding: 0 0 0 10px;
}

.agi-detailpopup .agi-tabless span img {
    height:  18px;
    width: 119px;
}

.agi-detailpopup .fb-display {
    display: block;
    margin-top: 10px;
}

img.pop-closer,
.pop-closer {
    cursor: pointer;
    height: 20px;
    width: 20px;
}

.agi-detailpopup .popup-content {
    margin: 0 10px 10px;
    padding: 20px 10px 10px;
}
/*large thumb on detail popup*/
.agi-largethumb {
    margin: 10px 15px;
}

.agi-largethumb a {
    display: block;
    margin: 10px;
}

.agi-detailpopup .detail-panel h2 {
    text-align: center;
    text-transform: capitalize;
    width: 100%;
}

.agi-detailpopup .detail-panel .text-title {
    text-align: left;
    text-transform: uppercase;
}

.agi-detailpopup .detail-panel .card-synopsis {
    font-size: 1rem;
    margin: 0 0 20px !important;
    text-align: left;
}

.detail-panel .agi-largethumb a {
    display: block;
    margin: 10px auto 10px 4px;
}

.detail-panel .fb-display img {
    height: 22px;
    width: 24px;
    vertical-align: top;
}

.detail-panel .popup-content #agi-largethumbdetail {
    margin: auto;
    padding: 0 15px 10px;
    text-align: center;
    width: auto;
}

#agi-largethumbdetail {
    width: 240px;
    margin-left: 6px;
}

#agi-largethumbdetail h2 {
    color: #2D6C1F;
    margin-bottom: 3px;
    width: 100%;
}

#agi-largethumbdetail .agi-button img {
    height: 21px;
    width: 104px;
}

#agi-largethumbdetail .agi-button img.join {
    width: 77px;
}

#agi-largethumbdetail p {
    margin-bottom: 0;
}

#agi-largethumbdetail strong {
    display: block;
}

#agi-largethumbdetail .agi-button {
    display: inline;
    margin: 5px;
    padding: 0;
    width: 110px;
}

.product_t_thumb {
    border: 4px;
}

.productlist {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    width: 100%;
}

.productlist li.t-thumbclass {
    height: 125px;
    width: 17%;
}

.productlist li.t-thumbclass a {
    display: block;
    text-decoration: none;
    text-align: center;
}

ol.productlist dl {
    display: none;
}

.productlist row ol.productlist, ol.productlist ol {
    text-align: center;
}

#page-home-nm div.product {
    margin: 15px 29px 15px 0;
}

#page-home-nm div.product:last-child {
    margin-right:0;
}


div.product {
    display: block;
    flex-basis: 33.3%;
    padding: 3px 15px 40px;
    position: relative;
    box-sizing: border-box;
}

div.product:hover .cat-text {
    text-decoration: underline;
}

.shelf-spotlight-carousel div.product {
    padding: 3px 15px 40px;
}

.three-across div.product,
div.product.three-across,
ul#t-thumbs.three-across div.product {
    flex-basis: 33.3%;
}

.four-across div.product,
div.product.four-across,
ul#t-thumbs.four-across div.product {
    flex-basis: 25%;
}

ul#t-thumbs div.product .product-container {
    position: relative;
}

#page-home-nm div.product .cat-thumb{
    width: 190px;
    margin:20px auto 10px auto;
}

div.product.classic .cat-thumb {
    background: none;
    border: none;
    border-radius: none;
    -moz-border-radius: none;
    -webkit-border-radius: none;
    box-shadow: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    height: 54px;
    padding: 0;
    width: 100px;
}

div.product .cat-thumb {
    position: relative;
}

#page-home-nm div.product .cat-text {
    padding-top: 5px;
    margin: 0px;
}

div.product .cat-text {
    min-height: 3rem;
    padding-top: 5px;
    text-align: center;
}

div.product img {
    vertical-align: middle;
}

div.product.pop a.title {
    display: inline-block;
    text-decoration: none;
    width: 100%;
}

#page-home div.product.pop a.title {
    height: 100%;
}

.agi-largethumb a img {
    width: 200px;
}

.productlist img {
    margin: 0 0 10px 0;
}


#page-home-nm .cat-text a{
    font-size: 1rem;
    font-weight: 600;
    line-height: 150%;
    width:125%;
}

.cat-text,
.cat-text a {
    color: #157eae;
    display: block;
    font-family: "Museo Sans Light 300",helvetica,arial,sans-serif;
    line-height: 1.2;
    margin: 0 auto;
    text-decoration: none;
}

.agi-detailpopup .button,
.agi-detailpopup .pop-join-button {
    display: inline-block;
    font-size: 1rem;
    margin: 10px;
    padding: 6px 30px;
    width: auto;
}

.agi-detailpopup .pop-join-button {
    background: #fff;
    border: 2px solid #4fafd6;
    color: #157eae;
}

.agi-detailpopup .pop-join-button:hover,
.agi-detailpopup .pop-join-button:focus {
    background: #4fafd6;
    color: #fff;
}

/*-------------------------------------------------------------------------
= Archive Section
--------------------------------------------------------------------------*/
ol.productlist li.classic {
    background-image: none;
    height: 90px;
    margin: 0px 40px 32px 0px;
    width: 100px;
}

ol.productlist li.classic div.product2 .cat-text a {
    padding: 0px;
    width: 100px;
}

ul#t-thumbs li a {
    color: #157eae;
    font-size: 1rem;
    text-decoration: none;
}


/*------------------------------
Carousel styling
------------------------------*/
  .shelf-spotlight-carousel div.product .cat-text {
      min-height: 3rem;
      padding-top: 5px;
      text-align: center;
  }

/*------------------------------------------------------------------------------
= Responsive Styling
------------------------------------------------------------------------------*/

@media screen and (max-width: 915px) {
    #page-home-nm div.product {
         margin: 15px 14px 15px 0;
    }
}

@media screen and (max-width: 850px) {
    #page-home-nm div.product .cat-thumb{
        width: 174px;
    }
    #page-home-nm .cat-text a{
        font-size: 0.9rem;
        width:110%;
    }
}

@media screen and (max-width: 768px) {
    #page-home-nm div.product .cat-thumb{
        width: 153px;
    }

    #page-home-nm .cat-text a{
        font-size: 0.9rem;
        width:100%;
    }

    .section-hdr-copy {
        padding: 0 15px;
    }
}

@media screen and (max-width: 600px) {
    #page-home-nm div.product .cat-thumb{
        width: 153px;
    }

    #page-home-nm .cat-text a{
        font-size: 0.9rem;
        width:100%;
    }

    .results-list-original .section-hdr {
        margin: 0 15px;
    }

    div.product,
    .three-across div.product,
    div.product.three-across,
    .four-across div.product,
    div.product.four-across,
    ul#t-thumbs.three-across div.product,
    ul#t-thumbs.four-across div.product {
        flex-basis: 50%;
    }
}

@media screen and (max-width: 525px){
    #page-home-nm div.product .cat-thumb{
        width:164px;
    }

    #page-home-nm div.product {
        margin: 15px 10px;
    }
}

@media screen and (max-width: 320px), (max-width: 490px){
    #page-home-nm div.product .cat-thumb {
        padding:4px;
        width: 90%;
        height: auto;
    }

    #page-home-nm div.product {
        display: inline-block;
        margin: 10px 2px;
        width: calc(100% / 2 - 5px);
    }

    #page-home-nm .ecard-categories .cat-text a{
        padding: 0;
    }

    #page-home-nm .ecard-categories .cat-text{
        width:100%;
    }

    #page-home-nm .mobile a{
        margin-top:30px;
    }
}
