/* Screenshots */
.screenshot-container {
    position: relative;
    max-width: 1200px;
    margin: 2rem auto 0 auto;
    padding: 0 4rem;
}

.screenshot-gallery {
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    width: 100%;
    height: 630px;
}

.slide {
    flex: 0 0 auto;
    width: 300px;
    padding: 0 12px;
    cursor: grab;
    user-select: none;
}

.slide:active {
    cursor: grabbing;
}

.screenshot-track {
    display: flex;
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.screenshot-track.grabbing {
    cursor: grabbing;
    transition: none;
}

.screenshot-track img {
    flex: 0 0 auto;
    width: 242px;
    margin-top: 40px;
    height: 520px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    aspect-ratio: 9/16;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    pointer-events: none;
    transform: scale(0.95); /* Slightly smaller by default */
    opacity: 0.8; /* Slightly transparent by default */
}

.screenshot-track img.active {
    transform: scale(1.15); /* Slightly larger when active */
    opacity: 1; /* Fully opaque when active */
    z-index: 1; /* Ensure active image is above others */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Add shadow for depth */
    border-color: rgba(255, 77, 77, 0.5); /* Highlight border */
}

.screenshot-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 2rem;
}

.screenshot-nav {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.screenshot-nav:hover {
    background: rgba(255, 77, 77, 0.7);
    transform: scale(1.1);
}

.screenshot-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.screenshot-nav:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
}

.slideshow-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slideshow-btn:hover {
    background: rgba(255, 77, 77, 0.7);
    transform: scale(1.1);
}

.slideshow-btn i {
    color: white;
}

.screenshot-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.screenshot-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.screenshot-dot.active {
    background: #ff4d4d;
    transform: scale(1.2);
}

.screenshot-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin-bottom: 0.5rem; */
    /* height: 2.5rem; */
}

.screenshot-header h2 {
    margin: 0;
    text-align: center;
}