/*
 * The event video gallery section.
 *
 * Edit this file. It is served as it is — nothing compiles it, and the
 * order it loads in is set in resources/css/order.php.
 */

.event-video-gallery {
  padding-top:120px;
  width:100%;
}

@media screen and (max-width:1440px) {

  .event-video-gallery {
    padding-top:80px;
  }
}

@media (max-width:900px)and (orientation:landscape),screen and (max-width:767px) {

  .event-video-gallery {
    padding-top:64px;
  }
}

.event-video-gallery__inner {
  display:flex;
  flex-direction:column;
  gap:clamp(24px,3vw,48px);
  padding-inline:var(--offset-x);
  width:100%;
}

.event-video-gallery__layout {
  display:grid;
  gap:8px;
  grid-template-columns:1fr;
}

.event-video-gallery__layout--chapters {
  align-items:stretch;
  gap:clamp(16px,2vw,32px);
  grid-template-columns:minmax(0,1.9fr) minmax(0,1fr);
}

@media screen and (max-width:1199px) {

  .event-video-gallery__layout--chapters {
    grid-template-columns:1fr;
  }
}

.event-video-gallery__main {
  min-width:0;
  position:relative;
  width:100%;
}

.event-video-gallery__item {
  align-items:center;
  aspect-ratio:16/9;
  background-color:#181818;
  background-position:50%;
  background-size:cover;
  border:0;
  cursor:pointer;
  display:flex;
  justify-content:center;
  margin:0;
  overflow:hidden;
  padding:0;
  position:relative;
  width:100%;
}

.event-video-gallery__item:after {
  background-color:#18181847;
  content:"";
  inset:0;
  position:absolute;
  transition:background-color .3s ease;
}

@media(any-hover:hover),(hover:hover)and (pointer:fine) {

  .event-video-gallery__item:not(:disabled):hover:hover:after {
    background-color:#1818181f;
  }
}

.event-video-gallery__play {
  align-items:center;
  background-color:#e1251b;
  border-radius:50%;
  color:#fff;
  display:flex;
  height:72px;
  justify-content:center;
  position:relative;
  transition:transform .3s ease;
  width:72px;
  z-index:2;
}

.event-video-gallery__play svg {
  height:22px;
  margin-left:3px;
  width:22px;
}

@media screen and (max-width:1440px) {

  .event-video-gallery__play {
    height:56px;
    width:56px;
  }

  .event-video-gallery__play svg {
    height:18px;
    width:18px;
  }
}

.event-video-gallery__item:hover .event-video-gallery__play {
  transform:scale(1.08);
}

.event-video-gallery__embed {
  aspect-ratio:16/9;
  position:relative;
  width:100%;
}

.event-video-gallery__embed iframe {
  border:0;
  height:100%;
  inset:0;
  position:absolute;
  width:100%;
}

.event-video-gallery__chapters {
  min-height:0;
  position:relative;
}

@media screen and (max-width:1199px) {

  .event-video-gallery__chapters {
    position:static;
  }
}

.event-video-gallery__chapters-inner {
  display:flex;
  flex-direction:column;
  inset:0;
  position:absolute;
}

@media screen and (max-width:1199px) {

  .event-video-gallery__chapters-inner {
    max-height:60vh;
    position:static;
  }
}

.event-video-gallery__chapters-title {
  border-bottom:1px solid #18181824;
  color:#1818188c;
  font-size:clamp(.76rem,.9vw,.86rem);
  letter-spacing:.08em;
  margin-bottom:4px;
  padding-bottom:12px;
  text-transform:uppercase;
}

.event-video-gallery__chapters-list {
  flex:1 1 auto;
  list-style:none;
  margin:0;
  min-height:0;
  overflow-y:scroll;
  padding:0 12px 0 0;
}

.event-video-gallery__chapters-list::-webkit-scrollbar {
  -webkit-appearance:none;
  appearance:none;
  width:8px;
}

.event-video-gallery__chapters-list::-webkit-scrollbar-track {
  background:#1818181a;
  border-radius:4px;
}

.event-video-gallery__chapters-list::-webkit-scrollbar-thumb {
  background:#e1251b;
  border-radius:4px;
}

.event-video-gallery__chapter {
  align-items:baseline;
  background:none;
  border:0;
  border-bottom:1px solid #1818181a;
  color:inherit;
  cursor:pointer;
  display:flex;
  font:inherit;
  gap:12px;
  padding:13px 4px;
  text-align:left;
  transition:background-color .2s ease,padding-left .2s ease;
  width:100%;
}

.event-video-gallery__chapter:hover {
  background-color:#1818180a;
  padding-left:10px;
}

.event-video-gallery__chapter.is-active {
  border-left:3px solid #e1251b;
  padding-left:10px;
}

.event-video-gallery__chapter-time {
  color:#e1251b;
  flex:0 0 auto;
  font-size:clamp(.8rem,.95vw,.9rem);
  font-variant-numeric:tabular-nums;
  font-weight:500;
  min-width:58px;
}

.event-video-gallery__chapter-title {
  font-size:clamp(.92rem,1.05vw,1.05rem);
  line-height:1.3;
}

.event-video-gallery__chapter.is-active .event-video-gallery__chapter-title {
  font-weight:500;
}
