img { display: block; } .rebels-wrapper { background: #fff; } .js-collapse { max-height: 0; overflow: hidden; } .js-panel-wrapper { position: relative; } .js-panel-content { position: relative; -webkit-transition: all 700ms ease-in; transition: all 700ms ease-in; max-height: 0; overflow: hidden; } .js-panel-content.is-active { width: 100%; max-height: 1350px; -webkit-transition: all 700ms ease-in; transition: all 700ms ease-in; } .js-close-button { position: absolute; width: 22px; height: 23px; top: 0; right: 10px; background: url('../images/close.png') 0 0 no-repeat; border: none; cursor: pointer; } @media only screen and (min-width: 767px) { .is-tablet{display:none;} .js-h2-wrapper { position: relative; overflow: hidden; display: block; } .js-h2-wrapper:hover .h3-wrapper { top: 0; opacity: 1; } .js-h2-wrapper:hover .h3-text { position: relative; margin: 0 auto; top: 50%; -webkit-transform: translate(0, -50%); -ms-transform: translate(0, -50%); transform: translate(0, -50%); display: block; } .h3-wrapper { padding: 10px; -webkit-transition-duration: .5s; transition-duration: .5s; position: absolute; text-align: center; display: block; background: rgba(0, 0, 0, 0.75); color: #fff; width: 100%; height: 100%; opacity: 0; transition: opacity .2s ease-in-out; -moz-transition: opacity .2s ease-in-out; -webkit-transition: opacity .2s ease-in-out; } .js-nav-button { display: none; } } /*Tablet media queries*/ @media only screen and (min-width: 768px) and (max-width: 1250px){ .opacity-1 {opacity:1;} .no-tablet{display:none;} .is-tablet{display:inline;} .js-h2-wrapper .h3-wrapper { top: 0%; } .h3-text { position: absolute; transform: translate(0,-50%); top: 50%; left: 0; right: 0; } } @media only screen and (max-width: 767px) { .is-tablet{display:none;} .js-h2-wrapper { display: none; } .js-close-button { display: none; } .js-nav-button { border: none; cursor: pointer } /*.js-nav-button[data-direction="previous"] { margin-left:4%; } .js-nav-button[data-direction="next"] { margin-right: 4%; }*/ .btn-primary { width: 32%!important;} .is-disabled { display: none;} .h3-wrapper { opacity: 1; color: black; position: relative; background: transparent; text-align: left; font-size: 1em; } }