@media (min-width: 1500px) {
  .g-grid > div {
    height: 250px;
  }
  .next {
    right: 0px;
  }
  .image-container {
    padding-right: 0px;
  }
  .modal-content > div:first-child {
    height: 99.7vh;
  }
}

@media (max-width: 1499px) {
  .g-grid > div {
    height: 200px;
  }
  .next {
    right: 0px;
  }
  .image-container {
    padding-right: 0px;
  }
  .modal-content > div:first-child {
    height: 99.7vh;
  }
}

@media (max-width: 991px) {
  .g-grid > div {
    height: 200px;
  }
  .next {
    right: 0px;
  }
  .image-container {
    padding-right: 0px;
  }
}

@media (max-width: 767px) {
  .g-grid > div {
    height: 190px;
  }
  .next {
    right: 0px;
  }
  .image-container {
    padding-right: 0px;
  }
}

@media (max-width: 575px) {
  .g-grid > div {
    height: 250px;
  }
  .hidden-xs {
    display: none;
  }
  .next {
    right: 0px;
  }
  .image-container {
    padding-right: 15px;
  }
  .image-container + div{
    margin-top: 10px;
  }
  .modal-content > div:first-child {
    height: auto;
  }
}

.g-grid > div > .g-image,
.g-image {
  border: 0px solid transparent;
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
}

div.g-image:hover, .referencie:hover > .g-image {
  opacity: 0.8;
  background-color: #567471 !important;
  cursor: pointer;
}

.g-grid > div {
  padding-top: 15px;
  padding-bottom: 15px;
}

.g-image-label, .g-image-a-btn {
  position: absolute;
  bottom: 15px;
  width: calc(100% - 30px);
  background: -webkit-linear-gradient(left, rgba(85, 67, 70, 0.85), rgba(69, 80, 91, 0.85)) !important;
  background: -moz-linear-gradient(left, rgba(85, 67, 70, 0.85), rgba(69, 80, 91, 0.85)) !important;
  background: -o-linear-gradient(left, rgba(85, 67, 70, 0.85), rgba(69, 80, 91, 0.85)) !important;
  background: -ms-linear-gradient(left, rgba(85, 67, 70, 0.85), rgba(69, 80, 91, 0.85)) !important;
  text-align: center;
  color: white;
  padding: 5px;
}

.column {
  float: left;
  padding-right: 5px;
}

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 0px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0, 0.9);
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: transparent;
  margin: auto;
  padding: 0;
  width: 100%;
  border: 0px;
}

/* The Close Button */
.g-close {
  color: white;
  position: absolute;
  top: 5px;
  left: 5px;
  width: 40px;
  height: 40px;
  font-size: 44px;
  opacity: 0.8;
  font-style: normal;
  line-height: 0.8;
  z-index: 1001;
  border-radius: 50%;
  background-color: #3E4042;
  text-align: center;
}

.g-close:hover,
.g-close:focus {
  color: white;
  text-decoration: none;
  cursor: pointer;
  opacity: 1;
  background-color: var(--red);
}

.mySlides {
  display: none;
  background-color: transparent;
  vertical-align: -webkit-baseline-middle;
  text-align: center;
  padding: 0px 0px;
  max-height: calc(100vh - 110px);
}

.mySlides > img {
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  display: block;
  max-height: calc(100vh - 110px);
}

.cursor {
  cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50px;
  width: 50px;
  height: calc(100% - 50px);
  text-align: center;
  line-height: 2.5;
  color: white !important;
  transition: 0.6s ease;
  z-index: 3000;
}
.prev > a,
.next > a{
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 2.5;
  margin-top: -25px;
  color: white !important;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 50%;
  background-color: #3E4042;
  user-select: none;
  -ms-user-select: none;
  -webkit-user-select: none;
  z-index: 3000;
  left: 0px;
}
/* On hover, add a black background color with a little bit see-through */
.prev:hover > a, .prev > a:hover,
.next:hover > a, .next > a:hover {
  background-color: #2980b9;
  text-decoration: none;
}
.prev {
  left: 0px;
}
/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

img {
  margin-bottom: -4px;
}

.caption-container {
  background-color: transparent;
  color: white;
  position: fixed;
  top: 0;
  width: 100%;
  text-align: center;
  z-index: 1000;
}
.description-container {
  color:rgb(228,230,235);
  background: #242526;
  padding: 30px;
}
img.demo {
  opacity: 0.6;
  height: 100px;
  width: auto;
}

.active,
.demo:hover {
  opacity: 1 !important;
  transition: 100ms ease-in;
  scroll-behavior: smooth;
}

.g-thumbs {
  width: max-content;
}

.g-wrapper {
  overflow: scroll;
  width: 65.6%;
  position: fixed;
  bottom: 5px;
  height: 100px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
}

.g-wrapper::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  background-color: #F5F5F5;
}

.g-wrapper::-webkit-scrollbar {
  width: 5px;
  background-color: #F5F5F5;
}

.g-wrapper::-webkit-scrollbar-thumb {
  border-radius: 4px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
  background-color: #555;
}

.caption {
  display: block;
  font-size: large;
  padding: 1rem 0rem 0rem 0rem;
  margin: 0px;
  word-break: break-word;
  text-align: left;
  font-weight: bold;
}
.description {
  font-size: 14px;
}

/* START: References, filter css */
/*#region*/
.show {
  display: block !important;
}

.ref-column {
  display: none;
}

.referencie{
  height: 400px;
  cursor: pointer;
}

.p-t-15 {
  padding-top: 15px;
}

.p-b-15 {
  padding-bottom: 15px;
}

.ref-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 2px 2px 3px rgb(0, 0, 0);
  background: -webkit-linear-gradient(left, rgba(85, 67, 70, 0.85), rgba(69, 80, 91, 0.85)) !important;
  width: calc(100% - 30px);
  padding: 0px 10px;
  word-break: break-all;
}
/*#endregion*/
/* END: References, filter css */

.modal-content div.row {
  margin: 0px !important;
}
.modal-content div.container-fluid {
  padding: 0px !important;
}

/* Admin Description Gallery - START */
#myModal > .modal-dialog {
  background: white;
}
#myModal > .modal-dialog div.ck-content {
  min-height: 200px;
}
.admin input.form-control-sm {
  font-weight: bold;
  font-size: 1.1rem;
  padding: 0.5em 1em;
  min-height: 2.1em;
  border: 0px;
}
.admin .input-group-text {
  background-color: white;
  border: 0px;
  display: none;
}
.dropzone .dz-preview {
  margin: 0px 16px;
}
.g-image-a-btn i{
  margin: 0px 10px;
}
i.btn-cover, i.btn-makecover:hover {
  color: gold;
}
i.btn-delete:hover {
  color: #f28281;
}
i.btn-rotate:hover {
  color: #4c8fe7;
}
i.btn-cover:hover, i.btn-makecover:hover, i.btn-delete:hover, i.btn-rotate:hover {
  cursor: pointer;
}
div.g-image-a-btn i.fa-undo {
  position: absolute;
  left: 0px;
  top: 8px;
}
div.g-image-a-btn i.fa-redo {
  position: absolute;
  right: 0px;
  top: 8px;
}

.admin .g-grid {
  max-height: calc(100vh - 110px);
  height: auto;
  overflow: auto;
}
@media (min-width: 576px) {
  .deleteBtn {
    text-align: center;
    position: absolute;
    left: 0px;
    bottom: 10px;
    width: inherit;
  }
}
@media (max-width: 575px) {
  .admin .g-grid {
    max-height: inherit;
  }
  .deleteBtn {
    text-align: center;
    position: initial;
    left: unset;
    bottom: unset;
    width: inherit;
  }
  .g-wrapper {
    position: static;
    width: auto;
  }
}

.ck.ck-editor__editable:not(.ck-editor__nested-editable) {
  min-height: 150px;
}
.toast {
  z-index: 5002;
}
.form-check-label {
  font-size: 16px;
}
.sortable div.ui-sortable-handle div.g-image:hover {
  cursor: grab;
}
.sortable div.ui-sortable-helper div.g-image:hover {
  cursor: grabbing;
}
