.lib-inner{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    background: #f1f3f5;
    overflow-y: auto;
    overflow-x: hidden;   
    padding: 80px 30px 30px 30px; 
}
.lhead .back-to-home{
    display:none;
}

.mg-lib-wrap .header{
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    -webkit-box-shadow: 0 0 8px rgb(0 0 0 / 10%);
    box-shadow: 0 0 8px rgb(0 0 0 / 10%);
    top: 0;
    width: 100%;
    left: 0;
    position: fixed;
    z-index: 1;
    padding: 0px 30px;
}

.mg-lib-wrap{
    position: fixed;
    background: #00000054;
    z-index: 1;
    width: 100%;
    top: 0;
    bottom: 0;
    color:black;
}
.mg-lib-wrap .lib-img-wrap{
    position: relative;
}
.lib-img-wrap img{
    width:100%;
}
.mg-lib-wrap .product{
    padding: 8px;
    background-color: #fff;
    -webkit-box-shadow: 0 1px 20px 0 rgb(0 0 0 / 7%);
    box-shadow: 0 1px 20px 0 rgb(0 0 0 / 7%);
    -webkit-border-radius: 3px;
    border-radius: 3px;    
}
.lib-img-wrap i{
    position: absolute;
    top: 50%;
    left: 50%;
    color: white;
    transform: translate(-50%, -50%);   
    opacity: 0; 
}
.mg-lib-wrap .product:hover i{
  opacity:1;
  z-index: 1; 
}
.magical-add-button{
    background: black;
    margin-left: 10px;
}
.mg-lib-wrap .item{
    width: 25%;
    float: left;
    padding: 10px;
}
.mg-lib-wrap .no-found{
  text-align: center;
}
.mg-lib-wrap .search-input{
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
  margin-top: 10px;
}
.mg-lib-wrap .xl-search{
  background: white;
  padding: 15px 10px;
}

.lib-img-wrap::before{
    content:"";
    display: block;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity:0;
    background-color: rgba(0,0,0,.5);
    -webkit-transition: opacity .5s;
    -o-transition: opacity .5s;
    transition: opacity .5s;
    cursor: pointer;
    z-index: 1;
 
}
.mg-lib-wrap .product:hover .lib-img-wrap::before{
  opacity:1;
}
.mg-lib-wrap .pro{
color: #d5dadf;
    position: absolute;
    text-transform: uppercase;
    top: 5px;
    right: 5px;
    padding: 3px 5px;
    font-size: 9px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    background: #db3232;  
}

.mg-lib-wrap .rhead{
  display: flex;
  gap: 11px;
}
.mg-lib-wrap .lib-footer{
    padding: 7px 0px;
}
.mg-lib-wrap .rhead i{
  cursor:pointer;
}
.mg-lib-wrap .product:hover .lib-name{
  display:none;
}
.mg-lib-wrap .product .buy-tmpl,.mg-lib-wrap .product .insert-tmpl{
  display:none;
}
.mg-lib-wrap .product:hover .buy-tmpl,.mg-lib-wrap .product:hover .insert-tmpl{
  display:block;
}

/*Navigation*/

.mg-lib-wrap .filter-wrap {
  text-align: center;
  padding-bottom: 22px;
}
.mg-lib-wrap .filter-wrap a{
  color: black;
  padding: 0px 8px;
  font-weight: 600;
  font-size: 14px;
}

/*End navigation*/
.mg-preview{
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  z-index: 1;
  height: 100%;
  overflow-y: auto;
  display: none;
  background: white;
  line-height: initial;
  overflow-x: hidden;
  color:black;
}
.mg-preview.loading{
  display: block;
}
.mg-preview .close{
  display: inline-flex;
  background: blue;
  color: white;
  padding: 10px 15px;
  cursor: pointer;
}
.mg-preview .preview-cta {
  position: fixed;
  z-index: 2;
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: center;
  top: 30px;
  right: 30px;
  cursor: pointer;
  font-family: monospace;
}
.mg-preview .preview-cta a {
  background: black;
  color: white;
  padding: 10px 20px;
}
/*Pagination*/

.mg-lib-wrap .pagination-wrap ul {
  text-align: center;
  padding: 20px 0px;
}
.mg-lib-wrap .pagination-wrap li {
  display: inline-block;
  padding:0px 3px;
}
.mg-lib-wrap .pagination-wrap li a{
  font-weight: 600;
  font-size: 14px;
  background: white;
  border: 1px solid #000;
  padding: 3px 7px;
  color:black;
}
.mg-lib-wrap .pagination-wrap .active a{
  background: #000;
  color:#fff;
}
/*End pagination*/
.centerhead ul{
  display: inline-flex;
  gap: 18px;  
}
.centerhead li{
  cursor: pointer;
  padding: 20px 0px;
  font-weight: 600;
}
.centerhead li.active{
    border-bottom: 2px solid black;
}
.lib-content.loading{
opacity:.3;
}
.lib-content{
  position: relative;
}

/*No live preview*/
.no-live-preview {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.no-live-preview h4{
font-size:25px;
margin-bottom: 20px;
}
.no-live-preview a{
  padding: 10px 15px;
  background: black;
  color: white;  
}

/* Css loader*/
.lib-content .lds-hourglass{
  display: none;
}
.lib-content.loading .lds-hourglass{
  display: block;
}
.lib-content.loading .item-inner{
  opacity: 0;
  display: none;
}
.item-inner {
  opacity: 1;
  display: block;
}
.lib-content-inner {
  position: relative;
  overflow: hidden;
  height: 100%;
}
.lib-content.loading{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.lds-hourglass {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-hourglass:after {
  content: " ";
  display: block;
  border-radius: 50%;
  width: 0;
  height: 0;
  margin: 8px;
  box-sizing: border-box;
  border: 32px solid #fff;
  border-color: #fff transparent #fff transparent;
  animation: lds-hourglass 1.2s infinite;
}

@keyframes lds-hourglass {
  0% {
    transform: rotate(0);
    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }

  50% {
    transform: rotate(900deg);
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  100% {
    transform: rotate(1800deg);
  }
}

/*Icon css*/

/* Animation property */
.elementor-add-section-area-button.mg-tmbtn {
  animation: wiggle 2s linear infinite;
}

/* Keyframes */
@keyframes wiggle {

  0%,
  7% {
    transform: rotateZ(0);
  }

  15% {
    transform: rotateZ(-15deg);
  }

  20% {
    transform: rotateZ(10deg);
  }

  25% {
    transform: rotateZ(-10deg);
  }

  30% {
    transform: rotateZ(6deg);
  }

  35% {
    transform: rotateZ(-4deg);
  }

  40%,
  100% {
    transform: rotateZ(0);
  }
}

.lib-content.loading {
  position: relative;
  height: 10px;
  width: 50%;
  border: 10px solid #2271b1;
  border-radius: 15px;
  margin:
    auto;
  top: 40%;
}

.lib-content.loading:after {
  content: "";
  position: absolute;
  background-color: #ffffff;
  width: 0px;
  height: 10px;
  border-radius: 15px;
  animation: progres 4s infinite linear;
}

.lib-content.loading:before {
  content:
    'Loading...';
  position:
    absolute;
  top: 18px;
}

@keyframes progres {
  0% {
    width: 0%;
  }

  25% {
    width: 50%;
  }

  50% {
    width: 75%;
  }

  75% {
    width: 85%;
  }

  100% {
    width: 100%;
  }
}

