/* UroAndro – Zertifikatsgalerie final */

#uad-cert-gallery-v3 {
    width: 100%;
    max-width: 1180px;
    margin: 24px auto 0;
}

#uad-cert-gallery-v3 .uadcg-shell {
    width: 100%;
}

#uad-cert-gallery-v3 .uadcg-stage-wrap {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    align-items: center;
    gap: 16px;
    width: 100%;
}

#uad-cert-gallery-v3 .uadcg-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 18px;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
}

#uad-cert-gallery-v3 .uadcg-stage.is-landscape {
    min-height: 360px;
}

#uad-cert-gallery-v3 .uadcg-stage.is-portrait {
    min-height: 520px;
}

#uad-cert-gallery-v3 .uadcg-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    background: #fff;
    box-shadow: 0 10px 28px rgba(60, 46, 28, 0.14);
}

#uad-cert-gallery-v3 .uadcg-loading,
#uad-cert-gallery-v3 .uadcg-error {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    text-align: center;
    border-radius: 24px;
}

#uad-cert-gallery-v3 .uadcg-loading {
    background: rgba(255, 255, 255, 0.72);
    color: #6c5a45;
    font-weight: 600;
    z-index: 2;
}

#uad-cert-gallery-v3 .uadcg-error {
    background: rgba(255, 255, 255, 0.92);
    color: #8b5a3b;
    font-weight: 600;
    z-index: 3;
}

#uad-cert-gallery-v3 .uadcg-loading[hidden],
#uad-cert-gallery-v3 .uadcg-error[hidden] {
    display: none !important;
}

#uad-cert-gallery-v3 .uadcg-arrow {
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

#uad-cert-gallery-v3 .uadcg-meta {
    margin-top: 14px;
    text-align: center;
}

#uad-cert-gallery-v3 .uadcg-title {
    margin: 0 0 12px;
    font-size: clamp(20px, 2.2vw, 34px);
    line-height: 1.2;
}

#uad-cert-gallery-v3 .uadcg-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
}

#uad-cert-gallery-v3 .uadcg-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

#uad-cert-gallery-v3 .uadcg-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    opacity: 0.5;
}

#uad-cert-gallery-v3 .uadcg-dot.is-active {
    opacity: 1;
    transform: scale(1.12);
}

@media (max-width: 900px) {
    #uad-cert-gallery-v3 .uadcg-stage-wrap {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        gap: 8px;
    }

    #uad-cert-gallery-v3 .uadcg-stage {
        min-height: 340px;
        padding: 12px;
    }

    #uad-cert-gallery-v3 .uadcg-stage.is-landscape {
        min-height: 260px;
    }

    #uad-cert-gallery-v3 .uadcg-stage.is-portrait {
        min-height: 400px;
    }

    #uad-cert-gallery-v3 .uadcg-arrow {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
}

@media (max-width: 640px) {
    #uad-cert-gallery-v3 .uadcg-stage {
        min-height: 300px;
    }

    #uad-cert-gallery-v3 .uadcg-stage.is-landscape {
        min-height: 220px;
    }

    #uad-cert-gallery-v3 .uadcg-stage.is-portrait {
        min-height: 360px;
    }

    #uad-cert-gallery-v3 .uadcg-title {
        font-size: 22px;
    }
}
