#newestVideos {
  height: 90vh;
  border-bottom: 3px solid var(--color-heading-accent);
  padding: 20px 0;
}

.videos__container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin: 40px 0;
}

.videos__list {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  width: 80%;
  padding: 10px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.videos__list::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}
.videos__list-elem {
  flex: 0 0 auto;
  width: 300px;
  scroll-snap-align: start;
  border: 2px solid #fff;
  border-radius: 5px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  background: #fff;
}

.video__cover {
  width: 100%;
  height: 425px;
  overflow: hidden;
}

.video__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.videos__arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.videos-arrow-left,
.videos-arrow-right {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  cursor: pointer;
}

.videos-arrow-left {
  border-right: 15px solid #333;
}

.videos-arrow-right {
  border-left: 15px solid #333;
}

.videos__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 40px 0;
}

.videos__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.videos__dot--active {
  background-color: #333;
}
