#agent {
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the blocks horizontally */
    gap: 20px;
}

#agent .block {
    /* background-color: whitesmoke; */
    background-image: url('/components/assets/images/awards/list-box-v2.png?v=7');
    padding: 20px 30px;
    margin: 3px 10px;
    display: flex;
    flex-direction: row; 
    align-items: center;
    gap: 20px;
   /*  border-radius: 15px; */
    cursor: pointer;
    width: 100%;
    max-width: 500px; 
    box-sizing: border-box;

    position: relative;
    /* aspect-ratio: 500 / 174; */
    overflow: hidden;
    background-size: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* display: flex
;
    align-items: center;
    justify-content: center; */
}

@media only screen and (min-width: 500px) {
    #agent .block {
        padding: 20px 40px;
        margin: 3px 10px;
        aspect-ratio: 500 / 174;
    }
}
/*#agent .block {
    background-color: whitesmoke;
    padding: 20px 15px;
    display: flex;
    flex-direction: column; 
    gap: 20px;
    border-radius: 15px;
    cursor: pointer;
    width: 100%;
    max-width: 500px; 
    box-sizing: border-box;
}

@media only screen and (min-width: 500px) {
    #agent .block {
        flex-direction: row; 
        align-items: center;
        gap: 60px;
    }
}

 @media only screen and (max-width: 500px) {
    #agent .block {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
} */

/* #agent {
    padding: 20px;
    display: grid;
    gap: 20px;
}

#agent .block {
    background-color: whitesmoke;
    padding: 20px 15px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    border-radius: 15px;
    cursor: pointer;
} */

#agent .block .left {
    width: 100%;
    max-width: 100px;
    height: auto;
    position: relative;
    /* padding: 0px 5px; */
}

@media only screen and (min-width: 500px) {
    #agent .block .left {
        margin-left: 30px;
    }

}

#agent .block .left .theme-background {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: -1;
}

#agent .block .left .theme-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* overflow-clip-margin: content-box; */
    /* overflow: clip; */
    object-position: center center; /* This centers the video content */
}

#agent .block .left .box .agent-photo {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    z-index: 0;
    padding-top: 7px;
    /* background-color: gray; */
    /* padding: 20px; */
}

@media only screen and (max-width: 500px) {
    #agent .block .left .box .agent-photo {
        /* padding-right: 10px; */
    }
}

#agent .block .left .box .agent-photo img {
    width: 100%;
}

#agent .block .right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    overflow-wrap: break-word; /* Prevents text from overflowing */
}

#agent .block .text {
    color: black;
}

#agent .block .text .award {
    font-size: 13px;
    font-weight: 600;
    padding-bottom: 4px;
    line-height: 1.2;
}

#agent .block .text .award.display-none {
    display: none
}

#agent .block .text .name {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

#agent .block .text .agency {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}