.grid {
  position: relative;
  margin: 0px auto 0px auto;
  width: 100%;
  list-style: none;
  text-align: center;
  display: inline-block;
}
/* Common style */
.grid figure {
  position: relative;
  float: left;
  overflow: hidden;
  width: 33.33333333%;
  text-align: center;
  cursor: pointer;
  height: 560px;
}
.grid.attivita figure.effect-duke p {
  left: auto;
  right: 0px;
  width: 50%;
  border: none;
  font-size: 18px;
  text-align: left;
}
.grid.attivita figure.effect-duke h2 {
  text-align: left;
  border: 0px;
  margin: 50px;
  font-size: 40px;
  color: #ffffff;
  text-shadow: 0 1px 0 black;
  line-height: 50px;
  font-family: 'Noto Sans KR', sans-serif;
}
.grid.attivita figure {
  width: 100%;
  height: 400px;
}
.grid.streaming {
  margin-top: 20px
}
.grid.streaming figure {
  width: 48%;
  height: 287px;
}
.grid figure img {
  position: relative;
  display: block;
  max-width: 100%;
  opacity: 0.6;
}
.grid figure figcaption {
  padding: 20px;
  color: #fff;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.grid figure figcaption::before, .grid figure figcaption::after {
  pointer-events: none;
}
.grid figure figcaption, .grid figure figcaption > a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.grid figure figcaption > a {
  z-index: 1000;
  text-indent: 200%;
  white-space: nowrap;
  font-size: 0;
  opacity: 0;
  color: white;
}
.grid figure h2 {
  color: white;
  font-size: 30px;
  text-shadow: 0 1px 0 black;
}
.grid figure h2 span {
  font-weight: 800;
}
.grid figure h2, .grid figure p {
  margin: 0;
}
.grid figure p {
  text-align: center;
}
.grid figure .btn {
  float: inherit
}
/* Individual effects */
/*---------------*/
/***** Duke *****/
/*---------------*/
figure.effect-duke {
  background: #3e3e3e; /*	background: -webkit-linear-gradient(-45deg, #34495e 0%, #cc6055 100%);
	background: linear-gradient(-45deg, #34495e 0%, #cc6055 100%);*/
}
figure.effect-duke img, figure.effect-duke p {
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
}
figure.effect-duke:hover img {
  opacity: 0.5;
  -webkit-transform: scale3d(2, 2, 1);
  transform: scale3d(2, 2, 1);
}
.grid figure p img {
  position: relative;
  /* display: block; */
  height: 80px;
  opacity: 1;
  margin: auto;
}
figure.effect-duke:hover p img {
  opacity: 1;
  -webkit-transform: none;
  transform: none
}
figure.effect-duke h2 {
  -webkit-transition: -webkit-transform 0.35s;
  transition: transform 0.35s;
  -webkit-transform: scale3d(0.8, 0.8, 1);
  transform: scale3d(0.8, 0.8, 1);
  -webkit-transform-origin: 50% 100%;
  transform-origin: 50% 100%;
  margin: 20px 0px;
  font-size: 40px;
}
figure.effect-duke p {
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 3%;
  padding: 20px;
  border: 1px solid #fff;
  text-transform: none;
  font-size: 14px;
  opacity: 0;
  -webkit-transform: scale3d(0.8, 0.8, 1);
  transform: scale3d(0.8, 0.8, 1);
  -webkit-transform-origin: 50% -100%;
  transform-origin: 50% -100%;
  display: inline-block;
  width: 93%;
  color: #ffffff;
  text-align: center;
  -moz-border-radius: 4px;
  border-radius: 4px;
}
figure.effect-duke:hover h2, figure.effect-duke:hover p {
  opacity: 1;
  -webkit-transform: scale3d(1, 1, 1);
  transform: scale3d(1, 1, 1);
}
@media screen and (max-width: 1370px) {
  .grid figure {
    height: 360px;
  }
}
@media screen and (max-width: 1034px) {
  .grid figure {
    width: 100%;
    height: 650px;
  }
  .grid.attivita figure.effect-duke h2 {
    margin: 50px 0px;
  }
  .grid.attivita figure img {
    width: initial;
    height: 100%;
    max-width: initial;
  }
  figure.effect-duke h2 {
    font-size: 60px;
    margin-top: 50px;
  }
  .grid figure img {
    width: 100%;
  }
  figure.effect-duke p {
    font-size: 25px;
  }
}
@media screen and (max-width: 900px) {
  .grid.attivita figure.effect-duke p {
    width: 95%;
  }
  figure.effect-duke p {
    margin: 2%;
    padding: 15px;
    font-size: 15px;
    width: 93%;
  }
  .grid.streaming figure {
    width: 48%;
    height: 247px;
  }
  .grid figure {}
  .grid figure h2 {}
}
@media screen and (max-width: 778px) {
  .grid.streaming figure {
    width: 48%;
    height: 231px;
  }
  figure.effect-duke p {
    font-size: 30px;
  }
}
@media screen and (max-width: 670px) {}
@media screen and (max-width: 570px) {
  .grid figure {
    width: 100%;
    height: 567px;
  }
  figure.effect-duke p {
    font-size: 22px;
  }
}
@media screen and (max-width: 400px) {
  .grid.attivita figure {
    width: 100%;
    height: 700px;
  }
  .grid.attivita figure.effect-duke h2 {
    margin: 0px 0px;
    font-size: 38px;
  }
  figure.effect-duke p {
    font-size: 18px;
  }
  .grid figure {
    width: 100%;
    height: 375px;
  }
  figure.effect-duke h2 {
    font-size: 40px;
    margin-top: 0px
  }
}
@media screen and (max-width: 330px) {
  .grid figure {
    width: 100%;
    height: 319px;
  }
  figure.effect-duke p {
    font-size: 13px;
  }
  figure.effect-duke h2 {
    font-size: 30px;
    margin-top: 0px;
  }
}