.jwvg-gallery{
  --jwvg-gap:22px;
  --jwvg-radius:26px;
  --jwvg-text:#111;
  --jwvg-muted:#555;
  --jwvg-line:rgba(0,0,0,.08);
  --jwvg-modal-bg:rgba(0,0,0,.82);
  width:100%;
}

.jwvg-filters{
  display:flex;
  flex-wrap:wrap;
  gap:28px;
  margin:0 0 40px;
  justify-content:flex-start;
  align-items:center;
}

.jwvg-filter{
  appearance:none;
  border:0;
  background:transparent;
  color:#b9b6b2;
  padding:0;
  border-radius:0;
  cursor:pointer;
  transition:color .25s ease, opacity .25s ease;
  font:inherit;
  font-weight:700;
  line-height:1;
  text-transform:uppercase;
}

.jwvg-filter:hover,
.jwvg-filter.is-active{
  background:transparent;
  color:var(--jwvg-text);
  border-color:transparent;
}

.jwvg-columns{
  display:flex;
  justify-content:center;
  gap:var(--jwvg-gap);
  align-items:flex-start;
}

.jwvg-column{
  flex:1;
  max-width:400px;
  display:flex;
  flex-direction:column;
  gap:var(--jwvg-gap);
}

.jwvg-card{
  background:transparent;
  border-radius:0;
  overflow:visible;
  transition:transform .28s ease;
}

.jwvg-card:hover{
  transform:translateY(-10px);
}

.jwvg-thumb{
  appearance:none;
  position:relative;
  width:100%;
  aspect-ratio:1 / 1;
  border:0;
  padding:0;
  background:transparent;
  cursor:pointer;
  display:block;
  overflow:hidden;
  border-radius:var(--jwvg-radius);
  transition:border-radius .28s ease;
}

.jwvg-card:hover .jwvg-thumb{
  border-radius:var(--jwvg-radius) var(--jwvg-radius) 0 0;
}

.jwvg-thumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.jwvg-thumb-fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  min-height:240px;
  border:1px dashed var(--jwvg-line);
  border-radius:var(--jwvg-radius);
  color:var(--jwvg-muted);
  background:#f6f6f6;
}

.jwvg-play{
  position:absolute;
  inset:0;
  margin:auto;
  width:96px;
  height:96px;
  border:0;
  background:transparent;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  transform:scale(.92);
  transition:opacity .25s ease, transform .25s ease;
  z-index:2;
}

.jwvg-card:hover .jwvg-play{
  opacity:1;
  transform:scale(1);
}

.jwvg-play::before{
  content:"";
  display:block;
  width:0;
  height:0;
  border-top:22px solid transparent;
  border-bottom:22px solid transparent;
  border-left:36px solid #fff;
}

.jwvg-info{
  max-height:0;
  opacity:0;
  overflow:hidden;
  padding:0;
  margin-top:0;
  transform:translateY(-6px);
  transition:max-height .34s ease, opacity .22s ease, transform .28s ease;
}

.jwvg-card:hover .jwvg-info{
  max-height:260px;
  opacity:1;
  transform:translateY(0);
}

.jwvg-info__inner{
  background:#ffffff;
  border-radius:0 0 var(--jwvg-radius) var(--jwvg-radius);
  padding:14px 16px;
}

.jwvg-info h3{
  margin:0 0 4px !important;
  font-size:16px !important;
  line-height:1.15 !important;
  font-weight:800 !important;
  color:#111 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
}

.jwvg-info h4{
  margin:0 0 8px !important;
  
  line-height:1.2 !important;
  font-weight:700 !important;
  color:#111 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
}

.jwvg-info p{
  margin:0 !important;
  font-size:13px !important;
  line-height:1.35 !important;
  color:#333 !important;
}

.jwvg-no-results,
.jwvg-empty{
  text-align:center;
  color:var(--jwvg-muted);
  padding:24px 16px;
}

.jwvg-modal{
  position:fixed;
  inset:0;
  z-index:999999;
  background:var(--jwvg-modal-bg);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:30px;
}

.jwvg-modal[hidden]{
  display:none !important;
}

.jwvg-modal__dialog{
  position:relative;
  width:min(1100px, 100%);
}

.jwvg-modal__iframe{
  display:block;
  width:100%;
  aspect-ratio:16/9;
  max-height:80vh;
  background:#000;
}

.jwvg-modal__close{
  position:absolute;
  top:-46px;
  right:0;
  border:0;
  background:transparent;
  color:#fff;
  font-size:40px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
}

body.jwvg-modal-open{
  overflow:hidden;
}

@media (max-width: 991px){
  .jwvg-columns{
    flex-direction:column;
    align-items:center;
  }

  .jwvg-column{
    max-width:100%;
    width:100%;
    flex-direction:row;
    flex-wrap:wrap;
    justify-content:space-between;
  }

  .jwvg-card{
    width:calc(50% - 11px);
  }
}

@media (max-width: 767px){
  .jwvg-column{
    width:100%;
    display:flex;
    flex-direction:column;
    gap:16px;
  }

  .jwvg-card{
    width:100%;
  }

  .jwvg-play{
    opacity:1;
    transform:scale(1);
    width:82px;
    height:82px;
  }

  .jwvg-thumb{
    border-radius:var(--jwvg-radius) var(--jwvg-radius) 0 0;
  }

  .jwvg-info{
    max-height:260px;
    opacity:1;
    transform:none;
  }

  .jwvg-modal{
    padding:16px;
  }

  .jwvg-modal__close{
    top:-34px;
    font-size:32px;
  }
}