/* Text after sections */
.text-after-video-edit-heading,
.text-after-video-wall {
  font-size: 1.2rem;   /* High-tech default */
  padding: 5%;
}

/* Creative: larger text */
body.creative-layout .text-after-video-edit-heading,
body.creative-layout .text-after-video-wall {
  font-size: 1.5rem;
}

/* keeps the player from applying margin to bottom when clicked */
.demo-layout-content .jwplayer {
  margin-bottom: 0;
}

/* Video wall container */
.video-wall {
  font-weight: 500;
  display: flex;
  margin: 0 auto;
  flex-direction: column;
  color: #000;         /* High-tech: black text */
}

/* Header bar */
.header-bar {
  color: #000;             /* High-tech: black text */
  font-size: 1.8rem;
  font-weight: 900;
  justify-content: center;
  text-transform: uppercase;
  height: 25vh;
  display: flex;
  align-items: center;
  padding-bottom: 5%;
}

/* Layout helpers */
.row-flex-2,
.row-flex-6 {
  display: flex;
  justify-content: center;
}

.column {
  display: flex;
  flex-direction: column;
}

/* Thumbnails */
.thumb {
  min-width: 250px;
  min-height: 140.63px;
  position: relative;
  opacity: 1;
  background-size: calc(100% + 60px);
  background-repeat: no-repeat;
  transition: background-size .3s ease-in-out;
  -webkit-transition: background-size .3s ease-in-out;
  -ms-transition: background-size .3s ease-in;
  -o-transition: background-size .3s ease-in;
  cursor: pointer;
  border: 1px solid #000;     /* High-tech: black border */
}

.thumb.large {
  min-width: 500px;
  min-height: 281.25px;
}

/* Thumbnail title text */
.title-text {
  color: #08FF08;                /* High-tech: black (was white) */
  text-align: left;
  font-size: 16px;
  font-weight: 900;
  padding: 10px;
  position: absolute;
  bottom: -20px;
  opacity: 0;
  pointer-events: none;
  transition: all .2s ease-in-out .1s;
  -webkit-transition: all .2s ease-in-out .1s;
  -ms-transition: all .2s ease-in-out .1s;
  -o-transition: all .2s ease-in-out .1s;
}

body.creative-layout .title-text {
  color: gold;
}

.thumb.large .title-text {
  font-size: 20px;
  padding: 10px;
}

/* Hover effects keep monochrome */
.thumb:hover {
  background-size: calc(100% + 40px);
}

.thumb:hover .title-text {
  opacity: 1;
  bottom: 0;
}

/* ---------- Creative layout restores original dark scheme ---------- */
body.creative-layout .video-wall {
  color: #fff;
}

body.creative-layout .thumb {
  border-color: #000;           /* keep outline subtle on dark bg */
  background-color: transparent;/* let background image show on dark */
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 1082px) {
  .video-wall {
    width: 750px;
  }
  .row-flex-6 {
    flex-wrap: wrap;
    width: 100%;
  }
  .row-flex-2 {
    flex-wrap: wrap;
    width: 50%;
  }
  .column {
    flex-flow: row;
    width: 100%;
  }
  .thumb {
    width: 100%;
  }
}

@media screen and (max-width: 815px) {
  .video-wall {
    width: 600px;
  }
  .column {
    flex-flow: column;
  }
  .row-flex-2 {
    flex-flow: row;
    width: 100%;
  }
  .thumb {
    min-height: 168px;
  }
  .thumb.large {
    min-height: 338px;
  }
}

@media screen and (max-width: 665px) {
  .video-wall {
    width: 500px;
  }
  .thumb {
    min-height: 140px;
  }
  .thumb.large {
    min-height: 281px;
  }
}

@media screen and (max-width: 560px) {
  .video-wall {
    width: 400px;
  }
  .row-flex-2 {
    flex-flow: column;
  }
  .thumb,
  .thumb.large {
    min-width: 400px;
    min-height: 225px;
  }
  .thumb .title-text,
  .thumb.large .title-text {
    opacity: 1;
    bottom: 0;
    font-size: 20px;
  }
}

@media screen and (max-width: 400px) {
  .video-wall {
    width: 300px;
  }
  .thumb,
  .thumb.large {
    min-width: 300px;
    min-height: 168.75px;
  }
}
