Can you explain transport and tunnel mode in detail with datagram packets?

Can you explain transport and tunnel mode in detail with
datagram packets?
->Tunnel Mode – Entire IPSEC process is transparent to end
hosts, and specialized gateway handles the IPSEC Workload

In Tunnel Mode, 1st Encrypts the entire IP packet and its
placed into another IP packet.

Means we have 2 IP addresses.
1.ip address on inside (encapsulated Packet)
2. Outside (Encapsulting packet – Tunnel endpoint IP
address) and these IP address will used to route packet

Transport Mode
It encrypts the IP Payload, no protection is original IP address
Transport layer is protected by IPSEC