.container { display: flex; flex-direction: column; width: 800px; max-width: 100vw; } .calendars { display: flex; } .calendars > div:first-child { padding-right: 20px; border-right: 1px solid var(--gray300); } .calendars > div:last-child { padding-left: 20px; } @media only screen and (max-width: 768px) { .calendars { flex-direction: column; } }