:root {
    --backgroundColorMansory: #FFF;
}

main {
    margin-top: 0px;
}

body div.channelReader {
    margin-top: 52px;
}

[data-label-index=headline] {
    position: relative;
    display: block;
    font-size: 1.8rem;
    line-height: 5rem;
    color: #2f2f2f;
    text-align: center;
    padding: 0;
    margin-bottom: 0px;
    background-color: #ffd400;
}

[data-label-index=headline]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/mask-headline.jpg");
    background-position-x: center;
    background-position-y: center;
    mix-blend-mode: multiply;
}

.grid {
    position: relative;
    display: block;
    margin-bottom: 0px;
    padding-left: 0px;
    width: 100%;
    list-style: none;
}

.grid-item {
    --width: 100%;
    position: relative;
    overflow: hidden;
    width: var(--width);
    aspect-ratio: 4 / 3;

    &.visibility-hidden {
        visibility: hidden;
        height: 0px;
        margin: 0px !important;
    }
}

.grid-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Corta a imagem para preencher o espaço mantendo a proporção */
}

.grid-item.vertical {
    aspect-ratio: 4 / 6;
    margin-top: 7.5px;
    margin-bottom: 7.5px;
}

.grid-item.horizontal {
    margin-top: 7.5px;
}

.grid-item.horizontal::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;

    background: var(--backgroundColorMansory);

    ;
    /* Opcional: para disfarçar */
    transform: translateY(0%);
    /* "Esconde" 15px para fora */
}

.remaining-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    z-index: 2;
    pointer-events: none;

    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 6.5rem;
}

.grid-item.horizontal .remaining-overlay {
    height: calc(100% - 7.5px);
}

@media (max-width: 575px) {
    [data-label-index="headline"] {
        font-size: 1.4rem;
        line-height: 3rem;
    }
}
@media (min-width: 576px) {
    [data-label-index="headline"] {
        font-size: 1.5rem;
        line-height: 3.5rem;
    }

    .grid {
        --padding: calc(15px * 2);
        margin-left: 15px;
        width: calc(100% - var(--padding));
    }

    .grid-item {
        --width: calc((100% / 3) - 10px);
        position: relative;
        overflow: hidden;
        width: var(--width);
        aspect-ratio: 4 / 3;
    }
}

slider-element {
    display: block;
    width: 100%;
}

.loader.close {
    visibility: hidden;
    opacity: 0;
}

.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    align-items: center;
}

.carousel-item {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.carousel-item.active {
    opacity: 1;
}

.boxImg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.box-imgCredits {
    position: relative;
}

.box-imgCredits img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.authorCaptionImage {
    position: absolute;
    z-index: 9;
    padding: 0 14px;
    color: white;
    font-size: 0.8em;
    font-style: italic;
    background-color: rgba(0, 0, 0, 0.5);

    a {
        color: white !important;
    }
}

.carousel-caption {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.03rem;
    color: #FFF !important;
    text-shadow: 2px 2px 2px #2f2f2f;
}

@media (min-width: 768px) {
    .carousel-inner {
        aspect-ratio: 16 / 9;
    }

    .box-imgCredits {
        height: 100%;
    }
}

@media (max-width: 991px) {
    main {
        margin-top: 0px;
    }

    body div.channelReader {
        margin-top: 59px;
    }
}