/*--------------------------------------------------------------
  >> : Saving Posts
--------------------------------------------------------------*/
  .saving [name="update_post"]:before {
    content: '';
    position: absolute;
    border: 2px solid var(--color-white);
    border-left-color: transparent;
    border-bottom-color: transparent;
    width: 20px;
    height: 20px;
    left: 10px;
    top: 10px;
    border-radius: 50%;
    background: none;
    z-index: 1000;
    opacity: 1;
    -webkit-animation: spinner-infinite 1s linear infinite;
            animation: spinner-infinite 1s linear infinite;
  }

  .saving [name="update_post"] {
    position: relative;
  }

  .saving [name="update_post"] {
    padding-left: 35px;
  }

  .saving .edit-post-inner:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff30;
    z-index: 999;
    /* opacity: 0.4; */
    -webkit-backdrop-filter: blur(2px);
            backdrop-filter: blur(2px);
  }

/*--------------------------------------------------------------
  >> : Feature Image Uploader
--------------------------------------------------------------*/
.select-featured-image {
  width: 50%;
  aspect-ratio: 4 / 5;
  background: var(--color-light-grey);
  border-radius: 10px;
  margin-bottom: 15px;
  position: relative;
  cursor: pointer;
  margin: 0 auto 20px auto;
}

.select-featured-image[data-has-image="0"]:before {
  content: 'Click to upload a picture';
  position: absolute;
  top: calc(50% - 30px);
  left: 0;
  width: 100%;
  height: 30px;
  background-image: url(/app/themes/devignstudios-toolkit/assets/icons/feather-camera.svg);
  background-repeat: no-repeat;
  background-position: 50% 0;
  background-size: 30px;
  padding-top: 40px;
  pointer-events: none;
  font-size: 0.9em;
  text-align: center;
  pointer-events: none;
}

p.featured-image-info {
  margin-bottom: 10px;
}

.select-featured-image[data-has-image="1"] {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

.select-featured-image-wrapper.uploading .select-featured-image {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.select-featured-image-wrapper.uploading .select-featured-image:before {
  content: '';
  position: absolute;
  border: 2px solid var(--color-black);
  border-left-color: transparent;
  border-bottom-color: transparent;
  width: 35px;
  height: 35px;
  left: calc(50% - 15px);
  border-radius: 50%;
  background: none;
  opacity: 0;
  padding: 0;
  -webkit-animation: spinner-infinite 1s linear forwards;
          animation: spinner-infinite 1s linear forwards;
}

.select-featured-image-wrapper.uploading .select-featured-image:before { 
  opacity: 1;
  -webkit-animation: spinner-infinite 1s linear infinite;
          animation: spinner-infinite 1s linear infinite;
}

.select-featured-image-wrapper.uploading .select-featured-image:after {
  content: 'Uploading, please wait...';
  position: absolute;
  height: 100%;
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 0.9em;
  padding-top: 50px;
}

@-webkit-keyframes spinner-infinite {
  to {
    -webkit-transform: rotateZ(360deg);
            transform: rotateZ(360deg);
  }
}

@keyframes spinner-infinite {
  to {
    -webkit-transform: rotateZ(360deg);
            transform: rotateZ(360deg);
  }
}

.date-time-post input {
    border-radius:20px;
}

.date-time-post  input#post_date {
    margin-bottom:10px;
}


.col-country-wrap label,
.col-city-wrap label,
.col-activities-wrap label {
    margin-bottom:10px !important;
}

.col-activities-wrap .small {
    margin-top:5px !important;
}

/*--------------------------------------------------------------
  >> : Select Single Image
--------------------------------------------------------------*/
  #AppMain textarea[name="post_content"] {
    height: auto;
    min-height: auto;
    border-radius: 20px;
  }

  #AppMain textarea[name="iframe_html"] {
    height: 100px !important;
  }

/*--------------------------------------------------------------
  >> : Select Single Image
--------------------------------------------------------------*/
  .select-image {
    width: 100%;
    height: 480px;
    background: var(--color-light-grey);
    border-radius: 10px;
    margin-bottom: 15px;
    position: relative;
    cursor: pointer;
    margin: 10px auto 0 auto;
  }

  .select-image[data-has-image="0"]:before {
    content: 'Click to upload a picture';
    position: absolute;
    top: calc(50% - 30px);
    left: 0;
    width: 100%;
    height: 30px;
    background-image: url(/app/themes/devignstudios-toolkit/assets/icons/feather-camera.svg);
    background-repeat: no-repeat;
    background-position: 50% 0;
    background-size: 30px;
    padding-top: 40px;
    pointer-events: none;
    font-size: 0.9em;
    text-align: center;
    pointer-events: none;
  }

  .select-image[data-has-image="1"] {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
  }

  .select-image-wrapper.uploading .select-image {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
  }

  .select-image-wrapper.uploading .select-image:before {
    content: '';
    position: absolute;
    border: 2px solid var(--color-black);
    border-left-color: transparent;
    border-bottom-color: transparent;
    width: 35px;
    height: 35px;
    left: calc(50% - 15px);
    border-radius: 50%;
    background: none;
    opacity: 0;
    padding: 0;
    -webkit-animation: spinner-infinite 1s linear forwards;
            animation: spinner-infinite 1s linear forwards;
  }

  .select-image-wrapper.uploading .select-image:before { 
    opacity: 1;
    -webkit-animation: spinner-infinite 1s linear infinite;
            animation: spinner-infinite 1s linear infinite;
  }

  .select-image-wrapper.uploading .select-image:after {
    content: 'Uploading, please wait...';
    position: absolute;
    height: 100%;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    font-size: 0.9em;
    padding-top: 50px;
  }

  .select-image-wrapper .btn-reset-image {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
  }

  .select-image-wrapper {
      position: relative;
  }




/*--------------------------------------------------------------
  >> : oEmbed Preview
--------------------------------------------------------------*/
  .embed-preview {
    width: 100%;
    vertical-align: middle;
    height: 400px;
    text-align: center;
    border: 1px solid var(--color-light-grey);
    border-radius: 20px;
    padding: 10px;
    margin-bottom: 2rem;
    position: relative;
    display: none;
    background: var(--color-light-grey);
  }

  .embed-preview iframe,
  .embed-preview video {
    vertical-align: middle;
    width: 80%;
    height: 380px;
    /* margin-bottom: 2rem; */
    border-radius: 5px;
  }

  .embed-preview.uploading,
  .embed-preview[data-has-video="1"],
  .embed-preview[data-has-embed="1"] {
    display: inline-block;
  }

  .embed-preview.uploading:before {
    content: '';
    position: absolute;
    border: 2px solid var(--color-black);
    border-left-color: transparent;
    border-bottom-color: transparent;
    width: 35px;
    height: 35px;
    left: calc(50% - 15px);
    top: calc(50% - 50px);
    border-radius: 50%;
    background: none;
    -webkit-animation: spinner-infinite 1s linear infinite;
            animation: spinner-infinite 1s linear infinite;
  }

  .embed-preview.uploading:after {
    content: 'Fetching video, please wait';
    position: absolute;
    bottom: calc(50% - 25px);
    left: 0;
    width: 100%;
    height: auto;
    text-align: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    pointer-events: none;
  }



/*--------------------------------------------------------------
  >> : Gallery Upload & Preview
--------------------------------------------------------------*/
  #AppMain input[type="file"][name="gallery_attachment"]::-webkit-file-upload-button {
    border-radius: 50px;
    border: none;
    padding: 8px 16px;
    background: var(--color-black);
    color: var(--color-white);
    position: absolute;
    top: 12px;
    left: 13px;
  }



  #AppMain input[type="file"][name="gallery_attachment"] {
    height: 61px !important;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center !important;
        -ms-flex-pack: center !important;
            justify-content: center !important;
    -ms-flex-line-pack: center !important;
        align-content: center !important;
    display: none !important;
    position: relative;
  }

  .gallery-preview {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    width: 100%;
    min-height: 148px;
    border: 1px solid var(--color-light-grey);
    border-radius: 20px;
    margin-top: 0;
    margin-bottom: 0;
    padding: 10px;
    background: #ffffff;
    position: relative;
  }

  .gallery-upload.uploading .gallery-preview {
    position: relative;
    overflow: hidden;
  }


  .gallery-upload.uploading .gallery-preview:before {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
  }

  .gallery-upload.uploading .gallery-preview:before {
    content: '';
    position: absolute;
    border: 2px solid var(--color-black);
    border-left-color: transparent;
    border-bottom-color: transparent;
    width: 35px;
    height: 35px;
    left: calc(50% - 15px);
    top: calc(50% - 55px);
    border-radius: 50%;
    background: none;
    z-index: 10;
    opacity: 0;
    -webkit-animation: spinner-infinite 1s linear forwards;
            animation: spinner-infinite 1s linear forwards;
  }

  .gallery-upload.uploading .gallery-preview:before { 
    opacity: 1;
    -webkit-animation: spinner-infinite 1s linear infinite;
            animation: spinner-infinite 1s linear infinite;
  }

  .gallery-upload.uploading .gallery-preview:after {
    content: 'Uploading, please wait...';
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 9;
    background: rgb(255 255 255 / 50%);
    -webkit-backdrop-filter: blur(2px);
            backdrop-filter: blur(2px);
  }

  .gallery-preview-content {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    margin-bottom: -10px;
    padding-bottom: 90px;
    position: relative;
    width: 100%;
    min-height: 180px;
    margin-top: -10px;
  }

  .gallery-preview-item {
    width: 175px;
    height: 175px;
    position: relative;
    cursor: move;
    margin-right: 10px;
    margin-bottom: 45px;
    text-align: center;
    margin-top: 10px;
    background: #212529;
  }

  .gallery-preview-item img {
    border-radius: 10px;
    margin: 0 auto;
    left: 0;
    right: 0;
    width: auto;
    height: 175px;
    top: 0;
    max-width: 100%;
    -o-object-fit: contain;
       object-fit: contain;
  }

  .gallery-preview-remove-item {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--color-black);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    -webkit-transition: opacity 333ms ease;
    -o-transition: opacity 333ms ease;
    transition: opacity 333ms ease;
    z-index: 99;
  }

  .gallery-preview-remove-item img {
    -webkit-filter: invert(1);
            filter: invert(1);
    width: 100%;
    height: 100%;
    padding: 3px;
  }

  .gallery-preview-item:hover .gallery-preview-remove-item {
    opacity: 1;
    pointer-events: all;  
    -webkit-transition: opacity 333ms ease;  
    -o-transition: opacity 333ms ease;  
    transition: opacity 333ms ease;
  }

  .gallery-preview-item-add {
    background: var(--color-black);
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -ms-flex-line-pack: center;
        align-content: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    cursor: pointer;
    position: absolute;
    bottom: 10px;
    right: 10px;
    margin: 0;
    width: 130px !important;
    height: 40px !important;
    padding-left: 10px;
    /* padding-right: 10px; */
    border-radius: 50px !important;
  }

  .gallery-preview-item-add > img {
    width: 18px !important;
    height: 18px !important;
    -o-object-fit: cover;
       object-fit: cover;
    -webkit-filter: invert(1);
            filter: invert(1);
  }

  .gallery-preview-item-add > span {
    font-size: 80%;
    width: calc(100% - 18px);
    text-align: left;
    margin-top: 0px;
    line-height: 1;
    height: 14px;
    color: var(--color-white);
    padding-left: 5px;
  }


  .gallery-preview-item {
    border-radius: 10px;
  }

  .gallery-preview-item [type="text"] {
    border-radius: 10px !important;
    padding: 8px !important;
    margin-top: 0;
    font-size: 12px !important;
    position: absolute;
    left: 0;
    bottom: -45px;
  }

  .gallery-preview-item.uploading {
    /* pointer-events: none; */
    /* cursor: not-allowed; */
  }

  .gallery-preview-item.uploading:before {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
  }

  .gallery-preview-item.uploading:before {
    content: '';
    position: absolute;
    border: 2px solid var(--color-black);
    border-left-color: transparent;
    border-bottom-color: transparent;
    width: 35px;
    height: 35px;
    left: calc(50% - 15px);
    top: calc(50% - 17.5px);
    border-radius: 50%;
    background: none;
    z-index: 10;
    opacity: 0;
    -webkit-animation: spinner-infinite 1s linear forwards;
            animation: spinner-infinite 1s linear forwards;
  }

  .gallery-preview-item.uploading:before {
    opacity: 1;
    -webkit-animation: spinner-infinite 1s linear infinite;
            animation: spinner-infinite 1s linear infinite;
  }

  .gallery-preview-item.uploading:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 9;
    -webkit-backdrop-filter: blur(5px);
            backdrop-filter: blur(5px);
  }

/*--------------------------------------------------------------
  >> : Single Blog - Blog Builder
--------------------------------------------------------------*/

  .form-element.blog-builder {
/*    min-height: 1000vh;*/
  }

  [data-component="content"] img,
  .ql-snow .ql-editor img {
    width: 12px;
    height: 12px;
    vertical-align: middle;
    margin: 0 5px;
  }

  .editor-content img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin: 0 5px;
  }

  .card-body p img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin: 0 5px;
  }

  .editor-content span {
    background: transparent !important;
  }


  .ql-toolbar.ql-snow {
    background: var(--color-light-grey);
    border-color: #f2f3ef;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }

  .ql-container.ql-snow {
    border-color: var(--color-light-grey);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }

  .editor-component {
    margin-bottom: 1rem;
    padding-left: 40px;
    position: relative;
    border-bottom: 1px solid var(--color-light-grey);
    padding-bottom: 1rem;
  }

  .editor-component-badge {
    font-size: 80%;
    font-weight: bold;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    border-radius: 50px;
    line-height: 1;
    margin-bottom: 0.25rem;
  }

  .editor-component-controls {
    position: absolute;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    width: 30px;
    left: 0;
  }

  .editor-component-controls button {
    padding: 0;
    border: none;
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    border-radius: 5px;
    overflow: hidden;
  }

  .editor-component-controls button img {
    width: 15px;
    height: 15px;
    vertical-align: middle;
  }

  .editor-component-controls .add-component:after {
    display: none;
  }

  [data-component="video"] {
    min-height: 125px;
  }

/*--------------------------------------------------------------
  >> : Single Blog - Grid
--------------------------------------------------------------*/

.editor-grid[data-images] > .item {
  width: calc(25% - 10px);
}

.editor-grid[data-images="1"] > .item {
    width: 100% !important;
}

.editor-grid[data-images="2"] > .item {
    width: calc(50% - 10px) !important;
}

.editor-grid[data-images="3"] > .item {
    width: calc(33% - 10px) !important;
}
  
  .editor-grid .item img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center center;
       object-position: center center;

  }

/*--------------------------------------------------------------
  >> : Single Blog - Video
--------------------------------------------------------------*/

  .editor-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    margin: 20px 0;
  }

  .editor-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f7f8fb;
  }

/*--------------------------------------------------------------
  >> : Single Blog - iFrane
--------------------------------------------------------------*/
  .editor-iframe {
    position: relative;
    width: 60%;
    margin: 0 auto;
    height: 590px !important;
    margin-bottom: 2rem;
  }

  .editor-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

/*--------------------------------------------------------------
  >> : Single Plog - Grid
--------------------------------------------------------------*/

  .plog-image-grid .plog-image-item {
    width: calc(25% - 10px);
  }

  .plog-image-grid .plog-image-item img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center;
       object-position: center;
  }

/*--------------------------------------------------------------
  >> : Editor Cards
--------------------------------------------------------------*/

  ul.section-add-wrap {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 1fr 1fr 1fr 1fr 1fr ;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr ;
    list-style:none;
    padding:0px;
    margin:10px 0px;
    border-top:1px solid #f2f3ef;
    border-bottom:1px solid #f2f3ef;
}

ul.section-add-wrap li {
    width:100%;
    height:auto;
    aspect-ratio: 1/1;
    border-right:1px solid #f2f3ef;
    display:-webkit-box;
    display:-ms-flexbox;
    display:flex;
    -webkit-box-align:center;
        -ms-flex-align:center;
            align-items:center;
    -webkit-box-pack:center;
        -ms-flex-pack:center;
            justify-content:center;
    font-size:0.9em;
    cursor:pointer;
    text-align:center;
}

ul.section-add-wrap li:hover {
    background:#f5f6f3;
}

ul.section-add-wrap li img {
    height:80px;
    width:100%;
    -o-object-fit:contain;
       object-fit:contain;
}



/*--------------------------------------------------------------
  >> : Feed Cards with Comments
--------------------------------------------------------------*/
.card-comment-feed {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
}

.uploading .card-comment-feed {
    min-height: 40px;
}

.uploading .card-comment-feed:before {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
    content: '';
    position: absolute;
    border: 2px solid var(--color-black);
    border-left-color: transparent;
    border-bottom-color: transparent;
    width: 25px;
    height: 25px;
    left: calc(50% - 15px);
    top: calc(50% - 10.5px);
    border-radius: 50%;
    background: none;
    z-index: 10;
    opacity: 0;
    -webkit-animation: spinner-infinite 1s linear forwards;
            animation: spinner-infinite 1s linear forwards;
}

.uploading .card-comment-feed:before {
    opacity: 1;
    -webkit-animation: spinner-infinite 1s linear infinite;
            animation: spinner-infinite 1s linear infinite;
}


.card-comment-feed .comment-form-wrapper .comment-respond {
    padding-left: 0;
    margin-top: 15px;
}

.card-comment-feed .comment-form-wrapper [name="comment"] {
    background: #f7f8fb !important;
    max-height: 120px !important;
}

.card-comment-feed .comment-form input[type="submit"] {
    background: white !important;
}


[data-card-style="feed"].creating-comment .form-submit:before {
    content: '';
    position: absolute;
    border: 2px solid #000;
    border-left-color: transparent;
    border-bottom-color: transparent;
    width: 20px;
    height: 20px;
    left: 10px;
    top: 13px;
    border-radius: 50%;
    background: none;
    z-index: 1000;
    opacity: 1;
    -webkit-animation: spinner-infinite 1s linear infinite;
            animation: spinner-infinite 1s linear infinite;
  }

[data-card-style="feed"].creating-comment input[type="submit"] {
    padding-left: 40px !important;
}


/*--------------------------------------------------------------
  >> : Quill Snow
--------------------------------------------------------------*/


  .ql-snow .ql-tooltip input[type=text] {
    display: none;
    border: 1px solid #ccc !important;
    font-size: 13px !important;
    height: 26px !important;
    margin: 0px !important;
    padding: 3px 5px !important;
    width: 170px !important;
  }


/*--------------------------------------------------------------
  >> : Filters Text
--------------------------------------------------------------*/
  .filters-text {
    min-width: 100%;
  }

  .filters-text p {
    display: none;
    margin-top: 15px;
    margin-bottom: 0 !important;
  }

  .filters-text p a {
    font-weight: 500;
    color: var(--color-blue);
  }

  [data-active-status="publish"] [data-status="publish"] {
    display: block;
  }

  [data-active-status="private"] [data-status="private"] {
    display: block;
  }

  [data-active-status="future"] [data-status="future"] {
    display: block;
  }

  [data-active-status="draft"] [data-status="draft"] {
    display: block;
  }

  [data-active-status="pending"] [data-status="pending"] {
    display: block;
  }

  [data-active-status="trash"] [data-status="trash"] {
    display: block;
  }
  [data-active-status="stories-bookmark"] [data-status="stories-bookmark"] {
    display: block;
  }
  [data-active-status="gig-bookmarks"] [data-status="gig-bookmarks"] {
    display: block;
  }

  [data-active-status="gig-applied"] [data-status="gig-applied"] {
    display: block;
  }

  [data-active-status="gig-approved"] [data-status="gig-approved"] {
    display: block;
  }

  [data-active-status="gig-opportunities"] [data-status="gig-opportunities"] {
    display: block;
  }