#page-title {
  display: flex;
  background: #000;
  justify-content: center;
  align-items: center;
  margin: 0;
  flex-direction: column;
  position: relative;
  height: 400px;
  background-image: linear-gradient(to bottom, #29323c2e, #1a1a1ab8), url("../jpg/customer-wall-banner.jpg");
  background-position: center;
  max-height: 600px;
}

#page-title p {
  position: absolute;
  bottom: 20px;
  color: #fff;
  font-size: 20px;
}

#page-title p span {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

#page-title p svg {
  margin: auto;
  margin-top: -6px;
}

h1 {
  position: absolute;
  font-size: 30px;
  color: #fff;
  margin: 0;
}

@media (min-width: 768px) {
  h1 {
    font-size: 50px;
  }
}

@media (min-width: 1200px) {
  h1 {
    font-size: 70px;
  }
}

#banner-image {
  opacity: 0.75;
  width: 100%;
}

.social-links:hover{text-decoration: none;}
#social-wrapper{
display: flex;
flex-direction: column;
position: relative;
align-items: center;
margin-bottom: 10px;
}
@media(min-width:768px){

  #social-wrapper{
top: -60px; 
height: 0px; 
align-items: flex-end;
margin-bottom: 0;
}
}

.img-wrapper {
  padding: 0;
  cursor: pointer;
  box-shadow: 0 0 black;
}

.img-wrapper .fa-expand {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 1;
  font-size: 18px;
  pointer-events: none;
}

@media (min-width: 992px) {
  .img-wrapper .fa-expand {
    display: none;
  }
  #picture-modal img {
    margin-left: 0 !important;
  }
}

.lds-ring {
  width: 64px;
  height: 64px;
  transition: 400ms;
  margin: auto;
}

.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 51px;
  height: 51px;
  margin: 6px;
  border: 6px solid #00a5e2;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #00a5e2 transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}

@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.new-image img {
  transition: 400ms;
  opacity: 0;
}

/* Masonry container */
@media (min-width: 500px) {
  #gallery {
    display: grid;
    grid-gap: 5px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 1px;
    overflow: hidden;
  }
}

.img-wrapper {
  /* Masonry bricks or child elements */
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-wrapper img {
  transition: 400ms;
  position: relative;
  /* position: absolute; */
}

.img-wrapper:hover {
  opacity: 0.8 !important;
}

#load-more {
  border: none;
  outline: none;
  display: block;
}

#load-more:hover {
  color: #eaeaea;
  background: #46aed4;
  box-shadow: inset 0 1px 6px 0px #4a4a4aad;
}

/* MODAL */
#picture-modal,
#upload-modal {
  z-index: -1;
  position: fixed;
  left: -70px;
  opacity: 0;
  transition: 300ms;
  background: #fff;
  width: 80%;
  left: 10%;
  top: 30px;
  overflow: hidden;
  border-radius: 10px;
}

@media (max-width: 768px) {
  #page-title {
    background-image: linear-gradient(to bottom, #29323c2e, #1a1a1ab8), url("../jpg/customer-wall-banner-xs.jpg");
    background-position: center;
    max-height: 400px;
  }

  #picture-modal,
  #upload-modal {
    width: 90%;
    left: 5%;
    margin: auto;
  }

  #gallery {
    display: inline-flex;
    flex-direction: column;
  }
  .img-wrapper img {
    margin: auto;
  }
}

@media(max-width:992px){
  #picture-modal{
    overflow-y: scroll;
    max-height: 95%;
    top: 2% !important;
  }
}

#picture-modal #modal-arrow-left,
#picture-modal #modal-arrow-right {
  width: 23px;
  top: calc(50% - 9px);
  position: absolute;
  z-index: 2;
  cursor: pointer;
}

#picture-modal #modal-arrow-left {
  left: 5px;
  margin-right: 90%;
  -webkit-filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.6));
  filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.6));
}

#picture-modal #modal-arrow-right {
  right: 5px;
  margin-left: calc(100% - 28px);
  -webkit-filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.6));
  filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.6));
}

#picture-modal img {
  height: inherit;
  margin: auto;
}

.picture-modal-show {
  z-index: 99999 !important;
  opacity: 1 !important;
}

#picture-modal-background {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #000;
  top: 0;
  z-index: -1;
  opacity: 0;
}

.show-picture-modal-background {
  opacity: 0.5 !important;
  z-index: 99998 !important;
  transition: 0ms !important;
}

.close-quick-view,
.close-upload-modal {
  position: absolute;
  right: 0;
  padding: 5px 15px;
  font-size: 20px;
  opacity: 0.4;
  font-style: normal;
  font-weight: bold;
  cursor: pointer;
  z-index: 9999;
}

.close-upload-modal {
  right: 10px;
  top: 10px;
}

#picture-modal .container {
  width: 100%;
}

#picture-modal .col-md-7 {
  padding: 0;
}

#picture-modal .col-md-5 {
  padding: 0;
  padding-left: 10px;
}

#picture-modal .ebike-name {
  text-align: center;
  margin-top: 5px;
  padding-bottom: 10px;
  font-weight: bolder;
}

#picture-modal #modal-name {
  font-weight: bolder;
}

#picture-modal #modal-description {
  margin: 20px 28px 20px 0;
}

#picture-modal #modal-ebikes a:hover {
  text-decoration: none;
}

.grid {
  display: grid;
  grid-gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 20px;
}

#send-photos-btn {
  width: 200px;
  border: none;
  margin-bottom: 20px;
  margin-top: 10px;
}

#upload-modal {
  padding: 30px 0;
  overflow: auto;
  position: absolute;
  top: -50px;
}

#upload-modal h2 {
  margin-bottom: 20px;
  margin-top: 0;
}

#upload-modal .submit-row {
  padding: 0;
}

#upload-modal .has-error .upload-drop-zone {
  border-color: #fb4c2f;
}

#upload-modal .has-error .checkbox-glyphicon {
  position: relative;
  display: inline-block;
  top: 3px;
}

#upload-modal .has-success .checkbox-glyphicon {
  display: none;
}

#upload-modal #show-social-wrapper {
  margin-bottom: 25px;
}

.checkbox-input-wrapper {
  background-color: #f9f9f9;
  border: 1px solid #d3d3d3;
  padding: 10px;
  width: 100%;
  display: flex;
  border-radius: 5px;
}

.checkbox-input-wrapper input {
  height: 24px;
  width: 24px;
  margin-right: 10px !important;
}

.checkbox-input-wrapper .checkbox-text {
  font-size: 12px;
  margin-bottom: 0;
  max-width: calc(100% - 35px);
}

.upload-drop-zone {
  height: 100px;
  line-height: normal;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #aaa;
}

.upload-drop-zone p {
  font-size: 20px;
  margin: 0 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.upload-drop-zone span {
  display: flex;
  align-items: center;
  width: calc(100% - 50px);
}

.upload-drop-zone #upload-success svg {
  vertical-align: middle;
  fill: #16a765;
}

.upload-drop-zone #upload-error svg {
  vertical-align: middle;
  fill: red;
}

@media (max-width: 768px) {
  .upload-drop-zone {
    display: none;
  }
}

@media (min-width: 768px) {
  #upload-side-image {
    min-height: 640px;
    background-image: url("../jpg/nigel-2.jpg");
    background-size: contain;
    background-repeat: no-repeat;
  }
}

@media (min-width: 992px) {
  #upload-modal {
    width: auto;
    max-width: 800px;
    left: calc(50% - 400px);
  }
  #upload-modal .submit-row {
    padding: 0 15px 0 0;
  }
}
