.large-screens-only {
  display: none;
}
.profile-wrapper {
  min-height: calc(100vh - var(--header-height));
}
.profile-navigation {
  position: sticky;
  top: 80px;
  display: grid;
  padding-bottom: 20px;
}
.profile-title {
  position: sticky;
  top: var(--header-height);
  padding: 20px 20px 20px;
  z-index: -1;
}
.profile-gallery-wrapper {
  grid-template-columns: repeat(5, 80%) !important;
  overflow: auto;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
}
.profile-gallery-wrapper:not(.catalogs-row) {
  margin-bottom: 0 !important;
}
.profile-gallery-wrapper::-webkit-scrollbar {
  height: 0;
}
.profile-projects-wrapper.profile-gallery-wrapper {
  grid-auto-columns: 80%;
  grid-auto-flow: column;
  padding-right: 25px !important;
  grid-template-columns: unset !important;
}
.profile-projects-gallery-wrapper.profile-gallery-wrapper {
  grid-template-columns: 1fr !important;
  padding-right: 20px;
}
.profile-projects-gallery-wrapper {
  grid-template-columns: repeat(2, 1fr);
}

.profile-segments {
  padding: 50px 0 0 20px;
  background: white;
  position: relative;
}
.bookmark-segments > div:not(.profile-segment-title),
.library-segments > div {
  margin-bottom: 50px;
}
.profile-segments:last-of-type {
  margin-bottom: 50px;
}
.profile-segments-with-products.profile-segments {
  margin-top: -50px;
  padding: 50px 1px 0 1px;
}

.profile-segment-title h2 {
  padding-bottom: 3px;
  margin: 0 2rem 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-subtitle h2 {
  padding-left: 20px;
}
.profile-segment-title-rename > div:first-of-type {
  margin-right: 2rem;
  width: 100%;
}
.profile-segment-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: end;
  padding: 0 1rem;
}
.profile-segment-buttons button:first-child,
.profile-segment-title-rename button,
.profile-actions > * {
  background: none;
  border: 1px solid var(--primary-dark);
  border-radius: 50px;
}
.profile-actions > *{
  margin-left: 1rem;
}
.profile-segment-buttons:not(.profile-actions) button:nth-child(2) {
  padding: 6px;
  border-radius: 50%;
  background-color: transparent;
  margin-left: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--primary-dark);
  height: 2.4rem;
  width: 2.4rem;
}
.profile-segment-buttons:not(.profile-actions) button:nth-child(2) svg {
  height: 1rem;
  width: 1rem;
  fill: var(--primary-dark);
  pointer-events: none;
}
.profile-segment-title-rename {
  display: none;
  margin-bottom: 0.8rem;
  justify-content: space-between;
  align-items: center;
}
.profile-segment-title-rename input {
  border: none;
  border-bottom: 1px solid var(--primary-color);
  font-size: var(--page-subtitle);
  outline: none;
  line-height: 1;
  font-family: primary-light;
  font-weight: 300;
  height: var(--page-subtitle);
  width: 100%;
}
.error-message {
  color: var(--matte-red);
  font-size: var(--small-button-text);
  margin-top: 5px;
}
.profile-projects-wrapper.profile-gallery-wrapper {
  gap: 5px;
}
.profile-wrapper .classics-description-block-2 {
  padding: 2rem 0;
}
.profile-wrapper .profile-wrapper-description {
  padding: 20px 10px 20px !important;
}
.profile-segment-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem 1.5rem 0;
}
.profile-segment-title a {
  font-size: var(--font-h4);
  font-family: var(--font-family-h4);
  letter-spacing: var(--letter-spacing-h4);
  line-height: var(--line-height-h4);
  text-decoration: underline;
  color: var(--primary-color);
}
.profile-navigation {
  display: flex;
  display: grid;
  grid-auto-flow: column;
  overflow: auto;
  grid-auto-columns: max-content;
  gap: 1rem;
  padding: 0 2rem 4rem;
  position: sticky;
  top: 80px;
  z-index: 10;
}
.profile-navigation::-webkit-scrollbar {
  height: 0;
}
.project-short-name {
  height: 3.5rem;
  width: 3.5rem;
  min-width: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  border: 1px solid var(--primary-color);
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
}
.feed-header-name {
  font-size: var(--regular-text);
  margin: 0.5rem 0;
  display: block;
  color: var(--primary-color);
}

.gallery-image-wrapper:not(.gallery-image--without-bg) img {
  display: none;
}
.profile-segments .catalog-wrapper.catalogs-container {
  margin: 0 !important;
}
.profile-segments .catalog-content {
  position: relative;
}
.profile-segments .catalog-content-placeholder {
  margin-left: -1px;
}
.profile-gallery-wrapper .ais-InfiniteHits-item {
  height: 100%;
}
.main-profile-segments[data-segment] .profile-segment-title h2,.main-profile-segments.is-loading .profile-segment-title h2 {
  position: relative;
  margin-bottom: 10px;
  width: 60%;
}
.main-profile-segments[data-segment] li,.main-profile-segments.is-loading li  {
  position: relative;
  overflow: hidden;

}
.main-profile-segments[data-segment] .profile-segment-title h2::after,.main-profile-segments[data-segment] li::after,.main-profile-segments.is-loading .profile-segment-title h2::after,.main-profile-segments.is-loading li::after  {
  content: '';
  height: 100%;
  width: 100%;
  position: absolute;
  left: 0;
  right: 0;
  animation: skeleton-loading 1s linear infinite alternate;

}
@keyframes skeleton-loading {
  0% {
    background-color: hsl(200, 20%, 80%);
  }
  100% {
    background-color: hsl(200, 20%, 95%);
  }
}
@media screen and (min-width: 768px) {
  .main-profile-segments[data-segment] .profile-segment-title h2 {

    width: 30%;
  }
  .profile-gallery-wrapper {
    grid-template-columns: repeat(5, 40%) !important;
  }
  .profile-projects-wrapper.profile-gallery-wrapper {
    grid-auto-columns: 40%;
  }
}
@media screen and (min-width: 992px) {

  .profile-subtitle h2 {
    padding-left: 0;
  }
  .profile-wrapper .profile-wrapper-description {
    padding: 20px 10px 0 !important;
  }
  .profile-segments-with-products.profile-segments {
    padding: 0 25px 171px 25px;
  }
  .profile-segment-buttons {
    padding: 0;
  }
  .profile-segment-title-change {
    margin-bottom: 2rem;
  }
  .profile-title {
    padding: 60px 20px 20px;
  }
  .profile-projects-wrapper.profile-gallery-wrapper {
    gap: 25px;
    padding-right: 0 !important;
  }

  .profile-segments-with-products .ais-InfiniteHits-list {
    margin: 0;
  }
  .profile-segments {
    position: relative;
  }
  .profile-segment-title {
    display: grid;
    margin-bottom: 2rem;
    grid-template-columns: 1fr auto;
  }
  .profile-segment-title h2 {
    padding: 0;
    margin: 0 1rem 0 0;
  }
  .profile-segment-actions {
    flex: 1;
    padding: 0 2rem 0 0;
    flex-direction: row-reverse;
  }

  .profile-segment-actions * {
    margin: 0;
  }
  .profile-segment-title a {
    padding: 0 0 0 16px;
  }
  .profile-gallery-wrapper {
    grid-template-columns: repeat(5, 1fr) !important;
  }
  .profile-projects-wrapper.profile-gallery-wrapper {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .profile-projects-gallery-wrapper.profile-gallery-wrapper,
  .profile-projects-gallery-wrapper {
    grid-template-columns: repeat(3, 1fr) !important;
    padding-right: 0;
  }
  .profile-segments {
    padding: 0 25px 171px 25px;
  }
  .profile-segments.profile-segments-description {
    padding: 0 25px 120px 25px;
  }
  .profile-segments:last-of-type {
    padding-bottom: 40px;
    margin-bottom: 0;
  }
  footer{
    position: relative;
    background-color: white
  }
  .bookmark-segments > div:not(.profile-segment-title),
  .library-segments > div {
    margin-bottom: 171px;
  }
  .profile-title.profile-page-title {
    position: fixed;
  }
  .profile-navigation {
    justify-content: flex-end;
    padding: 20px;
  }
  .profile-navigation button {
    margin: 0 !important;
  }

  .profile-gallery-wrapper .ais-InfiniteHits-item {
    background-color: #fff;
    position: relative;
    height: 100%;
  }

  @media (orientation: landscape) {
    .profile-title {
      position: fixed;
    }
  }

  @media (orientation: portrait) {
    .profile-title {
      position: fixed;
    }
  }
}

@media screen and (min-width: 1920px) {
  .main-profile-segments .profile-projects-wrapper.profile-gallery-wrapper {
    grid-template-columns: repeat(5, 1fr) !important;
  }
  .main-profile-segments .profile-gallery-wrapper {
    grid-template-columns: repeat(6, 1fr) !important;
  }
  .large-screens-only {
    display: flex;
  }
  .main-profile-segments .ais-InfiniteHits-list-catalogs-placeholder.profile-gallery-wrapper {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr !important;
  }
}
