html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
    margin:0;
    padding:0;
    border:0;
    outline:0;
    font-size:100%;
    vertical-align:baseline;
    background:transparent;
}

body {
  line-height:1;
}


article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section {
    display:block;
}
h1{
  font-size:1.8em;
}
h2{
  font-size:1.5em;
}
h3{
  font-size:1.2em;
}
h4{
  font-size:1em; font-weight: bold;
}
nav ul {
    list-style:none;
}

blockquote, q {
    quotes:none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content:'';
    content:none;
}

a {
    margin:0;
    padding:0;
    font-size:100%;
    vertical-align:baseline;
    background:transparent;
    cursor: pointer;
}
button{
  cursor: pointer;
}

/* change colours to suit your needs */
ins {
    background-color:#ff9;
    color:#000;
    text-decoration:none;
}

/* change colours to suit your needs */
mark {
    background-color:#ff9;
    color:#000;
    font-style:italic;
    font-weight:bold;
}

del {
    text-decoration: line-through;
}

abbr[title], dfn[title] {
    border-bottom:1px dotted;
    cursor:help;
}

table {
    border-collapse:collapse;
    border-spacing:0;
}

/* change border colour to suit your needs */
hr {
    display:block;
    height:1px;
    border:0;
    border-top:1px solid #cccccc;
    margin:1em 0;
    padding:0;
}

input, select {
    vertical-align:middle;
}

/*
*
*
MY CODE BELOW
*
*
*/
html{
  height:100%;
}
body{
  display: block;
  height:100%;
  position: relative;
  overflow-x: auto;
  overflow-y: scroll;
  background-color: #fff;
  font-size: 15px;
  color:#333;
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
}
.header{
  display: block;
  background: #f1f1f1;
  width: 1204px;
  overflow: hidden;
  margin: 20px auto 35px auto;
  border-radius: 10px;
  /*border:5px solid #414141;*/
}
footer{
  display: block;
  width:100%;
  padding:20px;
  background: #fff;
}
.footer-wrapper{
  display: block;
  text-align: center;
}
.locations-list{
  display: block;
  width:100%;
  float: left;
  margin: auto;
  padding:20px 0;
  overflow: hidden;
}
.locations-list a{
  color:#333;
}
.l_string{
  display: none;
}
.locations-list h4{
  float: left;
  padding: 8px 12px;
  background: #ddd;
  margin: 0 10px 10px 0;
  border-radius: 5px;
  font-weight: normal;
  font-size: 12px;
  border-left: 5px solid #c9c9c9;
}
.locations-list h4:hover{
  background: #eee;
}
.content{
  display:block;
  overflow: hidden;
  width:1204px;
  margin:auto;
}
.logo{
  display: block;
  float:left;
  padding:20px 20px 20px 26px;
  background: #c90019;
  color:#fff;
  font-size: 20px;
}
.logo:hover{
  background: #e50d28;
  color:#fff;
}
.search{
  display: block;
  float: left;
  width: calc(100% - 66px);
  box-sizing: border-box;

}
.search input{
  font-size:15px;
  line-height: 60px;
  display: block;
  float: left;
  width:100%;
  padding:0 20px;
  box-sizing: border-box;
  border:none;
  background: transparent;
  outline: none;
}
.item{
  display: block;
  position: relative;
  float:left;
  width:160px;
  height:auto;
  margin:0 12px 12px 0;
  font-size: 12px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #ddd;
}

.item:nth-child(7n){
  /*margin-right:0;*/
}
figure{
  position: relative;
  overflow: hidden;
}
.image{
  display: block;
  float:left;
  width:100%;
  height:190px;
  object-fit: cover;
}
.src-logo{
  position:absolute;
  bottom:0;
  right:0;
  width:30%;
  opacity:0.7;
  border-top-left-radius: 2px;
}
.data-wrap{
  display: block;
  float:left;
  width: 100%;
  overflow: hidden;
  background: #eaeaea;
  padding:10px;
  color:#333;
  line-height:16px;
}
.title{
  display: block;
  float:left;
  width:100%;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: bold;
}
.age{
  display: block;
  position: absolute;
  top: 5px;
  right: 5px;
  background: #dd0e23;
  border-radius: 50%;
  line-height: 22px;
  width: 22px;
  text-align: center;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
}
.location{
  display: block;
  float:left;
  width:100%;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.total-count {
  display: block;
  margin:10px 0;
  clear:both;
}

@media only screen and (max-width: 1200px) {
  .header{
    width:calc(100% - 24px);
    margin:20px 12px;
  }
  .content{
    width:calc(100% - 12px);
    display:flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    margin:0 0 0 12px;
  }
  .item{
    align-self:center;
  }
}
