.aof-vg-strip {
  width: 100%;
}

.aof-vg-strip__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 50px) / 6);
  column-gap: 10px;
}

.aof-vg-strip__item {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  background: #111;
  display: block;
  cursor: pointer;
}

.aof-vg-strip__item video,
.aof-vg-strip__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.aof-vg-strip__item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.25s ease;
  z-index: 1;
}

.aof-vg-strip__item:hover::before {
  background: rgba(0, 0, 0, 0.45);
}


.aof-vg-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modals, 200);
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  cursor: pointer;
}

.aof-vg-modal.is-open {
  display: flex;
}

.aof-vg-modal__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  width: min(960px, 92vw);
  max-height: 90vh;
  background: #000;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
  cursor: default;
}

.aof-vg-modal__video-wrap {
  flex: 0 0 65%;
  display: flex;
  align-items: stretch;
  background: #000;
}

.aof-vg-modal__video {
  width: 100%;
  max-height: 90vh;
  display: block;
  object-fit: contain;
  background: #000;
}

.aof-vg-modal__info {
  flex: 0 0 35%;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow-y: auto;
  max-height: 90vh;
}

.aof-vg-modal__info-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}


.aof-vg-modal__info-body {
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.65;
  color: #333;
  overflow-y: auto;
  flex: 1;
}

.aof-vg-modal__info-body p {
  margin: 0 0 12px;
}

.aof-vg-modal__info-body p:last-child {
  margin-bottom: 0;
}

.aof-vg-modal__info-empty {
  color: #999;
  font-style: italic;
}



@media (max-width: 768px) {
  .aof-vg-strip {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .aof-vg-strip__track {
    grid-auto-columns: 50%;
  }

  .aof-vg-strip::-webkit-scrollbar {
    display: none;
  }

  .aof-vg-strip__item {
    min-height: 250px;
  }

  .aof-vg-modal__content {
    flex-direction: column;
    width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
  }

  .aof-vg-modal__video-wrap {
    flex: none;
    width: 100%;
  }

  .aof-vg-modal__video {
    max-height: 50vh;
  }

  .aof-vg-modal__info {
    flex: none;
    max-height: none;
    overflow-y: visible;
  }

}
