@import "ws-post.css";
@import "ws-tech-embed.css";

body.single-post .ws-addwhat--mobile{
  display: none;
}

@media (max-width: 767px){
  body.single-post .ws-addwhat--desktop{
    display: none;
  }

  body.single-post .ws-addwhat--mobile{
    display: block;
  }
}

body.single-post :where(.post-page__media, .ws-article__media){
  margin: 16px 0;
}

body.single-post .ws-vplayer{
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
}

body.single-post .ws-vplayer__el,
body.single-post :where(.post-page__media, .ws-article__media) > img,
body.single-post :where(.post-page__media, .ws-article__media) > video{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  border: 0;
}

@media (min-width: 1024px){
  body.single-post .ws-vplayer__el{
    min-height: 680px;
  }
}

body.single-post .ws-vplayer__toggle{
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
}

body.single-post .ws-vplayer__toggle,
body.single-post .ws-vplayer__toggle svg,
body.single-post .ws-vplayer__toggle svg *{
  color: #fff;
  fill: #fff;
  stroke: #fff;
}

body.single-post .ws-vplayer[data-state="playing"] .ws-ico--pause{
  display: block;
}

body.single-post .ws-vplayer[data-state="playing"] .ws-ico--play{
  display: none;
}

body.single-post .ws-vplayer[data-state="paused"] .ws-ico--pause{
  display: none;
}

body.single-post .ws-vplayer[data-state="paused"] .ws-ico--play{
  display: block;
}

body.single-post :where(.post-story-gallery, .ws-addwhat--stories) .ws-addwhat__tag,
body.single-post :where(.post-story-gallery, .ws-addwhat--stories) .ws-addwhat__cap,
body.single-post :where(.post-story-gallery, .ws-addwhat--stories) .ws-series__more,
body.single-post :where(.post-story-gallery, .ws-addwhat--stories) .ws2-card__price{
  display: none;
}

body.single-post :where(.post-story-gallery, .ws-addwhat--stories) .ws-addwhat__figure{
  overflow: hidden;
  border-radius: 18px;
}

body.single-post :where(.post-story-gallery, .ws-addwhat--stories) .ws-addwhat__img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.single-post :where(.post-story-videos, .ws-videos){
  padding: 8px 0 60px;
}

body.single-post :where(.post-story-videos__head, .ws-videos__head){
  margin: 6px 0 22px;
  text-align: center;
}

body.single-post :where(.post-story-videos__title, .ws-videos__title){
  margin: 0;
  color: #f5f7fa;
  font-family: var(--font-head, "Roboto Slab", serif);
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  font-weight: 800;
}

body.single-post :where(.post-story-videos__from, .ws-videos__from){
  margin-top: 6px;
  color: rgba(245, 247, 250, 0.84);
  font-family: var(--font-body, "Montserrat", sans-serif);
  font-size: 16px;
  letter-spacing: 0.08em;
}

body.single-post :where(.post-story-videos__grid, .ws-videos__grid){
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

body.single-post :where(.post-story-videos__card, .ws-vcard){
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 0;
  background: transparent;
}

body.single-post :where(.post-story-videos__thumb, .ws-vcard__thumb){
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: #000;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-mask: none;
  mask: none;
}

body.single-post :where(.post-story-videos__thumb, .ws-vcard__thumb)::before,
body.single-post :where(.post-story-videos__thumb, .ws-vcard__thumb)::after{
  display: none;
}

body.single-post :where(.post-story-videos__thumb, .ws-vcard__thumb) > img,
body.single-post :where(.post-story-videos__thumb, .ws-vcard__thumb) > video{
  display: block;
  width: 100%;
  min-height: 220px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 20px;
  background: #000;
}

body.single-post :where(.post-story-videos__overlay, .ws-vcard__overlay){
  position: absolute;
  inset: auto 0 0;
  height: 68%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.18) 12%, rgba(0, 0, 0, 0.62) 42%, rgba(0, 0, 0, 0.88) 72%, rgba(0, 0, 0, 0.98) 100%);
  pointer-events: none;
  z-index: 1;
}

body.single-post :where(.post-story-videos__caption, .ws-vcard__caption){
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  z-index: 2;
  pointer-events: none;
}

body.single-post :where(.post-story-videos__card-title, .ws-vcard__title){
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-family: var(--font-head, "Roboto Slab", serif);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.single-post :where(.post-story-videos__play, .ws-vcard__play){
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

body.single-post :where(.post-story-videos__play, .ws-vcard__play)::before{
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 17px 0 0 21px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #000;
}

body.single-post :where(.post-story-videos__reactions, .ws-vcard__reactions),
body.single-post :where(.post-story-videos__reaction, .ws-vcard__reaction),
body.single-post :where(.post-story-videos__reaction-icon, .ws-vcard__reaction-ico),
body.single-post :where(.post-story-videos__reaction-count, .ws-vcard__reaction-count){
  display: none;
}

@media (max-width: 1024px){
  body.single-post :where(.post-story-videos__grid, .ws-videos__grid){
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px){
  body.single-post :where(.post-page, .ws-single){
    padding-inline: 16px;
  }

  body.single-post figure:where(.post-page__media, .ws-article__media),
  body.single-post :where(.post-page__media, .ws-article__media),
  body.single-post .ws-vplayer{
    position: relative;
    width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    border-radius: 0;
    background: #000;
    line-height: 0;
    aspect-ratio: 16 / 9;
  }

  body.single-post :where(.post-page__media, .ws-article__media) > img,
  body.single-post :where(.post-page__media, .ws-article__media) > video,
  body.single-post .ws-vplayer > img,
  body.single-post .ws-vplayer > video,
  body.single-post :where(.post-page__media, .ws-article__media) .wp-video,
  body.single-post :where(.post-page__media, .ws-article__media) .mejs-container,
  body.single-post .ws-vplayer .wp-video,
  body.single-post .ws-vplayer .mejs-container{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #000;
    border: 0;
    display: block;
  }

  body.single-post .ws-vplayer__toggle{
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  body.single-post :where(.post-story-videos__thumb, .ws-vcard__thumb),
  body.single-post :where(.post-story-videos__thumb, .ws-vcard__thumb) > img,
  body.single-post :where(.post-story-videos__thumb, .ws-vcard__thumb) > video{
    border-radius: 18px;
  }

  body.single-post :where(.post-story-videos__thumb, .ws-vcard__thumb) > img,
  body.single-post :where(.post-story-videos__thumb, .ws-vcard__thumb) > video{
    min-height: 200px;
  }

  body.single-post :where(.post-story-videos__caption, .ws-vcard__caption){
    right: 14px;
    bottom: 12px;
    left: 14px;
  }

  body.single-post :where(.post-story-videos__card-title, .ws-vcard__title){
    font-size: 16px;
  }
}

@media (max-width: 640px){
  body.single-post :where(.post-story-videos__grid, .ws-videos__grid){
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
