/* Gallery-specific styling for the screenshot carousel */
.gallery-hero {
    margin-top: 32px;
    padding: 42px 36px;
    border-radius: 32px;
    background: rgba(7, 16, 28, 0.94);
    border: 1px solid rgba(94, 231, 208, 0.14);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.24);
}

.gallery-hero h1 {
    margin: 0;
    font-size: clamp(2.6rem, 4.5vw, 4.2rem);
    line-height: 1.02;
}

.gallery-hero p {
    margin-top: 18px;
    color: #c8e9f4;
    max-width: 760px;
    line-height: 1.8;
}

.gallery-shell {
    margin-top: 32px;
}

.gallery-frame {
    margin-top: 32px;
    overflow: hidden;
    border-radius: 32px;
    background: rgba(5, 11, 18, 0.94);
    border: 1px solid rgba(94, 231, 208, 0.12);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
    min-height: 360px;
}

.gallery-track {
    display: flex;
    gap: 20px;
    padding: 24px;
    transition: transform 0.7s cubic-bezier(0.3, 1, 0.4, 1);
    will-change: transform;
}

.gallery-card {
    flex: 0 0 420px;
    min-height: 280px;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    cursor: grab;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.28);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.gallery-card:hover img {
    transform: scale(1.08);
}

.controls {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.control-btn {
    min-width: 140px;
    border: none;
    outline: none;
    padding: 16px 22px;
    border-radius: 999px;
    font-weight: 700;
    background: linear-gradient(135deg, #5ee7d0, #4c96ff);
    color: #04101d;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(94, 231, 208, 0.2);
}

.hint-row {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    color: #9ccedb;
    font-size: 0.95rem;
}

#fallbackPanel {
    margin-top: 28px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(94, 231, 208, 0.12);
    border-radius: 24px;
    color: #d3eef8;
}

@media (max-width: 980px) {

    .gallery-hero,
    .gallery-frame {
        padding: 28px;
    }

    .gallery-card {
        flex: 0 0 320px;
    }
}

@media (max-width: 700px) {

    .gallery-hero,
    .gallery-frame {
        padding: 22px;
    }

    .gallery-card {
        flex: 0 0 260px;
    }

    .hint-row {
        grid-template-columns: 1fr;
    }
}