.before-after{
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
}

.ba-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
}

.ba-after{
  position: absolute;
  inset: 0;
}

.ba-before-wrap{
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
}

.ba-before{
  position: absolute;
  inset: 0;
}

.ba-divider{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-1px);
}

.ba-divider::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.9);
}

.ba-handle{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.ba-handle::before,
.ba-handle::after{
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border: solid rgba(0,0,0,.55);
  border-width: 0 2px 2px 0;
  transform: translateY(-50%) rotate(135deg);
}

.ba-handle::before{
  left: 14px;
}

.ba-handle::after{
  right: 14px;
  transform: translateY(-50%) rotate(-45deg);
}

.ba-label{
  position: absolute;
  top: 14px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: #fff;
  backdrop-filter: blur(4px);
}

.ba-label-before{ left: 14px; }
.ba-label-after{ right: 14px; }

/* next page */

.post-project-nav{
    margin-top: 40px;
}

.project-nav-inner{
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.project-nav-link{
    flex: 1;
    padding: 18px 22px;
    border-radius: 12px;
    background: #f7f7f7;
    text-decoration: none;
    transition: all .3s ease;
}

.project-nav-link:hover{
    background: #111;
    color: #fff;
}

.project-nav-label{
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .7;
    margin-bottom: 6px;
}

.project-nav-title{
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--secondary-color	);
}

/* Alignments */
.prev-project{
    text-align: left;
}

.next-project{
    text-align: right;
}

