
.grid-item {
    padding-left: 3px !important;
    padding-right: 3px !important;
    margin: 2px;
}

* {
    box-sizing: border-box;
}

body {
  font-family: sans-serif;
  background-color: lightblue;
}

#filters {
    display: inline;
}

#filters-label {
    display: inline;
    float: left;
    margin-right: 10px;
    padding-top: 2px;
    font-size: 1.5rem;
}

#filters-spacer {
    height: 8px;
}

.sizing {
    margin-bottom: 18px;
    float: right;
}

.sorting {
    margin-top:6px;
    padding-right: 40px;
    float: right;
}

#sort-dropdown {
    margin-left: 10px;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 8px;
}


.dropdown {
  font-size: 1.2rem;
}

.dropdown option {
    font-size: 1.2rem !important;
}

/* ---- button ---- */

.button {
  display: inline-block;
  padding: 0.5em 1.0em;
  background: #EEE;
  border: none;
  border-radius: 7px;
  background-image: linear-gradient( to bottom, hsla(0, 0%, 0%, 0), hsla(0, 0%, 0%, 0.2) );
  color: #222;
  font-family: sans-serif;
  font-size: 16px;
  text-shadow: 0 1px white;
  cursor: pointer;
}

.button:hover {
  background-color: #8CF;
  text-shadow: 0 1px hsla(0, 0%, 100%, 0.5);
  color: #222;
}

.button:active,
.button.is-checked {
  background-color: #28F;
}

.button.is-checked {
  color: white;
  text-shadow: 0 -1px hsla(0, 0%, 0%, 0.8);
}

.button:active {
  box-shadow: inset 0 1px 10px hsla(0, 0%, 0%, 0.8);
}

/* ---- button-group ---- */

.button-group {
  margin-bottom: 20px;
}

.button-group:after {
  content: '';
  display: block;
  clear: both;
}

.button-group .button {
  float: left;
  border-radius: 0;
  margin-left: 0;
  margin-right: 1px;
}

.button-group .button:first-child { border-radius: 0.5em 0 0 0.5em; }
.button-group .button:last-child { border-radius: 0 0.5em 0.5em 0; }

/* ---- isotope ---- */

.grid {
<!--  border: 1px solid #333;-->
}

/* clear fix */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

.ui-tabs .ui-tabs-panel {
    padding: 8px 2px 0px 4px !important;
    padding-left: 2px;
    padding-top: 8px;
    padding-right: 0px;
    padding-bottom: 4px;
}

/* Default to large-screen device (tablet or pc) */
#filters-buttons-container {
    display: block;
}
#filters-dropdown-container {
    display: none;
}

@media only screen and (max-width : 320px) {
    #sort-dropdown-container {
        display: none;
    }
}

/* Styles for narrower screens */
@media screen and (max-width: 1040px) {
    #filters-buttons-container {
        display: none;
    }
    #filters-dropdown-container {
        display: block;
    }
    .button {
        font-size: 18px;
        padding: 2 2 2 2;
    }
    body {
      margin: 4px 4px 4px 4px !important;
    }
}

#building-controls {
    height: 32px;
}


.overlay-host {
     background: rgba(0, 0, 0, .5)
     position: relative;
     overflow: hidden;
 }

 .overlay {
     position: absolute;
     inset: 0;
     pointer-events: none;
 }

 .overlay-one {
     z-index: 2;
 }

 .overlay-two {
     z-index: 3;
 }

 .overlay-two {
     z-index: 4;
 }

 .overlay-one img {
     position: absolute;
     top: 40px;
     left: 8px;
     width: 32px;
     height: 32px;
     opacity: 1;
 }

 .overlay-two p {
     position: absolute;
     top: 56px;
     bottom: 20px;
     left: 5px;
     right: 20px;
     width: 54px;
     height: 27px;
     opacity: 0.6;
     font-size: 24px;
     background-color: black;
     color: white;
     font-weight: bold;
     font-family: "Arial", Times, serif;
     padding-left: 0px;
 }

 .overlay-two #itemnum-background {
    position: absolute;
    left: 0px;
    width: 64px;
 }

.itemnum {
    text-align: center;
    border-radius: 10px;
}

.vspacer (
    height: 40px;
}