/* grid-item ------------------------- */

.grid-item {
  position: relative;
  float: left;
  width: 200px;
  margin: 5px;
  padding: 0px;
  /*background: #000;*/
  color: #262524;
}

@media screen and (min-width: 500px) {
    .grid-item--highlight {
    width: 410px;  /* add 2 x margin */
    height: auto;
  }
}

@media screen and (max-width: 600px) {
  .grid-item {
    width: 350px;
  }
}

.grid-item img {
  max-width: 100%;
}

@media screen and (min-width: 500px) {
  .grid-item--highlight img {
    width: 400px;
  }
}

.grid-item i {
  color: white;
  font-size: inherit;
  position: relative;
  /*left: 4px;
  top: 4px;*/
}

.grid-item p {
  color: white;
}

@media screen and (min-width: 500px) {
  .grid-item--highlight .icon {
    font-size: 3em;
  }

  .grid-item--highlight i {
    text-align: center;
    /*width: 100%;*/
  }

  .grid-item--highlight .title {
    text-align: center;
    font-size: 0.7em;
    padding: 3px;
  }

  .grid-item--highlight .preview {
    position: absolute;
    top: 0;
    right: 0;
    width: 84%;
  }
}

/* ---- button ---- */
/* Isotope - combination filters with toggle buttons - https://codepen.io/desandro/pen/zrMXQv */

.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 {
  font-weight: bold;
  /*text-shadow: 0 -1px hsla(0, 0%, 0%, 0.8);*/
}

.button-group.topic .button {
  width: 100px;
  height: 100px;
}

.button-group.topic .button img {  /* unclicked */
  width: 100%;
  opacity: 0.4;
}

.button-group.topic .button.is-checked {  /* clicked */
  border-color: black;
}

.button-group.topic .button.is-checked img {  /* clicked */
  opacity: 1.0;
}

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

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

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

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

.button-group.topic .button {
  border-radius: 0.5em;
  margin: 1px;
}

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

.button-group.filter .button {
  border-radius: 0.25em;
  margin: 1px;
}

/* ui group */

.ui-group {
  display: inline-block;
}

.ui-group h3 {
  display: inline-block;
  vertical-align: top;
  line-height: 32px;
  margin-right: 0.2em;
  font-size: 16px;
}

.ui-group .button-group {
  display: inline-block;
  margin-right: 20px;
}

