@-webkit-keyframes move {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes move {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@media only screen and (max-width: 767px) {
  .twitter {
    width: calc(100% - 20px);
    margin: 20px 0;
    -webkit-display: flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-pack: center;
    -moz-box-pack: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
  }
  .twitter .twtr-box {
    width: 268px;
    margin: 0 0 20px 20px;
  }
}

@media only screen and (min-width: 768px) {
  .twitter {
    width: calc(100% + 10px);
    margin: 20px 0 20px -10px;
    -webkit-display: flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  .twitter .twtr-box {
    width: calc(25% - 22px);
    margin: 0 0 10px 10px;
  }
}

.twitter .twtr-box {
  padding: 5px;
  border: 1px solid #ccc;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  -webkit-animation-name: move;
  animation-name: move;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-timing-function: ease-out;
  animation-timing-function: ease-out;
}

.twitter .twtr-box div.box,
.twitter .twtr-box a.box {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #eee;
}

.twitter .twtr-box div.box .spacer,
.twitter .twtr-box a.box .spacer {
  padding-bottom: 100%;
  width: 100%;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: #fff;
  opacity: 0;
}

.twitter .twtr-box div.box img,
.twitter .twtr-box a.box img {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 50%;
  -webkit-transform: translateY(-50%) translateX(-50%);
  transform: translateY(-50%) translateX(-50%);
}

.twitter .twtr-box a.box .spacer:hover {
  opacity: 0.5;
}

.twitter .twtr-box p {
  margin: 7px 3px;
  text-align: left;
}

.twitter .twtr-box .links {
  color: #fff;
  background: none;
  text-align: left;
  display: inline-block;
  margin: 0 0 0 5px;
  line-height: 100%;
}

.twitter-next {
  margin: 0 auto 30px auto;
  text-align: center;
  padding: 7px 0 7px 0;
  font-size: 1.3em;
  width: 120px;
  background-color: #c1ced8;
  color: #000;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  line-height: 100%;
  cursor: pointer;
}

.twitter-next:hover {
  background-color: #dee6ed;
}
