.cover {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}

.cover .cover-image {
    position: relative;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

.cover .cover-description {
    position: absolute;
    display: flex;
    font-family: 'Poppins', sans-serif;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    padding: 16px;
    line-height: 1;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-wrap: pretty;
    z-index: 1;
}

.cover-training .cover .cover-description {
    font-size: 32px;
}

.wdk-learning-card-list .cover.cover-rectangle .cover-description {
    padding: 10px;
}

/* Sizes */
.cover-form .cover-description {
    font-size: 1px;
}

.cover.cover-default .cover-image {
    position: initial;
    transform: initial;
    max-width: 400px;
    max-height: 180px;
}

.cover.cover-rectangle {
    height: 100px;
    width: 200px;
    min-width: 200px;
}

.cover.cover-rectangle-game {
    height: 200px;
    width: 100%;
}

.cover.cover-rectangle.previewBackground {
    height: 200px;
    width: 400px;
}

.cover.cover-wide.previewBackground {
    height: 50px;
    width: 400px;
}

.cover.cover-wide img {
    height: auto;
}

.cover.cover-rectangle.previewBackground .cover-description {
    font-size: 40px;
}

.cover.cover-square.previewBackground {
    height: 250px;
    width: 250px;
}

.cover.cover-square.previewBackground .wdk-image.image-cover {
    width: 100%;
    height: 100%;
}

.cover.cover-square.previewBackground .cover-description {
    font-size: 44.44px;
}

.card.card-gallery .cover.cover-rectangle {
    height: 164px;
    width: 328px;
    border-radius: 8px 8px 0 0;
}

/* Feed */
.feed-post-training .cover.cover-rectangle {
    height: 121px;
    width: 242px;
}

.cover-news-home {
    position: relative;
    width: 100%;
    padding-top: 50%;
}

.cover-news-home .cover.cover-rectangle {
    position: absolute ;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cover-news-home .cover.cover-rectangle img {
    height: initial;
    max-height: initial;
    max-width: initial;
    border-radius: initial;
    object-fit: initial;

    position: relative;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}


.gadget-news-home.wdk-carousel .carousel .carousel-item {
    height: initial !important;
}

#gadgetNoticiaMobile .carousel .cover.cover-rectangle {
    height: initial;
    width: initial;
    min-width: initial;
}

#gadgetNoticiaMobile .carousel .cover-image {
    top: 0;
    left: 0;
    transform: initial;
}

/* Font size news feed */
.cover-news-home .cover.cover-rectangle .cover-description {
    font-size: 2vw;
}

.feed-post-document .cover.cover-square {
    width: 121px;
    height: 121px;
}

.feed-post-document .cover.cover-square .cover-description {
    font-size: 18px;
}

.cover.cover-square {
    height: 90px;
    width: 90px;
    min-width: 90px;
}

.cover.cover-square .cover-description{
    font-size: 16px;
    padding: 8px;
}

.document-save ~ form .tab-content .cover.cover-square {
    height: 180px;
    width: 180px;
    min-width: 180px;
    margin-left: auto;
    margin-right: auto;
}

.document-save ~ form .tab-content .cover.cover-square .cover-description {
    font-size: 28px;
}

.game-save ~ form .tab-content .cover.cover-square {
    height: 180px;
    width: 180px;
    min-width: 180px;
    margin-left: auto;
    margin-right: auto;
}

.game-save ~ form .tab-content .cover.cover-square .cover-description {
    font-size: 28px;
}

.cover-form:has(.cover-rectangle) {
    position: relative;
    width: 100%;
    padding-top: 50%;
}

.cover-form .cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 992px) {
    .cover-form {
        position: relative;
        width: 250px;
        height: 125px;
        padding-top: initial;
        margin-left: auto;
        margin-right: auto;
    }

    /* commented to fix mobile preview on form */
    /* .cover-form .cover.cover-rectangle {
        position: static;
    } */
}

.cover-game {
    position: relative;
    /* height: 250px; */
    width: 100%;
}

.cover-game .cover {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cover-game .cover .cover-image {
    top: 0;
    transform: translateX(-50%);
}

.card .card-img-cover.game-cover .cover.cover-wide .cover-image {
    /* height: 65px; */
    object-fit: contain;
}

.card .card-img-cover.game-cover {
    aspect-ratio: 1200 / 260;
    height: auto;
}

.cover-training {
    position: relative;
    height: 178px;
    width: 356px;
    min-width: 356px;
}

.cover-training .cover {
    width: 100%;
    height: 100%;
}


/* Caver Gallery */
.form-check.cover-rectangle .form-check-label img {
    width: 200px;
    height: 100px;
    object-fit: cover;
}

.form-check.cover-square .form-check-label img {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

/* Cover Banner */
.cover-default .cover-banner {
    position: relative;
    height: 200px;
    width: 400px;
    min-width: 400px;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}

.cover-default .cover-banner img {
    position: relative;
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: cover;
}
