/* CraigGinsberg.com replica — local version of the Elegant-Theme WordPress theme (2019) */
* { margin: 0; padding: 0; }
html, body, div, span, h1, h2, h3, h4, h5, h6, p, img, ul, ol, li, form, label, legend, footer, header { border: 0; font: inherit; margin: 0; padding: 0; vertical-align: baseline; }
ol, ul { list-style: none; margin: 0; padding: 0; }
footer, header, nav, section { display: block; }

html { background: #e6e9ee; }
body {
  color: #444;
  font: normal 15px/1.7em 'Helvetica Neue', Arial, 'Lucida Sans Unicode', sans-serif;
  letter-spacing: 0.2px;
  -webkit-text-size-adjust: none;
}
h1, h2, h3, h4, h5, h6, #header { font-family: 'Lucida Sans Unicode', Tahoma, Verdana, sans-serif; }
h1, h2, h3, h4, h5 { font-weight: normal; }
p { margin: 0 0 15px; }
a, a:link { color: #4c8dff; outline: none; text-decoration: none; }
a img { border: none; }
img { display: block; border: none; }
img.center { margin-left: auto; margin-right: auto; }
img.left { float: left; margin: 0 10px 15px 0; }
img.right { float: right; margin: 0 0 15px 10px; }
sup, sub { font-size: 0.8em; }
sup { vertical-align: super; }
sub { vertical-align: sub; }
strong { font-weight: bold; }
blockquote, em { font-style: italic; }
cite { color: #999; font-style: normal; }

.clear { clear: both; }
.float-left { float: left; }
.float-right { float: right; }
.hidden { display: none; }

/* 960 grid */
.container { margin-left: auto; margin-right: auto; width: 960px; }
.column, .container { float: left; margin-left: 10px; margin-right: 10px; }
.row { zoom: 1; }
.row:after { content: ""; display: block; clear: both; height: 0; visibility: hidden; }
.alpha { margin-left: 0; }
.omega { margin-right: 0; }
.col-1 { width: 40px; }
.col-2 { width: 90px; }
.col-3 { width: 140px; }
.col-4 { width: 190px; }
.col-5 { width: 240px; }
.col-6 { width: 290px; }
.col-7 { width: 340px; }
.col-8 { width: 390px; }
.col-9 { width: 440px; }
.col-10 { width: 490px; }
.col-11 { width: 540px; }
.col-12 { width: 590px; }
.col-13 { width: 640px; }
.col-14 { width: 690px; }
.col-15 { width: 740px; }
.col-16 { width: 790px; }
.col-17 { width: 840px; }
.col-18 { width: 890px; }
.col-19 { width: 940px; }
.col-20 { width: 990px; }
.col-21 { width: 1040px; }
.col-22 { width: 1090px; }
.col-23 { width: 1140px; }
.col-24 { width: 1190px; }
.main { margin: 10px auto 40px auto; width: 960px; }

/* Header */
#header {
  background: #fff;
  border-bottom: 1px solid #dfe3e8;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  text-align: center;
  width: 960px;
}
#header .logo {
  display: block;
  font-size: 42px;
  font-weight: normal;
  letter-spacing: 0px;
  line-height: 65px;
  margin: 10px auto;
  text-shadow: 0px 1px 0 #111;
  text-transform: none;
  width: 960px;
}
#header .logo a, #header .logo a:link { color: #fff; text-shadow: 0px 1px 0 #111; }
#header .logo img { display: inline-block; max-width: 100%; max-height: 120px; height: auto; width: auto; vertical-align: middle; }
#header .logo span { color: #ccc; font-weight: normal; }
#header .tagline {
  font-size: 18px;
  font-style: normal;
  font-weight: normal;
  letter-spacing: 1px;
  line-height: 40px;
  margin: 10px auto 30px auto;
  text-align: center;
  text-shadow: none;
  text-transform: uppercase;
  width: 960px;
  color: #6b7785;
}

/* Navigation */
#top-nav {
  background: #1f2a36;
  margin: 0 auto;
  text-align: center;
  width: 960px;
}
#top-nav .nav {
  display: block;
  height: 35px;
  margin: 0 auto;
  text-align: center;
  width: 960px;
}
#top-nav ul { display: block; margin: 0 auto; width: auto; }
#top-nav li {
  background: transparent;
  display: block;
  float: left;
  font-weight: normal;
  margin: 0;
  padding: 0;
  position: relative;
}
#top-nav li a {
  display: block;
  color: #eee;
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 35px;
  padding: 0 25px;
  text-shadow: 0 1px 0 #111;
  text-transform: uppercase;
}
#top-nav li a:hover { color: #fff; background: #34475c; }
#top-nav li.last a { padding-right: 0; }

/* Breadcrumbs */
.breadcrumbs {
  margin: 0 auto;
  padding: 5px 0 0 0;
  width: 960px;
  color: #999;
  font-size: 11px;
  text-transform: uppercase;
}
.breadcrumbs a, .breadcrumbs a:link { color: #ccc; }

/* Slider / slide show */
#slide {
  background: #222;
  margin: 0 auto 10px auto;
  position: relative;
  text-align: center;
  width: 960px;
}
#slide .slider {
  position: relative;
  width: 960px;
  overflow: hidden;
}
#slide .slide {
  display: none;
}
#slide .slide.first { display: block; }
#slide .slide a, #slide .slide a:link { display: block; }
#slide .slide img {
  border: 0;
  margin: 0 auto;
  width: 960px;
}
#slide .slide .slide-caption {
  background: rgba(31,42,54,0.75);
  color: #fff;
  font-size: 15px;
  letter-spacing: 1px;
  padding: 5px 10px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  text-shadow: 0 1px 0 #111;
}
#slide .slide .slide-caption a, #slide .slide .slide-caption a:link { color: #fff; }
#slide .slide .slide-caption a:hover { color: #4c8dff; }
#slide .nav-btn {
  background: rgba(0,0,0,0.4);
  color: #fff;
  cursor: pointer;
  font-size: 30px;
  line-height: 60px;
  padding: 0 20px;
  position: absolute;
  top: 50%;
  margin-top: -30px;
  z-index: 10;
}
#slide .nav-btn.prev { left: 0; }
#slide .nav-btn.next { right: 0; }
#slide .dots {
  margin: 0 auto;
  padding: 6px 0;
}
#slide .dots span {
  background: #111;
  border: 1px solid #000;
  cursor: pointer;
  display: inline-block;
  height: 10px;
  margin: 0 4px;
  width: 10px;
}
#slide .dots span.current { background: #888; }

/* Main content */
#content {
  background: #fff;
  margin: 0 auto;
  padding: 40px;
  width: 960px;
  box-shadow: 0 1px 4px rgba(31,42,54,0.08);
}
#content.home-content { box-sizing: border-box; }
.page-title {
  color: #1f2a36;
  font-size: 36px;
  letter-spacing: -0.5px;
  line-height: 1.5em;
  margin-bottom: 10px;
  text-align: center;
}
.post-date {
  color: #999;
  font-size: 13px;
  font-style: normal;
  font-weight: normal;
  letter-spacing: 0px;
  line-height: 1.5em;
  text-align: left;
}
.post-meta {
  color: #999;
  font-size: 12px;
  margin-bottom: 15px;
}
.post-meta a { color: #666; }
.post-body { color: #666; font-size: 13px; line-height: 1.8em; }
.post-body p { margin-bottom: 15px; }
.post-body img { border: 1px solid #ccc; padding: 6px; background: #f5f5f5; }
.post-body ul, .post-body ol { margin: 0 0 15px 25px; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 5px; }
.post-body a { color: #4c8dff; }
.post-body h1, .post-body h2 {
  color: #333;
  font-size: 22px;
  letter-spacing: -1px;
  margin: 10px 0 5px;
}
.post-body h3, .post-body h4 {
  color: #333;
  font-size: 17px;
  margin: 8px 0 4px;
}
.post-body .more a { font-weight: bold; }

/* Portfolio grid */
#portfolio-grid {
  overflow: hidden;
  zoom: 1;
}
.portfolio-item {
  float: left;
  margin: 0 0 10px 0;
  padding: 0;
  position: relative;
  width: 300px;
  height: 135px;
  margin-right: 10px;
  margin-bottom: 10px;
}
.portfolio-item > a, .portfolio-item > a:link {
  background: #333;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(31,42,54,0.18);
  display: block;
  height: 135px;
  overflow: hidden;
  position: relative;
  width: 300px;
}
.portfolio-item > a:hover { background: #444; }
.portfolio-item .portfolio-title a, .portfolio-item .portfolio-title a:link { color: #fff; }
.portfolio-item .portfolio-title a:hover { color: #4c8dff; }
.portfolio-item .read-more a, .portfolio-item .read-more a:link { color: #ccc; }
.portfolio-item .read-more a:hover { color: #4c8dff; }
.portfolio-item img {
  display: block;
  width: 289px;
  height: 130px;
  object-fit: cover;
  object-position: center;
}
.portfolio-item .portfolio-title {
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.5px;
  line-height: 30px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  text-align: center;
  text-shadow: 0 1px 0 #000;
}
.portfolio-item .read-more {
  position: absolute;
  right: 10px;
  bottom: 40px;
  line-height: 1.4em;
  color: #ccc;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Sidebar */
#sidebar {
  background: #f6f6f6;
  margin: 0 auto;
  padding: 30px 30px;
  width: 960px;
  color: #666;
  font-size: 12px;
}
#sidebar h3, #sidebar .widget-title {
  color: #333;
  font-size: 20px;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
#sidebar ul { margin: 0; }
#sidebar li {
  background: url('images/bullet-orange.jpg') no-repeat 0 50%;
  list-style: none;
  margin: 0 0 5px 0;
  padding-left: 15px;
}
#sidebar a, #sidebar a:link { color: #4c8dff; }

/* Contact form */
#contact-form { margin: 0 auto; width: 960px; }
#contact-form .field { margin-bottom: 10px; }
#contact-form label { color: #333; font-size: 12px; display: block; }
#contact-form input, #contact-form textarea {
  background: #f8f8f8;
  border: 1px solid #ddd;
  font-size: 12px;
  padding: 6px;
  width: 98%;
  color: #666;
}
#contact-form input.button { width: auto; padding: 6px 20px; cursor: pointer; background: #333; color: #fff; border: 0; }
#contact-form .error { color: #f00; }

/* Footer */
#footer {
  background: #1f2a36;
  margin: 0 auto;
  text-align: center;
  width: 960px;
}
#footer .copyright {
  color: #aaa;
  font-size: 12px;
  letter-spacing: 1px;
  padding: 20px 0;
  text-shadow: 0 1px 0 #111;
}
#footer a, #footer a:link { color: #ccc; }
#footer a:hover { color: #4c8dff; }
#footer .credit {
  border-top: 1px solid #333;
  color: #888;
  font-size: 11px;
  padding: 10px 0 20px;
}

/* Main photo at the top of each portfolio entry */
.main-photo { margin: 15px 0 20px 0; }
.main-photo img { max-width: 100%; height: auto; border: 1px solid #ccc; padding: 6px; background: #f5f5f5; }
.main-photo.wide-crop img { width: 289px; height: 130px; max-width: 100%; object-fit: cover; object-position: center; }

/* Project photo galleries */
.project-gallery { clear: both; margin-top: 25px; }
.project-gallery figure { margin: 0 0 20px 0; }
.project-gallery img { max-width: 100%; height: auto; border: 1px solid #ccc; padding: 6px; background: #f5f5f5; }

/* Utility */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; }
.alignright { float: right; }
.wp-caption { background: #fff; border: 1px solid #ddd; padding: 8px; text-align: center; }
.wp-caption-text { color: #999; font-size: 11px; margin-top: 5px; }
.size-full { max-width: 100%; }
table { border-collapse: collapse; border-spacing: 0; }
td, th { padding: 4px 8px; }

/* Uniform site width: every block is 1040px wide, the same as the white
   content box (960px + 40px padding each side). Keep this at the end of the file. */
.main,
#header,
#header .logo,
#header .tagline,
#top-nav,
#top-nav .nav,
.breadcrumbs,
#slide,
#slide .slider,
#sidebar,
#footer,
#content.home-content { width: 1040px; }
#slide .slide img { width: 1040px; }

/* Slide show: every picture gets the same frame height (that of the tallest,
   Computer Science, at 1040px wide). Shorter pictures get white space above
   and below; nothing is cropped. */
#slide .slide img {
  height: 457px;
  object-fit: contain;
  object-position: center;
  background: #fff;
}
