*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

#container > .container-wrapper {
  display: flex;
}

#container > .container-wrapper #leftside div.text_format_box1 {
  width: 100%;
}

#container > .container-wrapper #maincontent {
  width: auto;
  padding: 0 10px 0 15px;
  margin-left: 0;
  flex: 1;
}

.tuxedo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  gap: 5px;
}

.tuxedo-gallery > a,
.tuxedo-gallery > a img {
  display: block;
}

.tuxedo-gallery > a img {
  width: 100%;
}

.vest-gallery {
  max-width: 634px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(73px, 1fr));
  gap: 5px;
}

.vest-gallery:not(:last-child) {
  margin-bottom: 44px;
}

.vest-gallery > a {
  text-decoration: none;
}

.vest-gallery > a img {
  width: 100% !important;
}

.vest-gallery > a p {
  margin: 5px 0 0;
  color: #000000;
  text-decoration: none;
}

#thumbBox {
  left: 50% !important;
  transform: translateX(-50%);
}

#footer {
  padding: 10px 0;
  height: auto;
  clear: none;
}

#footer p {
  margin: 0;
  text-align: center;
}

@media (min-width: 0) and (max-width: 1024px) {
  #container {
    width: 95%;
  }

  .tuxedo-gallery > a img {
    height: 100%;
  }

  #footer {
    width: 100%;
    padding: 10px;
  }
}

@media (max-width: 767px) {
  #container > .container-wrapper {
    flex-wrap: wrap;
    flex-direction: column-reverse;
  }

  #container > .container-wrapper #leftside {
    width: 100%;
    padding: 20px 15px 0;
  }

  .mobile-center,
  #container > .container-wrapper #leftside .mobile-center {
    text-align: center;
  }

  #container > .container-wrapper #maincontent {
    width: 100%;
    flex: 0 1 auto;
    padding: 0 15px;
  }

  .tuxedo-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  #lightbox .lb-outerContainer {
    width: 90% !important;
    height: auto !important;
  }

  #lightbox .lb-dataContainer {
    width: 95% !important;
  }

  #thumbBox {
    width: 90% !important;
  }

  .location-map {
    width: 100% !important;
  }
}
