/**
 * ----------------------------------------------------------------------------
 * #.# Front CSS
 * ----------------------------------------------------------------------------
 */

/*
List
*/
.wp-block-loop,
.plugin-slider{
  position: relative;
  --grid-gap: 1.5rem;
  --grid-rows: 1;
  --grid-columns: 2;
  --loop-line: 1;
  --loop-line-height: 1.5;
}

.block-loop-items{
  margin-bottom: 1.5rem;
  list-style: none;
  display: grid;
  --grid-auto-cols: calc((100% - (var(--grid-columns) - 1) * var(--grid-gap)) / var(--grid-columns));
  grid-gap: var(--grid-gap);
  grid-template-columns: repeat(auto-fill,minmax(var(--grid-auto-cols),1fr));
}

[data-plugin="slider"],
.block-loop-slider{
  display: grid;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  overscroll-behavior-x: none;
  -ms-scroll-snap-type: x mandatory;
  scroll-snap-type: x mandatory;
  --grid-auto-cols: calc((100% - (var(--grid-columns) - 1) * var(--grid-gap)) / var(--grid-columns));
  grid-auto-flow: column;
  grid-auto-columns: var(--grid-auto-cols);
  grid-template-rows: repeat(var(--grid-rows),-webkit-max-content);
  grid-template-rows: repeat(var(--grid-rows),max-content);
  grid-template-columns: inherit !important;
}
.block-loop-slider::-webkit-scrollbar{
  display: none;
}

.block-slider-scrolling{
  -ms-scroll-snap-type: none;
  scroll-snap-type: none;
  scroll-behavior: inherit;
}

[data-plugin="slider"] .entry-content > *,
.block-loop-slider .entry-content > *{
  width: 100% !important;
  max-width: 100% !important;
}
.block-loop-slider > *{
  scroll-snap-align: start;
}
.grid-1{
  --grid-columns: 1;
}
.grid-2{
  --grid-columns: 2;
}
.grid-3{
  --grid-columns: 3;
}

@media only screen and (min-width: 420px){
  .wp-block-loop{
    --grid-columns: 3;
  }
}

@media only screen and (min-width: 1000px){
  .wp-block-loop{
    --grid-columns: 4;
  }
}

@media only screen and (min-width: 1260px){
  .wp-block-loop{
    --grid-columns: 5;
  }
  .block-loop-items{
    --grid-columns: var(--grid-cols, 5);
  }
}
.block-loop-title{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.block-loop-heading{
  width: 1%;
  flex: 1;
}
.block-loop-more{
  font-size: 14px;
  font-weight: normal;
}
.block-loop-subtitle{
  font-size: 14px;
  color: #888;
  line-height: 1.6;
  text-transform: none;
  display: block;
  width: 100%;
}
.block-loop-nav{
  opacity: 0;
  transition: opacity 0.2s;
  position: absolute;
  display: flex;
  z-index: 5;
  height: 0;
  width: calc(100% + 2.5rem);
  left: -1.25rem;
  top: calc(50% - 1.25rem);
}
.alignfull > .block-loop-nav{
  width: calc(100% - 2.5rem);
  left: 1.25rem;
}
.wp-block-loop:not(.block-loop-overlay) .block-loop-nav{
  top: calc(50% - 3rem);
}
.wp-block-loop:not(.block-loop-overlay) .block-loop-title ~ .block-loop-nav{
  top: calc(50% - 1.5rem);
}
.block-loop-nav span{
  flex: 1;
}
.wp-block-loop:hover .block-loop-nav{
  opacity: 1;
}
.block-loop-nav button{
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}
.block-loop-nav button svg{
  pointer-events: none;
}

.block-loop-dot-left .block-loop-dot{
  margin: -4rem auto 0 auto;
  text-align: left;
  max-width: var(--content-width);
  width: calc(100% - var(--x-gap) * 2);
}
.block-loop-dot{
  text-align: center;
}
.block-loop-dot button{
  width: 1rem;
  height: 1rem;
  padding: 0;
  border-radius: 2rem;
  border: none;
  background-color: transparent;
  color: inherit;
}
.block-loop-dot button:after{
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 6px;
  margin: 0 auto;
  background-color: currentColor;
  opacity: 0.5;
}
.block-loop-dot button.active:after{
  opacity: 1;
}

.scroller{
  width: 15rem;
  font-size: 12px !important;
  display: block !important;
  justify-content: center;
  margin: 0 auto;
}
.scroller.is-loading{
  cursor: wait;
  pointer-events: none;
}
.wp-block-loop .scroller,
.wp-block-loop .pagination,
.block-loop-empty{
  grid-column: 1/-1;
}

.wp-block-loop .navigation .prev:before,
.wp-block-loop .navigation .next:before,
.wp-block-loop .navigation .nav-prev-text,
.wp-block-loop .navigation .nav-next-text{
  display: none;
}
.block-loop-item{
  position: relative;
  padding: 0 !important;
  max-width: 100% !important;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  /*snap*/
  scroll-snap-align: start;
}
.block-loop-item .entry-header,
.block-loop-item .post-thumbnail,
.block-loop-item .entry-content,
.block-loop-item .entry-footer{
  width: 100% !important;
  padding-left: 0;
  padding-right: 0;
}
.block-loop-item .entry-header{
  margin-bottom: 1rem;
}
.block-loop-item .entry-meta{
  margin-top: 0;
  margin-bottom: 0;
}
.block-loop-item .entry-footer{
  margin-bottom: 1rem;
}

.block-loop-item .entry-header{
  padding: 0.5rem 0;
  margin: 0;
  flex: 1;
}
.block-loop-item .entry-title{
  margin: 0 0 4px 0;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0;
}
.block-loop-item .entry-meta{
  display: block;
  font-size: 0.8125rem;
  line-height: 1.25;
  margin-bottom: 0;
  color: #888;
}
.block-loop-item .entry-title,
.block-loop-item .entry-meta,
.block-loop-item .entry-artist,
.block-loop-item .author{
  display: block;
  display: -webkit-box;
  max-height: calc(var(--loop-line) * var(--loop-line-height, 1.6rem));
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-line-clamp: var(--loop-line);
  word-break: break-all;
  line-height: var(--loop-line-height);
}

.block-loop-item .entry-meta > span{
  margin: 0;
}

.block-loop-item .post-thumbnail{
  width: 100%;
  position: relative;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  background-color: rgba(110,120,130,0.2);
}
.wp-block-loop-user .post-thumbnail{
  width: 80% !important;
  margin: 10% 10% 0 10%;
  border-radius: 50% !important;
}
.block-loop-item .post-thumbnail a{
  border-radius: inherit;
}
.block-loop-item .post-thumbnail img,
.block-loop-item .post-thumbnail .avatar{
  border-radius: inherit;
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.block-loop-item .post-thumbnail br,
.block-loop-item .post-thumbnail p{
  display: none;
}
.block-loop-item .post-thumbnail:after{
  padding-top: 100%;
  min-height: auto;
  content: "";
  width: 100%;
  display: block;
}
.block-loop-item .entry-action{
  opacity: 0;
  pointer-events: none;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.2);
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  padding: 0 5%;
  border-radius: 4px;
  transform: translate(-50%, -50%);
  transition: opacity .3s;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  justify-content: space-around;
}
.block-loop-item .entry-action .count{
  display: none;
}
.block-loop-item .entry-action.show{
  z-index: 10;
}
.block-loop-item .entry-action button,
.block-loop-item .entry-action button:hover{
  flex-shrink: 0;
}
.btn-download,
.btn-purchase,
button.btn-like,
button.btn-more {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem;
  line-height: 1;
  color: inherit !important;
  background-color: transparent !important;
  border: none;
  outline: 0 !important;
}
.block-loop-item .btn-play{
  width: 36px;
  height: 36px;
}

.block-loop-item:hover .entry-action,
.block-loop-item:active .entry-action,
.block-loop-item.active .entry-action{
  opacity: 1;
  pointer-events: initial;
}
.block-loop-item .count{
  color: #888;
  font-size: 12px;
  margin: 0 0.5rem;
}
.block-loop-item .entry-footer{
  display: none;
  margin: 0 !important;
}
.block-loop-item .waveform{
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 0;
}
.block-loop-row .btn-purchase{
  margin: 0 0.5rem;
}
.block-loop-index.block-loop-row .waveform:before{
  content: "";
  display: inline-block;
  min-width: 2.25rem;
}

.block-loop-inline button.btn-play{
  transform: scale(1.0);
}
.block-loop-inline .btn-play-waveform{
  display: none;
}

.block-loop-inline .waveform{
  flex: 1;
  width: 1%;
  margin: 0 1rem;
}

.wp-block-loop-user .entry-header{
  text-align: center;
}
.wp-block-loop-user .post-thumbnail{
  border-radius: 50%;
}

.post-thumbnail-21x9 .post-thumbnail:after {
  padding-top: 42.857143%;
}

.post-thumbnail-16x9 .post-thumbnail:after {
  padding-top: 56.25%;
}

.post-thumbnail-4x3 .post-thumbnail:after {
  padding-top: 75%;
}

.post-thumbnail-2x3 .post-thumbnail:after {
  padding-top: 150%;
}

.post-thumbnail-3x4 .post-thumbnail:after {
  padding-top: 133.33333%;
}

.post-thumbnail-1x2 .post-thumbnail:after {
  padding-top: 200%;
}

.post-thumbnail-2x1 .post-thumbnail:after {
  padding-top: 50%;
}

.post-thumbnail-3x1 .post-thumbnail:after {
  padding-top: 33%;
}

.post-thumbnail-4x1 .post-thumbnail:after {
  padding-top: 25%;
}

.post-thumbnail-1-4 .post-thumbnail:after{
  padding-top: 25vh;
  min-height: 10rem;
}
.post-thumbnail-1-3 .post-thumbnail:after{
  padding-top: 33vh;
  min-height: 12.5rem;
}
.post-thumbnail-1-2 .post-thumbnail:after{
  padding-top: 50vh;
  min-height: 15rem;
}
/* row style */
.block-loop-row{
  --grid-columns: 1;
  --grid-cols: 1;
}
.block-loop-row .block-loop-item{
  display: flex;
  flex-direction: row;
  align-items: center;
}
.block-loop-row .post-thumbnail{
  width: 6rem !important;
}
.block-loop-xs .post-thumbnail{
  width: 2.75rem !important;
}
.block-loop-sm .post-thumbnail{
  width: 4rem !important;
}
.block-loop-lg .post-thumbnail{
  width: 10rem !important;
}
.block-loop-row .entry-header{
  flex: 1;
  overflow-x: hidden;
  display: flex;
  flex-wrap: wrap;
  margin-left: 1rem !important;
}
.rtl .block-loop-row .entry-header{
  margin-left: 0 !important;
  margin-right: 1rem !important;
}
.album-tracks .block-loop-items{
  grid-gap: 0;
}
.album-tracks .entry-header{
  flex-wrap: nowrap;
  padding: 0 !important;
}
.album-tracks .post-thumbnail{
  border-radius: 2px !important;
  width: 2.5rem !important;
  min-width: auto !important;
  margin-left: 1rem !important;
}
.album-track .icon-play{
  display: none;
  margin: 0 0.25rem;
}
.album-track:hover:before,
.album-track.active:before{
  font-size: 0;
  min-width: 0 !important;
}
.album-track:hover .icon-play,
.album-track.active .icon-play{
  display: block;
}
.rtl .album-tracks .post-thumbnail{
  margin-left: 0 !important;
  margin-right: 1rem !important;
}
.album-tracks .entry-title a,
.album-tracks .entry-meta a{
  pointer-events: none;
}
.is-album .album-tracks .post-thumbnail{
  display: none;
}

.block-loop-index.block-loop-row.album-tracks .block-loop-item:before{
  min-width: 1.75rem;
}
.block-loop-row .entry-header-inner{
  flex: 1;
  width: 1%;
}
.block-loop-row .post-thumbnail .entry-action .btn-like,
.block-loop-row .post-thumbnail .entry-action .btn-more{
  display: none;
}
.block-loop-row .entry-footer{
  display: flex;
  align-items: center;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: auto !important;
}

.block-loop-row .play-count{
  white-space: nowrap;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.block-loop-row .play-count::before{
  display: inline-block;
  width: 0px;
  height: 0px;
  content: "";
  border-left: 0.5em solid;
  border-top: 0.3em solid transparent;
  border-bottom: 0.3em solid transparent;
  opacity: 0.5;
}

.block-loop-hide-footer .entry-footer{
  display: none;
}

.block-loop-index{
  counter-reset: li;
}
.block-loop-index:not(.block-loop-row) .block-loop-item .entry-header:before {
    content: counter(li);
    counter-increment: li;
    font-weight: 600;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    opacity: 0.5;
    position: absolute;
    right: 0.75rem;
    line-height: 1.4;
}
.block-loop-index.block-loop-row .block-loop-item:before {
    content: counter(li);
    counter-increment: li;
    min-width: 2.25rem;
    font-weight: 600;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    opacity: 0.5;
}

.block-loop-overlay .entry-header{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
  border-radius: inherit;
  border-top-right-radius: 0;
  border-top-left-radius: 0;
  display: none;
}
.block-loop-overlay .entry-header .entry-title{
  height: 18px;
  color: inherit;
  font-weight: 500;
}
.block-loop-overlay .entry-header .entry-meta{
  color: rgba(255,255,255,0.75);
}
.block-loop-overlay .entry-header a:hover{
  color: inherit;
}
.block-loop-overlay .block-loop-item:hover .entry-header{
  display: block;
}

.block-loop-overlay-center .entry-header{
  top: 0;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.block-loop-hover .entry-header{
  text-align: center;
  padding: 0.5rem 0.5rem 1rem 0.5rem !important;
}
.block-loop-hover .entry-meta > span{
  justify-content: center;
}
.block-loop-hover .block-loop-item:hover,
.block-loop-hover .block-loop-item:focus,
.block-loop-hover .block-loop-item.active{
  background-color: #222;
  color: #fff;
}

.block-loop-hover .block-loop-item:hover .entry-header a,
.block-loop-hover .block-loop-item:focus .entry-header a,
.block-loop-hover .block-loop-item.active .entry-header a,
.block-loop-hover .block-loop-item:hover .waveform .btn-play{
  color: #fff !important;
}
.block-loop-hover .block-loop-item:hover .post-thumbnail:after,
.block-loop-hover .block-loop-item:focus .post-thumbnail:after,
.block-loop-hover .block-loop-item.active .post-thumbnail:after{
  position: relative;
  z-index: 1;
  background-color: #222;
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.2), #222);
  border-radius: 4px 4px 0 0; 
}
.block-loop-hover .entry-action{
  background-color: transparent;
}

.block-loop-reverse .block-loop-item,
.block-loop-reverse .block-loop-item .entry-header{
  display: flex;
  flex-direction: column-reverse;
}
.wp-block-loop.alignfull{
  margin-left: 2rem;
  margin-right: 2rem;
}
.entry-title-lg .entry-title{
  font-size: 18px !important;
}

.wp-admin .display{
  font-weight: 900;
  line-height: 1;
  margin-top: 0;
  margin-bottom: 1rem;
}
.wp-admin .circle{
  border-radius: 50%;
}
.wp-admin .rounded{
  border-radius: 6px;
}
.wp-admin .h-auto{
  min-height: auto !important;
}

.white{
  color: #222;
  background-color: #fff;
}
.text-white{
  color: #fff;
}

.h-auto{
  min-height: auto !important;
}

.h-v{
  min-height: 100vh;
}
.h-1{
  min-height: 100vw;
}
.h-2{
  min-height: 50vw;
}

.h-3{
  min-height: 33.3vw;
}

.h-4{
  min-height: 25vw;
}

.h-5{
  min-height: 20vw;
}

.h-6{
  min-height: 16.6vw;
}

.h-7{
  min-height: 14.3vw;
}

.h-8{
  min-height: 12.5vw;
}

.h-9{
  min-height: 11.1vw;
}

.h-10{
  min-height: 10vw;
}

.m-auto{
  margin-left: auto;
  margin-right: auto;
}

.w-75{
  width: 75%;
}
.w-50{
  width: 50%
}

.l-h-2{
  line-height: 2;
}
.l-h-3{
  line-height: 3;
}

.f-w-1{
  font-weight: 100;
}
.f-w-2{
  font-weight: 200;
}
.f-w-7{
  font-weight: 700;
}
.f-w-8{
  font-weight: 800;
}
.f-w-9{
  font-weight: 900;
}

.border{
  border: 1px solid var(--color-border, #eee);
}
.rounded,
.rounded:before{
  border-radius: var(--border-radius, 8px);
}

.no-border{
  border: none;
}

.no-padding{
  padding: 0 !important;
}

.no-margin{
  margin: 0 !important;
}

#ffl-settings .postbox-header{
  border-bottom: none;
}

/* filter */
.loop-filter{
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.loop-filter-item{
  margin-bottom: 1rem;
  white-space: nowrap;
}
.loop-filter-item:after{
  content: "";
  display: inline-block;
  width: 0.5rem;
}
.loop-filter-item .selected{
  position: relative;
}
.loop-filter-item .selected:after{
  content: '';
  display: inline-block;
  width: .65em;
  height: .35em;
  border-left: .1em solid currentColor;
  border-bottom: .1em solid currentColor;
  transform: translate(-50%,-50%) rotate(-45deg);
  position: absolute;
  right: 0.5rem;
  top: 45%;
  opacity: 0.6;
}
.loop-filter-count{
  display: inline-block;
  background-color: rgba(150,160,170,0.2);
  padding: 0 0.45em;
  margin: 0 0.125rem;
  font-size: 11px;
  border-radius: 1rem;
}

input[type="range"].multirange {
  -webkit-appearance: none;
  height: 2px;
  padding: 0;
  margin: 2rem 0px 1rem;
  width: calc(100% - 0px);
  display: inline-block;
  vertical-align: top;
  background-image: linear-gradient( 90deg, rgb(120, 130, 140), rgb(120, 130, 140) 50%, rgb(255, 255, 255) 50%, rgb(255, 255, 255) 100%);
  background-size: 6px 1px;
  color: currentColor;
  border: 0;
  border-radius: 6px;
}

input[type="range"].multirange.original {
  position: absolute;
}

input[type="range"].multirange::-webkit-slider-thumb {
  -webkit-appearance: none;
  position: relative;
  z-index: 2;
  border: none;
  width: 10px;
  height: 10px;
  border-radius: 1px;
  background-color: currentColor;
}

input[type="range"].multirange::-moz-range-thumb {
  border: none;
  width: 10px;
  height: 10px;
  border-radius: 1px;
  background-color: currentColor;
}

input[type="range"].multirange.original::-moz-range-thumb {
  z-index: 2;
}

input[type="range"].multirange.ghost {
  position: relative;
  background: var(--track-background);
  --track-background: linear-gradient(to right,
      transparent var(--low), var(--range-color) 0,
      var(--range-color) var(--high), transparent 0
    ) no-repeat 0 100% / 100% 100%;
  --range-color: currentColor;
}

input[type="range"].multirange.ghost::-webkit-slider-thumb {
  position: relative;
  z-index: 2;
}

input[type="range"].multirange.ghost::-moz-range-thumb {
  z-index: 2;
}

.multi-range{
  margin: 0 1rem;
  position: relative;
}
.range-min,
.range-max{
  position: absolute;
  top: 0.5rem;
  font-size: 10px;
  width: 10px;
  display: flex;
  justify-content: center;
  text-align: center;
  left: calc( var(--left) * 1% );
  margin-left: calc( 0px - var(--left) / 100 * 10px );
}

.spinner{
  display: inline-block;
  width: 1rem;
  height: 1rem;
  vertical-align: text-bottom;
  background-color: currentColor;
  border-radius: 50%;
  opacity: 0;
  -webkit-animation: spinner .75s linear infinite;
  animation: spinner .75s linear infinite;
}

.font-serif{
  font-family: serif;
  font-weight: 500;
}
*:not(p).has-huge-font-size{
  font-size: 12vw;
  letter-spacing: -0.025em;}
*:not(p).has-large-font-size{
  font-size: 8vw;
  letter-spacing: -0.025em;
}
*:not(p).has-medium-font-size {
  font-size: 5vw;
  letter-spacing: -0.025em;
}
*:not(p).has-normal-font-size {
  font-size: 3vw;
}

@keyframes spinner {
  0% {
    transform: scale(0);
  }
  50% {
    opacity: 1;
  }
}
@media (max-width: 576px){
  .wp-block-loop{
    --grid-gap: 1rem;
  }
  .block-loop-row:not(.album-tracks) .block-loop-item:not(.block-loop-inline) .entry-header-inner{
    flex: auto;
    width: 100%;
  }
  .block-loop-row .block-loop-items{
    --grid-columns: 1 !important;
  }
  .block-loop-row:not(.album-tracks) .block-loop-item:not(.block-loop-inline) .entry-footer{
    width: 100% !important;
    margin: 0.5rem -0.5rem 0 !important;
  }
  .block-loop-row .post-thumbnail{
    width: 4.5rem !important;
  }
  .block-loop-inline .waveform,
  .block-loop-nav{
    display: none;
  }
  .modal-open .wp-block-loop-product .block-loop-slider{
    overflow: visible;
  }
  *:not(p).has-huge-font-size{
    font-size: 15vw;
  }
  *:not(p).has-large-font-size{
    font-size: 12.5vw;
  }
  *:not(p).has-medium-font-size {
    font-size: 10vw;
  }
  *:not(p).has-normal-font-size {
    font-size: 5vw;
  }
}
@media (min-width: 1330px){
  *:not(p).has-huge-font-size{
    font-size: 9rem;
  }
  *:not(p).has-large-font-size{
    font-size: 7rem;
  }
  *:not(p).has-medium-font-size {
    font-size: 5rem;
  }
  *:not(p).has-normal-font-size {
    font-size: 2.5rem;
  }
}
