#slideshow-wrap { display: block; height: 26.5%; max-width: 98%; margin: auto; margin: 3em auto 5em 1em; position: relative; } #slideshow-inner { width: 100%; height: 100%; background-color: rgb(0,0,0); overflow: hidden; position: relative; } #slideshow-inner>ul { list-style: none; height: 100%; width: 500%; margin: 0 auto; padding: 0; position: relative; left: 0px; -webkit-transition: left .8s cubic-bezier(0.77, 0, 0.175, 1); -moz-transition: left .8s cubic-bezier(0.77, 0, 0.175, 1); -o-transition: left .8s cubic-bezier(0.77, 0, 0.175, 1); transition: left .8s cubic-bezier(0.77, 0, 0.175, 1); } #slideshow-inner>ul>li { width: 20%; height: auto; float: left; margin: 0 auto; padding: 0; position: relative; } #slideshow-inner>ul>li>img { width: 100%; height: 105%; margin: .25em auto 0; } #slideshow-wrap input[type=radio] { position: absolute; left: 50%; bottom: 0; z-index: 100; visibility: hidden; } #slideshow-wrap label:not(.arrows):not(.show-description-label) { position: absolute; left: 38%; bottom: 10%; z-index: 100; width: 25%; height: 20%; background-color: rgba(235,235,235,.65); cursor: pointer; p { margin-top: 8%; font-size: 1.5em; text-align: center; font-weight: bold; color: #222; text-transform: uppercase; } } #slideshow-wrap label:not(.arrows):active { bottom: 10% } #slideshow-wrap input[type=radio]#button-1:checked~label[for=button-1] { background-color: rgba(255,255,255,.8) } #slideshow-wrap input[type=radio]#button-2:checked~label[for=button-2] { background-color: rgba(255,255,255,.8) } #slideshow-wrap input[type=radio]#button-3:checked~label[for=button-3] { background-color: rgba(255,255,255,.8) } #slideshow-wrap label[for=button-1] { margin-left: -30%; } #slideshow-wrap label[for=button-2] { margin-left: 0; } #slideshow-wrap label[for=button-3] { margin-left: 30%; } #slideshow-wrap input[type=radio]#button-1:checked~#slideshow-inner>ul { left: 0 } #slideshow-wrap input[type=radio]#button-2:checked~#slideshow-inner>ul { left: -100% } #slideshow-wrap input[type=radio]#button-3:checked~#slideshow-inner>ul { left: -200% } label.arrows:hover { opacity: 1 } label.arrows:active { margin-top: -23px } input[type=radio]#button-1:checked~.arrows#arrow-2, input[type=radio]#button-2:checked~.arrows#arrow-3, input[type=radio]#button-3:checked~.arrows#arrow-4 { right: -55px; display: none; } input[type=radio]#button-2:checked~.arrows#arrow-1, input[type=radio]#button-3:checked~.arrows#arrow-2, input[type=radio]#button-4:checked~.arrows#arrow-3 { left: -55px; display: none; -webkit-transform: scaleX(-1); -moz-transform: scaleX(-1); -ms-transform: scaleX(-1); -o-transform: scaleX(-1); transform: scaleX(-1); } input[type=radio]#button-2:checked~.arrows#arrow-1 { left: -19px } input[type=radio]#button-3:checked~.arrows#arrow-2 { left: -37px } input[type=radio]#button-5:checked~.arrows#arrow-4 { left: -73px } .description { position: absolute; top: 0; left: 0; width: 100%; font-family: 'Yanone Kaffeesatz'; z-index: 1000; } .description input { display: none; } .description label { display: none; } #slideshow-inner>ul>li .description label { opacity: 1 } .description input[type=checkbox]:checked~label { opacity: 1 } .description .description-text { background-color: rgba(35, 35, 35, 0.5); padding-top: 25px; padding-bottom: 35px; position: relative; margin-left: 0 auto; line-height: 10px; text-align: center; width: 100%; height: auto; top: 30px; z-index: 4; opacity: 1; color: #141414; font-family: $font; h2 { margin: .75em auto; font-size: 500%; color: #FFF; text-transform: uppercase; } p { width: 45%; line-height: 1.2em; margin: 0 auto; padding: 0; color: #FFF; } .topline { font-size: 1.5em; text-transform: uppercase; } } .description input[type=checkbox]:checked~.description-text { opacity: 1 } @media (min-width: 320px) and (max-width: 475px) { #slideshow-wrap { width: 91.5%; height: auto; margin: 1em auto 0; } .description .description-text { padding-top: .5em; padding-bottom: .5em; top: 10px; h2 { margin: .35em auto; font-size: 150%; color: #FFF; text-transform: uppercase; } p { width: 25em; font-size: 60%; line-height: 1.5em; margin: 0 auto; padding: 0; color: #FFF; } .topline { font-size: .75em; text-transform: uppercase; } } #slideshow-wrap label:not(.arrows):not(.show-description-label) { p {font-size: .5em;} } } /* Portrait */ @media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait) { #slideshow-wrap { width: 91.5%; height: 11em; margin: 1em auto 0; } } /* Landscape */ @media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: landscape) { #slideshow-wrap { width: 91.5%; height: 14.5em; margin: 1em auto 0; } } @media only screen and (min-device-width: 481px) and (max-device-width: 1023px) and (orientation:portrait) { /* For portrait layouts only */ #slideshow-wrap { width: 91.5%; margin: 1em auto 0; } } @media only screen and (min-device-width: 481px) and (max-device-width: 1023px) and (orientation:landscape) { /* For landscape layouts only */ #slideshow-wrap { width: 91.5%; margin: 1em auto 0; } } @media (min-width: 476px) and (max-width: 991px) { #slideshow-wrap { width: 91.5%; margin: 1em auto 0; } .description .description-text { padding-top: .5em; padding-bottom: .5em; top: 10px; h2 { margin: .35em auto; font-size: 150%; color: #FFF; text-transform: uppercase; } p { width: 25em; font-size: 60%; line-height: 1.5em; margin: 0 auto; padding: 0; color: #FFF; } .topline { font-size: .75em; text-transform: uppercase; } } #slideshow-wrap label:not(.arrows):not(.show-description-label) { p {font-size: 75%;} } } @media (min-width: 992px) and (max-width: 1199px) { #slideshow-wrap { width: 95.5%; margin: 1em auto 0 1.5em; } } @media (min-width: 1200px) { #slideshow-wrap { width: 95.5%; margin: 1em auto 0 2em; } }