body {
  background: url(../images/bg.png) top left;
}
h1 {
  margin: 0 0 2px 0;
  padding: 0;
}
a#header {
  display: block;
  text-indent: -9999px;
  width: 100%;
  height: 90px;
  border: none;
  background: url(/images/title.png) 22px 15px no-repeat;
  background-color: #ac1818;
}
#hd {
  background-color: #ac1818;
}
#hd .inner {
  width: 974px;
  margin: auto;
}

a, a:visited {
  color: white;
  text-decoration: underline
}

#contentCell, #ft {
  background-color: #1F1F1F;
  color: white;
  line-height: 165%;
  padding: 35px;
}

em {
  font-style: italic;
}

.breaker {
  clear: both;
}

#ft {
  margin-top: 2px;
  padding: 22px 35px 20px 35px;
}
#ft .inner {
  float: left;
}
#ft p {
  margin: 0;
}

p {
  margin-bottom: 1em;
}
h2 {
  font-size: 130%;
  font weight: bold;
  padding: 0 0 2px 0;
  margin: 0 0 1em 0;
  border-bottom: 1px solid white;
  float: left;
}
h2.graphical {
  text-indent: -9999em;
  height: 20px;
  background: url(../images/titles.png) no-repeat;
  float: none;
}

h3 {
  font-size: 110%;
  font weight: bold;
}
h2.portfolio {
  width: 90px;
  float: left;
}
h2.bio {
  width: 33px;
  background-position: -141px 0;
}
h2.contact {
  width: 82px;
  background-position: -180px 0;
}
h4 {
  font-size: 145%;
  font weight: bold;
  font: verdana
  padding: 0 0 1px 0;
  margin: 0 0 1em 0;
  border-bottom: 2px solid white;
  float: left;
}
h5 {
  font-size: 140%;
  font weight: bold;
  font: verdana
  padding: 0 0 1px 0;
 
}
img {
  border: 1px solid #cccccc;
}
.lightbox img {
  float: left;
  margin: 0 3px 1em 0;
}

#portfolioControls{
  float: right;
}
.portfolioNext, .portfolioPrev {
  display: block;
  text-indent: -9999em;
  width: 20px;
  height: 20px;
  background: url(../images/titles.png) no-repeat;
  float: left;
}
.portfolioPrev {
  background-position: -96px 0;
}
.portfolioNext {
  background-position: -118px 0;
}

#copyright {
  float: left;
}
#oxidise {
  float: right;
}

/**
FORM STYLES
**/

form ul {
  margin: 0;
}

form li {
  list-style: none;
  margin-bottom: 1em;
  clear: both;
}

form label {
  display: block;
  margin-bottom: 2px;
}

form input[type="text"], form input.passwordfield, form textarea, 
form select, form input.filefield {
  margin: 2px 0 0 0;
  padding: 4px;
  border: 1px solid #cecece;
  color: #444444;
}
input[type="text"] {
  width: 15em;
}
textarea {
  width: 33em;
}

label.comRequired.errorElement {
  color: red;
}
input.comRequired.errorElement,
textarea.comRequired.errorElement {
  border: 1px solid red !important;
}

form input.comSubmit {
  color: #333333;
  margin-top: 5px;
  padding: 5px 10px 5px 10px;
  border: 1px solid #777777;
}

.plain-blog li {
  list-style: none;
}






/* Portfolio slider (see the scripts form) */
.jcarousellite {
  width: 900px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.jcarousellite::-webkit-scrollbar {
  display: none;
}
.jcarousellite ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.jcarousellite li {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.portfolioNext, .portfolioPrev {
  cursor: pointer;
}
.portfolioNext.disabled, .portfolioPrev.disabled {
  opacity: 0.3;
  cursor: default;
}

/* Image lightbox (see the scripts form) */
.lightbox-dialog {
  max-width: 95vw;
  max-height: 95vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.lightbox-dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
}
.lightbox-dialog img {
  display: block;
  box-sizing: border-box;
  max-width: 95vw;
  max-height: 85vh;
  border: 10px solid #ffffff;
}
.lightbox-count {
  margin: 0.5em 0 0;
  color: #ffffff;
  text-align: center;
}
.lightbox-dialog button {
  position: absolute;
  padding: 0.2em 0.5em;
  border: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 2em;
  line-height: 1;
  cursor: pointer;
}
.lightbox-dialog button[hidden] {
  display: none;
}
.lightbox-prev {
  top: 45%;
  left: 10px;
}
.lightbox-next {
  top: 45%;
  right: 10px;
}
.lightbox-close {
  top: 10px;
  right: 10px;
}
