﻿.videos {
  position: relative;
  cursor: pointer;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.videos img {
  display: block;
}

.maindesign .videos--overmaker {
  top: 50%;
  left: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  width: 20%;
  height: auto;
  opacity: 0.7;
}

#modalwindow {
  display: none;
  background: rgba(0, 0, 0, 0.7);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
}

#bamiri {
  width: 65%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  background-color: #fff;
}

#subwindow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.modal_close {
  position: absolute;
  top: 0;
  right: 0;
  width: 15%;
  height: 15%;
  max-width: 80px;
  max-height: 80px;
  transform: translate(50%, -100%);
}

.modal_close:hover {
  cursor: pointer;
}



.youtube {
  width: 100%;
  height: 100%;
}


@media screen and (max-width:767px) {
  #bamiri {
    width: 80%;
  }

  .modal_close {
    top: -40px;
    right: -20px;
    width: 40px;
    height: 40px;
    transform: translate(0, 0);
  }
}

.maindesign .vertical-video {
    display: flex;
    justify-content: center;
}
.maindesign .vertical-video--container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 15px;
    position: relative;
    cursor: pointer;
    width: 100%;
    max-width: 50%;
}
.maindesign .vertical-video--thumbnail {
    display: block;
}
.maindesign .vertical-video--icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100px;
}

@media screen and (max-width:767px) {
    .maindesign .vertical-video--container {
        max-width: none;
    }
    .maindesign .vertical-video--thumbnail {
        width: 100%;
        height: auto;
    }
    .maindesign .vertical-video--icon {
        width: 75px;
    }
}


.vertical-display {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
    max-width: 1000px;
}
.vertical-display--inner {
    position: absolute;
    width: 35%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background-color: #fff;
    padding-top: 56.25%;
}
.vertical-display--inner video {
    width: 100%;
	height: 100%;
	position: absolute;
	top: 0px;
	left: 0px;
}


@media screen and (max-width:767px) {
    .vertical-display--inner {
        width: 90%;
    }
}