/*-----------------------Box Hover Effects------------------*/ figure.effect-ruby { position: relative; z-index: 1; display: inline-block; overflow: hidden; font-size: 15px; font-family: Helvetica, Arial, sans-serif; margin-bottom: 15px; width: 100%; background: #3085a3; text-align: center; cursor: pointer; background-color: #222; } figure.effect-ruby figcaption { padding: 2em; color: #fff; text-transform: uppercase; font-size: 1.25em; -webkit-backface-visibility: hidden; backface-visibility: hidden; } figure.effect-ruby figcaption::before, figure.effect-ruby figcaption::after { pointer-events: none; } figure.effect-ruby figcaption, figure.effect-ruby a { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } figure.effect-ruby a { z-index: 1000; text-indent: 200%; white-space: nowrap; font-size: 0; opacity: 0; } figure.effect-ruby img { osition: relative; display: block; width: 100%; opacity: 0.7; -webkit-transition: opacity 0.35s, -webkit-transform 0.35s; transition: opacity 0.35s, transform 0.35s; -webkit-transform: scale(1.15); transform: scale(1.15); } figure.effect-ruby:hover img { opacity: 0.5; -webkit-transform: scale(1); transform: scale(1); } figure.effect-ruby h3 { font-size: 24px; font-weight: 300; margin-top: 20%; -webkit-transition: -webkit-transform 0.35s; transition: transform 0.35s; -webkit-transform: translate3d(0,20px,0); transform: translate3d(0,20px,0); } @media screen and (max-width: 991px) and (min-width: 767px) { figure.effect-ruby h3 { margin-top: 0; font-size: 16px; } } .grid figure h3 span { font-weight: 800; } figure.effect-ruby p { letter-spacing: 1px; font-size: 14px; margin: 1em 0 0; padding: 1em; border: 1px solid #fff; opacity: 0; -webkit-transition: opacity 0.35s, -webkit-transform 0.35s; transition: opacity 0.35s, transform 0.35s; -webkit-transform: translate3d(0,20px,0) scale(1.1); transform: translate3d(0,20px,0) scale(1.1); } figure.effect-ruby:hover h3 { -webkit-transform: translate3d(0,0,0); transform: translate3d(0,0,0); } figure.effect-ruby:hover p { opacity: 1; -webkit-transform: translate3d(0,0,0) scale(1); transform: translate3d(0,0,0) scale(1); } @media screen and (max-width: 1199px) and (min-width: 992px) { .grid figure.effect-ruby h3 { font-size: 20px; } .grid figure.effect-ruby p { font-size: 13px; } } @media screen and (max-width: 767px) { .grid figure { width: 100%; } }