.smop-gallery-container {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
.smop-gallery-item-container {
  flex-grow: 0;
  padding: 12px;
}
.smop-gallery-item {
  text-align: center;
  padding: 4px;
  border: 1px solid #ebebeb;
}

.smop-gallery-item > a {
  height: 100%;
  width: 100%;
  display: block;
}
.smop-gallery-item img {
  border-radius: 0;
  display: block;
  max-width: 100%;
  height: 100%;
  margin: auto;
  padding: 0;
  object-fit: cover;
}
video {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: black;
}

div.video-container {
  position: relative;
  height: 100%;
  width: 100%;
}
#smop_image_pagination {
  padding: 0 12px 12px;
}
#smop_image_load_more {
  color: #fff;
  height: 30px;
  padding: 0 12px;
  font-size: 1rem;
}
.random-list {
  width: 100%;
  flex-wrap: inherit;
}
.random-list .smop-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.random-list .smop-gallery-item-container {
  width: unset !important;
}
#smop_image_preview,
.smop_image_preview {
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
}
#smop_image_preview img,
.smop_image_preview img {
  object-fit: contain;
}
.smop_image_preview .image-container > *:first-child {
  text-align: center;
}
.youtube-container iframe,
.youtube-container,
.smop-gallery-item iframe {
  height: 100%;
  width: 100%;
}
.smop-gallery-item iframe {
  pointer-events: none;
}

/* Modal Content (Image) */
.modal-content {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 400px;
  min-height: 300px;
  box-shadow: unset;
}

/* The Close Button */
.close,
.arrow-btn {
  position: absolute;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  z-index: 20;
  opacity: 1;
}
.close {
  top: 15px;
  right: 35px;
}
.next-image {
  top: 50%;
  right: 15px;
}
.pre-image {
  top: 50%;
  left: 15px;
}
.close:hover,
.close:focus,
.pre-image:hover,
.pre-image:focus,
.next-image:hover,
.next-image:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.smop_image_preview-info {
  padding: 8px 24px 24px;
  font-size: 12px;
  width: 100%;
  font-style: italic;
  display: flex;
  flex-direction: column;
  max-height: 100%;
}
.modal-content {
  background-color: transparent;
  border: 0 solid #000;
}

.smop_form_group {
  display: flex;
  flex-wrap: wrap;
}

.smop_input_container {
  flex-grow: 1;
  margin-left: 15px;
}

.smop_input_container .smop_form_control {
  width: 100% !important;
}

.smop_form_group .smop_image_upload_title {
  flex-grow: 0;
  flex-basis: 150px;
}
.file-container {
  background-color: #000;
  min-width: 335px;
  height: 100%;
  margin-right: 335px;
}
.file-container * {
  width: 100%;
  height: 100%;
}
.smop-gallery-container.random-list {
  margin: 0 !important;
}
.random-list .smop-gallery-item-container {
  padding: 0px;
}
.file-info-container {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  background-color: #fff;
  width: 335px;
  color: rgb(38, 38, 38);
  display: flex;
  align-items: center;
}
#smop_image_preview{
	display: none;
	position: fixed;
  inset: 0px;
  z-index: 1050;
  overflow: hidden;
  outline: 0px;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.smop_image_preview-name {
  flex-grow: 0;
  word-break: break-word;
}
.smop_image_preview-info-other {
  flex-grow: 1;
  overflow: auto;
}
.smop_image_preview-content {
  width: 75vw;
  height: 75vh;
  max-width: 900px;
  min-width: 400px;
  min-height: 300px;
  max-height: 700px;
}
.smop_image_preview-title {
  font-weight: bold;
  color: black;
  font-style: normal;
}
.smop_image_preview-list-item {
  padding-bottom: 4px;
}
.smop_image_preview-info-other {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.smop_image_preview-info-other::-webkit-scrollbar {
  display: none;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 900px) {
  .smop_image_preview-content {
    width: 100%;
    height: 100%;
  }
  .smop_image_preview-info {
    height: 100%;
  }
  .file-info-container {
    position: relative !important;
    width: 100%;
    display: block;
    max-height: 30%;
  }
  .file-container {
    margin: 0;
    height: 70% !important;
  }
  .arrow-btn {
    top: 20px;
  }
  .next-image {
    right: 70px;
  }
  .pre-image {
    right: 70px;
    right: 100px;
    left: unset;
  }
}
.preview-image {
  overflow: hidden;
}
.preview-image .go-top {
  z-index: 10 !important;
  opacity: 0 !important;
  display: none !important;
}
.preview-image .fb_dialog {
  z-index: 10 !important;
  opacity: 0 !important;
  display: none !important;
}
.detail-nbds .close {
  color: #000;
}
.form-group label {
  margin-top: 4px;
}
