You can check for the 'k_paginated_bottom' that gets set for the last element in the loop.
The revised code now becomes -
<div class="gig_list_box <cms:if k_paginated_bottom>last</cms:if>">
This aside, in the 'pages' loop you are using, I think you'll also want to set a 'limit' for the items being shown. Else if the number of gigs, for example, goes up to 1000, all the 1000 will get shown.
Showing only a handful of items at each go also requires you to place the paginatator (the 'next' 'prev' buttons).
You can find more info about it athttp://www.couchcms.com/docs/concepts/l ... pages.htmlhttp://www.couchcms.com/docs/concepts/pagination.html
Let me know if need any help.