/* The magic */
.col {
  overflow: hidden;
  position: relative;
}


.row:hover ~ .row .slide {
  -webkit-transform: translateY(-100%);
          transform: translateY(-100%);
}
.row:hover .slide {
  -webkit-transform: translateX(100%);
          transform: translateX(100%);
}
.row:hover .col:hover ~ .col .slide {
  -webkit-transform: translateX(-100%);
          transform: translateX(-100%);
}
.row:hover .col:hover .slide {
  -webkit-transform: none;
          transform: none;
  visibility: visible;
  transition-delay: 0s;
}

/* Pen styling */
* {
  box-sizing: border-box;
}

body {
/*  background: #fefefe;
  color: #333;
  font: 14px /1.5 "Fira Sans", sans-serif;*/
}

h1 {
  font-size: 2.5rem;
  font-weight: 300;
  margin: 1.5em 0.5rem 1em;
  text-align: left;
}

/*全屏*/

/*.container {
  margin: 0 auto;
  padding: 0;
  max-width: 100%;
}*/

.row {
  display: flex;
}

.col {
  color: #fff;
  flex: 1 1 auto;
  min-height: 260px;
  position: relative;
}
.col h2 {
  font-weight: 300;
  font-size: .5rem;
  line-height: 1.25;
  margin: 0;
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 0;
}

.col:nth-child(2) {
  min-width: 20%;
}

.col:nth-child(4) {
  min-width: 33%;
}

.col:nth-child(3) + .col:nth-child(3) {
  min-width: 50%;
}

.photo-container {
  background:#F56007 50% 50% / cover;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transition: 1s;
  -webkit-transform-origin: bottom right;
          transform-origin: bottom right;
}
.photo-container::before {
  background: linear-gradient(transparent, rgba(1, 1, 1, 0.1), #F56007);
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.col:hover .photo-container {
  -webkit-transform: scale(1.25);
          transform: scale(1.25);
}

.slide {
 /* background: rgba(25, 1, 21, 0.8);
  padding: 0 1.5rem;*/
}