private StringBuilder getSectionFoto() throws ClassNotFoundException, SQLException {
        StringBuilder sb = new StringBuilder();

        sb.append("<div class=\"bs-docs-section\">");
        Utils.appendNewLine(sb);

        sb.append("<h1 id=\"foto\" class=\"page-header\">Fotogaléria</h1>");
        Utils.appendNewLine(sb);

        List<Gallery> galleries = this.ref.getGalleries();
        for (Gallery gallery : galleries) {

            // Gallery header
            if (gallery.getName().length() > 0) {
                sb.append("<h3 id=\"foto");
                sb.append(gallery.getId());
                sb.append("\">");
                sb.append(gallery.getName());
                sb.append("</h3>");
                Utils.appendNewLine(sb);
            }

            if (gallery.hasPhotos()) {
                // Gallery photos row - start
                sb.append("<div class=\"row\">");
                Utils.appendNewLine(sb);

                List<GalleryPhoto> photos = gallery.getPhotos();
                int pocet = 0;
                for (GalleryPhoto photo : photos) {
                    pocet++;

                    // Photo column - start
                    sb.append("<div class=\"col-xs-6 col-sm-4 col-md-3 text-center\">");
                    Utils.appendNewLine(sb);

                    // Photo - thumbnail
                    sb.append("<a href=\"");
                    sb.append(gallery.getUrl());
                    sb.append(photo.getFileName());
                    sb.append("\"");
                    sb.append(" class=\"thumbnail\"");
                    sb.append(" style=\"margin-bottom: 5px;\"");
                    //TODO hardcoded pp ID
                    sb.append(" rel=\"prettyPhoto[pp1]\"");
                    sb.append(" title=\"");
                    sb.append(photo.getTitle());
                    sb.append("\"><img src=\"");
                    sb.append(gallery.getUrl());
                    sb.append(photo.getFileName());
                    sb.append("\" alt=\"");
                    sb.append(photo.getTitle());
                    sb.append("\"></a>");
                    Utils.appendNewLine(sb);

                    // Photo - description
                    sb.append("<p class=\"small\">");
                    sb.append(photo.getTitle());
                    sb.append("</p>");
                    Utils.appendNewLine(sb);

                    // Photo column - end
                    sb.append("</div>");
                    Utils.appendNewLine(sb);

                    if (pocet % 2 == 0) {
                        // clearfix for extra small devices (2 fotky na riadok)
                        sb.append("<div class=\"clearfix visible-xs\"></div>");
                        Utils.appendNewLine(sb);
                    }
                    if (pocet % 3 == 0) {
                        // clearfix for small devices (3 fotky na riadok)
                        sb.append("<div class=\"clearfix visible-sm\"></div>");
                        Utils.appendNewLine(sb);
                    }
                    if (pocet % 4 == 0) {
                        // clearfix for medium devices (4 fotky na riadok)
                        sb.append("<div class=\"clearfix visible-md\"></div>");
                        Utils.appendNewLine(sb);
                    }
                    if (pocet % 4 == 0) {
                        // clearfix for large devices (4 fotky na riadok)
                        sb.append("<div class=\"clearfix visible-lg\"></div>");
                        Utils.appendNewLine(sb);
                    }
                }

                // Gallery photos row - end
                sb.append("</div>");
                Utils.appendNewLine(sb);
            }

            sb.append(this.getSubGalleries(gallery));
        }

        sb.append("</div>");
        Utils.appendNewLine(sb);

        return sb;
    }