@charset "utf-8";

/* zoomer */

.transition {
background-image: url("../grfx/gradient.jpg");
background-repeat: repeat-x;
background-position: bottom;
padding-bottom: 50px;
margin: 90px 50px 50px;
}
.transition p {
font-size: 1em;
margin: 0 40px 20px;
}
.transition span {
font-size: 1em;
font-weight: bold;
}
article.zm {
display: grid;
grid-column-gap: 0;
grid-row-gap: 0;
grid-template-columns: 1fr;
grid-template-rows: repeat(12, 1fr);
max-width: 1600px;
margin: 0 auto;
padding: 0 20px;
}
article.zm figure {
position: relative;
width: 100%;
height: auto;
max-width: 500px;
overflow: hidden;
margin: 0 auto;
padding: 0;
border: 0;
}
article.zm figure img {
display: block;
width: 100%;
height: auto;
max-width: 500px;
-webkit-transition: all 300ms;
-moz-transition: all 300ms;
transition: all 300ms;
}
article.zm figure:hover img  {
-webkit-transform: scale(1.4);
-moz-transform: scale(1.4);
transform: scale(1.4);
}
article.zm figcaption {
position: absolute;
display: table;
background: orange;
height: 100%;
overflow: hidden;
left: 0; right: 0;
top: 0;
opacity: 0;
padding: 10px;
-webkit-transition: all 300ms;
-moz-transition: all 300ms;
transition: all 300ms;
-webkit-transition-delay: 100ms;
-moz-transition-delay: 100ms;
transition-delay: 100ms;
}
article.zm figcaption p {
display:table-cell;
vertical-align: middle;
font: 12px 'Arial', sans-serif;
text-align: center;
font-size: .9rem;
line-height: 1.4em;
color: #FFF;
font-weight: 400;
-webkit-transition: all 300ms ease-out;
-moz-transition: all 300ms ease-out;
transition: all 300ms ease-out;
-webkit-transition-delay: 100ms;
-moz-transition-delay: 100ms;
transition-delay: 100ms;
z-index: 99;
}
article.zm figcaption p span {
display: block;
margin: -3em 0 1em;
font-weight: bold;
}
article.zm figcaption:hover  {opacity: 1}
article.zm figure:hover figcaption p {
-moz-transform: translateY(20px);
-webkit-transform: translateY(20px);
transform: translateY(20px);
}

@media (min-width: 280px) {	
article.zm {
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(6, 1fr);
padding: 0 16px;
}
}
@media (min-width: 620px) {	
article.zm {
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(4, 1fr);
}
}
@media (min-width: 940px) {
article.zm {
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(4, 1fr);
}
article.zm figcaption p {
font-family: 'Work Sans', sans-serif;
font-size: .9em;
line-height: 1.4em;
}
}
@media (min-width: 1280px) {
article.zm {
grid-template-columns: repeat(6, 1fr);
grid-template-rows: repeat(2, 1fr);
margin: 0 auto;
}
}



