* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: "Neue Haas Grotesk";
  src:
    url("./fonts/NHaasGroteskDSPro-55Rg.woff2") format("woff2"),
    url("./fonts/NHaasGroteskDSPro-55Rg.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Neue Haas Grotesk";
  src:
    url("./fonts/NHaasGroteskTXPro-65Md.woff2") format("woff2"),
    url("./fonts/NHaasGroteskTXPro-65Md.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Neue Haas Grotesk";
  src:
    url("./fonts/NHaasGroteskTXPro-75Bd.woff2") format("woff2"),
    url("./fonts/NHaasGroteskTXPro-75Bd.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

:root {
  --space-1: 18px;
  --space-2: clamp(32px, 4vw, 48px);
  --page-pad: clamp(8px, 1.4vw, 20px);
}

body {
  font-family: "Neue Haas Grotesk", sans-serif;
  background: #111;
  color: #b9b9b9;
  line-height: 1.2;
  font-size: 14px;
  letter-spacing: -0.05em;
  height: 100%;
  overflow: hidden;
}

body.post-page {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable both-edges;
}

a {
  color: #b9b9b9;
  text-decoration: none;
}

::selection {
  background: #b9b9b9;
  color: #111111;
}

::-moz-selection {
  background: #b9b9b9;
  color: #111111;
}

/* About ir post puslapių įėjimas */
.page-entry-curtain {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  pointer-events: none;
  visibility: visible;
  animation: page-entry-curtain-visibility 4.2s step-end forwards;
}

.page-entry-curtain-panel {
  position: absolute;
  top: -10svh;
  left: -5vw;
  width: 110vw;
  height: 120svh;
  overflow: hidden;
  background: #111;
  border-radius: 50% 50% 0 0 / 14svh 14svh 0 0;
  transform: translate3d(0, 110%, 0);
  will-change: transform, border-radius;
  backface-visibility: hidden;
  animation: page-entry-curtain-motion 4.2s linear both;
}

.page-entry-curtain-arrival-only {
  display: none;
}

.page-entry-curtain-logo,
.page-navigation-curtain-logo {
  position: fixed;
  top: 50%;
  left: calc(50% + clamp(12px, 1.5vw, 24px));
  width: 206.25px;
  height: 22px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  filter: none;
  transform: translate3d(-50%, -50%, 0);
  will-change: opacity, transform;
}

.page-entry-curtain-logo {
  animation: page-entry-logo-stage 4.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.transition-logo-live,
.transition-logo-snapshot {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  visibility: visible;
  transition: opacity 0.18s ease-out;
}

.transition-logo-live {
  opacity: 0;
}

.transition-logo-snapshot {
  opacity: 1;
}

.has-live-transition-logo .transition-logo-live {
  opacity: 1;
}

.has-live-transition-logo .transition-logo-snapshot {
  opacity: 0;
}

.page-entry-curtain-logo svg,
.page-navigation-curtain-logo svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
}

.page-navigation-curtain {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.page-navigation-curtain-panel {
  position: absolute;
  top: -10svh;
  left: -5vw;
  width: 110vw;
  height: 120svh;
  overflow: hidden;
  background: #111;
  border-radius: 50% 50% 0 0 / 14svh 14svh 0 0;
  transform: translate3d(0, 110%, 0);
  will-change: transform, border-radius;
  backface-visibility: hidden;
}

.page-entry-curtain-panel::after,
.page-navigation-curtain-panel::after {
  content: "";
  position: absolute;
  inset: -10rem;
  pointer-events: none;
  background-position: 50%;
  background-repeat: repeat;
  background-image: url("./images/grain.png");
  animation: noise 1s steps(2) infinite;
}

body.page-navigation-active {
  overflow: hidden !important;
}

body.page-navigation-active .page-navigation-curtain {
  visibility: visible;
}

body.page-navigation-active .page-navigation-curtain-panel {
  animation: page-navigation-curtain-cover 1.55s linear both;
}

body.page-navigation-active .page-navigation-curtain-logo {
  animation: page-navigation-logo-stage 3.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.page-entry #a-main {
  animation:
    page-entry-content-ready 4.2s step-end backwards,
    page-entry-page-lift 1.4s cubic-bezier(0.16, 1, 0.3, 1) 2.62s backwards;
}

body.about-page.page-entry #a-main {
  animation: page-entry-content-ready 4.2s step-end backwards;
}

body.about-page.page-entry .about-sidebar,
body.about-page.page-entry .about-content,
body.about-page.page-entry .about-link,
body.about-page.page-entry .site-timer-wrap {
  animation: page-entry-page-lift 1.4s cubic-bezier(0.16, 1, 0.3, 1) 2.62s backwards;
}

@keyframes page-entry-curtain-motion {
  0% {
    border-radius: 50% 50% 0 0 / 14svh 14svh 0 0;
    transform: translate3d(0, 110%, 0);
    animation-timing-function: cubic-bezier(0.72, 0, 0.2, 1);
  }

  28% {
    border-radius: 50% 50% 0 0 / 14svh 14svh 0 0;
    transform: translate3d(0, 0, 0);
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }

  40% {
    border-radius: 0;
    transform: translate3d(0, 0, 0);
  }

  64% {
    border-radius: 0;
    transform: translate3d(0, 0, 0);
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }

  72% {
    border-radius: 0 0 50% 50% / 0 0 14svh 14svh;
    transform: translate3d(0, 0, 0);
    animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
  }

  100% {
    border-radius: 0 0 50% 50% / 0 0 14svh 14svh;
    transform: translate3d(0, -110%, 0);
  }
}

@keyframes page-entry-curtain-visibility {
  0%,
  99.9% {
    visibility: visible;
  }

  100% {
    visibility: hidden;
  }
}

@keyframes page-entry-logo-stage {
  0%,
  27% {
    opacity: 0;
    transform: translate3d(-50%, calc(-50% + 18px), 0);
  }

  34%,
  68% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0);
    animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
  }

  100% {
    opacity: 0;
    transform: translate3d(-50%, -125vh, 0);
  }
}

@keyframes page-navigation-curtain-cover {
  0% {
    border-radius: 50% 50% 0 0 / 14svh 14svh 0 0;
    transform: translate3d(0, 110%, 0);
    animation-timing-function: cubic-bezier(0.72, 0, 0.2, 1);
  }

  72% {
    border-radius: 50% 50% 0 0 / 14svh 14svh 0 0;
    transform: translate3d(0, 0, 0);
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }

  100% {
    border-radius: 0;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes page-navigation-logo-stage {
  0%,
  35% {
    opacity: 0;
    transform: translate3d(-50%, calc(-50% + 18px), 0);
  }

  44%,
  100% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0);
  }
}

html.page-transition-arrival .page-entry-curtain {
  animation: page-entry-arrival-visibility 1.35s step-end forwards;
}

html.page-transition-arrival .page-entry-curtain-arrival-only {
  display: block;
}

html.page-transition-arrival .page-entry-curtain-panel {
  border-radius: 0;
  transform: translate3d(0, 0, 0);
  animation: page-entry-arrival-panel 1.35s cubic-bezier(0.76, 0, 0.24, 1) both;
}

html.page-transition-arrival .page-entry-curtain-logo {
  animation: page-entry-arrival-logo 1.35s cubic-bezier(0.76, 0, 0.24, 1) both;
}

html.page-transition-arrival body.page-entry #a-main {
  opacity: 1;
  animation: page-entry-page-lift 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.08s backwards;
}

html.page-transition-arrival body.about-page.page-entry #a-main {
  animation: none;
}

html.page-transition-arrival body.about-page.page-entry .about-sidebar,
html.page-transition-arrival body.about-page.page-entry .about-content,
html.page-transition-arrival body.about-page.page-entry .about-link,
html.page-transition-arrival body.about-page.page-entry .site-timer-wrap {
  animation: page-entry-page-lift 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.08s backwards;
}

html.page-transition-arrival body:not(.about-page):not(.post-page) #a-main,
html.page-transition-arrival body:not(.about-page):not(.post-page) .about-link,
html.page-transition-arrival body:not(.about-page):not(.post-page) .site-timer-wrap {
  animation: page-entry-page-lift 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.08s backwards;
  will-change: transform;
}

@keyframes page-entry-arrival-panel {
  0%,
  12% {
    border-radius: 0;
    transform: translate3d(0, 0, 0);
  }

  24% {
    border-radius: 0 0 50% 50% / 0 0 14svh 14svh;
    transform: translate3d(0, 0, 0);
  }

  100% {
    border-radius: 0 0 50% 50% / 0 0 14svh 14svh;
    transform: translate3d(0, -110%, 0);
  }
}

@keyframes page-entry-arrival-logo {
  0%,
  12% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0);
  }

  100% {
    opacity: 0;
    transform: translate3d(-50%, -125vh, 0);
  }
}

@keyframes page-entry-arrival-visibility {
  0%,
  99.9% {
    visibility: visible;
  }

  100% {
    visibility: hidden;
  }
}

@keyframes page-entry-content-ready {
  0%,
  27.9% {
    opacity: 0;
  }

  28%,
  100% {
    opacity: 1;
  }
}

@keyframes page-entry-page-lift {
  from {
    transform: translate3d(0, 90svh, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

#a-main {
  position: relative;
  overflow: hidden;
  z-index: 0;
}

#a-main::before {
  content: "";
  position: fixed;
  pointer-events: none;
  inset: -10rem;
  z-index: -1;
  background-position: 50%;
  background-repeat: repeat;
  background-image: url("./images/grain.png");
  animation: noise 1s steps(2) infinite;
}

@keyframes noise {
  0% { transform: translate3d(0, 9rem, 0); }
  10% { transform: translate3d(-1rem, -4rem, 0); }
  20% { transform: translate3d(-8rem, 2rem, 0); }
  30% { transform: translate3d(9rem, -9rem, 0); }
  40% { transform: translate3d(-2rem, 7rem, 0); }
  50% { transform: translate3d(-9rem, -4rem, 0); }
  60% { transform: translate3d(2rem, 6rem, 0); }
  70% { transform: translate3d(7rem, -8rem, 0); }
  80% { transform: translate3d(-9rem, 1rem, 0); }
  90% { transform: translate3d(6rem, -5rem, 0); }
  100% { transform: translate3d(-7rem, 0, 0); }
}

.layout-grid {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: var(--page-pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  position: relative;
}

.sidebar {
  grid-column: 1 / 2;
  min-height: 100vh;
  padding-top: var(--space-1);
  padding-bottom: var(--space-2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo img {
  height: 22px;
  width: auto;
  transform-origin: left center;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo.is-logo-pressing > img {
  animation: logo-press-feedback 0.58s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes logo-press-feedback {
  0% { transform: scale(1); opacity: 1; }
  42% { transform: scale(0.84); opacity: 0.68; }
  100% { transform: scale(1); opacity: 1; }
}

@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  .logo {
    position: relative;
    display: inline-block;
    line-height: 0;
  }

  .logo-hover-animation {
    position: absolute;
    top: 50%;
    left: 0;
    width: 206.25px;
    height: 22px;
    overflow: visible;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-50%);
    transform-origin: left center;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .logo.is-logo-pressing .logo-hover-animation {
    animation: logo-hover-press-feedback 0.58s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  @keyframes logo-hover-press-feedback {
    0% { transform: translateY(-50%) scale(1); opacity: 1; }
    42% { transform: translateY(-50%) scale(0.84); opacity: 0.68; }
    100% { transform: translateY(-50%) scale(1); opacity: 1; }
  }

  .logo-hover-animation svg {
    display: block;
    width: 100% !important;
    height: 100% !important;
    overflow: visible !important;
  }

  .logo.has-logo-hover > img {
    visibility: hidden;
  }

  .logo.has-logo-hover .logo-hover-animation {
    visibility: visible;
  }
}

.years {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: auto;
  margin-bottom: auto;
}

.years a {
  color: #b9b9b9;
  opacity: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  transition: color 0.4s ease, opacity 0.4s ease, transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.year-subtags {
  display: none;
}

.year-subtag {
  font-size: 11px;
  opacity: 0.65;
  letter-spacing: 0;
}

body.posts-hover .years a {
  color: #7f7f7f;
  opacity: 1;
}

body.posts-hover .years a.is-highlight,
.years a.is-highlight {
  color: #b9b9b9;
  opacity: 1 !important;
  transform: translateX(6px);
}

.posts {
  grid-column: 2 / 3;
  height: 100vh;
  width: 360px;
  margin: 0;
  position: relative;
  display: flex;
  justify-content: center;
}

.posts-scroll {
  position: relative;
  width: 105%;
  height: 100%;
  overflow-y: scroll;
  overflow-x: visible;
  scrollbar-width: none;
  touch-action: pan-y;
}

.posts-scroll::-webkit-scrollbar { display: none; }

.posts-list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 160px;
  margin: 0 auto;
}

.post-item {
  position: relative;
  overflow: visible;
  width: 140px;
  height: 140px;
  transition: width 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.post-item.is-active {
  width: 280px;
  z-index: 3;
}

.post-item.is-match {
  width: 280px;
  z-index: 3;
}

.post-item.is-sibling {
  width: 220px;
  z-index: 2;
}

.post-thumb {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.post-thumb picture,
.post-strip-item picture,
.post-hero-item picture,
.about-photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: opacity 1s ease;
}

.post-badge {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 2px 6px;
  background: #0f0f0f;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  letter-spacing: -0.03em;
  pointer-events: none;
  z-index: 4;
}

body.posts-hover .post-item .post-thumb img { opacity: 0.2; }
body.posts-hover .post-item.is-sibling .post-thumb img { opacity: 0.7; }
body.posts-hover .post-item.is-active .post-thumb img,
body.posts-hover .post-item.is-match .post-thumb img { opacity: 1; }

.post-label {
  position: absolute;
  left: 300px;
  top: 0;
  padding: 0;
  background: transparent;
  color: #b9b9b9;
  max-width: none;
  white-space: normal;
  text-align: left;
  display: none;
  pointer-events: none;
  z-index: 20;
}

.post-label-small {
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.post-label-large {
  font-size: 20px;
  line-height: 1.1;
  margin-top: 2px;
  white-space: nowrap;
}


.about-link {
  position: fixed;
  top: var(--space-1);
  right: var(--page-pad);
  color: #b9b9b9;
  z-index: 30;
  display: inline-flex;
  align-items: baseline;
  opacity: 1;
  line-height: 1.2;
  transition: none;
  will-change: opacity, transform, filter;
}

.about-link-text {
  display: inline-block;
  transform: translateX(0);
  opacity: 1;
  will-change: transform, opacity;
}

.about-link:hover {
  filter: brightness(1.08);
}

.about-link:hover .about-link-text {
  animation: about-text-slide-in 0.38s cubic-bezier(0.16, 0.74, 0.24, 1) both;
}

.about-link:active .about-link-text {
  animation: about-text-slide-in 0.38s cubic-bezier(0.16, 0.74, 0.24, 1) both;
}

@keyframes about-text-slide-in {
  0% {
    transform: translateX(8px);
    opacity: 0.55;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.site-timer-wrap {
  position: fixed;
  right: var(--page-pad);
  bottom: calc(var(--space-1) + env(safe-area-inset-bottom));
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #b9b9b9;
  z-index: 30;
  font-size: 14px;
  letter-spacing: -0.03em;
}

.site-timer {
  color: #b9b9b9;
}

.site-copyright {
  font-size: 14px;
  color: #7f7f7f;
}

@media (max-width: 1024px) {
  .about-link {
    top: auto;
    right: auto;
    left: var(--page-pad);
    bottom: var(--space-1);
    font-size: 12px;
    line-height: 1.2;
    display: inline-flex;
    align-items: baseline;
  }

  .site-timer-wrap {
    font-size: 12px;
    line-height: 1.2;
    gap: 8px;
    right: calc(150px + var(--page-pad));
    left: auto;
    bottom: var(--space-1);
    white-space: nowrap;
    align-items: baseline;
  }

  .site-copyright {
    font-size: 12px;
    line-height: 1.2;
  }
}

@media (max-width: 1024px) {
  .layout-grid {
    grid-template-columns: 1fr 150px;
    padding-inline: 0;
  }

  .sidebar {
    grid-column: 1 / 2;
    min-height: 100vh;
    padding-left: var(--page-pad);
    padding-right: var(--page-pad);
    justify-content: flex-start;
  }

  .years {
    margin-top: 32px;
    margin-bottom: 0;
  }

  .posts {
    grid-column: 2 / 3;
    justify-self: end;
    height: 100vh;
  }

  .posts-scroll {
    width: 360px;
    transform: translateX(calc(460px - 360px));
  }

}

@media (max-width: 1024px) {
  .post-label {
    position: fixed;
    left: var(--page-pad);
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    right: auto;
    max-width: min(72vw, 280px);
  }
}

/* About page */
body.about-page {
  overflow: hidden;
}

.about-layout-grid {
  min-height: 100vh;
  grid-template-columns: 1fr minmax(560px, 680px) 1fr;
}

.about-content {
  grid-column: 2 / 3;
  height: 100vh;
}

.about-scroll {
  width: min(52vw, 680px);
  height: 100vh;
  padding-top: 39vh;
  overflow: hidden;
  position: relative;
  margin-inline: auto;
}

.about-scroll-track,
.about-scroll-inner {
  will-change: transform;
}

.about-scroll-track {
  opacity: 1;
  transition: opacity 0.18s ease;
}

.about-scroll.is-initializing .about-scroll-track {
  opacity: 0;
}

.about-scroll-inner {
  padding-bottom: 32vh;
}

.about-section {
  margin-bottom: 34px;
}

.about-row {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  column-gap: 24px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.28;
  letter-spacing: -0.03em;
}

.about-row-label {
  text-align: right;
  color: #7f7f7f;
}

.about-row-value {
  text-align: left;
  color: #b9b9b9;
}

@media (hover: hover) and (pointer: fine) {
  .about-row a.about-row-value:hover {
    opacity: 0.7;
  }
}

.about-row-text {
  grid-template-columns: 230px minmax(0, 1fr);
}

.about-row-text .about-row-value {
  max-width: 50ch;
}

.about-row-gap {
  margin-top: 34px;
}

.about-registry-series-gap {
  margin-top: 16px;
}

.about-gallery {
  display: grid;
  contain: layout paint;
  grid-template-columns: minmax(220px, 320px) minmax(300px, 460px);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  margin-bottom: 44px;
}

.about-photo {
  margin: 0;
  overflow: hidden;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.about-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  will-change: transform;
  transform-origin: center center;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.about-photo-vertical {
  aspect-ratio: 3 / 4;
}

.about-photo-horizontal {
  aspect-ratio: 16 / 9;
}

.about-intro {
  max-width: 46ch;
}

@media (max-width: 1024px) {
  .about-layout-grid {
    grid-template-columns: 1fr;
  }

  .about-sidebar {
    position: fixed;
    top: var(--space-1);
    left: var(--page-pad);
    min-height: 0;
    padding: 0;
    z-index: 35;
    pointer-events: none;
  }

  .about-sidebar .logo {
    pointer-events: auto;
  }

  .about-years {
    display: none;
  }

  .about-content {
    grid-column: 1 / -1;
    height: 100svh;
  }

  .about-scroll {
    width: 100%;
    max-width: none;
    height: 100svh;
    padding-top: 37vh;
    padding-inline: var(--page-pad);
    margin-inline: 0;
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: none;
  }

  .about-scroll-inner {
    padding-top: 18vh;
  }

  .about-gallery {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 28px;
  }

  .about-photo-vertical,
  .about-photo-horizontal {
    aspect-ratio: auto;
  }

  .about-row {
    grid-template-columns: 1fr;
    row-gap: 3px;
    margin-bottom: 10px;
  }

  .about-row-text .about-row-label {
    display: none;
  }

  .about-row-label,
  .about-row-value {
    text-align: left;
  }

  .about-page .site-timer-wrap {
    display: flex;
    right: var(--page-pad);
    left: auto;
  }

  .about-page .about-link {
    display: inline-flex;
  }

  .about-row-gap {
    margin-top: 28px;
  }
}
@media (min-width: 1025px) {

  .about-gallery {
    width: 100vw;
    margin-left: calc(50% - 50vw);

    display: grid;
    grid-template-columns: 1fr minmax(560px, 680px) 1fr;
    align-items: end;

    column-gap: clamp(110px, 10vw, 220px); /* TARPAS TARP NUOTRAUKŲ */
    margin-bottom: 88px;
  }

  /* Kairė nuotrauka */
  .about-photo:first-child {
    grid-column: 1 / 3;
    justify-self: end;
    width: clamp(420px, 34vw, 700px); /* DIDESNĖ */
  }

  /* Dešinė nuotrauka */
  .about-photo:last-child {
    grid-column: 2 / 4;
    justify-self: start;
    width: clamp(420px, 32vw, 650px); /* DIDESNĖ */
  }

}

@media (prefers-reduced-motion: reduce) {
  body.about-page {
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .about-page .about-content {
    height: auto;
    min-height: 100vh;
  }

  .about-page .about-scroll {
    height: auto;
    min-height: 100svh;
    overflow: visible;
    touch-action: pan-y;
    overscroll-behavior-y: auto;
  }
}

/* Post page */
.post-main {
  min-height: 100vh;
}

.post-shell {
  padding: var(--space-1) var(--page-pad) var(--space-1);
  min-height: 100vh;
  width: 100%;
}

.post-top {
  display: flex;
  flex-direction: column;
}

.post-top .logo {
  display: block;
  align-self: flex-start;
  line-height: 0;
}

.post-top .logo img {
  display: block;
}

.post-top-line {
  margin-top: var(--space-1);
  height: 1px;
  min-height: 1px;
  flex: 0 0 1px;
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  width: 100%;
  position: relative;
  z-index: 2;
}

.post-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 30px;
  align-items: start;
}

.post-tags {
  grid-column: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-tags a {
  color: #7f7f7f;
}

.post-tags a.is-active {
  color: #b9b9b9;
}

.post-meta {
  grid-column: 4 / span 3;
  min-height: 260px;
}

.post-info-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: #b9b9b9;
  font: inherit;
  display: inline-flex;
  gap: 6px;
  cursor: pointer;
  padding: 0;
  transform-origin: left center;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), letter-spacing 0.35s ease;
}

.post-info-toggle:hover {
  opacity: 0.88;
  transform: translateX(2px);
  letter-spacing: 0.01em;
}

.post-info-close {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.post-info-close.is-swapping {
  animation: post-toggle-swap 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes post-toggle-swap {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  40% { transform: translateY(-4px) scale(0.88); opacity: 0.65; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.post-info-toggle:hover .post-info-close {
  transform: translateY(-1px);
}

.post-info-details {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  max-height: none;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease;
}

.post-info-details .post-meta-group {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease;
}

.post-info-details .post-meta-group:nth-child(2) {
  transition-delay: 0.08s;
}

.post-info-details .post-meta-col > div {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.28s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.post-info-details.is-collapsed {
  max-height: 0;
  opacity: 0;
  transform: translateY(10px);
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.post-info-details.is-collapsed .post-meta-group {
  opacity: 0;
  transform: translateY(18px);
}

.post-info-details.is-collapsed .post-meta-col > div {
  opacity: 0;
  transform: translateY(14px);
  transition-delay: 0ms;
}

.post-meta-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 8px;
}

.post-meta-col {
  display: grid;
  gap: 0;
  color: #7f7f7f;
}

.post-meta-col-value {
  color: #b9b9b9;
}


.post-title {
  grid-column: 7 / span 3;
  font-size: 1.875rem;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 400;
}

.post-back {
  grid-column: 12 / span 1;
  justify-self: end;
  width: 56px;
  height: 56px;
  position: relative;
  transform: translateY(-4px);
  z-index: 6;
}

.post-back {
  overflow: hidden;
}

.post-back-icon {
  position: absolute;
  inset: 0;
  display: block;
  width: 56px;
  height: 56px;
  transition:
    transform 0.58s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.48s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.post-back-icon-primary {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.post-back-icon-ghost {
  transform: translate3d(-82px, 82px, 0);
  opacity: 0;
}

.post-back:hover .post-back-icon-primary {
  transform: translate3d(82px, -82px, 0);
  opacity: 0;
}

.post-back:hover .post-back-icon-ghost {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.post-back-cursor-label {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  color: #b9b9b9;
  font-size: 14px;
  line-height: 1.2;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--back-label-x, 0px), var(--back-label-y, 0px), 0) translateX(-50%);
  transition: opacity 0.18s ease;
  will-change: transform, opacity;
}

.post-back-cursor-label.is-visible {
  opacity: 1;
}

.post-photo-cursor-label {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  color: #b9b9b9;
  font-size: 14px;
  line-height: 1.2;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: difference;
  transform: translate3d(calc(var(--back-label-x, 0px) + 26px), calc(var(--back-label-y, 0px) - 30px), 0);
  transition: opacity 0.18s ease;
  will-change: transform, opacity;
}

.post-photo-cursor-label.is-visible {
  opacity: 1;
}

.post-hero {
  grid-column: 1 / -1;
  margin: 56px 0 0;
  background: transparent;
  padding: 0;
}

.post-hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 16px;
  align-items: start;
}

.post-hero-item {
  margin: 0;
}

.post-hero-link {
  display: block;
  width: 100%;
  color: inherit;
}

.post-hero-item-left {
  grid-column: 1 / span 6;
}

.post-hero-item-right {
  grid-column: 7 / span 6;
}

.post-hero-grid-single .post-hero-item {
  grid-column: 1 / -1;
}

.post-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.post-body-text {
  grid-column: 4 / 9;
  margin-top: 40px;
  font-size: 1.875rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #b9b9b9;
}

.post-body-text p {
  margin-top: 22px;
}

.post-body-text strong,
.post-body-text b {
  font-weight: inherit;
}

.post-body-title,
.post-body-poem,
.post-body-meta {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 400;
  color: #b9b9b9;
}

.post-share-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #b9b9b9;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
  padding: 0;
  cursor: pointer;
  transform-origin: left center;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), letter-spacing 0.35s ease;
}

.post-share-btn:hover {
  opacity: 0.88;
  transform: translateX(2px);
  letter-spacing: 0.01em;
}

.post-share-plus {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.post-share-btn:hover .post-share-plus {
  transform: translateY(-1px);
}

.post-share-label {
  display: inline-block;
  min-width: 92px;
}

.post-share-btn.is-swapping .post-share-plus {
  animation: post-toggle-swap 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}


.post-bottom-strip,
.post-bottom-nav,
.post-bottom-logo,
.post-page-timer {
  display: none;
}

.post-strip-set {
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
  contain: layout style;
}

.post-strip-label-small {
  min-height: 1.2em;
}

.post-strip-label-large {
  min-height: 1.1em;
}

@media (min-width: 1025px) {
  .post-bottom-strip {
    display: block;
    grid-column: 1 / -1;
    margin-top: 76px;
    margin-bottom: 220px;
    position: relative;
  }

  .post-strip-label {
    text-align: center;
    margin-bottom: 28px;
    color: #b9b9b9;
    pointer-events: none;
  }

  .post-strip-label-small {
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .post-strip-label-large {
    font-size: 20px;
    line-height: 1.1;
    margin-top: 4px;
    white-space: nowrap;
    color: #b9b9b9;
  }

  .post-strip-track {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 0;
    scroll-snap-type: none;
    scroll-behavior: auto;
  }

  .post-strip-track::-webkit-scrollbar {
    display: none;
  }

  .post-strip-item {
    width: 140px;
    height: 140px;
    overflow: hidden;
    margin-left: 0;
    margin-right: 0;
    transition:
      width 1s cubic-bezier(0.23, 1, 0.32, 1),
      margin-left 1s cubic-bezier(0.23, 1, 0.32, 1),
      margin-right 1s cubic-bezier(0.23, 1, 0.32, 1),
      transform 1s cubic-bezier(0.23, 1, 0.32, 1),
      opacity 0.5s ease;
    flex: 0 0 auto;
    opacity: 1;
    background: #111;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
  }

  .post-strip-item.is-resting {
    width: 140px;
    margin-left: 0;
    margin-right: 0;
  }

  .post-strip-track.is-hovering .post-strip-item {
    opacity: 1;
  }

  .post-strip-track.is-hovering .post-strip-item img {
    opacity: 0.25;
  }

  .post-strip-track.is-hovering .post-strip-item.is-active img {
    opacity: 1;
  }

  .post-strip-track.is-hovering .post-strip-item.is-sibling img {
    opacity: 0.72;
  }

  .post-strip-item.is-active {
    width: 280px;
    margin-left: -70px;
    margin-right: -70px;
    position: relative;
    z-index: 2;
  }

  .post-strip-item.is-sibling {
    width: 180px;
    margin-left: -20px;
    margin-right: -20px;
    position: relative;
    z-index: 1;
  }

  .post-strip-item.is-before-active {
    transform: translate3d(-28px, 0, 0);
  }

  .post-strip-item.is-after-active {
    transform: translate3d(28px, 0, 0);
  }

  .post-strip-item img {
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    margin: -1px;
    object-fit: cover;
    display: block;
    opacity: 1;
    transition: opacity 0.5s ease;
    backface-visibility: hidden;
    transform: translateZ(0);
  }

  .post-bottom-nav,
  .post-bottom-logo,
  .post-page-timer {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease;
    will-change: opacity;
  }

  body.post-bottom-chrome-prepared .post-bottom-nav,
  body.post-bottom-chrome-prepared .post-bottom-logo,
  body.post-bottom-chrome-prepared .post-page-timer {
    visibility: visible;
  }

  body.post-bottom-chrome-visible .post-bottom-nav,
  body.post-bottom-chrome-visible .post-bottom-logo,
  body.post-bottom-chrome-visible .post-page-timer {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .post-bottom-nav {
    display: flex;
    gap: 18px;
    position: fixed;
    left: var(--page-pad);
    bottom: calc(var(--space-1) + env(safe-area-inset-bottom));
    z-index: 40;
  }

  .post-bottom-nav a {
    color: #b9b9b9;
  }

  .post-bottom-link-text {
    display: inline-block;
    transform: translateX(0);
    opacity: 1;
    will-change: transform, opacity;
  }

  .post-bottom-nav a:hover .post-bottom-link-text {
    animation: about-text-slide-in 0.38s cubic-bezier(0.16, 0.74, 0.24, 1) both;
  }

  .post-bottom-nav a:active .post-bottom-link-text {
    animation: about-text-slide-in 0.38s cubic-bezier(0.16, 0.74, 0.24, 1) both;
  }

  .post-bottom-logo {
    display: inline-block;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(var(--space-1) + env(safe-area-inset-bottom));
    z-index: 40;
  }

  .post-bottom-logo img {
    height: 20px;
    width: auto;
    display: block;
  }

  .post-page-timer {
    display: flex;
    right: var(--page-pad);
    left: auto;
    bottom: calc(var(--space-1) + env(safe-area-inset-bottom));
  }
}

.post-bottom-strip.is-reveal-ready {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.post-bottom-strip.is-reveal-ready.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 1024px) {
  .post-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: 8px;
    align-items: end;
    padding-bottom: calc(var(--space-1) + env(safe-area-inset-bottom));
  }

  .post-shell {
    grid-column: 1 / -1;
    padding-inline: var(--page-pad);
    padding-bottom: 68px;
  }

  .post-bottom-strip {
    display: block;
    grid-column: 1 / -1;
    min-width: 0;
    max-width: 100%;
    margin-top: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
  }

  .post-strip-label {
    text-align: center;
    margin-bottom: 18px;
    color: #b9b9b9;
  }

  .post-strip-label-small {
    font-size: 14px;
    line-height: 1.2;
  }

  .post-strip-label-large {
    font-size: 20px;
    line-height: 1.1;
    margin-top: 4px;
    color: #b9b9b9;
  }

  .post-strip-track {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-left: 0;
    padding: 0 var(--page-pad);
    scroll-snap-type: none;
    scroll-behavior: auto;
  }

  .post-strip-track::-webkit-scrollbar {
    display: none;
  }

  .post-strip-item {
    width: 140px;
    height: 140px;
    flex: 0 0 auto;
    overflow: hidden;
    margin-left: 0;
    margin-right: 0;
    opacity: 1;
    background: #111;
    transition:
      width 0.9s cubic-bezier(0.16, 1, 0.3, 1),
      margin-left 0.9s cubic-bezier(0.16, 1, 0.3, 1),
      margin-right 0.9s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.7s ease;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    scroll-snap-align: none;
  }

  .post-strip-item.is-resting {
    width: 140px;
    margin-left: 0;
    margin-right: 0;
    opacity: 1;
  }

  .post-strip-item.is-sibling {
    width: 167px;
    margin-left: -13.5px;
    margin-right: -13.5px;
    opacity: 1;
    position: relative;
    z-index: 1;
  }

  .post-strip-item.is-active {
    width: 200px;
    margin-left: -30px;
    margin-right: -30px;
    opacity: 1;
    position: relative;
    z-index: 2;
  }

  .post-strip-item.is-before-active {
    transform: translate3d(-30px, 0, 0);
  }

  .post-strip-item.is-after-active {
    transform: translate3d(30px, 0, 0);
  }

  .post-strip-item.is-active,
  .post-strip-item.is-sibling,
  .post-strip-item.is-before-active,
  .post-strip-item.is-after-active {
    will-change: width, margin-left, margin-right, transform;
  }

  .post-strip-item img {
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    margin: -1px;
    object-fit: cover;
    display: block;
    opacity: 0.16;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    backface-visibility: hidden;
    transform: translateZ(0);
  }

  .post-strip-item.is-sibling img {
    opacity: 0.48;
  }

  .post-strip-item.is-active img {
    opacity: 1;
  }

  .post-bottom-nav,
  .post-bottom-logo,
  .post-page-timer {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
  }

  body.post-bottom-chrome-prepared .post-bottom-nav,
  body.post-bottom-chrome-prepared .post-bottom-logo,
  body.post-bottom-chrome-prepared .post-page-timer {
    visibility: visible;
  }

  body.post-bottom-chrome-visible .post-bottom-nav,
  body.post-bottom-chrome-visible .post-bottom-logo,
  body.post-bottom-chrome-visible .post-page-timer {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .post-bottom-nav {
    display: flex;
    gap: 8px;
    position: static;
    grid-column: 1;
    justify-self: start;
    margin-left: var(--page-pad);
    z-index: 40;
    transform: none;
  }

  .post-bottom-nav a {
    color: #b9b9b9;
    font-size: 12px;
  }

  .post-bottom-nav a:hover .post-bottom-link-text {
    animation: about-text-slide-in 0.38s cubic-bezier(0.16, 0.74, 0.24, 1) both;
  }

  .post-bottom-nav a:active .post-bottom-link-text {
    animation: about-text-slide-in 0.38s cubic-bezier(0.16, 0.74, 0.24, 1) both;
  }

  .post-bottom-logo {
    display: inline-block;
    position: static;
    grid-column: 2;
    justify-self: center;
    transform: none;
    z-index: 40;
  }

  .post-bottom-logo img {
    height: 20px;
    width: auto;
    display: block;
  }

  .post-page-timer {
    display: flex;
    position: static;
    grid-column: 3;
    justify-self: end;
    margin-right: var(--page-pad);
    gap: 8px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 40;
    transform: none;
  }

  body.post-bottom-chrome-visible .post-bottom-nav,
  body.post-bottom-chrome-visible .post-page-timer {
    transform: translate3d(0, 0, 0);
  }

  body.post-bottom-chrome-visible .post-bottom-logo {
    transform: translate3d(-50%, 0, 0);
  }

  .post-bottom-nav,
  .post-bottom-logo,
  .post-page-timer,
  body.post-bottom-chrome-visible .post-bottom-nav,
  body.post-bottom-chrome-visible .post-bottom-logo,
  body.post-bottom-chrome-visible .post-page-timer {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: none;
    transform: none !important;
    will-change: auto;
  }

  .post-page-timer .site-copyright {
    font-size: 12px;
  }

  .post-top-line {
    width: 100%;
  }

  .post-grid {
    margin-top: 28px;
    grid-template-columns: 1fr;
    row-gap: 14px;
    min-width: 0;
    position: relative;
  }

  .post-tags,
  .post-meta,
  .post-title,
  .post-back,
  .post-hero,
  .post-body-text {
    grid-column: 1 / -1;
    min-width: 0;
    max-width: 100%;
  }

  .post-tags { grid-row: 1; }
  .post-back {
    position: sticky;
    right: auto;
    top: calc(var(--space-1) + 24px);
    grid-row: 1;
    justify-self: end;
    align-self: start;
    transform: none;
    margin-top: 0;
    margin-left: auto;
    z-index: 120;
  }
  .post-meta { grid-row: 2; min-height: 0; }
  .post-title {
    grid-row: 3;
    font-size: 1.875rem;
  }
  .post-back-icon {
    position: relative;
  }

  .post-back-icon-ghost {
    display: none;
  }


  .post-hero {
    margin-top: 0;
    padding: 0;
    background: transparent;
    max-width: 100%;
    overflow: hidden;
  }

  .post-hero-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 12px;
    max-width: 100%;
  }

  .post-hero-item-left,
  .post-hero-item-right {
    grid-column: 1 / -1;
    max-width: 100%;
    overflow: hidden;
  }

  .post-body-text {
    margin-top: 24px;
    font-size: 1.875rem;
    overflow-wrap: anywhere;
  }

  .post-body-text p,
  .post-body-title,
  .post-body-poem,
  .post-body-meta {
    font-size: 1.875rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .post-share-btn {
    margin-top: 36px;
    font-size: 1.875rem;
  }

  body.post-page {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
  }
}

@media (hover: none) and (pointer: coarse) {
  .post-back {
    position: sticky;
    right: auto;
    top: calc(var(--space-1) + 24px);
    transform: none;
    z-index: 120;
  }
}

@media (min-width: 1025px) {
  body.post-page {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
  }

  .post-hero-item {
    overflow: hidden;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
  }

  .post-hero-item img {
    will-change: transform;
    transform-origin: center center;
    backface-visibility: hidden;
    transform: translateZ(0);
  }
}

#intro-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
}

#intro-loader::before {
  content: "";
  position: fixed;
  pointer-events: none;
  inset: -10rem;
  z-index: 0;

  background-position: 50%;
  background-repeat: repeat;
  background-image: url("./images/grain.png");

  animation: noise 1s steps(2) infinite;

  background-color: #111;
}


#intro-lottie-photos {
  z-index: 1;
}

.intro-text-wrap,
.intro-poem,
.intro-final {
  z-index: 1000000;
}

.intro-text-wrap {
  position: absolute;
  left: var(--page-pad);
  top: 50%;
  transform: translateY(-50%);
  overflow: hidden;
  height: 18px;
  width: 260px;
}

.intro-line {
  position: absolute;
  left: 0;
  top: 0;
  color: #b9b9b9;
  font-size: 16px;
  letter-spacing: -0.05em;
  line-height: 1.2;
  transform: translateY(120%);
}

.post-year-display {
  position: absolute;
  grid-column: 1 / 2;
  align-self: center;

  left: auto;
  top: 50%;
  transform: translateY(-50%);

  color: #b9b9b9;
  font-size: 14px;
  letter-spacing: -0.05em;

  z-index: 50;
  pointer-events: none;
}


.post-code-display {
  position: fixed;
  right: var(--page-pad);
  top: 50%;
  transform: translateY(-50%);

  color: #b9b9b9;
  font-size: 14px;
  letter-spacing: -0.05em;

  z-index: 50;
  pointer-events: none;
}

@media (max-width: 1024px) {

  .post-label {
  left: var(--page-pad) !important;
}

  .post-year-display,
  .post-code-display {
    position: fixed;

    left: var(--page-pad) !important;
    right: auto !important;

    color: #b9b9b9;

    font-size: 14px;
    letter-spacing: -0.04em;

    transform: none;
  }

  .post-year-display {
  top: calc(50% + 74px) !important;
  line-height: 1.35;
  }

  .post-code-display {
  top: calc(50% + 92px) !important;
  left: var(--page-pad) !important;

  line-height: 1.35;
  }

}

.intro-poem {
  position: fixed;
  z-index: 1000000;
  color: #b9b9b9;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.05em;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform, filter;
}

.intro-poem-1 {
  left: var(--page-pad);
  top: var(--space-1);
  transform-origin: left top;
}

.intro-poem-2 {
  right: var(--page-pad);
  bottom: calc(var(--space-1) + env(safe-area-inset-bottom));
  transform-origin: right bottom;
}

.intro-final {
  position: fixed;
  z-index: 1000000;
  color: #b9b9b9;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.05em;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform, filter;
}

.intro-final-left {
  left: var(--page-pad);
  top: 50%;
  transform: translateY(-50%);
  transform-origin: left center;
}

.intro-final-right {
  right: var(--page-pad);
  top: 50%;
  transform: translateY(-50%);
  transform-origin: right center;
  text-align: right;
}

@media (max-width: 1024px) {
  .post-label {
    top: 50svh !important;
  }

  .post-year-display {
    top: calc(50svh + 74px) !important;
  }

  .post-code-display {
    top: calc(50svh + 92px) !important;
  }
}
@media (max-width: 1024px) {
  .post-item {
    width: 118px;
    height: 140px;
    transform: none !important;
    transform-origin: center center;
    transition: width 0.75s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.5s ease;
  }

  .post-item.is-active,
  .post-item.is-match {
    width: 178px;
    height: 140px;
    transform: none !important;
    z-index: 3;
  }

  .post-item.is-sibling,
  .post-item.is-prev,
  .post-item.is-next {
    width: 145px;
    height: 140px;
    transform: none !important;
    z-index: 2;
  }

  .post-item .post-thumb {
    width: 100%;
    height: 100%;
    overflow: hidden;
    transform: none !important;
  }

  .post-item .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .post-label {
    max-width: 175px !important;
  }

  .post-label-large {
    font-size: 20px;
    line-height: 0.98;
    white-space: normal;
  }

  .post-label-small {
    font-size: 14px;
    line-height: 1.05;
    white-space: normal;
  }
}

@media (max-width: 430px) {
  .post-item {
    width: 118px;
    transform: none !important;
    transform-origin: center center;
    transition: width 0.75s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.5s ease;
  }

  .post-item.is-active,
  .post-item.is-match {
    width: 178px;
    transform: none !important;
    z-index: 3;
  }

  .post-item.is-sibling,
  .post-item.is-prev,
  .post-item.is-next {
    width: 145px;
    transform: none !important;
    z-index: 2;
  }

  .post-label {
    max-width: 165px !important;
  }

  .post-item .post-thumb {
    width: 100%;
    height: 100%;
    overflow: hidden;
    transform: none !important;
  }

  .post-item .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

@media (max-width: 1024px) {
  body.posts-hover .post-item .post-thumb img {
    opacity: 0.16;
  }

  body.posts-hover .post-item.is-sibling .post-thumb img,
  body.posts-hover .post-item.is-prev .post-thumb img,
  body.posts-hover .post-item.is-next .post-thumb img {
    opacity: 0.48;
  }

  body.posts-hover .post-item.is-active .post-thumb img,
  body.posts-hover .post-item.is-match .post-thumb img {
    opacity: 1;
  }
}

#intro-lottie-photos {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100svh;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: opacity, visibility;
}

#intro-lottie-photos svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
  transform: translateZ(0);
  backface-visibility: hidden;
}

@media (hover: none) and (pointer: coarse) and (min-width: 1025px) {
  .post-strip-track {
    overflow-x: auto;
    overflow-y: hidden;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
  }

  .post-strip-item {
    width: 140px;
    height: 140px;
    margin-left: 0;
    margin-right: 0;
    transition:
      width 0.9s cubic-bezier(0.16, 1, 0.3, 1),
      margin-left 0.9s cubic-bezier(0.16, 1, 0.3, 1),
      margin-right 0.9s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.7s ease;
  }

  .post-strip-item.is-resting {
    width: 140px;
    margin-left: 0;
    margin-right: 0;
  }

  .post-strip-item.is-sibling {
    width: 167px;
    margin-left: -13.5px;
    margin-right: -13.5px;
  }

  .post-strip-item.is-active {
    width: 200px;
    margin-left: -30px;
    margin-right: -30px;
  }

  .post-strip-item.is-before-active {
    transform: translate3d(-30px, 0, 0);
  }

  .post-strip-item.is-after-active {
    transform: translate3d(30px, 0, 0);
  }

  .post-strip-item img {
    opacity: 0.16;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .post-strip-item.is-sibling img {
    opacity: 0.48;
  }

  .post-strip-item.is-active img {
    opacity: 1;
  }

  .post-label {
    position: fixed !important;
    left: calc(50% + 170px) !important;
    top: 50svh !important;
    transform: translateY(-50%) !important;
    max-width: 340px !important;
  }
}

body.intro-active .post-label,
body.intro-active .post-year-display,
body.intro-active .post-code-display {
  opacity: 0;
  transform: translateY(22px) scale(0.94);
  filter: blur(6px);
}

.post-label,
.post-year-display,
.post-code-display {
  will-change: opacity, transform, filter;
}

@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  .about-link,
  .site-timer-wrap,
  .post-page-timer,
  .post-bottom-nav,
  .post-bottom-logo {
    bottom: var(--space-1) !important;
  }

  .about-link,
  .site-timer-wrap {
    line-height: 1.2;
    align-items: baseline;
  }
}

@media (hover: none) and (pointer: coarse) and (min-width: 1025px) {
  .site-timer-wrap {
    bottom: var(--space-1) !important;
  }
}

/* Intro text position locks */
.intro-poem-1 {
  position: fixed !important;
  left: var(--page-pad) !important;
  top: var(--space-1) !important;
  right: auto !important;
  bottom: auto !important;
  transform-origin: left top !important;
}

.intro-poem-2 {
  position: fixed !important;
  right: var(--page-pad) !important;
  bottom: calc(var(--space-1) + env(safe-area-inset-bottom)) !important;
  left: auto !important;
  top: auto !important;
  transform-origin: right bottom !important;
  text-align: right;
}

.intro-final-left {
  position: fixed !important;
  left: var(--page-pad) !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translateY(-50%);
  transform-origin: left center !important;
}

.intro-final-right {
  position: fixed !important;
  right: var(--page-pad) !important;
  top: 50% !important;
  left: auto !important;
  bottom: auto !important;
  transform: translateY(-50%);
  transform-origin: right center !important;
  text-align: right;
}

@media (hover: none) and (pointer: coarse) and (min-width: 768px) and (orientation: landscape) {
  .posts {
    width: 360px;
  }

  .posts-scroll {
    width: 360px;
    transform: none;
  }

  .posts-list {
    width: 280px;
    align-items: flex-end;
    margin-left: 0;
    margin-right: auto;
  }

  .post-item {
    width: 140px;
    height: 140px;
    transform: none !important;
    transform-origin: right center;
    transition: width 1s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.5s ease;
  }

  .post-item.is-active,
  .post-item.is-match {
    width: 280px;
    height: 140px;
    transform: none !important;
    z-index: 3;
  }

  .post-item.is-sibling,
  .post-item.is-prev,
  .post-item.is-next {
    width: 220px;
    height: 140px;
    transform: none !important;
    z-index: 2;
  }

  .post-item .post-thumb {
    width: 100%;
    height: 100%;
    overflow: hidden;
    transform: none !important;
    transform-origin: right center;
  }

  .post-item .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .post-label {
    left: calc(50% + 170px) !important;
    max-width: 340px !important;
  }
}
@media (max-width: 430px) {
  .about-link,
  .site-timer-wrap,
  .post-page-timer,
  .post-bottom-nav,
  .post-bottom-logo {
    bottom: calc(var(--space-1) + env(safe-area-inset-bottom)) !important;
    font-size: 12px;
    line-height: 1.2;
  }
}

@media (max-width: 1024px) {
  body.about-page .desktop-footer-timer,
  body.post-page .desktop-footer-timer {
    display: none;
  }

  body:not(.about-page):not(.post-page) .about-link,
  body:not(.about-page):not(.post-page) .site-timer-wrap,
  body:not(.about-page):not(.post-page) .site-copyright,
  body.about-page .about-link,
  body.about-page .site-timer-wrap,
  body.about-page .site-copyright,
  body.post-page .post-bottom-nav a,
  body.post-page .post-page-timer,
  body.post-page .post-page-timer .site-copyright {
    font-size: 14px;
  }
}

/* Generuojamas fotografijų archyvas */
.photo-archive {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 30px;
  align-items: start;
}

.photo-archive-tags {
  grid-column: 1 / span 2;
}

.photo-archive-title {
  grid-column: 7 / span 3;
}

.photo-archive > .post-back {
  grid-column: 12 / span 1;
}

.photo-archive-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: clamp(80px, 10vw, 160px);
  align-items: start;
  margin-top: 56px;
}

.photo-archive-item {
  margin: 0;
  min-width: 0;
  scroll-margin-top: var(--space-1);
}

.photo-archive-item:nth-child(6n + 1) {
  grid-column: 1 / span 5;
}

.photo-archive-item:nth-child(6n + 2) {
  grid-column: 7 / span 6;
  margin-top: clamp(32px, 5vw, 80px);
}

.photo-archive-item:nth-child(6n + 3) {
  grid-column: 2 / span 4;
}

.photo-archive-item:nth-child(6n + 4) {
  grid-column: 8 / span 5;
  margin-top: clamp(48px, 7vw, 112px);
}

.photo-archive-item:nth-child(6n + 5) {
  grid-column: 1 / span 6;
}

.photo-archive-item:nth-child(6n) {
  grid-column: 8 / span 4;
  margin-top: clamp(24px, 4vw, 64px);
}

.photo-archive-item > picture,
.photo-archive-cover-link {
  display: block;
  width: 100%;
}

.photo-archive-item picture > img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-archive-cover-link {
  color: inherit;
}

.photo-archive-caption {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 16px;
  margin-top: 12px;
}

.photo-archive-heading {
  grid-column: 1 / span 3;
  display: flex;
  flex-direction: column;
}

.eiles-series-caption-textonly .photo-archive-heading {
  grid-column: 1 / -1;
}

.photo-archive-info {
  grid-column: 4 / span 3;
}

.photo-subcollection-archive .photo-archive-info {
  grid-column: 1 / span 3;
}

.photo-archive-related-link {
  grid-column: 1 / -1;
  margin-bottom: 12px;
}

.photo-archive-info .post-info-details {
  margin-top: 12px;
  gap: 0;
}

.photo-archive-collection-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  align-self: flex-start;
  margin-top: 12px;
  color: #b9b9b9;
  transform-origin: left center;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), letter-spacing 0.35s ease;
}

@media (hover: hover) {
  .photo-archive-collection-link:hover {
    opacity: 0.88;
    transform: translateX(2px);
    letter-spacing: 0.01em;
  }

  .photo-archive-collection-link:hover .photo-archive-collection-arrow {
    transform: translateX(2px);
  }
}

.photo-archive-collection-arrow {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.collection-scroll-top {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.78);
  color: #b9b9b9;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 10px, 0);
  transition:
    opacity 0.3s ease,
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.collection-scroll-top.is-visible {
  opacity: 0.82;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

@media (hover: hover) {
  .collection-scroll-top:hover {
    color: #fff;
    opacity: 1;
    transform: translate3d(0, -2px, 0);
  }
}

.collection-scroll-top:active {
  opacity: 0.5;
  transform: translate3d(0, 1px, 0) scale(0.96);
  transition-duration: 0.12s;
}

@media (max-width: 1024px) {
  .collection-scroll-top {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
  }
}

@media (hover: hover) and (pointer: fine) {
  .about-link-text,
  .post-bottom-link-text {
    transition:
      opacity 0.48s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.58s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .about-link:hover .about-link-text,
  .post-bottom-nav a:hover .post-bottom-link-text {
    animation: none;
    opacity: 0.78;
    transform: translate3d(3px, 0, 0);
  }
}

/* 404 */
.error-main {
  min-height: 100svh;
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 16px;
  padding: var(--page-pad);
}

.error-logo {
  grid-column: 1 / span 2;
  align-self: start;
}

.error-copy {
  grid-column: 4 / span 6;
  align-self: center;
}

.error-code {
  color: #4b4b4b;
  font-size: 14px;
  margin-bottom: 8px;
}

.error-title {
  color: #b9b9b9;
  font-size: clamp(38px, 6vw, 96px);
  font-weight: 400;
  line-height: 0.92;
}

.error-description {
  max-width: 36ch;
  margin-top: 18px;
  color: #4b4b4b;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .error-main {
    grid-template-columns: 1fr;
  }

  .error-logo,
  .error-copy {
    grid-column: 1;
  }

  .error-copy {
    padding: 0 var(--page-pad);
  }

  .error-title {
    font-size: clamp(52px, 16vw, 86px);
  }
}

.photo-archive-info-grid {
  display: grid;
  grid-template-columns: minmax(80px, 0.8fr) minmax(0, 1.2fr);
  column-gap: 12px;
  color: #7f7f7f;
}

.photo-archive-info-grid span:nth-child(even) {
  color: #b9b9b9;
}

.photo-archive > .post-bottom-strip {
  grid-column: 1 / -1;
  width: 100%;
}

@media (max-width: 1024px) {
  .photo-archive {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }

  .photo-archive-tags,
  .photo-archive-title,
  .photo-archive > .post-back,
  .photo-archive-list,
  .photo-archive > .post-body-text,
  .photo-archive > .post-bottom-strip {
    grid-column: 1 / -1;
  }

  .photo-archive-title {
    grid-row: 2;
    font-size: 1.875rem;
  }

  .photo-archive-tags,
  .photo-archive > .post-back {
    grid-row: 1;
  }

  .photo-archive-list {
    grid-row: 3;
    grid-template-columns: 1fr;
    column-gap: 0;
    gap: 80px;
    margin-top: 28px;
  }

  .photo-archive-item,
  .photo-archive-item:nth-child(n) {
    grid-column: 1;
    margin-top: 0;
  }

  .photo-archive > .post-body-text {
    grid-row: 4;
  }

  .photo-archive > .post-bottom-strip {
    grid-row: 5;
  }

  .photo-archive-with-text > .post-meta {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 0;
  }

  .photo-archive-with-text > .photo-archive-title {
    grid-row: 3;
  }

  .photo-archive-with-text > .photo-archive-list {
    grid-row: 4;
  }

  .photo-archive-with-text > .post-body-text {
    grid-row: 5;
  }

  .photo-archive-with-text > .post-bottom-strip {
    grid-row: 6;
  }

  .photo-archive-caption {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  .photo-archive-heading,
  .photo-archive-info {
    grid-column: 1;
  }

  .photo-archive-heading {
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
  }

  .photo-archive-caption.has-related-link {
    position: relative;
  }

  .photo-archive-caption.has-related-link .photo-archive-heading {
    padding-right: min(47vw, 190px);
  }

  .photo-archive-caption.has-related-link .photo-archive-related-link {
    display: contents;
  }

  .photo-archive-caption.has-related-link .photo-archive-read-link {
    position: absolute;
    top: 0;
    right: 0;
    margin-top: 0;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .photo-archive-caption.has-related-link .photo-archive-read-link:active {
    opacity: 0.62;
    transform: translateX(3px) scale(0.985);
    transition-duration: 0.12s;
  }

  .photo-archive-caption.has-related-link .photo-archive-read-link:active .photo-archive-collection-arrow {
    transform: translateX(3px);
    transition-duration: 0.12s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-entry-curtain,
  .page-navigation-curtain {
    display: none !important;
  }

  body.page-entry #a-main,
  html.page-transition-arrival body:not(.about-page):not(.post-page) #a-main,
  html.page-transition-arrival body:not(.about-page):not(.post-page) .about-link,
  html.page-transition-arrival body:not(.about-page):not(.post-page) .site-timer-wrap {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  #a-main::before,
  #intro-loader::before {
    animation: none !important;
  }
}
