.messages-section {
    width: 100%;
    height: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.btn-left,
.btn-right {
    display: none;
    z-index: 6;
}

.messages-container {
    display: grid;
    grid-template-rows: 6.6rem 6.6rem 6.6rem 6.6rem;
    grid-auto-flow: column dense;
    gap: .75rem 1rem;
    font-size: 1.75rem;
    font-weight: 700;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    bottom: -25px;
    overflow-x: scroll;
}

.messages-container::-webkit-scrollbar {
    height: 0;
    display: none !important;
}

.messages-container img {
    display: block;
    margin-left: auto;
}

.messages-container .message {
    min-width: 6.6rem;
    position: relative;
    margin: 0;
    border-radius: 30px;
    padding: 2.5rem 1.5rem;
    color: inherit;
    z-index: 5;
    line-height: 1.2;
    font-family: 'Open Sans';
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 100%);
}

.messages-container .message:before {
    content: "";
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    /* background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 100%); */
    border-radius: 30px;
}

.messages-container .message img {
    margin-bottom: .5em;
}

.messages-container .message.small {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.messages-container .message.small img {
    margin: 0;
    padding: 0;
}

.messages-container .message.medium {
    min-width: 13.2rem;
    text-align: right;
    grid-row: span 2;
    grid-column: span 2;
}

.messages-container .message.large {
    min-width: 26.4rem;
    grid-row: span 4;
    grid-column: span 4;
    font-weight: 600;
    font-size: 1.5rem;
}

.message .message-name {
    color: inherit;
    font-size: 1.125rem;
    display: block;
    font-weight: normal;
    margin-top: 1em;
}

@media only screen and (min-width: 720px) {
    .messages-section:hover .btn-left,
    .messages-section:hover .btn-right {
        filter: invert() opacity(.5);
    }
    .messages-section .btn-left,
    .messages-section .btn-right {
        display: block !important;
        position: absolute;
        top: 50%;
        width: 3rem;
        height: 3rem;
        color: black;
        background-repeat: no-repeat;
        background-size: contain;
        filter: invert() opacity(0);
        background-image: url('../images/next.png');
        transition: all .3s ease;
    }
    .messages-section:hover .btn-left:hover,
    .messages-section:hover .btn-right:hover {
        filter: invert() opacity(.95);
    }
    .btn-left {
        left: 1rem;
        transform: rotate(180deg);
    }
    .btn-right {
        right: 1rem;
    }
}