.modal-photo {
   width: 100%;
   max-width: 800px;
   min-height: 500px;
   display: table;
   background: #fff;
   margin: 0 auto;
   padding: 0;
   position: relative;
   border-radius: 10px;
   overflow: hidden;
}

.mfp-close {
   border-radius: 10px 0 0 10px !important;
   width: 44px !important;
   height: 30px !important;
   background: #fff !important;
   display: block !important;
   position: absolute;
   top: 15px;
   right: 0;
}

.mfp-close:hover {
   background: var(--orange) !important;
   color: #fff !important;
}

.modal-photo picture.index {
   width: 100%;
   height: auto;
   /* max-height: 500px; */
   display: flex;
   position: relative;
   z-index: 1;
}

.modal-photo .data {
   border-radius: 15px;
   margin-top: -15px;
   position: relative;
   z-index: 2;
   background: #fff;
   box-shadow: 0 -1px 2px 0 rgba(0, 0, 0, 0.25);
   border-top: 1px solid #da6342;
}

.modal-photo .data .top {
   width: 100%;
   height: auto;
   display: flex;
   align-items: center;
   justify-content: space-between;
   flex-wrap: wrap;
   gap: 19px;
   padding: 17px;
   border-bottom: 1px solid #f3eee9;
}

.modal-photo .data .top .line {
   width: 100%;
   height: auto;
   display: flex;
   align-items: center;
   justify-content: space-between;
}

.modal-photo .data .top .description {
   width: auto;
   height: auto;
   display: table;
   background: rgba(236, 179, 7, 0.2);
   border-radius: 10px;
   padding: 15px 19px;
   font-weight: 300;
   font-size: 17px;
   color: var(--shrift);
}

.modal-photo .userData {
   padding: 0;
}

.modal-photo .userData picture {
   width: 50px;
   height: 50px;
}

.modal-photo .data .post-buttons {
   margin: 0;
   padding: 0;
   border: none;
}

.modal-photo .data .comments {
   margin-top: 10px;
   padding: 0;
}

.modal-photo .data .comments .comment {
   padding: 13px 17px;
}

.modal-photo .data .comments form {
   margin-top: 17px;
}

.modal-addphoto {
   width: 100%;
   max-width: 900px;
   min-height: 500px;
   display: table;
   background: #fff;
   margin: 0 auto;
   padding: 0;
   position: relative;
   border-radius: 10px;
   overflow: hidden;
   border: 5px solid rgba(0, 0, 0, 0);
}

.modal-addphoto.center {
   display: flex;
   align-items: center;
   justify-content: center;
}

.modal-addphoto .load .mso {
   font-size: 100px;
   color: var(--orange);
   margin: 0 auto;
   display: table;
   width: auto;
}

.modal-addphoto .load .text {
   font-weight: 500;
   font-size: 25px;
   color: var(--shrift);
   text-align: center;
   margin-top: 22px;
}

.modal-addphoto .load .text span {
   text-decoration: underline;
   text-decoration-skip-ink: none;
   color: #ecb307;
   position: relative;
   overflow: hidden;
   cursor: pointer;
}

.modal-addphoto .load .text span input {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   opacity: 0;
   cursor: pointer;
}

.modal-addphoto .load .text span:hover {
   color: var(--shrift);
}

.modal-addphoto.border {
   border: 5px solid #ecb307;
}

.modal-allphoto {
   width: 100%;
   max-width: 900px;
   min-height: 500px;
   display: table;
   background: #fff;
   margin: 0 auto;
   padding: 0;
   position: relative;
   border-radius: 10px;
   overflow: hidden;
}

.modal-allphoto .items {
   display: flex;
   align-items: center;
   justify-content: flex-start;
   flex-wrap: wrap;
   gap: 15px;
   padding: 48px 19px;
   width: 100%;
}

.modal-allphoto .items .text-error {
   width: 100%;
}

.modal-allphoto .item {
   width: calc(25% - 15px);
}

.modal-allphoto .item picture {
   border-radius: 10px;
   width: 100%;
   height: 139px;
   display: block;
   margin-bottom: 10px;
}

.modal-allphoto .item textarea {
   border: 1px solid #f3eee9;
   border-radius: 10px;
   width: 100%;
   height: 54px;
   outline: none;
   resize: none;
   display: block;
   font-weight: 300;
   font-size: 14px;
   color: var(--shrift);
   padding: 8px 13px;
   font-family: var(--family-text);
}

.modal-allphoto button {
   margin: 0 auto 30px;
}

@media only screen and (max-width: 1180px) {

   .mfp-container {
      padding: 0 !important;
   }

   .mfp-content {
      width: 100%;
      height: 100%;
   }

   .modal {
      border-radius: 0px;
      height: 100%;
   }

   .modal-photo .data {
      position: unset;
      margin-top: 0;
      border-radius: 0px;
   }

   .modal-photo .userData {
      position: absolute;
      z-index: 2;
      top: 0;
      left: 0;
      background: #fff;
      width: 100%;
      padding: 10px;
      gap: 10px;
   }

   .modal-photo .userData picture {
      width: 30px;
      height: 30px;
   }

   .userData .name {
      font-size: 14px !important;
      margin-bottom: 0;
   }

   .mfp-close {
      top: 12px;
   }

   .modal-photo picture.index {
      margin-top: 56px;
   }

   .modal-photo .data .top {
      padding: 0;
      gap: 0;
   }

   .modal-photo .data .post-buttons {
      position: relative;
      z-index: 3;
      width: 100%;
      padding: 15px 10px;
      background: #fff;
      box-shadow: -1px -1px 2px 0 rgba(0, 0, 0, 0.25);
      border-top: 1px solid #da6342;
      border-radius: 10px 10px 0 0;
   }

   .modal-photo .data .comments {
      margin-top: 0px;
   }

   .comments .comment {
      gap: 10px;
   }

   .comments .comment picture {
      width: 25px;
      min-width: 25px;
      height: 25px;
   }

   .comments .comment .content .name {
      font-size: 14px;
   }

   .comments .comment .content .text {
      font-size: 12px;
   }

   .comments form .center textarea {
      font-size: 14px;
   }

   .modal-photo .data .comments form {
      margin-top: 0px;
   }

   .modal-photo .data .top .description {
      margin: 15px 17px;
   }

   .modal-addphoto .load .text {
      font-size: 18px;
      padding: 0 10px;
   }

   .modal-allphoto .items {
      padding: 20px 10px;
   }

   .modal-allphoto .item {
      width: 100%;
   }
}