.gallery .learn-more {
  color: var(--pri);
  display: block;
  font-size: 14px;
}

.gallery .inner-right p {
  margin: 30px 0 20px;
}

#structure-form .right.gallery .gallery-block {
  margin: 30px 0;
}

#structure-form .right.gallery .gallery-block .gallery-block-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-row-gap: 10px;
  grid-column-gap: 10px;
  max-width: 790px;
  padding: 0;
}

#structure-form
  .right.gallery
  .gallery-block
  .gallery-block-inner
  .upload-block {
  border: 2px dashed var(--pri);
  border-radius: 5px;
}

#structure-form
  .right.gallery
  .gallery-block
  .gallery-block-inner
  .upload-block
  input {
  width: 0;
  height: 0;
}

#structure-form
  .right.gallery
  .gallery-block
  .gallery-block-inner
  .upload-block
  label {
  height: 100%;
  width: 100%;
  float: left;
}

#structure-form
  .right.gallery
  .gallery-block
  .gallery-block-inner
  .upload-block
  label
  .upload-inner {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  cursor: pointer;
}

#structure-form
  .right.gallery
  .gallery-block
  .gallery-block-inner
  .upload-block
  label
  .upload-inner
  span {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--pri);
}

#structure-form
  .right.gallery
  .gallery-block
  .gallery-block-inner
  .upload-block
  label
  .upload-inner
  img {
  width: 30px;
}

#structure-form .right.gallery .gallery-block .gallery-block-inner .img-block {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid #d7d7d7;
  cursor: pointer;
}

#structure-form
  .right.gallery
  .gallery-block
  .gallery-block-inner
  .img-block
  img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#structure-form .right.gallery .gallery-block .gallery-block-inner > div {
  height: 140px;
}

#structure-form
  .right.gallery
  .gallery-block
  .gallery-block-inner
  .img-block
  .title {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: var(--white);
  padding: 0 10px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  box-shadow: 0px 0px 4px #0000001c;
}

#structure-form
  .right.gallery
  .gallery-block
  .gallery-block-inner
  .img-block
  .title
  span {
  color: var(--pri);
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
}

.upload-inner-popup {
  position: relative;
}

.upload-inner-popup .drop-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
}

.upload-inner-popup .drop-wrapper .file-drop {
  width: 100%;
  height: 100%;
}

.upload-inner-popup .drop-wrapper .file-drop .file-drop-target {
  width: 100%;
  height: 100%;
}

.cursor-pointer {
  cursor: pointer;
}

.drag-drop-popup-content .upload-block {
  border: 2px dashed var(--pri);
  border-radius: 5px;
  height: 172px;
  width: 100%;
}

.cs-commmon-dialogue-content.drag-drop-popup-content .MuiPaper-root {
  width: 90%;
  max-width: 1085px;
}

.cs-commmon-dialogue-content.drag-drop-popup-content h2 img {
  margin-right: 10px;
  max-height: 21px;
  max-width: 30px;
}

.drag-drop-popup-content .upload-block label {
  height: 100%;
  width: 100%;
}

.drag-drop-popup-content .upload-block .upload-inner-popup {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  cursor: pointer;
}

.drag-drop-popup-content .upload-block .upload-inner-popup input {
  width: 0;
  height: 0;
}

.drag-drop-popup-content .upload-header-block {
  margin-bottom: 15px;
}

.drag-drop-popup-content .upload-block .upload-inner-popup span {
  font-weight: 700;
  color: var(--pri);
  text-align: center;
  width: 160px;
  font-size: 16px;
  margin-top: 6px;
}

.drag-drop-popup-content .upload-block .upload-inner-popup img.not-selected {
  height: 70px;
}

.drag-drop-popup-content .upload-block.not-selected {
  border: 4px dashed var(--pri);
  border-radius: 2px;
  height: 500px;
  width: auto;
}

.drag-drop-popup-content .upload-block .upload-inner-popup span.not-selected {
  margin-top: 6px;
  font-weight: 700;
  color: var(--pri);
  font-size: 20pt;
  width: auto;
}

.drag-drop-popup-content .upload-footer-block {
  display: flex;
  justify-content: flex-start;
}

.drag-drop-popup-content .upload-footer-block .button-block {
  margin-top: 20px;
}

#structure-form .wrapper .gallery .inner-right {
  width: 100%;
}

#structure-form .wrapper .gallery .inner-right .gallery-block .btn {
  width: 50%;
}

#structure-form .right.gallery .gallery-block .continue-btn {
  max-width: 553px;
}

.upload-inner .icon-camera {
  font-size: 30px;
  color: var(--pri);
  margin: 0 0 6px 0;
}

/* @media screen and (min-width: 1800px) {
  #structure-form .right.gallery .gallery-block .gallery-block-inner {
    grid-template-columns: 240px 240px 240px 240px 240px;
  }

  #structure-form .right.gallery .gallery-block .gallery-block-inner > div {
    height: 180px;
  }

  #structure-form
    .right.gallery
    .gallery-block
    .gallery-block-inner
    .upload-block
    label
    .upload-inner
    img {
    width: 35px;
  }

  #structure-form
    .right.gallery
    .gallery-block
    .gallery-block-inner
    .upload-block
    label
    .upload-inner
    span {
    font-size: 18px;
  }

  #structure-form
    .right.gallery
    .gallery-block
    .gallery-block-inner
    .img-block
    .title
    span {
    font-size: 17px;
    line-height: 19px;
  }

  #structure-form
    .right.gallery
    .gallery-block
    .gallery-block-inner
    .img-block
    .title {
    padding: 0 15px;
    min-height: 35px;
    border: none;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0;
    background: var(--pri);
    color: var(--white);
    font-weight: 700;
  }

  .drag-drop-popup-content .image-wrapper.d-flex {
    display: flex;
  }

  .drag-drop-popup-content .image-wrapper .img-block .title {
    background: var(--white);
    padding: 0 10px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    box-shadow: 0px 0px 4px #0000002e;
    min-width: 70px;
    margin-right: 0px;
    cursor: pointer;
  }

  .drag-drop-popup-content .image-wrapper .img-block {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
  }
  .drag-drop-popup-content .image-wrapper .img-block::before {
    position: absolute;
    content: "";
    inset: 0px;
    background: rgba(0, 0, 0, 1);
    opacity: 0;
    transition: opacity 0.2s;
  }
  .drag-drop-popup-content .image-wrapper .img-block:hover::before {
    opacity: 0.4;
  }
  .drag-drop-popup-content .image-wrapper .img-block .title span {
    color: var(--pri);
    font-size: 14px;
    font-weight: 700;
    line-height: 16px;
  }

  .drag-drop-popup-content .crop-container {
    display: flex;
    height: 400px;
  }

  .drag-drop-popup-content .crop-container .ReactCrop {
    width: 50%;
    margin: 10px;
  }

  .drag-drop-popup-content .crop-container .crop-view {
    width: 50%;
    margin: 10px;
  }

  .drag-drop-popup-content .image-wrapper .img-block .title-crop span {
    color: var(--pri);
    font-size: 14px;
    font-weight: 700;
    line-height: 16px;
  }

  .drag-drop-popup-content h2 {
    font-size: 18px;
    color: var(--black);
    font-family: var(--latoBlack);
     margin-bottom: 20px; 
    display: inline-flex;
    align-items: center;
  }

  #structure-form .right.gallery .gallery-block .continue-btn {
    max-width: 700px;
  }
} */

.drag-drop-popup-content .img-block {
  width: 100%;
  height: 172px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7d7d7;
  position: relative;
}

.drag-drop-popup-content .img-block img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

.drag-drop-popup-content .img-block .title-crop {
  background: var(--pri);
  padding: 0 10px;
  min-width: 70px;
  min-height: 28px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0px 0px 4px #0000002e;
}

.drag-drop-popup-content .img-block .title-crop span {
  color: var(--white) !important;
}

.drag-drop-popup-content .image-wrapper {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(20%, 1fr));
  grid-column-gap: 15px;
  grid-row-gap: 15px;
}

.drag-drop-popup-content .image-wrapper.not-selected {
  grid-template-columns: 1fr;
}

.drag-drop-popup-content .image-wrapper.not-selected .upload-block {
  width: 100%;
  height: 250px;
}

.drag-drop-popup-content
  .image-wrapper.not-selected
  .upload-block
  img.not-selected {
  height: 50px;
}

.drag-drop-popup-content
  .image-wrapper.not-selected
  .upload-block
  span.not-selected {
  font-size: 18px;
  margin-top: 10px;
  max-width: unset;
}

.drag-drop-popup-content .img-block .title-container {
  bottom: 8px;
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  opacity: 0;
  transition: 0.2s;
  animation: scaleup;
}

.drag-drop-popup-content .image-wrapper .img-block:hover .title-container {
  opacity: 1;
}

#structure-form .wrapper .gallery .inner-right .gallery-block .btn {
  width: 50%;
}

.ns-prev-popup {
  margin-top: 20px;
}

.drag-drop-popup-content
  .image-wrapper.not-selected
  .upload-block
  .icon-camera {
  font-size: 52px;
  color: var(--pri);
}

@media screen and (max-width: 991px) {
  #structure-form .right.gallery .gallery-block .gallery-block-inner {
    grid-template-columns: repeat(3, 1fr);
  }

  #structure-form .wrapper > .right {
    max-width: 100%;
  }

  .drag-drop-popup-content .image-wrapper {
    grid-template-columns: repeat(auto-fill, minmax(25%, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .drag-drop-popup-content .image-wrapper {
    grid-template-columns: repeat(auto-fill, minmax(46%, 1fr));
  }
}

@media screen and (max-width: 575px) {
  .drag-drop-popup-content .img-block,
  #structure-form .right.gallery .gallery-block .gallery-block-inner > div {
    height: 110px;
  }

  #structure-form
    .right.gallery
    .gallery-block
    .gallery-block-inner
    .img-block {
    height: 110px;
  }

  #structure-form
    .right.gallery
    .gallery-block
    .gallery-block-inner
    .upload-block
    label
    .upload-inner
    span {
    font-size: 13px;
  }

  #structure-form
    .right.gallery
    .gallery-block
    .gallery-block-inner
    .img-block
    .title {
    min-height: 27px;
    padding: 0 6px;
  }

  .drag-drop-popup-content .upload-block {
    height: 110px;
  }

  .drag-drop-popup-content .upload-block .upload-inner-popup span {
    font-weight: 500;
    padding: 0 10px;
    font-size: 12px;
    width: 100%;
  }
}
