/* PET ADOPTION PORTAL */

/* Default desktop styles */
#rgtkSearchPetInfoAnimalName { font-weight: bold; }
.rgtkSearchResultsCell { padding-bottom: 10px; }

/* Force all RescueGroups wrappers to center globally */
div[class*="rgtk-"], 
.rgtkSearchResultsTable {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* Mobile vertical portrait view only (Screens up to 600px wide in portrait mode) */
@media screen and (max-width: 600px) and (orientation: portrait) {
  
  /* Convert the table layout into stacked blocks universally and center align */
  .rgtkSearchResultsTable,
  .rgtkSearchResultsTable tbody,
  .rgtkSearchResultsTable tr,
  .rgtkSearchResultsCell,
  .rgtkSearchResultsCell td {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .rgtkSearchResultsCell {
    margin-bottom: 25px !important;
    padding: 10px 15px !important;
    border-bottom: 1px solid #eee;
  }

  /* Override the inline background image dimensions and positioning for mobile */
  div[class*="SearchPetPic"], 
  .rgtkSearchPetPic {
    display: block !important;
    width: 100% !important;
    max-width: 320px !important;
    height: 320px !important; /* Locks in a nice large square frame */
    background-size: cover !important; /* Scales the photo to fill the box */
    background-position: center 50% !important; /* Shifts the focus down from ears to the dog */
    background-repeat: no-repeat !important;
    border: 1px solid #dddddd !important;
    text-align: center !important;
    margin: 0 auto !important;
    float: none !important;
  }
}