* {
  box-sizing: border-box;
}

.row > .column {
  /*padding: 0 8px;*/
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

.column {
  float: left;
  width: 25%;
  padding: 10px;
}

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: black;
  z-index: 999999;
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  width: 70%;
  max-width: 1000px;
}

/* The Close Button */
.close {
  background-color: #ec202b;
  color: #000;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

.mySlides {
  display: none;
}

.cursor {
  cursor: pointer;
  /*background: #ec202b;*/
  border: 1px solid #00ae08;
}
.cursorPM {
  cursor: pointer;
  background: #f8c013;
  /*border: 1px solid #6c060c;*/
  margin-bottom:10px;
}
.demo.cursor {
  border: 4px solid #fff;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  /*top: 50%;*/
  top: 300px;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
  background: #0098ea;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
.prev2,
.next2 {
  cursor: pointer;
  position: absolute;
  top: 10%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
  background: #0098ea;
}

/* Position the "next button" to the right */
.next2 {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev2:hover,
.next2:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.caption-container {
  text-align: center;
  background-color: black;
  padding: 2px 16px;
  color: white;
}

.demo {
  opacity: 0.6;
}

.active,
.demo:hover {
  opacity: 1;
}

.demo2 {
  opacity: 0.6;
}

.active,
.demo2:hover {
  opacity: 1;
}

img.hover-shadow {
  transition: 0.3s;
}

.hover-shadow:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.hovereffect {
    text-align: center;
    cursor: default;
    margin-bottom: 20px;
}
.hovereffect h2 {
    /*text-transform: uppercase;*/
    color: #fff;
    text-align: center;
    position: relative;
    font-size: 14px;
    padding: 5px;
    /*background: rgba(108, 6, 12, 0.6);*/
    background: #8f3136;
    -webkit-transform: translateY(185px);
    -ms-transform: translateY(185px);
    transform: translateY(185px);
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
    font-weight: normal;
    /*height: 28px;*/
}
.hovereffect:hover h2 {
    -webkit-transform: translateY(1px);
    -ms-transform: translateY(1px);
    transform: translateY(1px);
    /*height: auto;*/
}
.hovereffect .overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  overflow: hidden;
  top: 0;
  left: 0;
  background-color: rgba(75,75,75,0.7);
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}
@media only screen and (max-width: 500px) {
  .hovereffect {
    text-align: center;
    cursor: default;
  }
    .hovereffect h2 {
    /*text-transform: uppercase;*/
    color: #fff;
    text-align: center;
    position: relative;
    font-size: 16px;
    padding: 5px;
    background: rgba(108, 6, 12, 0.6);
    /*background: #6c060c;*/
    -webkit-transform: translateY(210px) ;
    -ms-transform: translateY(210px);
    transform: translateY(210px);
    -webkit-transition: all 0.4s ease-in-out !important;
    transition: all 0.4s ease-in-out !important;
    font-weight: normal;
  }
  .hovereffect:hover h2 {
    -webkit-transform: translateY(1px) !important;
    -ms-transform: translateY(1px) !important;
    transform: translateY(1px) !important;
  }
  .hovereffect .overlay {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    overflow: hidden !important;
    top: 0;
    left: 0;
    background-color: rgba(75,75,75,0.7);
    -webkit-transition: all 0.4s ease-in-out !important;
    transition: all 0.4s ease-in-out !important;
  }
  .prev, .next{
	  cursor: pointer;
	  position: absolute;
	  /*top: 50%;*/
	  top: 100px;
	  width: auto;
	  padding: 16px;
	  margin-top: -50px;
	  color: white;
	  font-weight: bold;
	  font-size: 20px;
	  transition: 0.6s ease;
	  border-radius: 0 3px 3px 0;
	  user-select: none;
	  -webkit-user-select: none;
	  background: #0098ea;
	}
}
.img-max-width{
  max-width: 100%;
}