.project-page {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.project-text-wrap {
  position: fixed;
  left: var(--page-pad);
  bottom: 36px;
  width: var(--text-width);
  max-height: 72vh;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.project-text-wrap::-webkit-scrollbar,
.project-gallery::-webkit-scrollbar {
  display: none;
}

.project-text {
  max-width: 100%;
}

.project-header {
  margin-bottom: 75px;
}

.project-title {
  margin: 0 0 14px 0;
  font-size: 36px;
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.90);
}

.project-rule {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  width: 305px;
  margin: 0 0 8px 0;
}

.project-meta {
  margin: 0;
  font-size:  14px;

  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
}

.project-body {
  column-count: 2;
  column-gap: 35px;
}

.project-body p {
  margin: 0 0 24px 0;
  font-size: 15.5px;
  line-height: 1.5;
  font-weight: 300;
  letter-spacing: 0.0em;
  color: rgba(255, 255, 255, 0.89);
}

.project-gallery {
  display: flex;
  flex-direction: column; /* desktop */
  margin-left: calc(var(--page-pad) + var(--text-width) + var(--gutter));
  width: calc(100vw - (var(--page-pad) + var(--text-width) + var(--gutter) + var(--page-pad)));
  height: 100vh;
  padding-top: 115px;
  padding-bottom: 35px;
  gap: 30px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  cursor: none;
}

.project-gallery img {
  width: 100%;
  border-radius: 20px;
  gap: 10px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: none;
}

.project-gallery img.is-source-hidden {
  opacity: 0;
}

.custom-cursor {
  position: fixed;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--accent);
  border: 0 solid transparent;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
  z-index: 9999;
  display: none;
  opacity: 1;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease,
    background-color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.custom-cursor.clicked {
  transform: translate(-50%, -50%) scale(2.2);
  opacity: 0.7;
}

.custom-cursor.lightbox-mode {
  background-color: transparent;
  border: 3px solid var(--accent);
  transform: translate(-50%, -50%) scale(1.45);
  opacity: 1;
}

.custom-cursor.lightbox-mode.clicked {
  transform: translate(-50%, -50%) scale(1.95);
  opacity: 0.9;
}

.nav-left,
.nav-right {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background:  hsla(46, 50%, 17%, 0.3);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 5000;
  cursor: none;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.lightbox-image {
  max-width: min(92vw, 1680px);
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 38px;
  box-shadow: 0 10px 20px rgba(46, 34, 0, 0.11), 0 15px 30px rgba(43, 30, 4, 0.14);
  transform: scale(0.94);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  cursor: none;
}

.lightbox.is-open .lightbox-image {
  transform: scale(1);
  opacity: 1;
}
.project-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
 
  border-radius: 20px;
  overflow: hidden;
  box-sizing: border-box;
  flex: 0 0 auto;
}
.swipe-arrow {
  display: none;
}
.project-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 20px;
}
.photographer-link {
  
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.photographer-link:hover {
  text-decoration: underline;
 
  color: var(--accent);
}

@media screen and (max-width: 1100px) and (min-width: 769px) {
  .project-text-wrap {
    left: 36px;
    bottom: 28px;
    width: min(500px, 42vw);
    max-height: 58vh;
  }

  .project-header {
    margin-bottom: 24px;
  }

  .project-title {
    font-size: 30px;
    margin-bottom: 14px;
  }

  .project-body {
    column-count: 1;
    column-gap: 0;
  }
.swipe-arrow {
  display: none;
}
  .project-gallery {
    margin-left: calc(36px + min(500px, 42vw) + 28px);
    width: calc(100vw - (36px + min(500px, 42vw) + 64px));
    padding-top: 104px;
    padding-bottom: 28px;
  }

  .project-gallery img {
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .project-page {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .project-gallery {
    order: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;

    margin: 0px;
    width: 100%;
    height: auto;

    padding:105px 20px 14px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;

    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: default;
  }

  .project-gallery::-webkit-scrollbar {
    display: none;
  }

  .project-gallery img {
  flex: 0 0 auto !important;

  width: auto !important;
  height: 52vh !important;

  max-width: none !important;
  max-height: 52vh !important;

  object-fit: contain !important;
  object-position: center !important;

  display: block;
  scroll-snap-align: center;
  border-radius: 18px;
  padding: 0;
}

  .project-text-wrap {
    order: 2;
    position: static;
    width: 100%;
    max-height: none;
    overflow: visible;
    padding: 0px 26px 28px 26px;
  }

  .project-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}

 .project-title {
  order: 2;
  font-size: 51px;
  line-height: 1.02;
   margin: 0 0 40px 0;
   opacity: 0.92;
   
}

  .project-rule {
    width: 0;
    margin: 0 0px 0px 0;
  }

  .project-meta {
  order: 1;
  font-size: 14.5px;
  line-height: 2.17;
  letter-spacing: 0.06em;
  margin-top: 0px;
   opacity: 0.92;
  margin-bottom: 30px;
}


  .project-body {
    column-count: 1;
    column-gap: 0;
  }

  .project-body p {
    font-size: 22px;
    line-height: 1.7;
    margin-bottom: 35px;
    opacity: 0.87;
  }

  .nav-left,
  .nav-right,
  .custom-cursor,
  #lightbox {
    display: none !important;
  }

  .lightbox {
    padding: 20px;
  }

  .lightbox-image {
    max-width: 94vw;
    max-height: 88vh;
    border-radius: 12px;
  }
 .swipe-arrow {
  display: flex !important;
  position: absolute;
  right: 12vw;
  top: 52vh;
  z-index: 999;
  opacity: 0.85;
  pointer-events: none;
  animation: swipeArrowFloat 1.8s ease-in-out infinite;
  transition: opacity 0.4s ease;
}

.swipe-arrow svg {
  width: 92px;
  height: auto;
  display: block;
  overflow: visible;
  transform: rotate(-90deg);
}

.swipe-arrow path {
  fill: none !important;
  stroke: rgba(255,255,255,0.9);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.swipe-arrow.is-hidden {
  opacity: 0;
}

@keyframes swipeArrowFloat {
  0%, 100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(9px);
  }
    }
      }