.item a img { border:none; }

/* Content */

#gallery { min-height:100px; margin:0 0 0 -1px; padding:0 0 50px; display:block; background:#f6f6f6; background-size:100% auto; }
#gallery .item { margin:1px; position:relative; }
#gallery .item img { width:100%; width:auto\0; height:auto; height:350px\0; margin:1px 0; color:#FFF; float:left; }
#gallery .item.portrait div { width:50%; float:left; }
#gallery .item.portrait a { display:block; }
#gallery .item.portrait div:first-child a { margin-right:1px; }
#gallery .item.portrait div:last-child a { margin-left:1px; }
#gallery:after { content:""; display:block; clear:both; }


#colorbox, #cboxOverlay, #cboxWrapper { position:absolute; top:0; left:0; z-index:999999; overflow:hidden; }
#cboxWrapper { max-width:none; }
#cboxOverlay { position:fixed; width:100%; height:100%; }
#cboxMiddleLeft, #cboxBottomLeft { clear:left; }
#cboxContent { position:relative; }
#cboxLoadedContent { overflow:auto; -webkit-overflow-scrolling: touch; }
#cboxTitle { margin:0; }
#cboxLoadingOverlay, #cboxLoadingGraphic { position:absolute; top:0; left:0; width:100%; height:100%; }
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow { cursor:pointer; }
.cboxPhoto { float:left; margin:auto; border:0; display:block; max-width:none; -ms-interpolation-mode:bicubic; }
.cboxIframe { width:100%; height:100%; display:block; border:0; }
#colorbox, #cboxContent, #cboxLoadedContent { box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box; }
#cboxOverlay { background:#000; }
#colorbox { outline:0; }
#cboxContent { margin-top:30px; background:#000; }
.cboxIframe { background:#fff; }
#cboxError { padding:50px; border:1px solid #ccc; }
#cboxLoadedContent { border:none; background:#000; }
#cboxLoadingGraphic { display:none; }
#cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose { border:0; padding:0; margin:0; overflow:visible; background:none; }
#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active { outline:0; }
#cboxSlideshow { position:absolute; top:-20px; right:90px; color:#fff; }
#cboxPrevious, #cboxNext { display:none; width:40px; height:40px; margin-top:-20px; position:absolute; top:50%; text-indent:-99999px; }
#cboxPrevious {display:none; left:0; border-radius:0 4px 4px 0;}
#cboxNext { display:none;right:0; border-radius:4px 0 0 4px; }
#cboxClose { position:absolute; top:0; right:0; display:block; background:rgba(0,0,0,0.2) url(../images/close.png) no-repeat top center; border-radius:0 0 0 4px; width:40px; height:40px; text-indent:-9999px; }
#cboxClose:hover { background-color:rgba(0,0,0,0.5); }

.column { margin-bottom:1px; float:left; }
.items-5 { width:20%; }
.items-4 { width:25%; }
.items-3 { width:33.33%; }
.items-2 { width:50%; }
.items-1 { width:100%; }
#gallery[data-columns]::before { position:absolute; right:9999em; bottom:9999em; visibility:hidden; }
@media only screen and (min-width:1921px) { #gallery[data-columns]::before { content:'5 .column.items-5'; } .column:nth-child(5) .item { margin-right:0 !important; } }
@media only screen and (max-width:1920px) and (min-width:1400px) { #gallery[data-columns]::before { content:'4 .column.items-4'; } .column:nth-child(4) .item { margin-right:0 !important; } }
@media only screen and (max-width:1400px) and (min-width:600px) { #gallery[data-columns]::before { content:'3 .column.items-3'; } .column:nth-child(3) .item { margin-right:0 !important; } }
@media only screen and (max-width:600px) and (min-width:340px) { #gallery[data-columns]::before { content:'2 .column.items-2'; } .column:nth-child(2) .item { margin-right:0 !important; } }
@media only screen and (max-width:340px) { #gallery[data-columns]::before { content:'2 .column.items-2'; } .column .item { margin-right:0 !important; } }

