section > h2 {
  line-height: 150%;
}

.gallery-section-title {
  width: 99%;
  height: 2vh;
  padding-left: 1%;
  font-size: 130%;
  border-bottom: 1px solid var(--omnitech-light-gray);
  color: var(--omnitech-gray);
}

.gallery-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;

  margin-top: 4vh;
}

.flipped {
  flex-direction: row-reverse;
}

.gallery-preview {
  position: relative;
  width: 384px;
  height: 248px;
}

.gallery-preview:hover {
  cursor: pointer;

  transition: 0.1s ease;
}

.gallery-preview:hover .gallery-preview-mobile {
  transform: rotate(5deg);

  transition: 0.1s ease;
}

.gallery-preview:hover .gallery-preview-desktop {
  transform: scale(1.05);
}

.gallery-preview-desktop {
  position: absolute;
  top: 0;
  left: 0;
  width: 384px;
  height: 216px;
  border: 1px solid silver;
  border-radius: 5px;
  box-shadow: 4px 4px 12px var(--box-shadow), -4px -4px 12px var(--box-shadow), 2px -2px 12px var(--box-shadow), -2px 2px 12px var(--box-shadow);
  
  transition: 0.1s ease;
}

.gallery-preview-control-bar {
  position: relative;
  height: 30px;
  border-radius: 3px 3px 0px 0px;
  background-size: 384px 30px;
  background-image:
    -webkit-repeating-linear-gradient(top, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,0)   6%, hsla(0,0%,100%, .1) 7.5%, hsla(0,0%, 100%,0) 9%),					
		-webkit-repeating-linear-gradient(top, hsla(0,0%,  0%,0) 0%, hsla(0,0%,  0%,0)   4%, hsla(0,0%,  0%,.03) 4.5%, hsla(0,0%,  0%,0) 6%),					
		-webkit-repeating-linear-gradient(top, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,0) 1.2%, hsla(0,0%,100%,.15) 2.2%, hsla(0,0%,100%,0) 4%),
		-webkit-linear-gradient(-90deg, hsl(0,0%,78%)  0%, hsl(0,0%,90%) 47%, hsl(0,0%,78%) 53%, hsl(0,0%,70%)100%);
}

.gallery-preview-control-buttons {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 30px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.gallery-preview-control-button {
  width: 8px;
  height: 8px;
  border-width: 1px;
  border-style: solid;
  border-radius: 50%;
}

.green { background-color: rgb(51, 199, 72); border-color: rgb(39, 170, 53); }
.yellow { background-color: rgb(253, 188, 64); border-color: rgb(222, 159, 52);}
.red { background-color: rgb(252, 87,83); border-color: rgb(223, 71, 68); }

.gallery-preview-desktop-image {
  width: 100%;
  max-width: 100%;
  height: 186px;
  max-height: 186px;
}


.gallery-preview-mobile {
  position: absolute;
  bottom: 0;
  right: 16px;
  width: 70px;
  height: 130px;
  border-radius: 10px;
  border: 1px solid black;
  border-top: 16px solid black;
  border-bottom: 16px solid black;
  background-color: var(--omnitech-white);
  box-shadow: 2px 2px 6px var(--box-shadow), -2px -2px 6px var(--box-shadow), 1px -1px 6px var(--box-shadow), -1px 1px 6px var(--box-shadow);

  transition: 0.1s ease;
}

.gallery-preview-mobile-image {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
}


.gallery-item-text {
  width: calc(100% - 432px);
  height: 100%;
}

.gallery-item-title {
  font-size: 130%;
  font-weight: bold;
  margin-bottom: 20px;
}

.gallery-item-description {
  line-height: 200%;
  text-align: justify;
}




@media screen and (max-width: 450px) {
  .gallery-section-title {
    height: 3vh;
  }

  .gallery-item {
    flex-direction: column;
    margin-bottom: 50px;
  }

  .gallery-item a {
    width: 100%;
  }

  .gallery-preview {
    width: 300px;
    height: 194px;
    margin-left: calc(50% - 150px);
  }

  .gallery-preview-desktop {
    width: 300px;
    height: 169px;
  }

  .gallery-preview-desktop-image {
    height: 139px;
    max-height: 139px;
  }

  .gallery-preview-mobile {
    width: 55px;
    height: 102px;
  }

  .gallery-item-text {
    width: 100%;
    margin-top: 20px;
  }

  .gallery-item-title {
    line-height: 175%;
    text-align: center;
  }
}