.gallery {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  position: relative;
  z-index: 1; }
  .gallery > input {
    position: fixed;
    left: -100px;
    width: 1px;
    height: 1px;
    overflow: hidden; }
  .gallery > label {
    width: auto;
    box-sizing: border-box;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    bottom: 0;
    font-size: 5em;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.25s 1s, opacity 0.25s;
    padding-left: 0.5rem;
    padding-right: 0.5rem; }
    .gallery > label:hover {
      background-color: rgba(255, 255, 255, 0.25);
      transition: background-color 0.25s, opacity 0.25s; }
  .gallery > label:after {
    width: auto;
    display: block;
    content: none;
    color: #fff;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5); }
  .gallery > .first-item, .gallery > .first-item ~ * {
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: auto;
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    margin-left: 0;
    z-index: -1; }
  .gallery > .first-item {
    transition: margin-left 0.5s;
    margin-left: 0; }
  .gallery > input:checked:nth-child(1) ~ label:nth-of-type(2) {
    right: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(1) ~ label:nth-of-type(2):after {
      content: '>'; }
  .gallery > input:checked:nth-child(2) ~ .first-item {
    margin-left: -100%; }
  .gallery > input:checked:nth-child(2) ~ label:nth-of-type(1) {
    left: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(2) ~ label:nth-of-type(1):after {
      content: '<'; }
  .gallery > input:checked:nth-child(2) ~ label:nth-of-type(3) {
    right: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(2) ~ label:nth-of-type(3):after {
      content: '>'; }
  .gallery > input:checked:nth-child(3) ~ .first-item {
    margin-left: -200%; }
  .gallery > input:checked:nth-child(3) ~ label:nth-of-type(2) {
    left: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(3) ~ label:nth-of-type(2):after {
      content: '<'; }
  .gallery > input:checked:nth-child(3) ~ label:nth-of-type(4) {
    right: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(3) ~ label:nth-of-type(4):after {
      content: '>'; }
  .gallery > input:checked:nth-child(4) ~ .first-item {
    margin-left: -300%; }
  .gallery > input:checked:nth-child(4) ~ label:nth-of-type(3) {
    left: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(4) ~ label:nth-of-type(3):after {
      content: '<'; }
  .gallery > input:checked:nth-child(4) ~ label:nth-of-type(5) {
    right: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(4) ~ label:nth-of-type(5):after {
      content: '>'; }
  .gallery > input:checked:nth-child(5) ~ .first-item {
    margin-left: -400%; }
  .gallery > input:checked:nth-child(5) ~ label:nth-of-type(4) {
    left: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(5) ~ label:nth-of-type(4):after {
      content: '<'; }
  .gallery > input:checked:nth-child(5) ~ label:nth-of-type(6) {
    right: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(5) ~ label:nth-of-type(6):after {
      content: '>'; }
  .gallery > input:checked:nth-child(6) ~ .first-item {
    margin-left: -500%; }
  .gallery > input:checked:nth-child(6) ~ label:nth-of-type(5) {
    left: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(6) ~ label:nth-of-type(5):after {
      content: '<'; }
  .gallery > input:checked:nth-child(6) ~ label:nth-of-type(7) {
    right: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(6) ~ label:nth-of-type(7):after {
      content: '>'; }
  .gallery > input:checked:nth-child(7) ~ .first-item {
    margin-left: -600%; }
  .gallery > input:checked:nth-child(7) ~ label:nth-of-type(6) {
    left: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(7) ~ label:nth-of-type(6):after {
      content: '<'; }
  .gallery > input:checked:nth-child(7) ~ label:nth-of-type(8) {
    right: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(7) ~ label:nth-of-type(8):after {
      content: '>'; }
  .gallery > input:checked:nth-child(8) ~ .first-item {
    margin-left: -700%; }
  .gallery > input:checked:nth-child(8) ~ label:nth-of-type(7) {
    left: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(8) ~ label:nth-of-type(7):after {
      content: '<'; }
  .gallery > input:checked:nth-child(8) ~ label:nth-of-type(9) {
    right: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(8) ~ label:nth-of-type(9):after {
      content: '>'; }
  .gallery > input:checked:nth-child(9) ~ .first-item {
    margin-left: -800%; }
  .gallery > input:checked:nth-child(9) ~ label:nth-of-type(8) {
    left: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(9) ~ label:nth-of-type(8):after {
      content: '<'; }
  .gallery > input:checked:nth-child(9) ~ label:nth-of-type(10) {
    right: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(9) ~ label:nth-of-type(10):after {
      content: '>'; }
  .gallery > input:checked:nth-child(10) ~ .first-item {
    margin-left: -900%; }
  .gallery > input:checked:nth-child(10) ~ label:nth-of-type(9) {
    left: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(10) ~ label:nth-of-type(9):after {
      content: '<'; }
  .gallery > input:checked:nth-child(10) ~ label:nth-of-type(11) {
    right: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(10) ~ label:nth-of-type(11):after {
      content: '>'; }
  .gallery > input:checked:nth-child(11) ~ .first-item {
    margin-left: -1000%; }
  .gallery > input:checked:nth-child(11) ~ label:nth-of-type(10) {
    left: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(11) ~ label:nth-of-type(10):after {
      content: '<'; }
  .gallery > input:checked:nth-child(11) ~ label:nth-of-type(12) {
    right: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(11) ~ label:nth-of-type(12):after {
      content: '>'; }
  .gallery > input:checked:nth-child(12) ~ .first-item {
    margin-left: -1100%; }
  .gallery > input:checked:nth-child(12) ~ label:nth-of-type(11) {
    left: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(12) ~ label:nth-of-type(11):after {
      content: '<'; }
  .gallery > input:checked:nth-child(12) ~ label:nth-of-type(13) {
    right: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(12) ~ label:nth-of-type(13):after {
      content: '>'; }
  .gallery > input:checked:nth-child(13) ~ .first-item {
    margin-left: -1200%; }
  .gallery > input:checked:nth-child(13) ~ label:nth-of-type(12) {
    left: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(13) ~ label:nth-of-type(12):after {
      content: '<'; }
  .gallery > input:checked:nth-child(13) ~ label:nth-of-type(14) {
    right: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(13) ~ label:nth-of-type(14):after {
      content: '>'; }
  .gallery > input:checked:nth-child(14) ~ .first-item {
    margin-left: -1300%; }
  .gallery > input:checked:nth-child(14) ~ label:nth-of-type(13) {
    left: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(14) ~ label:nth-of-type(13):after {
      content: '<'; }
  .gallery > input:checked:nth-child(14) ~ label:nth-of-type(15) {
    right: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(14) ~ label:nth-of-type(15):after {
      content: '>'; }
  .gallery > input:checked:nth-child(15) ~ .first-item {
    margin-left: -1400%; }
  .gallery > input:checked:nth-child(15) ~ label:nth-of-type(14) {
    left: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(15) ~ label:nth-of-type(14):after {
      content: '<'; }
  .gallery > input:checked:nth-child(15) ~ label:nth-of-type(16) {
    right: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(15) ~ label:nth-of-type(16):after {
      content: '>'; }
  .gallery > input:checked:nth-child(16) ~ .first-item {
    margin-left: -1500%; }
  .gallery > input:checked:nth-child(16) ~ label:nth-of-type(15) {
    left: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(16) ~ label:nth-of-type(15):after {
      content: '<'; }
  .gallery > input:checked:nth-child(16) ~ label:nth-of-type(17) {
    right: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(16) ~ label:nth-of-type(17):after {
      content: '>'; }
  .gallery > input:checked:nth-child(17) ~ .first-item {
    margin-left: -1600%; }
  .gallery > input:checked:nth-child(17) ~ label:nth-of-type(16) {
    left: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(17) ~ label:nth-of-type(16):after {
      content: '<'; }
  .gallery > input:checked:nth-child(17) ~ label:nth-of-type(18) {
    right: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(17) ~ label:nth-of-type(18):after {
      content: '>'; }
  .gallery > input:checked:nth-child(18) ~ .first-item {
    margin-left: -1700%; }
  .gallery > input:checked:nth-child(18) ~ label:nth-of-type(17) {
    left: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(18) ~ label:nth-of-type(17):after {
      content: '<'; }
  .gallery > input:checked:nth-child(18) ~ label:nth-of-type(19) {
    right: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(18) ~ label:nth-of-type(19):after {
      content: '>'; }
  .gallery > input:checked:nth-child(19) ~ .first-item {
    margin-left: -1800%; }
  .gallery > input:checked:nth-child(19) ~ label:nth-of-type(18) {
    left: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(19) ~ label:nth-of-type(18):after {
      content: '<'; }
  .gallery > input:checked:nth-child(19) ~ label:nth-of-type(20) {
    right: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(19) ~ label:nth-of-type(20):after {
      content: '>'; }
  .gallery > input:checked:nth-child(20) ~ .first-item {
    margin-left: -1900%; }
  .gallery > input:checked:nth-child(20) ~ label:nth-of-type(19) {
    left: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(20) ~ label:nth-of-type(19):after {
      content: '<'; }
  .gallery > input:checked:nth-child(20) ~ label:nth-of-type(21) {
    right: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(20) ~ label:nth-of-type(21):after {
      content: '>'; }
  .gallery > input:checked:nth-child(21) ~ .first-item {
    margin-left: -2000%; }
  .gallery > input:checked:nth-child(21) ~ label:nth-of-type(20) {
    left: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(21) ~ label:nth-of-type(20):after {
      content: '<'; }
  .gallery > input:checked:nth-child(21) ~ label:nth-of-type(22) {
    right: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(21) ~ label:nth-of-type(22):after {
      content: '>'; }
  .gallery > input:checked:nth-child(22) ~ .first-item {
    margin-left: -2100%; }
  .gallery > input:checked:nth-child(22) ~ label:nth-of-type(21) {
    left: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(22) ~ label:nth-of-type(21):after {
      content: '<'; }
  .gallery > input:checked:nth-child(22) ~ label:nth-of-type(23) {
    right: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(22) ~ label:nth-of-type(23):after {
      content: '>'; }
  .gallery > input:checked:nth-child(23) ~ .first-item {
    margin-left: -2200%; }
  .gallery > input:checked:nth-child(23) ~ label:nth-of-type(22) {
    left: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(23) ~ label:nth-of-type(22):after {
      content: '<'; }
  .gallery > input:checked:nth-child(23) ~ label:nth-of-type(24) {
    right: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(23) ~ label:nth-of-type(24):after {
      content: '>'; }
  .gallery > input:checked:nth-child(24) ~ .first-item {
    margin-left: -2300%; }
  .gallery > input:checked:nth-child(24) ~ label:nth-of-type(23) {
    left: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(24) ~ label:nth-of-type(23):after {
      content: '<'; }
  .gallery > input:checked:nth-child(24) ~ label:nth-of-type(25) {
    right: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(24) ~ label:nth-of-type(25):after {
      content: '>'; }
  .gallery > input:checked:nth-child(25) ~ .first-item {
    margin-left: -2400%; }
  .gallery > input:checked:nth-child(25) ~ label:nth-of-type(24) {
    left: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(25) ~ label:nth-of-type(24):after {
      content: '<'; }
  .gallery > input:checked:nth-child(25) ~ label:nth-of-type(26) {
    right: 0;
    opacity: 1; }
    .gallery > input:checked:nth-child(25) ~ label:nth-of-type(26):after {
      content: '>'; }

.touch-enabled .gallery {
  overflow-x: scroll;
  scroll-snap-type: x mandatory; }
  .touch-enabled .gallery > input {
    display: none; }
  .touch-enabled .gallery > label {
    display: none; }
  .touch-enabled .gallery > label:after {
    content: none; }
  .touch-enabled .gallery > .first-item, .touch-enabled .gallery > .first-item ~ * {
    scroll-snap-align: center; }

@media (hover: none) {
  .gallery.touch-auto-detection {
    overflow-x: scroll;
    scroll-snap-type: x mandatory; }
    .gallery.touch-auto-detection > input {
      display: none; }
    .gallery.touch-auto-detection > label {
      display: none; }
    .gallery.touch-auto-detection > label:after {
      content: none; }
    .gallery.touch-auto-detection > .first-item, .gallery.touch-auto-detection > .first-item ~ * {
      scroll-snap-align: center; } }

.touch-enabled .gallery.hide-scrollbar {
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE 10+ */ }
  .touch-enabled .gallery.hide-scrollbar::-webkit-scrollbar {
    /* WebKit */
    width: 0;
    height: 0; }
