/* CONTAINER FIX - Forces text to drop down */
.bongacams-wrapper {
    display: flow-root; /* The magic fix for floats */
    width: 100%;
    clear: both;
    margin-bottom: 20px;
}

/* --- Responsive Grid --- */

/* Base Item Style */
body div.bongacamscamitem {
  float: left; /* Keep float since you like the tight layout */
  width: 23%; /* 4 items per row */
  margin: 1%;
  background: #fff;
  border: 1px solid #ddd;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: #444;
  overflow: hidden;
  position: relative;
  min-height: 180px;
  box-sizing: border-box;
  text-align: center;
}

/* Image */
body div.bongacamscamitem img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 5px;
}

/* Text Links */
body div.bongacamscamitem a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    display: block;
    padding-bottom: 5px;
}
body div.bongacamscamitem a:hover {
    color: #d32f2f;
}

/* Responsive: 3 items on Tablet */
@media (max-width: 768px) {
    body div.bongacamscamitem {
        width: 31.33%; 
        margin: 1%;
    }
}

/* Responsive: 2 items on Mobile */
@media (max-width: 480px) {
    body div.bongacamscamitem {
        width: 48%; 
        margin: 1%;
        font-size: 11px;
    }
}

/* Pager */
.bongacams_pager {
    clear: both;
    padding-top: 20px;
    text-align: center;
}
.bongacams_pager_item, .bongacams_pager_item_current {
    padding: 5px 10px;
    margin: 2px;
    border: 1px solid #ddd;
    background: #fff;
    text-decoration: none;
}
.bongacams_pager_item_current {
    background: #eee;
    font-weight: bold;
}

/* Popups */
body div.bongacamsshadow {
  background: rgba(0,0,0,0.8);
  position: fixed;
  z-index: 99998;
  top: 0; left: 0; width: 100%; height: 100%;
}
body div.bongacamspopup {
  position: fixed;
  background: #FFF;
  width: 90%; max-width: 900px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 99999;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
body div.bongacamsclose {
  position: absolute; top: 10px; right: 15px; font-weight: bold; font-size: 18px;
}