* {
  padding: 0;
  margin: 0;
}

body {
  font-family: "Satoshi", sans-serif;
  height: 100vh;
  margin: 0;
  background-color: #111111;
  display: block;
  justify-content: center;
  scrollbar-width: none;
  overflow-y: scroll;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

a {
  text-decoration: none;
  color: inherit;
}

body::-webkit-scrollbar {
  display: none;
}

:root {
  --primary-color: #00000080;
  --secondary-color: #ffffff;
}

.container {
  margin-top: 52px;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-bottom: 52px;
}

.avatar {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  pointer-events: none;
}

.avatar-decoration {
  position: absolute;
  width: 84px;
  height: 84px;
  transform: scale(1.2);
  overflow: visible;
  opacity: 1;
  animation-play-state: paused;
  transition: animation-play-state 0.3s ease;
}

.avatar-decoration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  pointer-events: none;
}

.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.profile-title {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
}

.profile-bio {
  font-size: 16px;
  font-weight: 500;
  color: #8b8b8b;
  max-width: 320px;
  text-align: center;
}

.links-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.link-button {
  width: 40px;
  height: 40px;
  background-color: #151515;
  border: 1px solid #181818;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease-in-out;
}

.link-logo {
  width: 20px;
  height: auto;
  object-fit: cover;
}

.link-logo svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-button:hover {
  border: 1px solid #222222;
}

.cards-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.card {
  width: 400px;
  height: 120px;
  border-radius: 24px;
  background-color: #151515;
  border: 1px solid #181818;
  position: relative;
  align-items: center;
  flex-direction: row;
  display: flex;
  transition: all 0.2s ease-in-out;
}

.card-folder {
  min-height: 120px;
  width: 400px;
  border-radius: 24px;
  background-color: #151515;
  border: 1px solid #181818;
  position: relative;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
  display: flex;
  transition: all opacity 0.3s ease;
}

.folder-header {
  width: 100%;
  height: 120px;
  display: flex;
  flex-direction: row;
  align-items: center;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.card-folder.expanded .folder-header > *:not(.card-arrow-circle) {
  opacity: 0.4;
  transition: opacity 0.24s ease-in-out;
}

.folder-content {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 0;
}

.nested-item {
  margin-top: -4px;
}

.card-folder.expanded .folder-content {
  max-height: 1000px;
  padding: 0;
}

.card:hover {
  border: 1px solid #222222;
  transition: border 0.2s ease-in-out;
}

.card-folder:hover {
  border: 1px solid #222222;
  transition: border 0.2s ease-in-out;
}

.card-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 16%;
  overflow: hidden;
  margin-left: 20px;
  object-fit: cover;
  transition: all 0.2s ease-in-out;
}

.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  pointer-events: none;
}

.folder-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 16%;
  overflow: hidden;
  margin-left: 20px;
  display: flex;
  flex-wrap: wrap;
  background-color: #222222;
  justify-content: center;
  align-items: center;
}

.folder-thumbnail-item-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  align-items: center;
}

.folder-thumbnail-item {
  width: 28px;
  height: 28px;
  background-color: #63636300;
  background-size: cover;
  background-position: center;
  margin: 0;
  object-fit: cover;
  transition: all 0.2s ease-in-out;
  overflow: hidden;
}

.folder-thumbnail-item img {
  width: 100%;
  height: 100%;
  border-radius: 16%;
  object-fit: cover;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  pointer-events: none;
}

.card-contents {
  transform: none;
  gap: 10px;
  display: flex;
  flex-direction: column;
  margin-left: 20px;
}

.card-text {
  transform: none;
  gap: 4px;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 15px;
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.card-description {
  font-size: 15px;
  color: #a9a9a9;
  font-weight: 400;
}

.card-tags {
  display: flex;
  width: fit-content;
  height: fixed;
  flex-wrap: row;
  font-weight: 710;
  letter-spacing: -0.25px;
  text-align: center;
}

.tag-primary {
  background-color: #353535;
  color: #6b6b6b;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  margin-right: 10px;
  flex-grow: 1;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.tag-secondary {
  background-color: #222222;
  color: #404040;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  margin-right: 10px;
  flex-grow: 1;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.card-arrow path {
  fill: #464646;
}

.card-arrow:hover path {
  fill: #6b6b6b;
}

.card-arrow-circle {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 20px;
  height: 20px;
  border-radius: 100%;
  background-color: #222222;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.card-arrow {
  transition: fill 0.3s ease, transform 0.3s ease;
  width: 10px;
  height: 10px;
  position: static;
}

.card-folder .card-arrow-circle {
  transform: rotate(90deg);
}

.card-folder:hover .card-arrow-circle {
  transform: rotate(135deg);
  background-color: #353535;
}

.card-folder.expanded .card-arrow-circle {
  transform: rotate(0deg);
}

.card-folder.expanded:hover .card-arrow-circle {
  transform: rotate(-45deg);
}

.card:hover .card-arrow-circle {
  background-color: #353535;
  transform: rotate(45deg);
}
.card-folder:hover .card-arrow path,
.card:hover .card-arrow path {
  stroke: #6b6b6b;
}

.folder-content .nested-item {
  width: 100%;
  min-height: 88px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-left: 20px;
}

.folder-content:hover .nested-item:hover {
  opacity: 0.6;
  transition: opacity 0.2s ease-in-out;
}

.folder-content .nested-item .card-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 16%;
  overflow: hidden;
  margin-left: 0;
  flex-shrink: 0;
}

.card-folder.expanded .folder-header > *:not(.card-arrow-circle) {
  opacity: 0.4;
}

.folder-content .nested-item:last-child {
  padding-bottom: 16px;
}

.tooltip {
  z-index: 1;
  position: absolute;
  bottom: -52px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #222222de;
  color: #ffffff;
  font-weight: 450;
  letter-spacing: 0.5px;
  padding: 10px;
  border-radius: 5px;
  font-size: 12px;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
  opacity: 0;
}

.link-button:hover .tooltip {
  opacity: 1;
}

.tooltip::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #222222de;
}

@media (max-width: 580px) {
  .card,
  .card-folder {
    width: 348px;
    max-width: 348px;
  }

  .gallery-container {
    gap: 16px !important;
  }

  .gallery-item {
    width: 100px !important;
    height: 100px !important;
  }

  .fancybox__content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .fancybox__thumbs.is-classic {
    --f-thumb-opacity: 1;
    --f-thumb-hover-opacity: 1;
    --f-thumb-selected-opacity: 1;
    --f-thumb-width: 36px !important;
    --f-thumb-height: 48px !important;
    align-items: center !important;
  }
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #181818;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.gallery-item:hover {
  border: 1px solid #222222;
  transform: scale(1.05);
  opacity: 0.6;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  pointer-events: none;
}

.fancybox__container {
  --fancybox-bg: rgba(0, 0, 0, 0.8) !important;
  --fancybox-toolbar-bg: rgba(0, 0, 0, 0.5) !important;
  --fancybox-accent-color: #fff !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.fancybox__toolbar {
  --fancybox-toolbar-opacity: 1 !important;
  opacity: 1 !important;
}

.fancybox__nav {
  --fancybox-opacity: 1 !important;
  opacity: 0 !important;
}

.fancybox-image {
  transform: scale(0.9) !important;
  border-radius: 1% !important;
  border: 1px solid #222222;
}

.fancybox__thumbs.is-classic {
  --f-thumb-opacity: 1;
  --f-thumb-hover-opacity: 1;
  --f-thumb-selected-opacity: 1;
  --f-thumb-width: 48px;
  --f-thumb-height: 60px;
  --f-thumb-gap: 12px;
  --f-thumb-outline: 0;
}

.fancybox__thumbs.is-classic .f-thumbs__slide {
  border-radius: 4px;
  transition: all 0.2s;
}

.fancybox__footer {
  background-color: #00000000 !important;
}

.fancybox__caption {
  text-align: center !important;
}

.fancybox__toolbar__column.is-right {
  padding: 24px 24px !important;
  --f-button-bg: #222222 !important;
  --f-button-border: #00000000 !important;
  --f-button-color: #3c3c3c !important;
  --f-button-hover-bg: #353535;
  --f-button-active-bg: #5a5a5da6;
  --f-button-hover-color: #6b6b6b;
  --f-button-border-radius: 100% !important;
  --f-button-width: 28px;
  --f-button-height: 28px;
  --f-button-svg-width: 12px;
  --f-button-svg-height: 12px;
  --f-button-svg-stroke-width: 4;
}

.image-popup {
  display: none !important;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.gallery-item.loading {
  background: linear-gradient(90deg, #151515 25%, #222222 50%, #151515 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

.gallery-item.loading img {
  opacity: 0;
}

.folder-thumbnail-item.loading {
  background: linear-gradient(90deg, #151515 25%, #222222 50%, #151515 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 16%;
  overflow: hidden;
}

.folder-thumbnail-item.loading img {
  opacity: 0 !important;
}

.card-thumbnail.loading {
  background: linear-gradient(90deg, #151515 25%, #222222 50%, #151515 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 16%;
  overflow: hidden;
}

.card-thumbnail.loading img {
  opacity: 0 !important;
}
