* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: Arial, Helvetica, sans-serif;
    background-image: url("images/blackieshoot-Y3qFrmCGGCw-unsplash.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    gap: 20px;
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

#slideshow {
    position: relative;
    width: 80%;
    width: 1600px;
    height: 600px;
    overflow: hidden;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffffffaa;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: background-color 0.3s;

    &:hover {
        background-color: #ffffffdd;
    }

    &.prev {
        left: 10px;
    }

    &.next {
        right: 10px;
    }
}

.image-wrapper {
    position: absolute;
    width: 50%;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px;
    width: 800px;

    &.prev2 {
        left: -12%;
        transform: scale(0.5);
        opacity: 0.5;
        z-index: 0;
    }

    &.prev1 {
        left: 0;
        transform: scale(0.7);
        opacity: 0.7;
        z-index: 1;
    }

    &.current {
        left: 25%;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        z-index: 2;
    }

    &.next1 {
        right: 0;
        transform: scale(0.7);
        opacity: 0.7;
        z-index: 1;
    }

    &.next2 {
        right: -12%;
        transform: scale(0.5);
        opacity: 0.5;
        z-index: 0;
    }

    .slideshow-image {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        /* Disable selection and drag */
        user-select: none;
        pointer-events: none;
    }

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: var(--bg-image);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        filter: blur(20px);
        mask: radial-gradient(circle at center, black);
        z-index: -1;
        border-radius: 8px;
        overflow: hidden;
    }
}

.slideshow-caption {
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 0 0 8px 8px;
    font-size: 1.5rem;
    /* Disable text selection */
    user-select: none;
    z-index: 3;
}