﻿.cloud-page {
    --primary-color: var(--dl-color-success-700);
    --light-bg: #f8f9fa;
    --card-bg: #fff;
    --text-color: #333;
    --text-muted: #6c757d;
}

    /* Benefit cards */
    .cloud-page .benefit-card {
        background: var(--card-bg);
        border-radius: 16px;
        padding: 2rem;
        text-align: center;
        box-shadow: 0 6px 18px rgba(0,0,0,0.06);
        transition: all 0.3s ease;
    }

        .cloud-page .benefit-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 28px rgba(0,0,0,0.1);
        }

    .cloud-page .benefit-icon {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        background: var(--primary-color);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 2rem;
        margin: 0 auto 1rem;
    }

    /* Portal screenshots */
    .cloud-page .screenshot-placeholder {
        border: 2px dashed var(--primary-color);
        border-radius: 12px;
        height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary-color);
        font-weight: 600;
    }

/* Grid (menší náhledy, radius 16px) */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    justify-items: center;
}

.screenshot-item {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    background: #fff;
    max-width: 240px;
    max-height: 160px;
    width: 100%;
    border: 0;
    padding: 0;
    cursor: zoom-in;
    transition: transform .3s, box-shadow .3s;
}

    .screenshot-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 16px;
        transition: transform .4s ease;
    }

    .screenshot-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 24px rgba(0,0,0,.12);
    }

        .screenshot-item:hover img {
            transform: scale(1.05);
        }

/* Modal image */
#imageModal img {
    max-height: 90vh;
    max-width: 95vw;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,.5);
    animation: zoomIn .25s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(.98);
        opacity: .5
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

/* Lightbox nav buttons */
.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(0,0,0,.35);
    color: #fff;
    display: grid;
    place-items: center;
    transition: background .2s, transform .2s, border-color .2s;
    z-index: 5;
}

.lb-prev {
    left: 16px;
}

.lb-next {
    right: 16px;
}

.lb-nav:hover {
    background: rgba(0,0,0,.55);
    border-color: rgba(255,255,255,.6);
    transform: translateY(-50%) scale(1.05);
}

/* Counter */
.lb-counter {
    z-index: 5;
}