body {
  font-family: "Geologica";
}

a {
  color: inherit;
  text-decoration: none;
}

.photos-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;
  }
}

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

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

  .header_logo img {
    width: 100px;
  }

  .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;
  }
}

.top_nav {
  position: relative;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  font-family: "Geologica";
  font-size: 16px;
  line-height: 120%;
  letter-spacing: 0%;
  vertical-align: middle;
}

.top_nav ul {
  width: 736px;
  height: 48px;
  display: flex;
  align-items: center;
  list-style: none;
}

.top_nav li {
  margin: 0 1rem;
}

.top_nav a {
  position: relative;
  color: #0b2136 !important;
  text-decoration: none;
  padding-bottom: 5px;
}

.top_nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: #ebc271;
  border-radius: 12px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: center;
}

.top_nav a:hover::after {
  transform: scaleX(1);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  margin: 40px auto;
  justify-content: center;
}

.gallery a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 8px;
}

.gallery a:hover img {
  transform: scale(1.05);
}

.gallery a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(21, 39, 117, 0.6) 0%,
    rgba(21, 39, 117, 0)
  );
  z-index: 1;
}

.gallery a::after {
  content: attr(data-title);
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: white;
  padding: 8px;
  font-size: 14px;
  border-radius: 4px;
  text-align: left;
  z-index: 2;
}

.gallery a .icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  z-index: 2;
}

.gallery-overlay {
  position: absolute;
  padding: 20px;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-family: Inter;
  font-size: 150%;
  font-weight: 500;
  border-radius: 8px;
  z-index: 100;
}

.gallery-overlay img {
  width: 14px;
  height: 11px;
}

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

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

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

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

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

.photogallery {
  font-family: Geologica, Roman;
  font-weight: 500;
  font-size: 48px;
  color: #1760a4;
}

@media (max-width: 1200px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .title_wrap {
    display: grid !important;
  }

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

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

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

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

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

.photo-thumb {
  img {
    border-radius: 12px;

    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }
}

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

.photo-overlay {
  width: 100%;
  color: black;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  font-size: 16px;
}

.photo-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overlay-icon {
  width: 20px;
  height: 20px;
}

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

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