* {
  box-sizing: border-box;
  /*outline: 1px solid red;*/
}

html {
  font-family: sans-serif;
  background-color: #222;
  color: antiquewhite;
  /*overflow-x: hidden;*/
  /*scrollbar-gutter: stable;*/
}



.tag {
  background: #000;
  position: absolute;
  left: 4px;
  bottom: 4px;
  color: #ccef00;
  font-size: 10px;
  border-radius: 3px;
  padding: 4px 8px !important;
  opacity: .6;
  z-index: 2;
}

.tag p {
  margin: 0;
}

.cover {
  width: 100%;
  height: auto;
  border-radius: 4px;
  transform: scale(1.02);
  transition: transform 0.1s ease-out;
}

.element-item:hover .cover {
  transform: scale(1);
}

.popup {
  width: 100%;
  height: 100%;
  background:hsla(0, 0%, 0%, 0.9);
  display: flex;
  position: fixed;
  border: none;
  top: 0;
  left: 0;
  align-items: center;
  justify-content: center;
  z-index: 999;
  visibility: hidden;
}

.show-popup{
  visibility: visible;
}


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

.button {
  display: inline-block;
  padding: 8px 16px;
  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: 8px 0 0 8px; }
.button-group .button:last-child { border-radius: 0 8px 8px 0; }



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



.grid {
  /*background-color: #222;*/
  padding: 20px;
}


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

/* ---- .element-item ---- */

.element-item {
  position: relative;
  float: left;
  width: 200px;
  height: 200px;
  cursor: pointer;
  background: #888;
  border-radius: 4px;
  overflow: hidden;
}



.element-item > * {
  margin: 0;
  padding: 0;
}



.wide {
  width: 420px;
}

.tall {
  height: 420px;
}



@media screen and (max-width: 1024px) {
  .element-item {
    width: 100px; 
    height: 100px;
  }

	.wide {
		width: 210px;
	}

	.tall {
		height: 210px;
	}

  .tag {
    font-size: 6px;
  }
}