/* ---- button ---- */

.button {
  display: inline-block;
  padding: 10px 18px;
  margin-bottom: 10px;
  background: #EEE;
  border: none;
  color: #222;
  font-size: 16px;
  cursor: pointer;
  font-weight: 500;
  transition: all ease-in-out 300ms;
  margin-right: 6px;
}

.button:hover {
  background-color: #00ab66;
  color: #fff;
}

.button:active,
.button.is-checked {
  background-color: #00ab66;
}

.button.is-checked {
  color: white;
}

.button:active {
  box-shadow: inset 0 1px 10px hsla(0, 0%, 0%, 0.8);
}

/* ---- button-group ---- */

.button-group {
  /* display: flex; */
  /* align-items: center; */
  /* justify-content: center; */
  text-align: center;
} 

/* ---- .element-item ---- */

.element-item {
  width: calc(100%/4);
  padding: 10px;
  position: relative;
  overflow: hidden;
  height: 300px;
}

.element-item > * {
  margin: 0;
  padding: 0;
}

.element-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.element-item .overlay > i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 28px;
}

.element-item .overlay {width: 100%;height: 100%;position: absolute;background-color: rgba(0, 0, 0, 0.7);left: 0;top: 0;transform: translateX(-100%);transition: all ease-in-out 500ms;}

.element-item > a {
  overflow: hidden;
  height: 100%;
  display: block;
  position: relative;
}

.element-item > a:hover .overlay {
  transform: translateX(0);
}

@media (max-width: 991.98px) {
.element-item {
  width: calc(100%/3);
}
.button-group {
  text-align: left;
}
.button {
  width: calc(50% - 12px);
}
}
@media (max-width: 767.98px) {
.element-item {
  width: calc(100%/2);
}
}
@media (max-width: 575.98px) {
.element-item {
  width: 100%;
}
}