.ad-container iframe, .ad-block iframe{

  height: 250px;
  border: 1px solid #ddd;
}

.slide-title a{

  color: #fff;
  text-decoration: none
}

.relative-container{

  position: relative;
}

.img-gallery{

  visibility: hidden;
  cursor: pointer;
}


.center-landscape{

  height: auto !important;
  width: 300px !important;

}

.center-portrait{

  height: 219px !important; 
  width: auto !important; 
}


/********* Table Widgets Base Styles ********/
/*------------------------------------*/
.table-widget-wrapper {
  min-width: 298px; 
  position: relative;
  border: 1px solid transparent;
  line-height: 16px;
  background-color: transparent;
  font-family: Verdana, Arial, Geneva, sans-serif;
  color: #000;
  font-size: 12px;
  font-style: normal;   
  font-weight: normal;  
  text-transform:none;
  text-align: left;
  /*width:298px;*/
}

.table-widget-wrapper *:before, 
.table-widget-wrapper *:after, 
.table-widget-wrapper * {
  box-sizing: content-box;
  text-indent: 0px;
  font-family: Verdana, Arial, Geneva, sans-serif;
}

.table-widget-wrapper img {
 vertical-align: top;
}


#ap-new-widgets .title-block {
  background: transparent;
  border:1px solid transparent;
  overflow: hidden;
  height: auto !important;
}

#ap-new-widgets .title-block h1.widget-title{ 

  display: block !important;
}

#ap-new-widgets .title-block h1.widget-title:hover {
  color: #146994;
}

#ap-new-widgets .title-block h1.widget-title,
#ap-new-widgets .title-block h1.widget-title a {

  position: relative;
  font-family: inherit;
  font-size: 15px;
  line-height: 17px;
  color: #000;
  height: 34px;
  max-width: 328;
}
#ap-new-widgets .title-block h1.widget-title:hover,
#ap-new-widgets .title-block h1.widget-title a:hover,
#ap-new-widgets .title-block h1.widget-title label:hover {
  color: #146994;
  text-decoration: none !important;
}
#ap-new-widgets .title-block h1.widget-title label,
#ap-new-widgets .title-block h1.widget-title a {
  cursor: pointer;
  font-weight: bold;
  color: #000;
  text-decoration: none;
  width: auto !important;
}

#ap-new-widgets{

  background: #fff;
}

#ap-new-widgets .title-block .inner-frame{

  height: auto !important;
  padding: 3px;
}

#ap-new-widgets .title-block .inner-frame h1.widget-title{

  height: auto !important;
}

#ap-new-widgets .content-wrapper {
  float: left;
  width: 100%;
  height: 300px; 
  overflow: hidden;
  position:static;
}
#ap-new-widgets .content-wrapper .inner-frame {
  position: static;
  border:1px #ccc solid; 
  padding:0 1px
}
#ap-new-widgets .content-wrapper .inner-frame table {
  padding: 0px; 
  margin: 0px;
  border-collapse: collapse;
  border: 0px;
  width: 100%;
}
#ap-new-widgets .content-wrapper .inner-frame table th {
  height: 20px;
  line-height: 20px;
  color: #666;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px #ccc solid;
  background-color: #e7e2d8;  
  text-align: left;
  padding:2px 4px 2px 8px;
  font-size: 12px;
}
#ap-new-widgets .content-wrapper .inner-frame table th.col1 {
  text-align: center;
  padding-left: 0px;
}
#ap-new-widgets .content-wrapper .col1 {
  min-width: 34px; 
  width:auto;
  text-align: center;
}
#ap-new-widgets .content-wrapper .col2,
#ap-new-widgets .content-wrapper .col3,
#ap-new-widgets .content-wrapper .col5
 {
  width: 50%;
}

#ap-new-widgets .content-wrapper .inner-frame table td {
  padding: 0 8px;
  vertical-align: middle;
  border: 0px #fff solid;
  border-bottom-width: 1px;
  border-top-width: 1px;
  text-align: left;
  cursor: pointer;
  height: 45px;
  font-size: 12px;
  transition: background-color 0.15s linear 0s;
}
#ap-new-widgets .content-wrapper .inner-frame table tbody tr:last-child td {
  border-bottom: 0px;
}
#ap-new-widgets .content-wrapper .inner-frame table td a {
  text-decoration: none;
  line-height: 16px;
  color:#000;
}

#ap-new-widgets .content-wrapper a:hover{
  text-decoration: none !important;
  color: #000;
}

#ap-new-widgets .content-wrapper .inner-frame .outer-cell {
  height: 30px; 
  overflow: hidden;
}
#ap-new-widgets .content-wrapper .inner-frame .inner-cell {
  display: table-cell; 
  vertical-align: middle; 
  height: 33px;
  line-height: normal !important;
}

#ap-new-widgets .content-wrapper .inner-frame table td.col1 {
  text-align: center;
  border-right-width: 1px;
}
#ap-new-widgets .content-wrapper .inner-frame table td.col1 span.row-number {
  width: 30px; 
  height: 30px;
  line-height: 30px;
  border-radius: 15px;
  color: #fff;
  background: #69f;
  font-weight:700;
  display: block;
}

#ap-new-widgets .content-wrapper .inner-frame table td.col2 {
  border-right-width: 1px;
  text-align: left;
}
#ap-new-widgets .content-wrapper .inner-frame table tbody tr.tr-even td,
#ap-new-widgets .content-wrapper .inner-frame table tbody tr.even td {
  background-color: #fff;
}
#ap-new-widgets .content-wrapper .inner-frame table tbody tr.tr-odd td,
#ap-new-widgets .content-wrapper .inner-frame table tbody tr.odd td {
  background-color: #e5e5de;
}

#ap-new-widgets .content-wrapper .inner-frame table tbody tr.even td:hover,
#ap-new-widgets .content-wrapper .inner-frame table tbody tr.odd td:hover {
  background-color: #d7d7c6;
}

#ap-new-widgets .content-wrapper .inner-frame table tbody tr.tr-even td:hover,
#ap-new-widgets .content-wrapper .inner-frame table tbody tr.tr-odd td:hover {
  background-color: #d7d7c6;
}

#ap-new-widgets .content-wrapper .content-block {
  position: static;
  margin-right: 320px;
  min-height: 300px;
  height: 300px;
  overflow: hidden;
}
#ap-new-widgets .content-wrapper .featured-block {
    display: none;
}
#ap-new-widgets .content-wrapper button {
  height: 42px; 
  line-height: 42px;
  background-color: #1c94d0; 
  display: inline-block; 
  width: 51%; 
  position: absolute; 
  border: 1px transparent solid; 
  margin-top: 2px; 
  margin-left: -2px; 
  color: #fff;
  font-weight: normal;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  padding: 0px;
  transition: background-color 0.15s linear 0s;
  font-size: 14px;
}
#ap-new-widgets .content-wrapper button:hover { 
  background-color: #146994;
}
#ap-new-widgets .content-wrapper button.button-right { 
  margin-left:2px;
  left: 51%; 
}
#ap-new-widgets .content-wrapper button.button-left span:after,
#ap-new-widgets .content-wrapper button.button-left span:before,
#ap-new-widgets .content-wrapper button.button-right span:after,
#ap-new-widgets .content-wrapper button.button-right span:before {
  content: "";
  margin-left: 6px;
  height: 16px;
  line-height: 16px;
  vertical-align: middle;
  display: inline-block;
  padding: 0px;
  overflow: hidden;
  margin-top: -5px;
}
#ap-new-widgets .content-wrapper button.button-left span:before {
  content: url(dots_icn.png);
  margin-left: 0px;
  margin-right: 6px;
}
#ap-new-widgets .content-wrapper button.button-right span:after {
  content: url(house_icn.png);
  margin-left: 6px;
}
#ap-new-widgets .content-wrapper button.button-right span:before {
  content: "";
  margin-left: 0px;
  margin-right: 6px;
}
#ap-new-widgets .content-wrapper .nav-wrapper {
  position: relative;
}

#ap-new-widgets .content-wrapper .nav-wrapper a {
  text-decoration: none;
}

.ad-block {
  width: 300px;
  height: 250px;
  position: absolute;
  right: 0px;
}
.ad-block span.description {
  position: absolute;
  left: 0px;
  color: #999;
  text-transform: uppercase;
  width: 300px;
  text-align: center;
  font-size: 10px;
  margin-top: 256px;
}
.ad-block .ad-container, .ad-container-small {
  width: 300px; 
  height: 250px; 
  background-color: #b6b6ab; 
  text-align: center; 
}
.ad-container-small {
  right: 0px; 
  width: 81px; 
  height: 31px; 
  position: absolute; 
  top: 0px;
  color: #fff; 
  line-height: 28px;
  display: inline-block;
  overflow: hidden;
}

/*Fix for Poll Table */
.poll-table #ap-new-widgets .inner-frame th.col1,
.poll-table #ap-new-widgets .inner-frame th.col2,
.poll-table #ap-new-widgets .inner-frame th.col3,
.poll-table #ap-new-widgets .inner-frame td.col1,
.poll-table #ap-new-widgets .inner-frame td.col2,
.poll-table #ap-new-widgets .inner-frame td.col3 {
  text-align:center; 
  vertical-align:middle;
}

/*-------------Table Widgets Verticle Styles-----------------*/
.table-widget-wrapper.verticle #ap-new-widgets .title-block h1.widget-title {
    margin: 0 auto 0 0;
    padding-right: 91px;
  }
.table-widget-wrapper.verticle #ap-new-widgets .content-wrapper {
    float: none;
  }
.table-widget-wrapper.verticle #ap-new-widgets .content-wrapper .content-block {
    margin-right: 0px;
    min-height: inherit;
  }
.table-widget-wrapper.verticle .ad-block {
    float: none;
    margin: 20px auto 0 auto;
    position: relative;
    right: auto;
  }
.table-widget-wrapper.verticle .ad-block span {
    margin-top: -19px;
}
.gallery.table-widget-wrapper.verticle .slidesjs-next {
    right: 1px;
}
.gallery.table-widget-wrapper.verticle .slidesjs-pagination {
    right: 1px;
}






/*----------- Table Widget Featured -----------------*/
.featured.table-widget-wrapper #ap-new-widgets .content-wrapper .inner-frame table tbody tr:first-child {
    display: none;
}
.featured.table-widget-wrapper .featured-block {
    background-color: #ffc; 
    height: 45px; 
    overflow: hidden; 
    clear: both;
    display: block;
    cursor: pointer;
}
.featured.table-widget-wrapper .featured-block .col1 {
    height: 45px;
    min-width: 34px;
    vertical-align: middle;
    display: table-cell;
    padding: 0px 8px;
}
.featured.table-widget-wrapper .featured-block .col1 span.row-number {
    background: #ea640a;
    color: #fff;
    display: block;
    font-weight: 700;
    border-radius: 15px;
    height: 30px;
    line-height: 30px;
    width: 30px;
    text-align: center;
}
.featured.table-widget-wrapper .featured-block .col2 {
    display: table-cell;
    width: 98%;
    vertical-align: middle; 
}
.featured.table-widget-wrapper .featured-block .col3 {
    display: table-cell;
    width: 57px;
    vertical-align: middle; 
    padding: 0px 8px;
}
.featured.table-widget-wrapper .featured-block .col3 .img-holder {
    display: block; 
    width: 57px; 
    height: 39px; 
    line-height: 35px;
    overflow: hidden;
    text-align: center;
}
.featured.table-widget-wrapper .featured-block .col3 .img-holder img {
    vertical-align: middle;
}
.featured.table-widget-wrapper .featured-block .outer-cell {
    height: 33px; 
    overflow: hidden;
}
.featured.table-widget-wrapper .featured-block .inner-cell {
    vertical-align: middle; 
    height: 33px;
}
.featured.table-widget-wrapper #ap-new-widgets .content-wrapper .inner-frame table th {
    border-bottom-color: transparent;
    border-top:1px #ededed solid;
}
.featured.table-widget-wrapper #ap-new-widgets .content-wrapper .inner-frame table tbody tr.tr-even td {
  background-color: #e5e5de;
}
.featured.table-widget-wrapper #ap-new-widgets .content-wrapper .inner-frame table tbody tr.tr-odd td {
  background-color: #fff;
}
.featured.table-widget-wrapper #ap-new-widgets .content-wrapper .inner-frame tbody tr.tr-even td:hover,
.featured.table-widget-wrapper #ap-new-widgets .content-wrapper .inner-frame tbody tr.tr-odd td:hover,
.featured.table-widget-wrapper .featured-block:hover  {
  background-color: #d7d7c6;
}



/*----------- List Widgets  --------------------*/
/************************************************/

/*----------- List News Widget -----------------*/
.list-news.table-widget-wrapper #ap-new-widgets .content-wrapper .inner-frame thead,
.list-news.table-widget-wrapper #ap-new-widgets .content-wrapper .inner-frame table td.col1,
.list-news.table-widget-wrapper #ap-new-widgets .content-wrapper .inner-frame table td.col2 {
    display: none!important;
}
.list-news.table-widget-wrapper #ap-new-widgets .content-wrapper .inner-frame table tr:first-child .col3 {
    border: 0px;
}
.list-news.table-widget-wrapper #ap-new-widgets .content-wrapper .inner-frame table td {
    height: 49.8px;
}



/*----------- List News Widget Featured -----------------*/
.list-news.table-widget-wrapper.featured .featured-block {
    background-color: #fff;
    height: 65px;
    vertical-align: middle;
    padding-right: 8px;
    position: relative;
}
.list-news.featured.table-widget-wrapper .featured-block .outer-cell {
    height: 65px; 
    display: table;
}
.list-news.table-widget-wrapper.featured .featured-block .col1 {
    display: none;
}
.list-news.table-widget-wrapper.featured .featured-block .col2 {
    position: relative;
    padding-right: 76px;
    width: auto;
    float: left;
    left: 76px;
}
.list-news.table-widget-wrapper.featured .featured-block .col3 {
    width: 60px;
    left: 0px;
    top: 42px;
    position: absolute;
}
.list-news.table-widget-wrapper.featured #ap-new-widgets .content-wrapper .inner-frame table td {
    height: 46px;
}
.list-news.table-widget-wrapper.featured .featured-block .col3 .img-holder {
    width: 60px;
    height: 60px;
    line-height: 57px;
    margin-top: 2px;
    padding: 0px 1px;
}
.list-news.table-widget-wrapper.featured .featured-block .col3 .img-holder img {
    width: 100%;
    min-width: 100%;
}
.list-news.table-widget-wrapper.featured .featured-block:hover {    
    background-color: #ffc;
}


/*----------- Gallery Widgets  --------------------*/
/***************************************************/

.gallery.table-widget-wrapper #ap-new-widgets .content-wrapper .inner-frame {
  padding: 0;
}
.gallery.table-widget-wrapper button.button-right { 
  margin-left: 2px;
}
.gallery.table-widget-wrapper button.button-left { 
  margin-left: -2px;
}
.gallery.table-widget-wrapper .title-holder {
  display: block; 
  width: 34px; 
  height: 50px;
}
.gallery.table-widget-wrapper .slide-container {
/*  position: static;
  background-color: #333; 
  height: 254px;
  overflow: hidden;*/
}
.gallery.table-widget-wrapper .slide-container .container {
  width: 300px;
}
.gallery.table-widget-wrapper .slide-title {
  margin: 0; 
  padding: 0 8px; 
  height: 34px; line-height: 34px; 
  border-bottom: 1px #8d9192 solid; 
  color: #fff; 
  font-size: 12px; 
  font-weight: normal;
}
.gallery.table-widget-wrapper .slide-title span {
  display:block; 
  width:100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; 
  cursor: pointer;
}
.gallery.table-widget-wrapper #slides {
  position: static;
  cursor: pointer;
  display: none
 }

/* Center the slideshow */
.gallery.table-widget-wrapper .container {
     position: static;
     margin: 0 auto;
    }

    /* Show active item in the pagination */
.gallery.table-widget-wrapper .slidesjs-pagination .active {
      color: #fff;
      font-weight: 600;
      text-decoration: none;
      width: 60px;
      text-align: center;
    }

.gallery.table-widget-wrapper .slidesjs-pagination-item  {
        position: absolute;
        white-space: nowrap;
    }
.gallery.table-widget-wrapper .slidesjs-pagination-item a {
        display:none;
    }
.gallery.table-widget-wrapper .slidesjs-pagination-item a.active {
        display:block;
    }
.gallery.table-widget-wrapper .slidesjs-previous, .slidesjs-next {
        position: absolute;
        z-index: 1000;
        background:rgba(28,148,208,0.6);
        filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#6c1c94d0', endColorstr='#6c1c94d0'); /* IE */
        top: 114px;
        height: 50px;
        line-height: 60px;
        text-align:center;
        width: 32px;
        color: #fff;
        text-decoration: none;
        display:block;
        transition: background-color 0.15s linear 0s;
    }
.gallery.table-widget-wrapper .slidesjs-previous {
        left: 1px;
    }
.gallery.table-widget-wrapper .slidesjs-next {
        right: 321px;
    }
.gallery.table-widget-wrapper .slidesjs-next:after {
        content: "";
        display: block;
        position: absolute;
        top: 18px;
        left: 14px;
        width: 0px;
        height: 0px;
        border-style: solid;
        border-width: 8px 0 8px 8px;
        border-color: transparent transparent transparent #fff;
    }
.gallery.table-widget-wrapper .slidesjs-previous:after {
        content: "";
        display: block;
        position: absolute;
        top: 18px;
        left: 9px;
        width: 0px;
        height: 0px;
        border-style: solid;
        border-width: 8px 8px 8px 0;
        border-color: transparent #fff transparent transparent;
    }
.gallery.table-widget-wrapper .slidesjs-pagination {
        position:absolute;
        background:rgba(0,0,0,0.7);
        filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#7c333333', endColorstr='#7c333333'); /* IE */
        list-style:none;
        top: 36px;
        z-index: 1000;
        right: 321px;
        width: 60px;
        height: 26px;
        line-height: 24px;
        text-align: center;
        padding: 0px;
        margin: 0px;
        font-size: 10px;
     }



/********* Table Widgets Customizable Properties ********/
/*----------- General Properties -----------------------*/
#ap-new-widgets .content-wrapper .inner-frame table th {
    background: #e7e2d8;                                /* Content Table title background color */
    color: #666;                                        /* Content Table title text color */
}
#ap-new-widgets .content-wrapper .inner-frame {
    border-color: #ccc;                                 /* Content Table title border color */
}      
#ap-new-widgets .content-wrapper .inner-frame table tbody tr td {
    border-color: #fff;                                 /* Content Table cell border color */
    color: #333;                                        /* Content Table text color */
}
.featured.table-widget-wrapper #ap-new-widgets .content-wrapper .inner-frame table tbody tr.tr-even td, 
.featured.table-widget-wrapper #ap-new-widgets .content-wrapper .inner-frame table tbody tr.even td, 
#ap-new-widgets .content-wrapper .inner-frame table tbody tr.tr-even td,
#ap-new-widgets .content-wrapper .inner-frame table tbody tr.even td {
    background-color: #fff;                             /* Content Table even row background color */
}
.featured.table-widget-wrapper #ap-new-widgets .content-wrapper .inner-frame table tbody tr.tr-odd td,
.featured.table-widget-wrapper #ap-new-widgets .content-wrapper .inner-frame table tbody tr.odd td,
#ap-new-widgets .content-wrapper .inner-frame table tbody tr.tr-odd td,
#ap-new-widgets .content-wrapper .inner-frame table tbody tr.odd td {
    background-color: #e5e5de;                          /* Content Table odd row background color */
}
#ap-new-widgets .content-wrapper .inner-frame tbody tr.tr-even td:hover,
#ap-new-widgets .content-wrapper .inner-frame tbody tr.even td:hover,
#ap-new-widgets .content-wrapper .inner-frame tbody tr.tr-odd td:hover,
#ap-new-widgets .content-wrapper .inner-frame tbody tr.odd td:hover,
.featured.table-widget-wrapper #ap-new-widgets .content-wrapper .inner-frame table tbody tr.tr-even td:hover,
.featured.table-widget-wrapper #ap-new-widgets .content-wrapper .inner-frame table tbody tr.even td:hover,
.featured.table-widget-wrapper #ap-new-widgets .content-wrapper .inner-frame table tbody tr.tr-odd td:hover,
.featured.table-widget-wrapper #ap-new-widgets .content-wrapper .inner-frame table tbody tr.odd td:hover {
    background-color: #d7d7c6;                          /* Content Table hover row background color */
    color: #333;                                        /* Content Table hover row text color */
}
#ap-new-widgets .content-wrapper .inner-frame table td.col1 span.row-number {
    background: #69f;                                   /* Content Table row number background color */
    color: #fff;                                        /* Content Table row number text color */
}
.featured.table-widget-wrapper .featured-block .col1 span.row-number {
    background: #ea640a;                                /* Featured block row number background color */
    color: #fff;                                        /* Featured block row number text color */
}
.gallery.table-widget-wrapper .slide-container {          /* Gallery background color */
    background-color: #333;
 }
.gallery.table-widget-wrapper .slidesjs-previous,
.gallery.table-widget-wrapper .slidesjs-next {
    filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#6256d91', endColorstr='#6256d91'); /* Gallery navigation background color for IE */
    background:rgba(28,148,208,0.6);                    /* Gallery navigation background color */
} 
.gallery.table-widget-wrapper .slidesjs-previous:hover, 
.gallery.table-widget-wrapper .slidesjs-next:hover {
    filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#6c1c94d0', endColorstr='#6c1c94d0'); /* Gallery navigation background color for IE */
    background:rgba(28,148,208,1);                      /* Gallery navigation background color hover */
}
.gallery.table-widget-wrapper .slidesjs-next:after {
    border-left-color: #fff;                            /* Gallery navigation left arrow color */
}
.gallery.table-widget-wrapper .slidesjs-previous:after {
    border-right-color: #fff;                           /* Gallery navigation right arrow color */
 }
#ap-new-widgets .content-wrapper button {
    background-color: #1c94d0;                          /* Navigation Bar button background color */
}
#ap-new-widgets .content-wrapper button:hover {
    background-color: #146994;                          /* Navigation Bar button background color - hover */
}

#ap-new-widgets .inner-frame .poll-title {
  margin-top:0;
  margin-bottom: 0;
  overflow: hidden;
}

#ap-new-widgets .inner-frame .small {
  color: #666666;
  font-weight: normal;
  font-size: 13px;
  width: auto !important;
}