html {
 margin: 0 20px 0 20px;
 padding: 0;
}

body {
  background: url('../../public/images/billie_holiday.png') #f8f8f8;
  font-family: Verdana;
  font-size: 18px;
  color: #444;
  margin: 0;
}

div.body_container {
  width: 100%;
  max-width: 800px;
  margin: 20px auto 0 auto;
  padding: 0px;
}

div.body_content {
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 4px;
  box-shadow: 2px 2px 10px 0px #ccc;
  margin: 20px 0 30px;
  padding: 0 20px 10px 20px;
  width:100%;
}

div.body_content p  {
  padding: 20px 5px 0 30px;
  margin: 0;
  line-height: 24px;
  width: 95%;
}

div.body_content h3 {
  padding: 20px 20px 30px 20px;
  margin: 0;
}

div.contact_content {
background: #fff;
border: 1px solid #bbb;
border-radius: 4px;
box-shadow: 2px 2px 10px 0px #ccc;
padding: 0;
width:100%;
margin-top: 40px;
font-size: 12px;
}

div.contact_content p {
  padding: 5px 5px 20px 30px;
  margin: 0;
  line-height: 24px;
}

div.contact_content h3 {
  padding: 20px 20px 10px 20px;
  margin: 0;
}

img.logo {
  margin-left: 30px;
  margin-bottom: 30px;
}

.projectcode {
	margin-bottom: 30px;
}

h1 {
  color: #3d94f6;
  font-size: 30px;
  /*text-shadow: 1px 1px 0px #444;*/
  margin: 20px 0 0 10px;
}

h1.albumname {
  /*color: #4c92da;*/
  text-shadow: 1px 1px 1px #333;
  margin: 0px 0 20px 20px;
}

h2 {
  color: #444;
  font-size: 24px;
  margin: 20px 0 0 10px;
}

input {
  font-size:14px;
  padding: 5px;
  color: #555;
}

textarea, input:focus {
  outline-color: #2F6995;
}

/*
input.login[type="submit"] {
  width: 165px;
  background: #81BEF7;
  color: #fff;
  font-size: 20px;
  font-family: Arial;
  text-shadow: #000 1px 1px 3px;
  border: 1px solid #0B3861;
  border-radius: 2px;
  height: 40px;
  box-shadow: #ccc 1px 2px 3px;
}*/

.button {
	-moz-box-shadow:inset 0px 1px 0px 0px #97c4fe;
	-webkit-box-shadow:inset 0px 1px 0px 0px #97c4fe;
	box-shadow:inset 0px 1px 0px 0px #97c4fe;
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #3d94f6), color-stop(1, #1e62d0) );
	background:-moz-linear-gradient( center top, #3d94f6 5%, #1e62d0 100% );
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#3d94f6', endColorstr='#1e62d0');
	background-color:#3d94f6;
	-moz-border-radius:2px;
	-webkit-border-radius:2px;
	border-radius:2px;
	border:1px solid #337fed;
	display:inline-block;
	color:#ffffff;
	font-family:Arial;
	font-size:15px;
	font-weight:bold;
	text-decoration:none;
	text-shadow:1px 1px 0px #1570cd;
	width: 165px;
	height: 40px;
	cursor: pointer;
	top: 0;
}

span.button, a.button {
	text-align:center;
	line-height: 38px;
	height: 38px;
	width: 118px;
}

.button:hover {
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #1e62d0), color-stop(1, #3d94f6) );
	background:-moz-linear-gradient( center top, #1e62d0 5%, #3d94f6 100% );
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#1e62d0', endColorstr='#3d94f6');
	background-color:#1e62d0;
	text-decoration: none;
}

.button:active {
	position:relative;
	top:1px;
}

.button-black {
	-moz-box-shadow:inset 0px 1px 0px 0px #ababab;
	-webkit-box-shadow:inset 0px 1px 0px 0px #ababab;
	box-shadow:inset 0px 1px 0px 0px #ababab;
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #4d4d4d), color-stop(1, #0a0a0a) );
	background:-moz-linear-gradient( center top, #4d4d4d 5%, #0a0a0a 100% );
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#4d4d4d', endColorstr='#0a0a0a');
	background-color:#4d4d4d;
	border:1px solid #383838;
	text-shadow:1px 1px 0px #000000;
}

.button-black:hover {
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #0a0a0a), color-stop(1, #4d4d4d) );
	background:-moz-linear-gradient( center top, #0a0a0a 5%, #4d4d4d 100% );
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0a0a0a', endColorstr='#4d4d4d');
	background-color:#0a0a0a;
}

.button-red {
	-moz-box-shadow:inset 0px 1px 0px 0px #fab3ad;
	-webkit-box-shadow:inset 0px 1px 0px 0px #fab3ad;
	box-shadow:inset 0px 1px 0px 0px #fab3ad;
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #fa665a), color-stop(1, #d34639) );
	background:-moz-linear-gradient( center top, #fa665a 5%, #d34639 100% );
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fa665a', endColorstr='#d34639');
	background-color:#fa665a;
	border:1px solid #d83526;
	text-shadow:1px 1px 0px #98231a;
}

.button-red:hover {
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #d34639), color-stop(1, #fa665a) );
	background:-moz-linear-gradient( center top, #d34639 5%, #fa665a 100% );
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#d34639', endColorstr='#fa665a');
	background-color:#d34639;
}

.button-yellow {
	-moz-box-shadow:inset 0px 1px 0px 0px #fff6af;
	-webkit-box-shadow:inset 0px 1px 0px 0px #fff6af;
	box-shadow:inset 0px 1px 0px 0px #fff6af;
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ffe32e), color-stop(1, #ffab23) );
	background:-moz-linear-gradient( center top, #ffe32e 5%, #ffab23 100% );
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe32e', endColorstr='#ffab23');
	background-color:#ffe32e;
	border:1px solid #ffaa22;
	text-shadow:1px 1px 0px #876213;
}

.button-yellow:hover {
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ffab23), color-stop(1, #ffe32e) );
	background:-moz-linear-gradient( center top, #ffab23 5%, #ffe32e 100% );
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffab23', endColorstr='#ffe32e');
	background-color:#ffab23;
}

.button-green {
	-moz-box-shadow:inset 0px 1px 0px 0px #a4e271;
	-webkit-box-shadow:inset 0px 1px 0px 0px #a4e271;
	box-shadow:inset 0px 1px 0px 0px #a4e271;
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #89c403), color-stop(1, #77a809) );
	background:-moz-linear-gradient( center top, #89c403 5%, #77a809 100% );
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#89c403', endColorstr='#77a809');
	background-color:#89c403;
	border:1px solid #74b807;
	text-shadow:1px 1px 0px #528009;
}

.button-green:hover {
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #77a809), color-stop(1, #89c403) );
	background:-moz-linear-gradient( center top, #77a809 5%, #89c403 100% );
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#77a809', endColorstr='#89c403');
	background-color:#77a809;
}

.button-upload {
  font-size: 13px;
  width: 120px;
}

.form {
  margin: 0px;
}

textarea.form {
  width: 500px;
  height: 200px;
  font-size: 14px;
  font-family: Arial;
  color:#555;
}

p.project_code {
  font-size: 22px;
  text-align:center;
  width: 100%;
}

table.project_list {
  margin: 10px auto 0 auto;
  border-spacing: 0;
  border-collapse:collapse;
  font-size: 14px;
  border-bottom: 1px #ddd solid;
  width: 760px;
}

table.project_list td {
  padding: 20px;
}

table.project_list tr {
  border-top: 1px #ddd solid;
}

div.error {
  font-size: 14px;
  margin: 0 auto 10px auto;
  background: #ffe7e7;
  border: 1px dotted #ba4747;
  padding: 10px;
  width: 500px;
}

div.notification {
  background: #ccff99;
  border: 1px dotted #336600;
}

a {
  color: #3366cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:active {
  position: relative;
  top: 1px;
}

a.projectLink {
  font-size: 12px;
  color: #888;
}

.table-files {
  width: 800px;
  font-size: 12px;
  border-spacing: 0;
}

.table-files tr:nth-child(odd) {
  background: #f5f5f5;
}

.table-files td {
  border-top: 1px solid #ddd;
  padding: 5px;
}

.table-files td.preview { width: 100px; }
.table-files td.name { width: 300px;}
.table-files td.size { width: 80px; text-align:center}
.table-files td.progress { width: 160px; }
.table-files td.start { width: 50px; }
.table-files td.cancel { width: 50px; }

div.progress-extended {
  font-size: 12px;
}

div.progress {
  height: 20px;
  width: 100%;
  background: #f3f3f3;
  border: 1px solid #ccc;
  -moz-border-radius:2px;
  -webkit-border-radius:2px;
  border-radius:2px;
}

div.bar {
  height: 20px;
  background: #006600;
}

div.devwarning {
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #000;
  display: block;
  color: #fff;
  font-family: Verdana, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  padding: 10px 16px;
  margin-bottom: 20px;
  border: 0;
}

div.footer {
  height:25px;
  width:100%;
  display:inline-block;
  padding: 10px 0px;
  margin: 0 0 20px 0;
  border: 0;
}

img.project_image {
width: 100%;
max-width: 800px;
height: auto;
}

/* Admin toolbar (logged-in staff on public pages) */
.admin-toolbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #1e3a5f;
  color: #fff;
  font-family: Verdana, sans-serif;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.admin-toolbar-inner {
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.admin-toolbar a {
  color: #fff;
  text-decoration: underline;
}
.admin-toolbar-spacer {
  flex: 1;
}
.admin-toolbar-user {
  opacity: 0.9;
}

@media print {
  .admin-toolbar {
    display: none !important;
  }
}

/* Project page layout */
.body_container--project {
  max-width: 1024px;
}

.project-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.project-header .albumname {
  margin: 0;
  flex: 1 1 200px;
  color: #1e3a5f;
  text-shadow: none;
}

.project-header-logo {
  flex: 0 0 auto;
}

img.logo--compact {
  max-height: 73px;
  width: auto;
  margin: 0;
}

.body_content--gallery {
  padding-bottom: 20px;
  overflow: visible;
}

@media (min-width: 901px) {
  .body_container--project .body_content--gallery {
    overflow: visible;
  }
}

/* Custom project gallery */
.project-gallery {
  max-width: 100%;
}

.gallery-stage-outer {
  position: relative;
  margin: 0 auto 12px;
  max-width: 960px;
}

.gallery-stage {
  position: relative;
}

.gallery-main-wrap {
  position: relative;
  text-align: center;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  min-height: 200px;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.gallery-main-img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-zoom-lens {
  display: none;
  position: absolute;
  border: 2px solid #1e3a5f;
  background: rgba(30, 58, 95, 0.12);
  pointer-events: none;
  box-sizing: border-box;
  z-index: 2;
}

.gallery-main-wrap.is-zoomable:hover .gallery-zoom-lens,
.gallery-main-wrap.is-zoomable.is-zooming .gallery-zoom-lens {
  display: block;
}

.gallery-zoom-result {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 100%;
  border-left: 1px solid #ccc;
  background-color: #fff;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 3;
  box-shadow: -4px 0 12px rgba(0,0,0,0.08);
}

.gallery-main-wrap.is-zoomable.is-zooming .gallery-zoom-result {
  display: block;
}

.gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #1e3a5f;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: background 0.15s ease, transform 0.15s ease;
}

.gallery-nav:hover {
  background: #2a4d75;
}

.gallery-nav:active {
  opacity: 0.88;
}

.gallery-nav svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  margin-top: -22px;
  z-index: 5;
}

@media (min-width: 901px) {
  .gallery-stage-outer {
    padding: 0 52px;
  }

  .gallery-prev {
    left: 0;
  }

  .gallery-next {
    right: 0;
  }
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.gallery-toggle-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  background: #1e3a5f !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
  cursor: pointer;
}

.gallery-toggle-play:hover {
  background: #2a4d75 !important;
}

.gallery-toggle-play svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.gallery-fullscreen-open {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #1e3a5f;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
}

.gallery-fullscreen-open:hover {
  background: #2a4d75;
}

.gallery-fullscreen-open svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.gallery-main-wrap.is-clickable {
  cursor: zoom-in;
}

.gallery-icon-hidden {
  display: none;
}

/* Fullscreen gallery (original resolution) */
.gallery-fullscreen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.96);
  color: #fff;
  font-family: Verdana, sans-serif;
  font-size: 14px;
}

.gallery-fullscreen.is-open {
  display: flex;
  flex-direction: column;
}

body.gallery-fullscreen-active {
  overflow: hidden;
}

.gallery-fs-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 12px;
}

.gallery-fs-counter {
  opacity: 0.9;
  font-size: 13px;
}

.gallery-fs-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.gallery-fs-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.gallery-fs-close svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.gallery-fs-stage-outer {
  flex: 1 1 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 56px;
}

.gallery-fs-stage {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  touch-action: pan-y pinch-zoom;
}

.gallery-fs-img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-fs-img.is-loaded {
  opacity: 1;
}

.gallery-fs-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.gallery-fs-loading.is-hidden {
  display: none;
}

.gallery-fs-nav {
  position: absolute;
  top: 50%;
  margin-top: -24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(30, 58, 95, 0.9);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.gallery-fs-nav:hover {
  background: rgba(42, 77, 117, 0.95);
}

.gallery-fs-nav svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.gallery-fs-prev {
  left: 8px;
}

.gallery-fs-next {
  right: 8px;
}

.gallery-fs-thumbs {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 12px 16px 16px;
  max-height: 120px;
  overflow-y: auto;
}

.gallery-fs-thumb {
  flex: 0 0 auto;
  border: 3px solid transparent;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 4px;
  opacity: 0.65;
}

.gallery-fs-thumb.is-active {
  border-color: #fff;
  opacity: 1;
}

.gallery-fs-thumb img {
  display: block;
  width: 80px;
  height: 48px;
  object-fit: cover;
  border-radius: 2px;
}

.gallery-print img {
  height: 32px;
  width: auto;
  opacity: 0.7;
}

.gallery-print:hover img {
  opacity: 1;
}

.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  padding: 8px 4px 12px;
  overflow: visible;
}

.gallery-thumb {
  flex: 0 0 auto;
  border: 3px solid transparent;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 4px;
  opacity: 0.75;
}

.gallery-thumb.is-active {
  border-color: #3d94f6;
  opacity: 1;
}

.gallery-thumb img {
  display: block;
  width: 100px;
  height: 60px;
  object-fit: cover;
  border-radius: 2px;
}

.gallery-empty {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

/* Global content blocks */
.content-blocks-wrap {
  margin-top: 24px;
}

.content-blocks-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
}

.content-block {
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 4px;
  box-shadow: 2px 2px 10px 0 #ccc;
  padding: 16px 20px;
  font-size: 14px;
}

.content-block-w1 {
  flex: 0 0 calc(33.333% - 11px);
  min-width: 200px;
}

.content-block-w2 {
  flex: 0 0 calc(66.666% - 8px);
  min-width: 280px;
}

.content-block-w3 {
  flex: 0 0 100%;
}

.content-block-title {
  margin: 0 0 10px;
  font-size: 18px;
  color: #3d94f6;
}

.content-block-body img {
  max-width: 100%;
  height: auto;
}

.project-view-stats {
  margin-bottom: 10px;
}