.moment-main {
  padding-bottom: 120px;
}
.moment-list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}
.moment-list-heading h2 {
  margin: 0 0 7px;
  color: #292b33;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.03em;
}
.moment-list-heading p {
  margin: 0;
  color: #686e78;
}
.moment-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(350px, 100%);
  padding: 11px 15px;
  border: 1px solid rgba(41, 43, 51, 0.13);
  border-radius: 999px;
  background: #fff;
}
.moment-search span {
  font-size: 20px;
  color: #9a7078;
}
.moment-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #292b33;
  font: inherit;
}
.moment-search input::placeholder {
  color: #686e78;
}
.moment-tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}
.moment-tag-filter button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(41, 43, 51, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #616670;
  cursor: pointer;
}
.moment-tag-filter button.is-active {
  border-color: #e95f78;
  background: #e95f78;
  color: #fff;
}
.moment-list {
  display: grid;
  gap: 18px;
}
.moment-entry {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(41, 43, 51, 0.11);
  border-radius: 18px;
  background: #fff;
}
.moment-entry--text-only {
  grid-template-columns: 1fr;
}
.moment-entry[hidden] {
  display: none;
}
.moment-entry__cover {
  min-height: 280px;
  overflow: hidden;
  background: #eceef1;
}
.moment-entry__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.moment-entry:hover .moment-entry__cover img {
  transform: scale(1.025);
}
.moment-entry__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(24px, 4vw, 42px);
}
.moment-entry__date {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  color: #777b85;
  font-size: 12px;
}
.moment-entry__date span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #fbe8ec;
  color: #a8374e;
}
.moment-entry h3 {
  margin: 12px 0 10px;
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.moment-entry h3 a {
  color: #292b33;
}
.moment-entry__body > p {
  max-width: 68ch;
  margin: 0;
  color: #656a73;
  line-height: 1.75;
  text-wrap: pretty;
}
.moment-entry__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
  color: #b24157;
  font-size: 12px;
}
.moment-entry footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 25px;
  padding-top: 17px;
  border-top: 1px solid rgba(41, 43, 51, 0.1);
  color: #777b85;
  font-size: 12px;
}
.moment-entry footer > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
}
.moment-entry footer a {
  color: #c9405b;
  font-weight: 700;
}
.moment-no-results {
  padding: 65px 20px;
  border: 1px dashed rgba(41, 43, 51, 0.15);
  border-radius: 18px;
  background: #fff;
  color: #6b7079;
  text-align: center;
}
.moment-detail-main {
  padding-bottom: 120px;
}
.moment-article {
  max-width: 940px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(41, 43, 51, 0.11);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(39, 34, 36, 0.07);
}
.moment-back {
  display: inline-block;
  margin: 28px 34px 0;
  color: #b53b53;
}
.moment-article__cover {
  height: min(62vh, 620px);
  margin: 26px 0 0;
  overflow: hidden;
  background: #eceef1;
}
.moment-article__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.moment-article__header,
.moment-article__content,
.moment-article__end {
  margin-left: auto;
  margin-right: auto;
  width: min(760px, calc(100% - 52px));
}
.moment-article__header {
  padding: 48px 0 35px;
  border-bottom: 1px solid rgba(41, 43, 51, 0.1);
}
.moment-article__date {
  display: flex;
  gap: 9px 18px;
  color: #777b85;
  font-size: 13px;
}
.moment-article__header h1 {
  margin: 14px 0 13px;
  color: #292b33;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.moment-article__header > p {
  max-width: 68ch;
  margin: 0;
  color: #656a73;
  font-size: 16px;
  line-height: 1.8;
}
.moment-article__context {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-top: 25px;
}
.moment-article__context span {
  color: #343740;
  font-size: 13px;
}
.moment-article__context small {
  display: block;
  margin-bottom: 4px;
  color: #95727a;
  font-size: 10px;
}
.moment-article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}
.moment-article__tags a {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fbe8ec;
  color: #a9384f;
  font-size: 12px;
}
.moment-article__content {
  padding: 42px 0 10px;
}
.moment-article__content quote {
  display: block;
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid rgba(233, 95, 120, 0.23);
  border-radius: 12px;
  background: #fff5f7;
}
.moment-article__content blockquote {
  border: 1px solid rgba(233, 95, 120, 0.23) !important;
  border-radius: 12px !important;
  background: #fff5f7 !important;
}
.moment-article__content img,
.moment-article__content video {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 22px auto;
  border-radius: 14px;
}
.moment-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(860px, calc(100% - 36px));
  margin: 35px auto;
}
.moment-media figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(41, 43, 51, 0.1);
  border-radius: 14px;
  background: #f1f2f4;
}
.moment-media button,
.moment-media video {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
  padding: 0;
  background: #17181b;
}
.moment-media button {
  cursor: zoom-in;
}
.moment-media img,
.moment-media video {
  width: 100%;
  height: 360px;
  object-fit: contain;
}
.moment-media figcaption {
  padding: 13px 15px;
  background: #fff;
  color: #5f646d;
  font-size: 13px;
}
.moment-article__end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 40px;
  padding: 28px 0 44px;
  border-top: 1px solid rgba(41, 43, 51, 0.1);
}
.moment-article__end strong,
.moment-article__end span {
  display: block;
}
.moment-article__end span {
  margin-top: 4px;
  color: #777b85;
  font-size: 13px;
}
.moment-article__end button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid rgba(233, 95, 120, 0.3);
  border-radius: 999px;
  background: #fff;
  color: #b53b53;
  cursor: pointer;
}
.moment-article__end button.is-liked {
  background: #e95f78;
  color: #fff;
}
.moment-article__end button:disabled {
  cursor: default;
  opacity: 1;
}
.moment-article__end button em {
  font-style: normal;
}
.moment-lightbox {
  width: min(94vw, 1280px);
  height: min(92vh, 900px);
  padding: 38px 18px 18px;
  border: 0;
  border-radius: 12px;
  background: #111114;
  color: #fff;
}
.moment-lightbox::backdrop {
  background: rgba(10, 10, 12, 0.86);
  backdrop-filter: blur(5px);
}
.moment-lightbox > button {
  position: absolute;
  top: 6px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}
.moment-lightbox img {
  width: 100%;
  height: calc(100% - 28px);
  object-fit: contain;
}
.moment-lightbox p {
  text-align: center;
  font-size: 13px;
}
.moment-lightbox:not([open]) {
  display: none;
}
@media (max-width: 760px) {
  .moment-main,
  .moment-detail-main {
    padding-bottom: 96px;
  }
  .moment-list-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .moment-search {
    width: 100%;
  }
  .moment-entry {
    grid-template-columns: 1fr;
    border-radius: 15px;
  }
  .moment-entry__cover {
    min-height: 0;
    height: 62vw;
  }
  .moment-entry__body {
    padding: 22px;
  }
  .moment-entry footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .moment-entry footer > div:last-child {
    justify-content: space-between;
    width: 100%;
  }
  .moment-article {
    border-radius: 15px;
  }
  .moment-back {
    margin: 22px 20px 0;
  }
  .moment-article__cover {
    height: 70vw;
    margin-top: 20px;
  }
  .moment-article__header,
  .moment-article__content,
  .moment-article__end {
    width: calc(100% - 38px);
  }
  .moment-article__header {
    padding: 36px 0 28px;
  }
  .moment-article__header h1 {
    font-size: 36px;
  }
  .moment-article__context {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .moment-media {
    grid-template-columns: 1fr;
  }
  .moment-media button,
  .moment-media img,
  .moment-media video {
    height: 72vw;
  }
  .moment-article__end {
    align-items: flex-start;
    flex-direction: column;
  }
  .moment-article__end button {
    justify-content: center;
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .moment-entry__cover img {
    transition: none;
  }
  .moment-entry:hover .moment-entry__cover img {
    transform: none;
  }
}
