* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    flex-direction: column;
    gap: 20px;
}

.container {
    position: relative;
    display: inline-block;
}

.before {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
}

.after-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 83%;
    height: 100%;
    overflow: hidden;
}

.after {
    position: absolute;
    top: 0;
    left: 0;

    display: block;
    height: 100%;
    width: auto;
    max-width: none;
}

.slider {
    position: absolute;
    top: 0;
    left: 83%;
    width: 4px;
    height: 100%;
    background: white;
    transform: translateX(-50%);
    cursor: ew-resize;
    touch-action: none;
}
* {
    user-select: none;
}

img {
    pointer-events: none;
}.handle {
    position: absolute;
    top: 93%;
    left: 50%;
    width: 42px;
    height: 42px;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 50%;
    border: 2px solid #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.35);

    display: flex;
    justify-content: center;
    align-items: center;
}

.handle::before {
    content: "↔";
    font-size: 28px;
    font-weight: bold;
    color: #333;
    position: relative;
    top: -2px;
}.gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.nav-button {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);
    color: white;

    font-size: 22px;
    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;

    transition: transform 0.2s, background 0.2s;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
}

.nav-button:active {
    transform: scale(0.95);
}.container {
    transition: opacity 0.1s ease;
}

.container.fade-out {
    opacity: 0;
}
.project-info {
    text-align: center;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 13px;
}
.project-info a:hover {
    color: white;
}
.project-info a,
.project-info a:visited {
    color: #aaa;
    text-decoration: none;
}

.project-info a:hover {
    color: white;
}