body {
  font-family: "Geologica", sans-serif;
  flex: 1;
}

.gallery-container {
  margin: 20px 0;
  min-height: 50vh;
  display: grid;
  grid-template-columns: 1fr 4fr;
  gap: 20px;
}

.gallery-right {
  width: 300px;
}

.media-switch {
  background: white;
  height: fit-content;
  padding: 30px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  .media-switch__item {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    font-family: Inter;
    font-size: 14px;
    color: #758393;
    transition: all 0.3s ease-in-out;
  }
  .media-switch__item:hover {
    color: white;
    background-color: #1760a4;
  }
}

.header {
  align-items: center;
  justify-content: space-between;

  .header_logo img {
    width: 80px;
  }

  .header_links {
    display: flex;
    gap: 20px;

    .header_link {
      cursor: pointer;
      position: relative;
    }

    .header_link.active:after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 4px;
      background-color: #efcc8e;
      border-radius: 6px;
      transform: translateY(10px); /* немного опускаем ниже текста */
    }
  }

  .header_logo {
    width: 100px;
  }
}

.navigation {
  margin: 20px 0 0 0;
  display: flex;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
  align-items: center;

  .navigation_main {
    color: #1760a4;
  }
}

.links {
  margin: 20px 0;
  display: flex;
  gap: 10px;

  .link {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid black;
    border-radius: 24px;
    padding: 5px 15px;
    transition: all 0.3s ease-in-out;
  }

  .link:hover {
    background-color: black;
    color: white;
  }
}

.breadcrumb-main {
  color: #1760a4;
  font-weight: 600;
}

#breadcrumb {
  display: flex;
  align-items: center;
  font-size: 16px;
  line-height: 24px;
}

#breadcrumb img {
  margin-left: 8px;
  margin-right: 8px;
}

#breadcrumb-text {
  color: #0b2136;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
  vertical-align: middle;
}

.gallery {
  display: grid;
  gap: 50px;
  align-items: flex-start;
}

.main-video {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

.main-video a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.main-video img.main-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-video::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, rgba(0, 81, 203, 1), transparent);
  z-index: 1;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  object-fit: contain;
}

.video-glightbox {
  display: inline-block;
  position: relative;
}

.title_wrap {
  margin: 20px 0;
  display: flex;
  justify-content: space-between;
}

.play-button img {
  width: 30px;
  height: auto;
}

.video-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  z-index: 2;
}

.video-theme {
  font-weight: 500;
  font-size: 18px;
  line-height: 130%;
  letter-spacing: -2%;
  opacity: 50%;
  color: #ffffff;
}

.video-title {
  font-size: 24px;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: -2%;
  color: #ffffff;
}

.video-timin {
  position: absolute;
  bottom: 20px;
  right: 20px;
  color: white;
  z-index: 2;
}

.video-duration {
  position: absolute;
  bottom: 20px;
  right: 20px;
  color: white;
  font-size: 16px;
  opacity: 0.8;
}

.duration-time {
  font-weight: 500;
  font-size: 24px;
  line-height: 130%;
  letter-spacing: -2%;
  color: #ffffff;
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-height: 600px;
  overflow: auto;
}

.video-list-item {
  display: grid;
  gap: 10px;
}

.video-list a {
  border-radius: 12px;
}

.main-video img {
  width: 100%;
  display: block;
}

.video-item {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
}
.video-item img {
  width: 100%;
  display: block;
  border-radius: 12px;
}
.video-timing {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #1760a4;
  color: #ffffff;
  padding-left: 10px;
  padding-right: 10px;
  font-family: Lato;
  font-weight: 500;
  font-size: 24px;
  line-height: 130%;
  letter-spacing: -2%;
  border-radius: 12px 0 0 0;
}

.videogallery {
  font-weight: 500;
  font-size: 48px;
  color: #1760a4;
}

.youtube-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  margin-top: 20px;
}

.youtube {
  margin: 20px 0;
  display: grid;
  gap: 10px;
}

.youtube div {
  font-family: Geologica;
  font-size: 20px;
  text-align: center;
}

.youtube-link {
  margin-top: 20px;
  width: 100%;
}

.youtube-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  background: #ebc271;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  gap: 10px;
  width: 100%;
  padding: 10px 0;
  transition: all 0.3s ease-in-out;
}
.youtube-button:hover {
  background-color: #296ece;
}

.subscribe {
  font-family: Geologica;
  font-weight: 400;
  font-size: 16px;
  line-height: 120%;
}

/* @media (max-width: 1024px) {
  .gallery {
    flex-direction: column;
    align-items: center;
  }
  .video-list {
    justify-content: center;
  }
  .header {
    flex-direction: column;
    height: auto;
    padding: 10px;
  }
}

@media (max-width: 768px) {
  .main-video {
    max-width: 100%;
  }
  .play-button {
    width: 70px;
    height: 70px;
  }
  .top_nav ul {
    flex-direction: column;
    text-align: center;
  }
  .videogallery {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .video-list {
    flex-direction: column;
  }
  .video-item {
    width: 100%;
    max-width: 250px;
  }
  .youtube-button {
    font-size: 14px;
  }
} */

@media (max-width: 1200px) {
}

@media (max-width: 1024px) {
  .title_wrap {
    display: grid !important;
  }

  .videogallery {
    font-weight: 500;
    font-size: 28px;
    color: #1760a4;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .m .videogallery {
    font-size: 30px;
  }

  .video-list {
    padding-top: 40px;
  }

  .video-content div {
    font-size: 16px !important;
  }

  .video-mobile-list {
    display: grid;
    gap: 20px;
  }

  .gallery-right {
    width: 100%;
  }
}

@media (max-width: 768px) {
}

.gallery-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-card {
  overflow: hidden;
  transition: transform 0.2s ease;
}

.video-card:hover {
  transform: translateY(-4px);
}

.video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
}

.video-thumb img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.video-duration {
  position: absolute;
  bottom: 6px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
}

.video-title {
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #222;
}

@media (max-width: 1024px) {
  .gallery-container {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.go_up a {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
  border: 2px solid #1760a4;
  background: white;
  color: #1760a4;
  text-decoration: none;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
