/* alku */

.main-nav {
  position: relative;
  padding-top: 4vh;
}

.main-nav div ul {
  font-family: "napue";
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: -ms-autohiding-scrollbar;
}

.main-nav div ul li {
  display: inline-block;
  padding: 4px 30px 0 20px;
  border-right: 1px solid #DDDDDD;
}

.main-nav div ul li:last-child {
  border-right: none;
  padding-right: 20px;
}

.main-nav div ul li a {
  transition: color 0.2s ease;
}

.main-nav div ul li a:hover {
  text-decoration: none;
  color: #8D7249;
}

.main-nav div ul li a:focus {
  text-decoration: none;
}

.current-menu-item a {
  color: #8D7249;
}

.liftup__title,.liftup-post__title {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 100%;
  color: white;
  line-height: 1.4;
}

.liftup__overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background-color: black;
  opacity: 0.2;
}

.liftup__button {
  position: absolute;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  bottom: 8vh;
  text-align: center;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .liftup-half {
    margin-bottom: unset;
  }
}

.liftup-half:last-child {
  margin-bottom: 0;
}

.liftup-half__wrapper {
  position: relative;
  overflow: hidden;
}

.liftup-half:hover .button:after {
  left: -10px;
  right: -10px;
}

.liftup-half:hover .liftup-half__image img {
  transform: translate3d(0, 0, 0) scale(1.03);
}

.liftup-half__image img {
  transform: translate3d(0, 0, 0) scale(1);
  -webkit-backface-visibility: hidden;
  transition: transform 0.4s ease;
}

@media (min-width: 768px) {
  .liftup-person {
    margin-bottom: 0;
  }
}

.liftup-person--image {
  margin-bottom: 8vh;
}

.liftup-person--image:last-child {
  margin-bottom: 0;
}

.liftup-person:last-child {
  margin-bottom: 0;
}

.liftup-post {
  word-wrap: break-word;
}

.liftup-post:last-child {
  margin-bottom: 0;
}

.liftup-post__title {
  padding: 30px;
  font-size: 170%;
  line-height: 1.1;
}

.liftup-half,.liftup-person,.page-content-row,.page-content__text {
  margin-bottom: 8vh;
}

.footer__liftups--upper,.footer__social-media-links,.page-section,.page-section__image {
  margin-bottom: 16vh;
}

.liftup-person__title {
  margin-bottom: 2vh;
}

.liftup-person__image,.liftup-post,.page-header__title,.footer__social-media-link,.page-section__title {
  margin-bottom: 4vh;
}

.page-header {
  margin-bottom: 12vh;
}

.page-section__image img {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  background-size: cover;
  -webkit-background-size: cover;
}

.img {
  width: 100%;
  margin: 0 auto;
  height: auto;
}

.container-fluid--nopadding {
  padding-left: 0px;
  padding-right: 0px;
  overflow: hidden;
}

/* kaikki button classit kopsattu */

button:focus {
  outline: 1px dotted;
  outline: 5px auto -webkit-focus-ring-color;
}

button {
  line-height: inherit;
}

.button {
  display: inline-block;
  font-family: "napue";
  position: relative;
  cursor: pointer;
  background: none;
  color: #8D7249;
  padding: 0;
}

.button:after {
  content: "";
  position: absolute;
  bottom: -6px;
  height: 3px;
  left: 0px;
  right: 0px;
  display: block;
  background-color: #8D7249;
  transition: all 0.2s ease;
}

.button:hover {
  color: #8D7249;
}

.button:hover:after {
  left: -10px;
  right: -10px;
}

.button:focus {
  outline: none;
  text-decoration: none;
  color: #8D7249;
}

.button:visited {
  outline: none;
  text-decoration: none;
}

.button--invert {
  color: white;
}

.button--invert:after {
  background-color: white;
}

.button--invert:hover {
  color: white;
}