/* ==========================================================
   WORK PAGE — sidebar + scrollable project list
   ========================================================== */

/* Allow position:sticky to work — overflow-x:hidden on ancestors breaks it.
   Clip instead of hide-scroll so horizontal overflow is still contained. */
html, body.ibe-about-body {
  overflow-x: clip;
}

.ibe-work {
  background: #FAF5EE;
  padding: 3.5rem 3rem 6rem;
}
.ibe-work__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem;
  align-items: start;
}

/* ===== Sticky sidebar ===== */
.ibe-work__side {
  position: sticky;
  top: 140px;
  align-self: start;
}
.ibe-work__title {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 400;
  font-size: 2.5rem;
  color: #434142;
  margin: 0 0 2rem 0;
  letter-spacing: 0;
}
.ibe-work__filters {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.ibe-work__filters li + li {
  border-top: 1px solid rgba(26, 26, 26, 0.15);
}
.ibe-work__filters a {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-size: 1.25rem;
  color: #434142;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s ease, color 0.3s ease;
  display: block;
  padding: 0.95rem 0;
}
.ibe-work__filters a:hover { opacity: 1; }
.ibe-work__filters a.is-active {
  color: #FF4749;
  opacity: 1;
}

/* ===== Project list ===== */
.ibe-work__list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.ibe-proj {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 768 / 479;
  overflow: hidden;
  text-decoration: none;
  color: #FFFAF6;
  background: #111;
}
.ibe-proj__image {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.9s var(--ibe-transition);
}
.ibe-proj:hover .ibe-proj__image { transform: scale(1.03); }
.ibe-proj__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0) 70%);
}
.ibe-proj__meta { max-width: 70%; }
.ibe-proj__name {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0;
  color: #FFFAF6;
}
.ibe-proj__loc {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 400;
  font-size: 0.82rem;
  color: #FFFAF6;
  margin-top: 3px;
}
.ibe-proj__link {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: #FFFAF6;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.9;
  transition: gap 0.35s var(--ibe-transition), opacity 0.3s ease;
}
.ibe-proj:hover .ibe-proj__link { gap: 0.9rem; opacity: 1; }

/* filtering */
.ibe-proj.is-hidden { display: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .ibe-work { padding: 2rem 1.25rem 3rem; }
  .ibe-work__inner { grid-template-columns: 1fr; gap: 2rem; }
  .ibe-work__side { position: static;     min-width: 0;}
  .ibe-work__title { margin-bottom: 1rem; font-size: 1.4rem; text-align: center; padding-top: 100px; }
  .ibe-work__filters {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ibe-work__filters::-webkit-scrollbar { display: none; }
  .ibe-work__filters li { flex: 0 0 auto; }
  .ibe-work__filters li + li { border-top: 0; }
  .ibe-work__filters a { padding: 0; white-space: nowrap; }
  .ibe-proj { width: 100%; max-width: 355px; height: auto; aspect-ratio: 355 / 424;}
  .ibe-proj__overlay { padding: 1rem; }
}


