/* RACING ROW*/

main.photos {
  margin: 0;
}

.photos img {
  height: auto; /* zachování proporcí */
  image-rendering: auto; /* default interpolace */
  -ms-interpolation-mode: bicubic; /* pro starší IE */
}

.photos .row {
  display: flex;
  flex-wrap: wrap; /* desktop – více řad */
  gap: 0px;
  justify-content: center;
  align-items: center; /* všechny boxy stejné výšky */
  z-index: 6 !important;
}

.row img {
  user-drag: none; /* starší WebKit */
  -webkit-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-select: none; /* zablokuje i výběr textu u inline img */
  pointer-events: auto; /* pokud je potřeba zachovat hover / kliky */
}

.column {
  flex: 1 1 70px; /* minimální šířka 150px, roste podle dostupného místa */
  /* height: 160px; */
  height: 10vw;
  overflow: hidden;
}

@media screen and (max-width: 1000px) {
  .column {
    height: 130px;
  }
}

.column img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* zachová proporce a ořízne přebytek */
  display: block;
}

.photos .column:nth-child(10) img {
  object-position: center 20%;
}

/* MOBIL */
@media (max-width: 1000px) {
  .photos .row {
    display: flex;
    flex-wrap: wrap; /* dovolí zalamování do více řad */
    gap: 0px; /* mezera mezi obrázky */
    justify-content: center; /* vycentrování obrázků */
    overflow-x: hidden; /* žádný scroll */
  }

  .photos .column {
    flex: 1 1 calc(18%); /* každý obrázek zabere polovinu řádku minus gap */
    text-align: center;
  }

  .photos .column img {
    width: 100%; /* vyplní sloupec */
    display: block;
  }

  .photos .column:nth-child(2) img {
    object-position: center 25%;
  }
  .photos .column:nth-child(3) img {
    object-position: center 15%;
  }
  .photos .column:nth-child(7) img {
    object-position: center 30%;
  }
  .photos .column:nth-child(8) img {
    object-position: center 5%;
  }

  .photos .column:nth-child(10) img {
    object-position: center 5%;
  }

  .photos .column:nth-child(11) img {
    object-position: center 30%;
  }

  .photos .column:nth-child(12) img {
    object-position: center 60%;
  }

  .photos .column:nth-child(13) img {
    object-position: center 13%;
  }
}

.text {
  font-size: 18px;
  margin: 3% auto;
  text-align: center; /* centrování textu */
  max-width: 45vw;
  line-height: 1.3;
}

@media screen and (max-width: 1500px) {
  .text {
    font-size: 18px;
  }
}

@media screen and (max-width: 1000px) {
  .text {
    font-size: 27px;
    max-width: 90vw;
    margin: 4% auto;
    line-height: 1.4;
  }
}

.lc-highlight {
  color: rgb(247, 10, 10);
  font-weight: 550;
  -webkit-text-stroke: 0.6px #000000d3;
}

.text ul {
  list-style: none; /* odstraní tečky před odrážkami */
  padding-left: 0; /* odstraní odsazení seznamu */
  margin: 50px 0; /* mezera mezi seznamy */
}

.text ul li {
  margin: 20px 0; /* mezera mezi jednotlivými položkami seznamu */
  color: var(--text-color);
}

ul {
  list-style-type: disc;
  padding-left: 20px;
}

.lc-racing {
  width: 100%; /* přizpůsobení šířce sloupce */
  height: auto; /* zachování proporcí */
  display: block;
}

.lc-racing img {
  width: 420px;
  margin: 4% auto;
}

.lc-racing-name {
  display: block;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 8px;
  width: 100%;
}

@media screen and (max-width: 1000px) {
  .lc-racing-name h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }
}

.slider-wrapper {
  max-width: 40vw;
}

@media screen and (max-width: 1000px) {
  .slider-wrapper {
    max-width: 80vw;
  }
}

.slider-wrapper img {
  user-drag: none; /* starší WebKit */
  -webkit-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-select: none; /* zablokuje i výběr textu u inline img */
  pointer-events: auto; /* pokud je potřeba zachovat hover / kliky */
}

.racing-wrapper {
  display: flex;
  flex-direction: column;
}

.racing-row {
  display: flex;
  align-items: center;
  width: 55vw;
  margin-left: 20%;
  margin-top: 7%;
  opacity: 0;
  transform: translateY(100px); /* začíná zespoda */
  transition: all 1.5s ease-out;
}

.racing-row.visible {
  opacity: 1;
  transform: translateY(0);
}

@media screen and (max-width: 1000px) {
  .racing-row {
    width: 95vw;
    margin-left: 3vw;
    margin-top: 150px;
  }
}

@media screen and (max-width: 1000px) {
  .racing-row.reverse {
    width: 95vw;
    margin-right: 3vw !important;
    margin-top: 100px;
  }
}

.racing-row.reverse {
  flex-direction: row-reverse; /* obrátí pořadí video/text */
  margin-left: auto;
  margin-right: 20%;
}

/* PROMO VIDEA LC RACING */
.video-container {
  flex: 1;
  position: relative;
  margin: 0 25px;
  max-width: 35vw;
}

.video-container video {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 9 / 10;
  object-fit: cover;
}

@media screen and (max-width: 1000px) {
  .video-container {
    max-width: 50vw;
  }
}

.text-container {
  flex: 1;
}

.text-container h3 {
  font-size: 21px;
  line-height: 1.4;
}

@media screen and (max-width: 1500px) {
  .text-container h3 {
    font-size: 17px;
  }
}

@media screen and (max-width: 1000px) {
  .text-container {
    max-width: 40vw;
  }
  .text-container h3 {
    font-size: 22px;
  }
}

.video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 60px;
  color: white;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
  pointer-events: none; /* overlay nebude blokovat kliknutí na video */
  opacity: 0;
  transition: opacity 0.4s ease;
}

.video-overlay.show {
  opacity: 1;
}

.progress-bar {
  position: absolute;
  bottom: 26px;
  left: 50%;
  width: 90%;
  height: 6px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
}

.progress {
  height: 100%;
  background: #fff;
  width: 0%;
  border-radius: 2px;
  transition: width 0.1s linear;
}

.lc-racing-boxes {
  opacity: 0;
  transform: translateY(100px); /* začne zespoda */
  transition: all 1.5s ease-out;
}

.lc-racing-boxes img {
  width: 31vw;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 7%;
  margin-bottom: 100px;
  border-radius: 10px;
}

@media screen and (max-width: 1000px) {
  .lc-racing-boxes img {
    width: 80vw;
    margin-top: 150px;
    margin-bottom: 150px;
  }
}

.lc-racing-boxes.visible {
  opacity: 1;
  transform: translateY(0);
}

.logos {
  display: block;
  margin: 0 auto;
  width: 15%;
}

.bottom-text {
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  margin-top: 90px;
  margin-bottom: 300px;
  opacity: 0;
  transform: translateY(100px); /* začne zespoda */
  transition: all 1.5s ease-out;
}

@media screen and (max-width: 1500px) {
  .bottom-text {
    font-size: 18px;
  }
}

@media screen and (max-width: 1000px) {
  .bottom-text {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 170px;
  }
}

.bottom-text.visible {
  opacity: 1;
  transform: translateY(0);
}

/* SPODNI ZAVODNI LOGA */

.lower-row {
  display: flex;
  justify-content: center; /* loga uprostřed */
  align-items: center;
  flex-wrap: nowrap; /* jedna řada */
  gap: 10px; /* malá mezera mezi logy */
  background-color: rgb(255, 255, 255);
}

.lower-column {
  flex: 1 1 0; /* každý sloupec se roztáhne podle dostupného místa */
  text-align: center;
}

.lower-column img {
  max-height: 80px; /* max výška */
  width: 100%; /* obrázek zabere celý sloupec */
  height: auto; /* zachování proporcí */
  object-fit: contain;
  display: block;
}
