.swop19-timeline {
  margin: 0 auto;
  max-width: 1250px;
  background: #fff;
}

/* --- Intro --- */

.swop19-timeline-intro {
  margin: 0 auto;
  max-width: 760px;
}

h2.swop19-timeline-intro-title {
  margin: 0;
  font-size: 32px;
  line-height: 46px;
}

.swop19-timeline-intro-copy {
  opacity: 0.8;
  font-size: 22px;
  line-height: 32px;
}

.swop19-timeline-intro-copy p {
  margin: 15px 0 0;
}

/* --- Subtitle --- */

h3.swop19-timeline-subtitle {
  margin: 48px 0 0 0;
  text-align: center;
}

.swop19-timeline-subtitle-part-1 {
  display: block;
  margin: 0 auto;
  max-width: 470px;
  font-size: 29px;
  line-height: 36px;
  letter-spacing: 4.14px;
}

.swop19-timeline-subtitle-part-2 {
  display: block;
  margin: 15px 0;
  color: #ffffff;
  font-size: 40px;
  line-height: 40px;
  text-transform: uppercase;
}

.swop19-timeline-subtitle-part-2 span {
  display: inline-block;
  padding: 11px 26px 12px;
  background: #e03737;
}

.swop19-timeline-subtitle-part-3 {
  display: block;
  margin: 0 auto;
  max-width: 470px;
  font-size: 28px;
  line-height: 36px;
  letter-spacing: 2.36px;
}

/* --- Timeline -- */

.swop19-timeline-holder {
  margin-top: 24px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.swop19-timeline-track {
  width: 12px;
  height: 100%;
  margin-left: -6px;
  position: absolute;
  top: 0;
  left: 50%;
  background: url(images/dot.svg) center top repeat-y;
  background-size: 4px 12px;
}

.swop19-timeline-left,
.swop19-timeline-right,
.swop19-timeline-last {
  width: calc(50% - 6px);
}

.swop19-timeline-left {
  float: left;
}

.swop19-timeline-right {
  float: right;
}

.swop19-timeline-item {
  width: 100%;
  margin-bottom: 12px;
}

.swop19-timeline-left .swop19-timeline-item {
  float: right;
  clear: right;
}

/* Last timeline item (centered on the bottom). */
.swop19-timeline-last {
  margin: 0 auto;
  clear: both;
}

.swop19-timeline-last .swop19-timeline-item {
  margin-bottom: 0;
}

/* Photos sizes: */
/* 1: 400 x 300 */
/* 2: 450 x 300 */
/* 3: 350 x 350 */
/* 4: 600 x 375 */
/* 5: 525 x 300 */
/* 6: 600 x 400 */

/* Set widths as percent of total width of 600px wrapper width. */
.swop19-timeline-size-1 {
  width: 66.6666%;
}

.swop19-timeline-size-2 {
  width: 75%;
}

.swop19-timeline-size-3 {
  width: 58.3333%;
}

.swop19-timeline-size-4,
.swop19-timeline-size-6 {
  width: 100%;
}

.swop19-timeline-size-5 {
  width: 87.5%;
}

/* Set heights as proportional to widths. */
.swop19-timeline-item-height {
  display: block;
  width: 100%;
  height: 0;
  overflow: hidden;
  position: relative;
  background: #ddd;
}

.swop19-timeline .swop19-timeline-item-height {
  color: #fff;
}

.swop19-timeline-size-1 .swop19-timeline-item-height {
  padding-bottom: 75%;
}

.swop19-timeline-size-2 .swop19-timeline-item-height {
  padding-bottom: 66.6666%;
}

.swop19-timeline-size-3 .swop19-timeline-item-height {
  padding-bottom: 100%;
}

.swop19-timeline-size-4 .swop19-timeline-item-height {
  padding-bottom: 62.5%;
}

.swop19-timeline-size-5 .swop19-timeline-item-height {
  padding-bottom: 57.1428%;
}

.swop19-timeline-size-6 .swop19-timeline-item-height {
  padding-bottom: 66.6666%;;
}

.swop19-timeline-item-thumb,
.swop19-timeline-item-overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  cursor: pointer;
}

.swop19-timeline-item-thumb {
  display: block;
  z-index: 1;
}

.swop19-timeline-item .swop19-credit {
  display: none;
}

.swop19-colorbox-photo-credit {
  opacity: 0.6;
}

.swop19-timeline-item-overlay {
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s;
}

.swop19-timeline-item-active .swop19-timeline-item-overlay {
  opacity: 1;
}

h4.swop19-timeline-item-year,
p.swop19-timeline-item-desc {
  display: table;
  width: 100%;
  margin: 0;
  text-align: center;
}

h4.swop19-timeline-item-year {
  height: 100%;
  font-size: 40px;
  line-height: 40px;
}

p.swop19-timeline-item-desc {
  display: none;
}

h4.swop19-timeline-item-year span,
p.swop19-timeline-item-desc span {
  display: table-cell;
  vertical-align: middle;
}

/* --- Outro --- */

.swop19-timeline-outro {
  margin: 41px auto 0;
  max-width: 760px;
}

.swop19-timeline-outro p {
  margin: 0;
  font-size: 32px;
  line-height: 46px;
  text-align: center;
}

.swop19-timeline-outro p:first-child {
  color: #e03737;
  margin-bottom: 10px;
}

.swop19-timeline .swop19-sharelink a {
  margin: 35px auto 0 auto;
  width: 60px;
  height: 60px;
}

/* --- Responsive --- */

@media all and (min-width: 768px) {
  h3.swop19-timeline-subtitle {
    margin-top: 105px;
  }

  .swop19-timeline-subtitle-part-2 {
    font-size: 60px;
    line-height: 60px;
  }

  .swop19-timeline-subtitle-part-2 span {
    padding: 11px 26px 17px;
  }

  .swop19-timeline-track {
    width: 24px;
    margin-left: -12px;
  }

  .swop19-timeline-left,
  .swop19-timeline-right,
  .swop19-timeline-last {
    width: calc(50% - 12px);
  }

  .swop19-timeline-item {
    margin-bottom: 24px;
  }

  .swop19-timeline-item .swop19-credit {
    display: block;
    z-index: 3;
    top: 10px;
    right: 10px;
    text-align: right;
  }

  .swop19-colorbox-photo-credit {
    display: none;
  }

  h4.swop19-timeline-item-year {
    font-size: 60px;
    line-height: 60px;
  }
}

@media all and (min-width: 900px) {
  .swop19-timeline-track {
    width: 50px;
    margin-left: -25px;
  }

  .swop19-timeline-left,
  .swop19-timeline-right,
  .swop19-timeline-last {
    width: calc(50% - 25px);
  }

  .swop19-timeline-item-overlay {
    opacity: 0;
  }

  a.swop19-timeline-item-height:hover .swop19-timeline-item-overlay,
  .swop19-timeline-item-active .swop19-timeline-item-overlay {
    opacity: 1;
  }

  h4.swop19-timeline-item-year {
    font-size: 80px;
    line-height: 80px;
  }
}

@media all and (min-width: 1100px) {
  p.swop19-timeline-item-desc {
    display: table;
    width: 100%;
    height: calc(50% - 33px);
    font-size: 18px;
    line-height: 24px;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 0 24px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }
}

@media all and (min-width: 1200px) {
  .swop19-timeline .swop19-sharelink a {
    width: 70px;
    height: 70px;
  }
}

@media all and (min-width: 1300px) {
  p.swop19-timeline-item-desc {
    font-size: 24px;
    line-height: 32px;
  }
}

@media all and (min-width: 1400px) {
  .swop19-timeline .swop19-sharelink a {
    width: 80px;
    height: 80px;
  }
}
