.duo-layout {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: center;
    padding: 0 16px; 
}

.duo-layout .media-item {
    width: 500px;
    height: 720px;
    flex-shrink: 0;
    overflow: hidden;
}

.duo-layout .media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


@media (max-width: 640px) {
    .duo-layout {
        justify-content: space-between; 
        gap: 8px; 
        padding: 0 16px; 
        max-width: 100%; 
    }

    .duo-layout .media-item {
        width: calc(50% - 5px); 
        max-width: 200px; 
        height: 45vh;
        margin: 0; 
    }

    .duo-layout .media-item img {
        width: 100%; 
        height: 100%; 
        object-fit: cover; 
    }
}
