/* Robert Portfolio Labels v1.1 */

.rpl-wrap,
.rpl-video-wrap {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    line-height: 0;
}

.rpl-wrap > img,
.rpl-wrap > picture,
.rpl-wrap > picture > img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* Images use ::before. Robert Video Grid already uses ::before for its 16:9 ratio,
   so video labels use ::after instead. */
.rpl-wrap::before,
.rpl-video-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 28%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.38) 0%,
        rgba(0, 0, 0, 0.12) 45%,
        rgba(0, 0, 0, 0) 100%
    );
}

.rpl-label {
    position: absolute;
    left: 24px;
    bottom: 22px;
    z-index: 4;

    font-family: "Barlow Condensed", sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1.3;

    color: rgba(255, 255, 255, 0.92);
    white-space: normal;
    pointer-events: none;
}

.rpl-mobile {
    display: none;
}

@media (max-width: 849px) {
    .rpl-wrap::before,
    .rpl-video-wrap::after {
        height: 38%;
    }

    .rpl-label {
        left: 14px;
        right: 14px;
        bottom: 14px;
        font-size: 10px;
        letter-spacing: 0.13em;
    }

    .rpl-desktop {
        display: none !important;
    }

    .rpl-mobile {
        display: block !important;
    }
}
