/* apply a natural box layout model to all elements */
*, *:before, *:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
.my_container { display:block; text-align:center; width:100%; margin:0 auto}
.my_container ul {
  list-style: none;
  width:90%;
  max-width:800px;
  margin:0 auto;
  padding: 0 0 0 0;
  display:block;

}
.my_container ul .item {
  width: 250px;
  height:250px;
  position: relative;
  display:inline-block;
  margin: 2% .5% 2% .5%;
  padding: 0 0 250px 0;
  transition: 0.5s ease;
  border:1px solid #000;
}


.my_container ul .item:hover{
	transform:scale(1.1);
	box-shadow: 0px 0px 30px rgba(0,0,0,1);
	z-index:9999}
.my_container ul .item:hover span {
  height: 45%;
}

.my_container ul .long:hover span {
  height: 70%;
}

.my_container ul .item img {
  max-width: none;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
}
.my_container ul .item span {
  width: 100%;
  height: 3rem;
  line-height: 1.5rem;
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0 1rem;
  font-size: .9em;
  color: rgba(245,217,182,1);
  transition: 0.5s ease;
  text-shadow: 0 0 1em #000;
  overflow:hidden;
  
}


/*各區塊字卡背景*/
ul .item span {background:linear-gradient(180deg,rgba(204,153,102,.6), #000);}

@media screen and (max-width: 1280px) {
  .my_container ul .item {
	font-size:1em;
  }
  .my_container ul .item span {
  position: absolute;
  bottom:0 !important;
  left: 0;}
}
@media screen and (max-width: 1024px) {
  .my_container ul .item {


  }
    .my_container ul .item span {
  position: absolute;
  bottom:0 !important;
  left: 0;}
}
@media screen and (max-width: 800px) {
  .my_container ul .item {

  }
  .my_container ul .item span {


}
  .my_container ul .item:hover span {

}
  .my_container ul .item span {
  position: absolute;
  bottom:0 !important;
  left: 0;}
}
@media screen and (max-width: 360px) {
  .my_container ul .item {

  }
    .my_container ul .item span {
  position: absolute;
  bottom:0 !important;
  left: 0;}
}

.my_container ul .item span div:nth-child(1){ height:50px; line-height:3em; text-shadow:#000 0 0 5px; color:#FFF }