         column = column.parent().prev().find('a').first()
       if column.size()
         self.toggle.call(column, e)
-        $w.scrollTop(column.offset().top - 65)
+        $w.scrollTop(column.offset().top - column_offset)
 
     @next: (e) ->
       columns = self.columns()

        column = columns.first()
      if column.size()
        self.toggle.call(column, e)
        $w.scrollTop(column.offset().top - 65)

    @up: (e) ->
      e && e.preventDefault()
      panel = $('.modal.media-panel.show')
      panel.scrollTop(panel.scrollTop() - 100)

    @down: (e) ->
      e && e.preventDefault()
      panel = $('.modal.media-panel.show')
      panel.scrollTop(panel.scrollTop() + 100)

    @resize: ->
      $('.modal.media-panel.show').css('height', $w.height() - 75)

    do ->
      $w.resize self.resize
      $d.delegate '.media-grid.photos a', 'click', self.toggle
      $d.delegate '.modal.media-panel .close', 'click', self.close
      $d.keydown self.action

  class Likes
    self = this


  class MediaGrid
    self = this
    column_offset = 140
    panel_offset = 75
    scroll_amount = 200

    @columns: ->
      $('.media-grid.photos a')
