@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700;900&display=swap');


:root{
  --w-ink:      #111;
  --w-ink-soft: #6b6b6b;
  --w-line:     rgba(17,17,17,.12);
  --w-paper:    #fff;
  --font-heavy: 'Inter', 'Helvetica Now Display', Arial, sans-serif; 
  --font-light: 'Inter', 'Helvetica Neue', Arial, sans-serif;       
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body.work-page{
  margin: 0;
  background: var(--w-paper);
  color: var(--w-ink);
  font-family: var(--font-light);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}


.w-top{
  display:grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding: 7.5rem clamp(1.2rem, 4vw, 3rem) 0;
}

.w-intro{ display:flex; flex-direction: column; min-height: 60vh; }

.w-desc{
  max-width: 420px;
  margin: 2.5rem 0 0 clamp(0px, 12vw, 220px);
  font-size: .95rem;
  line-height: 1.7;
  color: var(--w-ink-soft);
  font-weight: 300;
  transition: opacity .25s ease;
}

.w-heading-block{ margin-top: auto; padding-top: 3rem; }
.w-counter{
  font-family: var(--font-light);
  font-size: .85rem;
  letter-spacing: .08em;
  color: var(--w-ink-soft);
  margin: 0 0 .8rem;
}
.w-title{
  font-family: var(--font-heavy);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.01em;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: .96;
  margin: 0;
  max-width: 14ch;
  transition: opacity .2s ease;
}

.w-hero-wrap{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.6;
  max-height: 64vh;
  overflow: hidden;
  background: #eee;
}
.w-hero-wrap img{
  width:100%; height:100%;
  object-fit: cover;
  display:block;
  transition: opacity .25s ease;
}
.w-hero-tag{
  position:absolute;
  left: 0; right:0; bottom:0;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  padding: 1rem 1.1rem;
  font-family: var(--font-light);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  pointer-events:none;
}
.w-hero-tag span{
  background: rgba(0,0,0,.55);
  padding: .25rem .5rem;
  max-width: 55%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}


.w-gallery-btn{
  position:absolute;
  right: 1rem; top: 1rem;
  width: 42px; height: 42px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.92);
  border: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.w-gallery-btn:hover{ transform: scale(1.08); background: #fff; }
.w-gallery-btn svg{ width: 18px; height: 18px; }


.w-strip-wrap{
  margin-top: clamp(1.5rem, 3vw, 2.4rem);
  border-top: 1px solid var(--w-line);
}
.w-strip{
  display:flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.w-strip.is-dragging{ cursor: grabbing; scroll-behavior: auto; }
.w-strip::-webkit-scrollbar{ display:none; }

.w-strip-item{
  flex: 0 0 clamp(90px, 8vw, 140px);
  border-right: 1px solid var(--w-line);
  padding: .7rem .7rem 0;
  cursor: pointer;
  background: none;
  -webkit-user-drag: none;
}
.w-strip-index{
  display:block;
  font-family: var(--font-light);
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--w-ink-soft);
  margin-bottom: .5rem;
  transition: color .2s ease;
}
.w-strip-item.is-active .w-strip-index{ color: var(--w-ink); font-weight: 500; }
.w-strip-thumb{
  width:100%;
  aspect-ratio: 3 / 3.4;
  overflow:hidden;
  background:#eee;
}
.w-strip-thumb img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
  filter: grayscale(100%);
  opacity: .55;
  transition: opacity .25s ease, filter .25s ease, transform .4s ease;
}
.w-strip-item:hover .w-strip-thumb img,
.w-strip-item.is-active .w-strip-thumb img{
  opacity: 1;
  filter: grayscale(0%);
}
.w-strip-item:hover .w-strip-thumb img{ transform: scale(1.03); }


.w-lightbox{
  position: fixed; inset: 0;
  z-index: 500;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  background: rgba(10,10,10,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  padding: 2rem clamp(1rem, 5vw, 4rem);
}
.w-lightbox.is-open{ opacity: 1; pointer-events: auto; }

.w-lightbox-close{
  position: absolute;
  top: 1.4rem; right: clamp(1rem, 4vw, 2.6rem);
  width: 42px; height: 42px;
  border: none;
  background: rgba(255,255,255,.1);
  color: #fff;
  cursor: pointer;
  display:flex; align-items:center; justify-content:center;
  transition: background .2s ease;
}
.w-lightbox-close:hover{ background: rgba(255,255,255,.22); }
.w-lightbox-close svg{ width:20px; height:20px; }

.w-lightbox-stage{
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 1100px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 1rem;
}
.w-lightbox-stage img{
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
  box-shadow: 0 30px 60px rgba(0,0,0,.4);
}
.w-lightbox-arrow{
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.w-lightbox-arrow:hover{ background: rgba(255,255,255,.18); transform: scale(1.06); }

.w-lightbox-counter{
  color: rgba(255,255,255,.7);
  font-family: var(--font-light);
  font-size: .78rem;
  letter-spacing: .08em;
  margin: 1rem 0 .8rem;
}

.w-lightbox-thumbs{
  display:flex;
  gap: .5rem;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: .3rem;
  scrollbar-width: thin;
}
.w-lightbox-thumbs button{
  flex: 0 0 auto;
  width: 58px; height: 72px;
  padding:0;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
  opacity: .5;
  transition: opacity .2s ease, border-color .2s ease;
}
.w-lightbox-thumbs button.is-active{ opacity: 1; border-color: #fff; }
.w-lightbox-thumbs img{ width:100%; height:100%; object-fit:cover; display:block; }

@media (max-width: 860px){
  .w-top{ grid-template-columns: 1fr; padding-top: 6.5rem; }
  .w-intro{ min-height: 0; }
  .w-desc{ margin-left: 0; }
  .w-heading-block{ margin-top: 0; padding-top: 2rem; }
  .w-hero-wrap{ aspect-ratio: 4/5; }
  .w-lightbox-stage{ flex-direction: column; }
  .w-lightbox-arrow{ position: absolute; top: 50%; transform: translateY(-50%); }
  .w-lightbox-arrow.w-prev{ left: 0; }
  .w-lightbox-arrow.w-next{ right: 0; }
}

