.lucide {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
}

/* main */

.cryptedmail:after {
  content: attr(data-name) "@" attr(data-domain) "." attr(data-tld);
}

/* main projects */

.home-project-container,
.home-project {
  width: 200px;
}

@media (min-width: 992px) {
  .home-project-container,
  .home-project {
    width: 215px;
  }
}

@media (min-width: 1560px) {
  .home-project-container,
  .home-project {
    width: 230px;
  }
}

.home-project-scroller {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, white 8%, white 92%, transparent);
  mask: linear-gradient(90deg, transparent, white 8%, white 92%, transparent);
}

.home-project-scroller-inner {
  padding-block: .5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.home-project-scroller .home-project-scroller-inner {
  width: max-content;
  flex-wrap: nowrap;
  animation: scroll var(--_animation-duration, 40s) var(--_animation-direction, forwards) linear infinite;
}

.home-project-scroller .home-project-scroller-inner:hover {
  animation-play-state: paused;
}

.home-project-scroller {
  --_animation-direction: reverse;
  --_animation-duration: 40s;
}

.home-project-container {
  cursor: default;
}

.home-project-main {
  transition: transform 0.25s ease-in-out;
  overflow: hidden;
  border: 1px solid rgb(var(--accent) / 0.1) !important;
  background: linear-gradient(180deg, rgb(var(--surface) / 0.98), rgb(var(--surface-alt) / 0.96));
}

.home-project-image-wrap {
  overflow: hidden;
  background: var(--background-primary-color) !important;
  border-bottom: 1px solid rgb(var(--accent) / 0.08);
}

.home-project-image {
  display: block;
  width: 100%;
}

.home-project-copy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.55rem;
  padding: 15px 12px 12px 12px;
  text-align: left;
}

.home-project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.home-project-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-width: 0;
  flex: 1 1 auto;
}

.home-project-icon {
  width: 0.95rem;
  height: 0.95rem;
  margin-top: -0.08rem;
  flex: 0 0 auto;
  color: rgb(88 72 46 / 0.9);
}

.home-project-title {
  margin: 0 !important;
  font-family: 'Newsreader';
  color: rgb(72 57 33) !important;
  font-size: .9rem;
  line-height: 1.25;
  font-weight: 400;
  min-width: 0;
}

.home-project-description {
  margin-bottom: 5px !important;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgb(88 72 46 / 0.78);
}

.home-project-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.35;
}

.home-project-metadata a {
  color: rgb(72 57 33) !important;
  font-weight: 350 !important;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

.home-project-metadata a:hover {
  font-weight: 500 !important;
}

@keyframes scroll {
  to {
    transform: translate(calc(-50% + 5rem));
  }
}

.home-project-venue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background-secondary-color) !important;
  color: var(--element-primary-color) !important;
  font-weight: 350;
  font-size: 0.6rem;
  padding: 1px 4px .5px 4px;
  border-radius: 4px;
  white-space: nowrap;
  border: 1px solid rgb(var(--accent) / 0.1) !important;
  flex: 0 0 auto;
}

.home-misc-news {
  font-size: .9rem;
}

.home-view-all {
  font-size: .85rem;
}

.affiliation-logo {
  width: 15px;
  height: 15px;
  margin: 0 4px 2px 2px;
}

.home-flag {
  width: 20px;
  height: 20px;
  padding-top: 2px;
  margin: 0 3px 0 1px;
  display: inline-block;
  vertical-align: text-bottom;
}

.affiliation-logo {
  filter: brightness(0) contrast(.35); /* dark but not fully black */
  transition: filter 0.3s;
}

/* Restore full color on hover */
a:hover .affiliation-logo {
  filter: brightness(1) contrast(1);
}


.home-title {
  padding: 0.2rem 0;
  font-family: 'Newsreader';
  font-size: 1.5rem !important;
  font-weight: 500 !important;
}

.vertical-center p a,
.home-project-link,
.mb-5.mt-8.px-3 p a,
.news-title a,
.travel-title a {
  font-weight: 400;
}

:lang(ko) {
  font-family: 'Noto Sans KR', sans-serif !important;
}
