html,
body {
  margin: 0;
  width: 100%;
  _height: 100%;
  overflow-x: hidden;
}

body {
  _padding: 50px;
  line-height: 1.1em;
}

.wrapper {
  display: block;
  position: relative;
  width: calc(100% - 100px);
  min-width: 400px;
}

.history {
  width: 100%;
  overflow-x: hidden;
  padding: 85px 0 0 0;
  font-size: 0.6em;
  _font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
  color: #40281c;
}

.event-wrapper {
  display: flex;
  flex-direction: row;
}

.swiper-from-tablet {
  flex: 0 0 auto;
  font-size: 3.5em;
  padding: 25px 40px 0 0;
  text-align: left;
}

.swiper-to-tablet {
  flex: 0 0 auto;
  font-size: 3.5em;
  padding: 25px 0 0 40px;
  text-align: right;
}

.swiper-mobile {
  display: none;
  flex: 0 0 auto;
  flex-direction: row;
  font-size: 22pt;
  padding: 25px;
}

.swiper-mobile-from {
  flex: 1 1 auto;
  text-align: left;
}

.swiper-mobile-to {
  flex: 1 1 auto;
  text-align: right;
}

@media only screen and (max-width: 799px) {
  .event-wrapper {
    flex-direction: column;
  }

  .swiper-from-tablet,
  .swiper-to-tablet {
    display: none;
  }

  .swiper-mobile {
    display: flex;
  }
}

.event,
.event > * {
  flex: 1 1 auto;
  max-width: 100%;
}

.swiper-pagination {
  display: flex;
  justify-content: space-between;
  top: 0;
  height: 65px;
  border-bottom: 3px solid #40281c;
  margin-bottom: 27px;
}

.swiper-pagination-bullet {
  display: flex;
  align-items: flex-end;
  background: none;
  width: auto;
  height: 55px;
  margin-bottom: 10px;
}

.swiper-button-next,
.swiper-button-prev {
  color: #4e4e4e;
}

@media only screen and (max-width: 799px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

.swiper-pagination-bullet {
  min-width: 25px;
}

.swiper-pagination-bullet .title {
  display: block;
  line-height: 0.9em; 
}

.swiper-pagination-bullet .bullet {
  display: none;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: #40281c;
}

.swiper-pagination-bullet-active ::after {
  display: block;
  position: absolute;
  content: '';
  background: url(/history-slider/images/pagination.png) no-repeat top center;
  width: 25px;
  height: 30px;
  margin: -50px 0 0px 5px;
}

@media only screen and (max-width: 799px) {
  .swiper-pagination-bullet .title {
    display: none;
  }

  .swiper-pagination-bullet .bullet {
    display: block;
  }

  .swiper-pagination-bullet-active ::after {
    margin: -38px 0 0px -5px;
  }
}
