.image-modal-container {
  .m-img {
    width: 100%;
    background-color: #d8d8d8;
    margin-bottom: 6px;
    overflow: hidden;
    .a-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
}

.image-modal {
  --font-bold: ITC Avant Garde Gothic W05 Bol, helvetica, arial, sans-serif;
  --grey-f1: #F1F1F1;
  --grey-9c: #9C9C9C;

  .modal-dialog {
    margin: 0 auto !important;
    @media (min-width:768px) {
      margin: 1.75rem auto !important;
    }
    @media (min-width:992px) {
      margin: 1.75rem auto !important;
      max-width: 960px;
    }
    @media (min-width:1200px) {
      margin: 1.75rem auto !important;
      max-width: 1200px;
    }
    &.modal-lg {
      width: 90vw;
      max-width: 1200px;
      overflow: visible;
    }

    .modal-content {
      background-color: transparent;
      border-radius: 0;
      border: 0;
      .a-close {
        position: absolute;
        top: 5px;
        right: 5px;
        z-index: 9;
        width: 50px;
        height: 50px;
        border: 2px solid #000;
        background-color: #000;
        -webkit-transition: all .35s ease;
        transition: all .35s ease;
        margin-left: auto;
        margin-bottom: 10px;
        svg {
          path {
            fill: #fff;
          }
        }
      }
      .modal-header {
        position: absolute;
        right: 0px;
        top: 0px;
        width: 0px;
        height: 0px;
        overflow: visible;
        padding: 0px;
        border: 0px;
        margin: 0px;
        .close {
          top: -25px;
          right: 0;
          @media (min-width:768px) {
            right: -16px;
          }
          width: 30px;
          height: 30px;
          cursor: pointer;
          padding: 0;
          border: 0;
          span {
            display: none;
            visibility: hidden;
          }
          &:before,
          &:after {
            background-color: white;
            transition: all 0.3s ease 0s;
            right: -16px;
            width: 100%;
            height: 2px;
            position: absolute;
            top: 50%;
            content: "";
          }
          &:before {
            transform: translate(-50%, -50%) rotate(45deg);
          }
          &:after {
            transform: translate(-50%, -50%) rotate(-45deg);
          }
          &:hover {
            opacity: 1;
            &:before {
              transform: translate(-50%, -50%) rotate(-45deg);
              transition: all 0.3s ease 0s;
            }
            &:after {
              transform: translate(-50%, -50%) rotate(45deg);
              transition: all 0.3s ease 0s;
            }
          }
        }
      }
      .modal-body {
        padding: 0;
        .a-single-image {
          width: auto;
          margin: 0 auto;
        }
        .m-image {
          position: relative;
          width: 100%;
          height: auto;
          @media (min-width:768px) {
            height: auto;
          }
          @media (min-width:992px) {
            height: auto;
          }
          background-size: cover;
          background-position: center;
        }

        .m-buttons {
          position: absolute;
          bottom: 10px;
          left: 7.5px;
          button {
            min-width: 50px;
            height: 50px;
            margin: 0 7.5px;
            border-radius: 4px;
            border: solid 2px black;
            background-color: black;
            color: white;
            background-image: none;
            transition: all 0.35s ease;
            &:hover {
              background-color: white;
              color: black;
            }
            &[disabled] {
              cursor: not-allowed;
              background-color: var(--grey-f1);
              border-color: var(--grey-9c);
              color: var(--grey-9c);
            }
            &:not(.reset) {
              font-family: var(--font-bold);
            }
          }
        }

      }
    }
  }

}

@media (orientation: portrait) and (min-width:768px) {
  .image-modal {
    .modal-dialog {
      &.modal-dialog-centered {
        max-width: 650px;
        align-items: center;
        margin: 0 auto !important;
      }
    }
  }
}

@media (min-width:1200px) {
  .image-modal {
    .modal-dialog {
      &.modal-dialog-centered {
        max-width: 1200px;
      }
    }
  }
}

@media (min-width:1400px) {
  .image-modal {
    .modal-dialog {
      &.modal-dialog-centered {
        max-width: 1400px;
      }
    }
  }
}
