/* Widget Styles */

/* breaking news widget */
div.breaking_news {
    background-color: #FFDDDD; /* also set dynamically in line */
    padding: 4px;
    /*margin-bottom: 15px;*/
    max-width: 600px;
    margin: 4px auto 0px auto;
}
div.breaking_news img {
    display: block;
    margin: 0px auto 0px auto;
    max-width: 100%;
}
/* what about other default styles for in breaking news? like tables */

/* top picts widget */
div.top_pict_widget img.tpw_main_pict {
    max-width: 600px;
    max-height: 500px;
    display: block;
    margin: 0px auto;
}
div.top_pict_widget img.tpw_small_pict {
    max-width: 150px;
    max-height: 150px;
    margin-left: 2px;
    margin-right: 2px;
    vertical-align: top;
}
div.top_pict_widget div.tpw_small_pict {
    margin-top: 4px;
    margin-bottom: 10px;
    text-align: center;
}
@media screen and (max-width: 870px) {
div.top_pict_widget img.tpw_main_pict {
    max-width: 100%;
}
div.top_pict_widget img.tpw_small_pict {
    max-width: 23%;
}
}

/* video widget */
div.video_widget div.vw_intermediate_positioner {
    position: relative;
    display: inline-block;
    max-width: 100%; /* needed for IE9 */
}
div.video_widget img.vw_main_pict {
    max-width: 600px;
    max-height: 500px;
    display: block;
    margin: 0px auto;
}
div.video_widget img.vw_play_btn {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 86px;
    height: 86px;
    margin-top: -43px;
    margin-left: -43px;
}
div.video_widget div.vw_title {
    position: absolute;
    right: 0px;
    bottom: 0px;
    font-size: 125%;
    padding: 6px;
    background-color: rgba(255,255,255,0.7);
}
div.video_widget div.vw_title a {
    text-decoration: none;
    color: black;
}
div.video_widget div.vw_small_picts {
    margin-top: 4px;
    margin-bottom: 10px;
    text-align: center;
}
div.video_widget div.vw_small_pict {
    display: inline-block;
    vertical-align: top;
}
div.video_widget div.vw_small_pict img {
    max-width: 200px;
    max-height: 200px;
    margin-left: 2px;
    margin-right: 2px;
    vertical-align: top;
}
@media screen and (max-width: 870px) {
div.video_widget img.vw_main_pict {
    max-width: 100%;
}
div.video_widget div.vw_small_pict {
    max-width: 32%;
}
div.video_widget div.vw_small_pict img {
    max-width: 100%;
}
}

/* photo album widget */
div.album_widget div.aw_intermediate_positioner {
    position: relative;
    display: inline-block;
    max-width: 100%; /* needed for IE9 */
}
div.album_widget img.aw_main_pict {
    max-width: 600px;
    max-height: 500px;
    display: block;
    margin: 0px auto;
}
div.album_widget div.aw_title {
    position: absolute;
    right: 0px;
    bottom: 0px;
    font-size: 125%;
    padding: 6px;
    background-color: rgba(255,255,255,0.7);
}
div.album_widget div.aw_title a {
    text-decoration: none;
    color: black;
}
div.album_widget div.aw_small_picts {
    margin-top: 4px;
    margin-bottom: 10px;
    text-align: center;
}
div.album_widget div.aw_small_pict {
    display: inline-block;
    vertical-align: top;
    max-width: 32%; /* added */
}
div.album_widget div.aw_small_pict img {
    /*max-width: 200px;*/
    max-width: 100%;
    max-height: 200px;
    margin-left: 2px;
    margin-right: 2px;
    vertical-align: top;
}
@media screen and (max-width: 870px) {
div.album_widget img.aw_main_pict {
    max-width: 100%;
}
/*div.album_widget div.aw_small_pict {
    max-width: 32%;
}
div.album_widget div.aw_small_pict img {
    max-width: 100%;
}*/
}

/* public notices widget */
div.pnw_listings {
    max-width: 550px;
    margin: 0px auto;
    padding-left: 50px;
    -webkit-column-count: 2; /* Chrome, Safari, Opera */
    -moz-column-count: 2; /* Firefox */
    column-count: 2;
}
@media screen and (max-width: 725px) {
div.pnw_listings {
    -webkit-column-count: 1; /* Chrome, Safari, Opera */
    -moz-column-count: 1; /* Firefox */
    column-count: 1;
}
}

/* e-edition widget */
/* styles originally taken from subscription.dailystandard.com */
#div_homePDFWrapper {
    width: 100%;
    text-align: center;
}

#div_homePDFWrapper h1 {
    margin-top: 0px;
    margin-bottom: 0px;
    font-size: 150%;
}

#div_homePDFWrapper #div_home_daily,
#div_homePDFWrapper #div_home_special {
    display: inline-block;
    margin-right: auto;
    margin-left: auto;
    margin-top: 10px;
    vertical-align: top;
}

#div_homePDFWrapper #div_home_special {
    background-color: #b4e6ff;
}

#div_homePDFWrapper .div_home_issue {
    display: inline-block;
    padding: 10px;
    max-width: 285px;
    vertical-align: top;
}

#div_homePDFWrapper img {
    max-width: 100%;
}

/* sports preview widget */
div.sports_preview_widget img.spw_main_pict {
    max-width: 600px;
    display: block;
    margin: 0px auto;
}
div.sports_preview_widget div.title {
    font-size: 200%;
    font-weight: bold;
    text-align: center;
}
@media screen and (max-width: 870px) {
div.sports_preview_widget img.spw_main_pict {
    max-width: 100%;
}
}
div.sports_preview_widget img.spw_float_pict {
    max-width: 49.4%;
    margin: 0px auto;
}
@media screen and (max-width: 675px) { /* marches breakpoint for left and right wrappers */
div.sports_preview_widget img.spw_float_pict {
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
}
}

/* for AP / World News widget, but intended to be generic */
div.square_container {
    width: 50%;
    padding-bottom: 50%;
    position: relative;
    display: inline-block;
}
div.square_background_image {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: absolute;
    height: 100%;
    width: 100%;
    display: block;
    border: 3px white solid; /* transparent allows img to show through*/
    box-sizing: border-box;
    text-decoration: none;
}
div.text_over_img { /* This is similar definition as album widget */
    position: absolute;
    right: 0px;
    bottom: 0px;
    font-size: 125%;
    padding: 6px;
    background-color: rgba(255,255,255,0.8);
    text-align: right;
    color: black;
}
div.square_container a {
    text-decoration: none; /* needed for old iPhone */
}
@media screen and (max-width: 675px) {
div.square_container {
    width: 100%;
    padding-bottom: 100%;
}
}