/*
CSS Adjusted for Tabulizer based on an idea presented by http://zurb.com
*/

/* rs_polaroidimages_1 */

table.tabtable-rs_polaroidimages_1 { border: none; border-collapse: collapse;}
table.tabtable-rs_polaroidimages_1 tr.tabrow { border: none;}
table.tabtable-rs_polaroidimages_1 tr.tabrow td.tabcol { border: none; }

@media screen and (max-width: 767px) {
  table ul.polaroid-gallery li a img { max-width: 220px; }
  table ul.polaroid-gallery ul.polaroid-gallery li a { margin-left: 10px; margin-right: 10px; }
}
@media screen and (max-width: 480px) {
  table ul.polaroid-gallery li a img { max-width: 160px; }
  table ul.polaroid-gallery ul.polaroid-gallery li a { margin-left: 0; margin-right: 0; }
}

table.tabtable-rs_polaroidimages_1 .polaroid-wrapper {
    overflow: visible;
}
table.tabtable-rs_polaroidimages_1 ul.polaroid-gallery li {
    display: inline;
}
table.tabtable-rs_polaroidimages_1 ul.polaroid-gallery li a {
    background: none repeat scroll 0 0 #fff;
    color: #333;
    display: inline;
    float: left;
    font-family: "Marker Felt",sans-serif;
    font-size: 18px;
    margin: 0 0 27px 30px;
    padding: 10px 10px 15px;
    text-align: center;
    text-decoration: none;
    transform: rotate(-2deg);
    width: auto;
}
table.tabtable-rs_polaroidimages_1 ul.polaroid-gallery li {
    padding-left: 0;
}
table.tabtable-rs_polaroidimages_1 ul.polaroid-gallery img {
    display: block;
    margin-bottom: 12px;
    width: auto;
}
table.tabtable-rs_polaroidimages_1 ul.polaroid-gallery a:after {
    content: attr(title);
}
table.tabtable-rs_polaroidimages_1 ul.polaroid-gallery li:nth-child(2n) a {
    transform: rotate(2deg);
}
table.tabtable-rs_polaroidimages_1 ul.polaroid-gallery li:nth-child(3n) a {
    position: relative;
    top: -5px;
    transform: none;
}
table.tabtable-rs_polaroidimages_1 ul.polaroid-gallery li:nth-child(5n) a {
    position: relative;
    right: 5px;
    transform: rotate(5deg);
}
table.tabtable-rs_polaroidimages_1 ul.polaroid-gallery li:nth-child(8n) a {
    position: relative;
    right: 5px;
    top: 8px;
}
table.tabtable-rs_polaroidimages_1 ul.polaroid-gallery li:nth-child(11n) a {
    left: -5px;
    position: relative;
    top: 3px;
}
table.tabtable-rs_polaroidimages_1 ul.polaroid-gallery li.messy a {
    left: 160px;
    margin-top: -400px;
    position: relative;
}
table.tabtable-rs_polaroidimages_1 ul.polaroid-gallery li a:hover {
    background-color: #fff !important;
    position: relative;
    transform: scale(1.25);
    z-index: 5;
}

/* rs_polaroidimages_2 */

table.tabtable-rs_polaroidimages_2 { border: none; border-collapse: collapse;}
table.tabtable-rs_polaroidimages_2 tr.tabrow { border: none;}
table.tabtable-rs_polaroidimages_2 tr.tabrow td.tabcol { 
  border: none; 
  background: url(../images/polaroid_bg4.png);
  padding:20px;
}

table.tabtable-rs_polaroidimages_2 .polaroid-wrapper {
    overflow: visible;
}
table.tabtable-rs_polaroidimages_2 ul.polaroid-gallery li {
    display: inline;
}
table.tabtable-rs_polaroidimages_2 ul.polaroid-gallery li a {
    background: none repeat scroll 0 0 #fff;
    color: #333;
    display: inline;
    float: left;
    font-family: "Marker Felt",sans-serif;
    font-size: 18px;
    margin: 0 0 27px 30px;
    padding: 10px 10px 15px;
    text-align: center;
    text-decoration: none;
    transform: rotate(-2deg);
    width: auto;
    box-shadow:10px 10px 7px rgba(0,0,0,.7);
}
table.tabtable-rs_polaroidimages_2 ul.polaroid-gallery li {
    padding-left: 0;
}
table.tabtable-rs_polaroidimages_2 ul.polaroid-gallery img {
    display: block;
    margin-bottom: 12px;    
    width: auto;
}
table.tabtable-rs_polaroidimages_2 ul.polaroid-gallery a:after {
    content: attr(title);
}
table.tabtable-rs_polaroidimages_2 ul.polaroid-gallery li:nth-child(2n) a {
    transform: rotate(6deg);
}
table.tabtable-rs_polaroidimages_2 ul.polaroid-gallery li:nth-child(3n) a {
    position: relative;
    top: -5px;
    transform: none;
    transform: rotate(12deg);
}
table.tabtable-rs_polaroidimages_2 ul.polaroid-gallery li:nth-child(5n) a {
    position: relative;
    right: 5px;
    transform: rotate(-14deg);
}
table.tabtable-rs_polaroidimages_2 ul.polaroid-gallery li:nth-child(8n) a {
    position: relative;
    right: 5px;
    top: 8px;
    transform: rotate(-4deg);
}
table.tabtable-rs_polaroidimages_2 ul.polaroid-gallery li:nth-child(11n) a {
    left: -5px;
    position: relative;
    top: 3px;
}
table.tabtable-rs_polaroidimages_2 ul.polaroid-gallery li.messy a {
    left: 160px;
    margin-top: -400px;
    position: relative;
}
table.tabtable-rs_polaroidimages_2 ul.polaroid-gallery li a:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7);
    background-color: #fff !important;
    position: relative;
    transform: scale(1.25);
    z-index: 5;
}