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

body {
    background: #000;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

#slideshow-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#slideshow-img {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: opacity 0.4s ease-in-out;
}

#slideshow-img.fade-out {
    opacity: 0;
}

#slideshow-img.fade-in {
    opacity: 1;
}

#back-btn {
    position: fixed;
    top: 16px;
    left: 20px;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    font-family: sans-serif;
    z-index: 10;
    transition: background 0.2s;
}

#back-btn:hover {
    background: rgba(0, 0, 0, 0.85);
}

#slide-counter {
    position: fixed;
    top: 16px;
    right: 20px;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 15px;
    font-family: sans-serif;
    z-index: 10;
}

#controls {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

#controls a {
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 18px;
    font-family: sans-serif;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

#controls a:hover {
    background: rgba(0, 0, 0, 0.85);
}
