#bdp-projects,
#bdp-projects * ,
#bdp-projects *::before,
#bdp-projects *::after {
  box-sizing: border-box;
}

#bdp-projects {
  font-family: Geometria, Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif;
  color: #111827;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  position: relative;
}

#bdp-projects article,
#bdp-projects section,
#bdp-projects header,
#bdp-projects main,
#bdp-projects div {
  margin: 0;
}

#bdp-projects h2,
#bdp-projects h3,
#bdp-projects p {
  margin: 0;
  font-family: inherit;
}

#bdp-projects img {
  max-width: 100%;
  height: auto;
  display: block;
}

#bdp-projects .bdp-main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 48px 16px;
  position: relative;
  z-index: 2;
}

#bdp-projects .bdp-backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 450ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

#bdp-projects.has-open .bdp-backdrop {
  opacity: 1;
  pointer-events: auto;
}

#bdp-projects .bdp-section {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

#bdp-projects.has-open .bdp-section {
  gap: 56px;
}

#bdp-projects.has-open .bdp-main {
  padding-left: 12px;
  padding-right: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#bdp-projects .bdp-empty {
  margin: 0;
  color: rgba(17, 24, 39, 0.60);
  font-size: 14px;
}

#bdp-projects article.group.bdp-article {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr minmax(0, 560px) 1fr;
  gap: 40px;
  align-items: start;
  cursor: pointer;
  outline: none;
  padding: 0 4px;
  transform-origin: center center;
  will-change: transform, opacity;
}

#bdp-projects article.group.bdp-article:focus-visible {
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.45);
}

#bdp-projects article.group.bdp-article:not(.open) .bdp-left {
  grid-column: 1;
}

#bdp-projects article.group.bdp-article:not(.open) .bdp-viewport {
  grid-column: 2;
  max-width: 560px;
  width: 100%;
  height: 320px;
}

#bdp-projects article.group.bdp-article.open {
  grid-template-columns: 170px 1200px 240px;
  gap: 16px;
  align-items: stretch;
}

#bdp-projects article.group.bdp-article.open .bdp-viewport {
  grid-column: 2;
  max-width: none;
}

#bdp-projects .bdp-left {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  height: 100%;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

#bdp-projects article.group.bdp-article.open .bdp-left {
  grid-column: 1;
}

#bdp-projects article.group.bdp-article.open .bdp-right {
  grid-column: 3;
}

#bdp-projects article.group.bdp-article.open .bdp-left::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 28px;
  background: #ef4444;
  opacity: 0.95;
  pointer-events: none;
}

#bdp-projects .bdp-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: #ffffff;
  font-weight: 700;
  width: 56px;
  height: 56px;
  font-size: 20px;
  user-select: none;
}

#bdp-projects .bdp-title {
  margin: 16px 0 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(17, 24, 39, 0.92);
  transition: color 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

#bdp-projects article.group.bdp-article:hover .bdp-title {
  color: #ef4444;
}

#bdp-projects .bdp-location {
  margin: 6px 0 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(17, 24, 39, 0.38);
  font-weight: 600;
}

#bdp-projects .bdp-meta {
  margin-top: 32px;
  display: none;
  width: 100%;
  gap: 16px;
  flex-direction: column;
  align-items: flex-end;
}

#bdp-projects article.group.bdp-article.open .bdp-meta {
  display: flex;
  margin-top: auto;
  padding-top: 32px;
}

#bdp-projects article.group.bdp-article.open .bdp-left,
#bdp-projects article.group.bdp-article.open .bdp-right {
  width: auto;
  max-width: none;
}

#bdp-projects .bdp-meta h3 {
  color: rgba(17, 24, 39, 0.48);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.14em;
  margin: 0;
  font-weight: 600;
}

#bdp-projects .bdp-meta .val {
  color: #ef4444;
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
}

#bdp-projects .bdp-meta .year-val {
  color: #ef4444;
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 12px;
}

#bdp-projects .bdp-viewport {
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
}

#bdp-projects article.group.bdp-article.open .bdp-viewport img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

#bdp-projects .bdp-track {
  display: flex;
  height: 100%;
  transform: translateX(0px);
}

#bdp-projects .bdp-slide {
  width: 100%;
  flex: 0 0 100%;
  height: 100%;
}

#bdp-projects .bdp-page {
  width: 100%;
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  height: 100%;
}

#bdp-projects article.group.bdp-article.open .bdp-page {
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}

#bdp-projects .bdp-textslide-inner {
  height: 100%;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

#bdp-projects .bdp-textslide-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 200px;
  gap: 16px;
  align-items: center;
}

#bdp-projects .bdp-textslide-spacer {
  width: 140px;
}

#bdp-projects .bdp-textslide-spacer--right {
  width: 200px;
}

#bdp-projects .bdp-textslide-content {
  font-size: 12px;
  line-height: 1.65;
  color: rgba(17, 24, 39, 0.70);
  max-width: 420px;
  max-height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

#bdp-projects .bdp-textslide-content p {
  margin: 0 0 6px;
}

#bdp-projects .bdp-textslide-content p:last-child {
  margin-bottom: 0;
}

#bdp-projects .bdp-media {
  position: relative;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
}

#bdp-projects article.group.bdp-article.open .bdp-media {
  box-shadow: none;
}

#bdp-projects .bdp-media-inner {
  height: 100%;
}

#bdp-projects .bdp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1), filter 900ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

#bdp-projects article.group.bdp-article:hover .bdp-img {
  transform: scale(1.04);
  filter: brightness(1.04) saturate(1.08);
}

@media (hover: none) {
  #bdp-projects article.group.bdp-article:hover .bdp-img {
    transform: none;
    filter: none;
  }

  #bdp-projects article.group.bdp-article.open .js-nav-btn {
    opacity: 1;
  }
}

#bdp-projects .bdp-img--empty {
  width: 100%;
  height: 100%;
  background: rgba(17, 24, 39, 0.04);
  border: 1px dashed rgba(17, 24, 39, 0.16);
}

#bdp-projects .bdp-right {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 650ms cubic-bezier(0.16, 1, 0.3, 1), transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 12px;
  line-height: 1.65;
  color: rgba(17, 24, 39, 0.70);
  max-height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 6px;
}

#bdp-projects article.group.bdp-article.open .bdp-right {
  display: block;
  opacity: 1;
  transform: translateY(0px);
  align-self: start;
  max-height: 800px;
}

#bdp-projects .bdp-right p {
  margin: 0 0 6px;
}

#bdp-projects .bdp-right p:last-child {
  margin-bottom: 0;
}

#bdp-projects .bdp-right h1,
#bdp-projects .bdp-right h2,
#bdp-projects .bdp-right h3,
#bdp-projects .bdp-right h4,
#bdp-projects .bdp-right h5,
#bdp-projects .bdp-right h6 {
  margin: 0 0 6px;
}

#bdp-projects .bdp-right ul,
#bdp-projects .bdp-right ol {
  margin: 0 0 6px;
  padding-left: 16px;
}

#bdp-projects .bdp-right li {
  margin: 0 0 4px;
}

#bdp-projects .js-parallax {
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}

#bdp-projects .js-parallax-inner {
  transform: scale(var(--ps, 1));
  will-change: transform;
  transition: transform 950ms cubic-bezier(0.16, 1, 0.3, 1);
}

#bdp-projects .js-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(17, 24, 39, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 420ms cubic-bezier(0.16, 1, 0.3, 1), transform 420ms cubic-bezier(0.16, 1, 0.3, 1), background 420ms cubic-bezier(0.16, 1, 0.3, 1), color 420ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 50;
  color: #111827;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#bdp-projects article.group.bdp-article.open .bdp-viewport:hover .js-nav-btn {
  opacity: 1;
}

#bdp-projects .js-nav-btn:hover {
  background: #ffffff;
  color: #ef4444;
  transform: translateY(-50%) scale(1.05);
}

#bdp-projects .js-nav-btn:active {
  transform: translateY(-50%) scale(0.92);
  background: #ef4444;
  color: #ffffff;
}

#bdp-projects .js-nav-btn.prev {
  left: 20px;
}

#bdp-projects .js-nav-btn.next {
  right: 20px;
}

#bdp-projects .js-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(17, 24, 39, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 420ms cubic-bezier(0.16, 1, 0.3, 1), transform 420ms cubic-bezier(0.16, 1, 0.3, 1), background 420ms cubic-bezier(0.16, 1, 0.3, 1), color 420ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 60;
  color: #111827;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#bdp-projects .js-close-btn svg {
  width: 20px;
  height: 20px;
}

#bdp-projects article.group.bdp-article.open .js-close-btn {
  opacity: 1;
  transform: scale(1);
}

#bdp-projects .js-close-btn:hover {
  background: #ffffff;
  color: #ef4444;
}

#bdp-projects .js-close-btn:active {
  transform: scale(0.92);
  background: #ef4444;
  color: #ffffff;
}

@media (max-width: 1024px) {
  #bdp-projects .bdp-main {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 420px) {
  #bdp-projects article.group.bdp-article:not(.open) {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #bdp-projects article.group.bdp-article:not(.open) .bdp-left {
    grid-column: 1;
  }

  #bdp-projects article.group.bdp-article:not(.open) .bdp-viewport {
    grid-column: 1;
  }

  #bdp-projects article.group.bdp-article:not(.open) .bdp-meta {
    display: none;
  }
}

@media (max-width: 720px) {
  #bdp-projects article.group.bdp-article:not(.open) {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  #bdp-projects article.group.bdp-article.open {
    grid-template-columns: 170px 1200px 240px;
    gap: 16px;
  }

  #bdp-projects article.group.bdp-article.open .bdp-viewport {
    grid-column: 2;
  }

  #bdp-projects article.group.bdp-article:not(.open) .bdp-viewport {
    grid-column: 2;
    max-width: none;
  }

  #bdp-projects article.group.bdp-article.open .bdp-page {
    grid-template-columns: 1fr;
    align-items: stretch;
    position: relative;
  }

  #bdp-projects .bdp-textslide-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  #bdp-projects .bdp-textslide-inner {
    align-items: stretch;
  }

  #bdp-projects .bdp-textslide-content {
    max-height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 14px 18px;
  }

  #bdp-projects .bdp-textslide-spacer,
  #bdp-projects .bdp-textslide-spacer--right {
    display: none;
  }

  #bdp-projects article.group.bdp-article.open .bdp-left {
    align-items: flex-end;
    text-align: right;
    height: 100%;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: auto;
    max-width: none;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    border: 0;
    box-shadow: none;
  }

  #bdp-projects article.group.bdp-article.open .bdp-left::after {
    right: auto;
    left: 0;
  }

  #bdp-projects article.group.bdp-article.open .bdp-meta {
    margin-top: 18px;
    padding-top: 0;
    align-items: flex-end;
  }

  #bdp-projects article.group.bdp-article.open .bdp-right {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    max-height: 100%;
    padding: 0;
    padding-right: 6px;
    background: transparent;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #bdp-projects .js-parallax-inner,
  #bdp-projects .bdp-img,
  #bdp-projects article.group.bdp-article,
  #bdp-projects .bdp-right,
  #bdp-projects .js-nav-btn {
    transition: none !important;
  }
}
