.section__gallerypage {
  margin-top: 58px;
}
.section__gallerypage__body {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.section__gallerypage .breadcrumbs {
  color: var(--color-black);
}
.section__gallerypage__head {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-end;
}
.section__gallerypage__title {
  font-family: var(--font-varela);
  font-size: 160px;
  line-height: 0.8;
  color: var(--color-lightgray);
}
.section__gallerypage__head__inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: flex-start;
  max-width: 500px;
}
.section__gallerypage__items {
  margin-top: 84px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.section__gallerypage__item {
  display: flex;
  flex-direction: column;
  gap: 24px;
  scroll-margin-top: 120px;
}
.section__gallerypage__item__title {
  text-align: center;
  color: var(--color-main-30);
  font-size: var(--font-size-16);
  font-weight: 500;
  letter-spacing: 7.36px;
  text-transform: uppercase;
}
.section__gallerypage__item__photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.gallery-trigger {
}
.section__gallerypage__item__photo {
  width: 100%;
  height: 205px;
}
.section__gallerypage__item__photo.static__photo {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  /* background: var(--color-black-30); */
  background:
    radial-gradient(133.12% 84.77% at 75.36% 103.92%, #000 0%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(0deg, rgba(43, 43, 43, 0.2) 0%, rgba(43, 43, 43, 0.2) 100%);
}
.section__gallerypage__item__photo.static__photo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: var(--color-black-30); */
  opacity: 0;
  background:
    radial-gradient(133.12% 84.77% at 75.36% 103.92%, #000 0%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(0deg, rgba(43, 43, 43, 0.9) 0%, rgba(43, 43, 43, 0.9) 100%);
  pointer-events: none;
  z-index: 1;
  transition: all 0.3s ease;
}
.section__gallerypage__item__photo.static__photo::after {
  content: "Show all photos";
  position: absolute;
  top: 0;
  right: 0;
  padding: 12px 16px;
  background: var(--color-white);
  color: var(--color-main);
  font-family: var(--font-varela);
  border-radius: 0 0 0 16px;
  font-size: 14px;
  pointer-events: none;
  z-index: 2;
}
.section__gallerypage__item__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: -1;
}
.section__gallerypage__item__photo.random__photo {
  position: relative;
  cursor:
    url(../img/projects_cursor.svg) 16 16,
    pointer;
}
.section__gallerypage__item__photo.random__photo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-black-60);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: all 0.3s ease;
}
.section__gallerypage__item__photo__overlay {
  position: absolute;
  bottom: -150%;
  right: -100%;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: 1px solid var(--color-white-40);
  transition: all 0.5s ease;
  pointer-events: none;
  z-index: 1;
}
.section__gallerypage__item__photo__overlay::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: -7px;
  width: 115%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: 1px solid var(--color-white-40);
  pointer-events: none;
  z-index: 1;
}
.section__gallerypage__item__photo__overlay::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 7px;
  width: 85%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: 1px solid var(--color-white-40);
  pointer-events: none;
  z-index: 1;
}
.random__photo {
}
.section__gallerypage__item__count {
  position: absolute;
  bottom: 0;
  right: 0;
  color: var(--color-white);
  text-align: right;
  font-family: var(--font-varela);
  font-size: 120px;
  line-height: 69%;
  letter-spacing: -1.2px;
  pointer-events: none;
  z-index: 2;
}
.section__gallerypage__menu {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 30px;
  background: var(--color-white);
  box-shadow: 0 0 42.4px 0 rgba(0, 0, 0, 0.25);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #000000 transparent;
}
.section__gallerypage__menu::-webkit-scrollbar {
  height: 2px;
  -webkit-appearance: none;
}

.section__gallerypage__menu::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 2px;
}

.section__gallerypage__menu::-webkit-scrollbar-thumb {
  background-color: #000000;
  border-radius: 2px;
}

.section__gallerypage__menu__item {
  padding: 8px 12px;
  overflow: hidden;
  color: var(--color-black-50);
  font-size: var(--font-size-16);
  font-weight: 600;
  transition: all 0.3s ease;
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 1280px) {
  .section__gallerypage__title {
    font-size: 120px;
  }
  .section__gallerypage__items {
    margin-top: 64px;
    gap: 48px;
  }
  .section__gallerypage__item__title {
    font-size: var(--font-size-15);
    letter-spacing: 6.9px;
  }
  .section__gallerypage__item__photo {
    height: 175px;
  }
  .section__gallerypage__menu__item {
    font-size: var(--font-size-15);
  }
}
@media (max-width: 992px) {
  .section__gallerypage__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .section__gallerypage__head__inner {
    flex-direction: row;
    max-width: none;
  }
  .section__gallerypage__title {
    font-size: 90px;
  }
  .section__gallerypage__items {
    margin-top: 44px;
    gap: 24px;
  }
  .section__gallerypage__item__title {
    font-size: var(--font-size-14);
    letter-spacing: 6.44px;
  }
  .section__gallerypage__item__photos {
    grid-template-columns: repeat(2, 1fr);
  }
  .section__gallerypage__item__photo {
    height: 230px;
  }
  .section__gallerypage__menu__item {
    font-size: var(--font-size-14);
  }
}
@media (max-width: 560px) {
  .section__gallerypage__head {
    gap: 24px;
  }
  .section__gallerypage__head__inner {
    flex-direction: column;
    gap: 16px;
  }
  .section__gallerypage__item__photos {
    grid-template-columns: 1fr;
  }
  .section__gallerypage__title {
    font-size: 80px;
  }
  .section__gallerypage__menu {
    border-radius: 0;
    left: 0;
    transform: none;
    width: 100vw;
    bottom: 0;
  }
}
@media (any-hover: hover) {
  .section__gallerypage__item__photo.random__photo:hover::before {
    opacity: 1;
  }
  .section__gallerypage__item__photo.static__photo:hover .section__gallerypage__item__photo__overlay {
    bottom: -75%;
    right: -25%;
  }
  .section__gallerypage__item__photo.static__photo:hover::before {
    opacity: 1;
  }
  .section__gallerypage__menu__item:hover {
    color: var(--color-black);
  }
}
