/* Ken Culver Photography — portfolio page
   Bootstrap 3 compatible. Load this after bootstrap.css. */

:root {
  --kc-bg: #18191b;
  --kc-bg-soft: #222326;
  --kc-ink: #f5f1e8;
  --kc-muted: #c8c3ba;
  --kc-gold: #c7a45b;
  --kc-line: rgba(199, 164, 91, .38);
}

html { background: var(--kc-bg); }
body {
  margin: 0;
  background: var(--kc-bg);
  color: var(--kc-ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
a { color: inherit; }
a:hover, a:focus { color: var(--kc-gold); text-decoration: none; }
.site-header {
  background: rgba(18, 19, 20, .98);
  border-bottom: 1px solid var(--kc-line);
}
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand:hover, .brand:focus { color: var(--kc-ink); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 2px solid var(--kc-gold);
  border-radius: 12px; color: var(--kc-gold); font-size: 26px; line-height: 1;
}
.brand-text {
  display: block; font-family: Georgia, "Times New Roman", serif;
  font-size: 23px; letter-spacing: .14em; line-height: 1.1;
}
.brand-text small {
  display: block; margin-top: 5px; color: var(--kc-gold);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 10px; letter-spacing: .48em; text-align: center;
}
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  padding: 30px 0 26px; border-bottom: 2px solid transparent;
  font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
}
.main-nav a.active, .main-nav a:hover { border-bottom-color: var(--kc-gold); }

.portfolio-intro { padding: 60px 0 40px; text-align: center; }
.eyebrow {
  color: var(--kc-gold); font-size: 11px; letter-spacing: .36em;
  margin: 0 0 13px; text-transform: uppercase;
}
.portfolio-intro h1 {
  margin: 0; font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 60px); font-weight: 400; letter-spacing: -.025em;
}
.intro-copy { max-width: 620px; margin: 16px auto 0; color: var(--kc-muted); }

.portfolio-section { padding: 10px 0 70px; }
.portfolio-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 1px solid var(--kc-line);
}
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-button {
  border: 1px solid rgba(245, 241, 232, .22); border-radius: 0;
  padding: 8px 13px; background: transparent; color: var(--kc-muted);
  font-size: 11px; letter-spacing: .08em; transition: color .2s, border-color .2s, background .2s;
}
.filter-button:hover, .filter-button:focus, .filter-button.is-active {
  color: var(--kc-ink); border-color: var(--kc-gold);
}
.filter-button.is-active { background: rgba(199, 164, 91, .12); }
.gallery-note, .gallery-help { margin: 0; color: var(--kc-muted); font-size: 12px; }
.gallery-help { margin-top: 18px; text-align: right; }

/* JS assigns explicit row heights and item widths based on each image's natural ratio. */
.justified-gallery {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  gap: 7px; width: 100%;
}
.gallery-item {
  position: relative; display: block; flex: 0 0 auto; overflow: hidden;
  background: var(--kc-bg-soft); line-height: 0; cursor: zoom-in;
}
.gallery-item img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease, opacity .35s ease;
}
.gallery-item:hover img { transform: scale(1.025); }
.gallery-item:focus-visible { outline: 2px solid var(--kc-gold); outline-offset: 2px; }
.image-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 32px 13px 11px; color: #fff; line-height: 1.3;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  background: linear-gradient(transparent, rgba(0, 0, 0, .76));
  opacity: 0; transition: opacity .25s ease;
}
.gallery-item:hover .image-caption, .gallery-item:focus .image-caption { opacity: 1; }
.gallery-item.is-hidden { display: none !important; }

.site-footer {
  padding: 32px 0 38px; border-top: 1px solid var(--kc-line);
  text-align: center; color: var(--kc-muted); background: #141516;
}
.site-footer p { margin: 4px 0; font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.site-footer .footer-name {
  color: var(--kc-ink); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 10px; font-style: normal; letter-spacing: .32em;
}

/* Lightbox */
.lightbox {
  position: fixed; z-index: 9999; inset: 0; display: none;
  align-items: center; justify-content: center; padding: 55px 70px;
  background: rgba(8, 8, 9, .96);
}
.lightbox.is-open { display: flex; }
.lightbox-figure { max-width: 92vw; max-height: 88vh; margin: 0; text-align: center; }
.lightbox-image { display: block; max-width: 100%; max-height: 82vh; width: auto; height: auto; margin: 0 auto; object-fit: contain; }
.lightbox-caption { margin-top: 12px; color: var(--kc-muted); font-size: 12px; letter-spacing: .1em; }
.lightbox button {
  position: absolute; border: 0; background: transparent; color: #fff;
  cursor: pointer; font-size: 34px; line-height: 1; padding: 10px;
}
.lightbox button:hover, .lightbox button:focus { color: var(--kc-gold); }
.lightbox-close { top: 12px; right: 22px; font-size: 42px !important; }
.lightbox-prev { left: 15px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 15px; top: 50%; transform: translateY(-50%); }

@media (max-width: 767px) {
  .header-inner { display: block; padding-top: 16px; padding-bottom: 0; text-align: center; }
  .brand { justify-content: center; }
  .brand-text { font-size: 19px; }
  .main-nav { justify-content: center; gap: 22px; margin-top: 12px; }
  .main-nav a { padding: 12px 0 14px; font-size: 10px; }
  .portfolio-intro { padding: 42px 0 28px; }
  .portfolio-toolbar { display: block; }
  .portfolio-filters { margin-bottom: 12px; }
  .gallery-note { display: none; }
  .justified-gallery { gap: 4px; }
  .image-caption { opacity: 1; padding: 22px 7px 7px; font-size: 9px; }
  .gallery-help { text-align: left; }
  .lightbox { padding: 50px 42px; }
  .lightbox-prev { left: 2px; }
  .lightbox-next { right: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
img.our-photo {
	display: block;
	margin: auto;
	width: 65%;
	border: 1px solid var(--kc-gold);
}