:root {
  --mk-bg: #0c0d0d;
  --mk-surface: #151717;
  --mk-text-muted: rgba(255, 255, 255, 0.68);
  --mk-accent: #d9c6a5;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--mk-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.site-navbar {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent);
  transition: background-color 180ms ease, backdrop-filter 180ms ease;
}

.site-navbar.is-scrolled {
  background: rgba(10, 11, 11, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.letter-spacing {
  letter-spacing: 0.12em;
}

.brand-subtitle {
  margin-top: 0.18rem;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  opacity: 0.72;
}

.hero {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.22) 62%, rgba(0,0,0,.15) 100%),
    url("../images/hero/hero.webp") center 35% / cover no-repeat,
    #202525;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0,0,0,.78), transparent 52%);
}

.hero-content {
  padding-top: 8rem;
}

.text-white-75 {
  color: rgba(255,255,255,.75);
}

.eyebrow {
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-indicator {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  color: #fff;
  font-size: 2rem;
  text-decoration: none;
  animation: float 1.8s ease-in-out infinite;
}

.section-space {
  padding: 7rem 0;
}

.section-heading {
  max-width: 760px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 270px;
  gap: 1rem;
}

.photo-tile {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #202323;
  cursor: zoom-in;
}

.photo-tile:focus-visible,
.gallery-photo:focus-visible,
.album-card a:focus-visible {
  outline: 2px solid var(--mk-accent);
  outline-offset: 4px;
}

.photo-tile img {
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1), filter 300ms ease;
}

.photo-tile:hover img,
.photo-tile:focus-visible img {
  transform: scale(1.035);
  filter: brightness(.76);
}

.photo-caption {
  position: absolute;
  left: 1.25rem;
  bottom: 1rem;
  color: white;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.photo-tile:hover .photo-caption,
.photo-tile:focus-visible .photo-caption {
  opacity: 1;
  transform: translateY(0);
}

.tile-large {
  grid-row: span 2;
}

.tile-wide {
  grid-column: span 1;
}

.album-card {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.album-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #242727;
}

.album-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.album-card:hover img {
  transform: scale(1.04);
}

.album-card a {
  color: inherit;
}

.album-count,
.story-meta {
  color: var(--mk-accent);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.about-image {
  position: relative;
}

.about-image::before {
  content: "";
  position: absolute;
  inset: -1.2rem 1.2rem 1.2rem -1.2rem;
  border: 1px solid rgba(255,255,255,.2);
  z-index: -1;
}

.about-image img {
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
}

.story-card img {
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  filter: saturate(.86);
  transition: transform 350ms ease, filter 350ms ease;
}

.story-card:hover img {
  transform: translateY(-4px);
  filter: saturate(1);
}

.contact-section {
  background:
    linear-gradient(rgba(12,13,13,.82), rgba(12,13,13,.88)),
    url("../images/contact/contact-background.webp") center / cover no-repeat,
    #202525;
}

.contact-copy {
  max-width: 650px;
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-link {
  color: var(--mk-text-muted);
  font-size: .875rem;
  text-decoration: none;
}

.footer-link:hover {
  color: white;
}

.modal-photo {
  max-width: 95vw;
  max-height: 76vh;
  width: auto;
  object-fit: contain;
}

.modal-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - 72px);
  padding: 1rem 4.5rem 2rem;
}

.lightbox-figure {
  margin: 0;
  text-align: center;
}

.lightbox-meta {
  max-width: 860px;
  margin: 1rem auto 0;
  color: var(--mk-text-muted);
  font-size: .95rem;
}

.lightbox-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: white;
  background: rgba(12,13,13,.74);
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
}

.lightbox-control:hover,
.lightbox-control:focus-visible {
  background: rgba(255,255,255,.16);
}

.lightbox-control-prev {
  left: 1.25rem;
}

.lightbox-control-next {
  right: 1.25rem;
}

.image-placeholder {
  background:
    linear-gradient(135deg, #262a2a, #141616);
}

.album-hero {
  padding-top: 11rem;
  padding-bottom: 4.5rem;
  background:
    linear-gradient(to bottom, rgba(12,13,13,.94), rgba(12,13,13,.68)),
    #151717;
}

.album-gallery-section {
  background: var(--mk-bg);
}

.album-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
}

.gallery-item {
  min-width: 0;
}

.gallery-item.is-wide {
  grid-column: span 2;
}

.gallery-photo {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  aspect-ratio: 4 / 3;
  background: #202323;
  cursor: zoom-in;
}

.gallery-item.is-portrait .gallery-photo {
  aspect-ratio: 4 / 5;
}

.gallery-item.is-wide .gallery-photo {
  aspect-ratio: 16 / 9;
}

.gallery-photo img {
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1), filter 300ms ease;
}

.gallery-photo:hover img,
.gallery-photo:focus-visible img {
  transform: scale(1.035);
  filter: brightness(.76);
}

.gallery-photo:hover .photo-caption,
.gallery-photo:focus-visible .photo-caption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-photo-meta {
  padding-top: 1rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@media (min-width: 992px) {
  .photo-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-auto-rows: 310px;
  }

  .tile-wide {
    grid-column: span 2;
  }
}

@media (max-width: 767.98px) {
  .section-space {
    padding: 5rem 0;
  }

  .hero {
    min-height: 88svh;
  }

  .hero .display-2 {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  .photo-grid {
    display: block;
  }

  .photo-tile {
    display: block;
    width: 100%;
    height: 320px;
    margin-bottom: 1rem;
  }

  .photo-caption {
    opacity: 1;
    transform: none;
  }

  .modal-body {
    padding: 1rem 1rem 5rem;
  }

  .modal-photo {
    max-width: 100%;
    max-height: 70vh;
  }

  .lightbox-control {
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .lightbox-control-prev {
    left: calc(50% - 4rem);
  }

  .lightbox-control-next {
    right: calc(50% - 4rem);
  }

  .album-hero {
    padding-top: 8rem;
    padding-bottom: 3rem;
  }

  .gallery-item.is-wide {
    grid-column: span 1;
  }

  .gallery-photo-meta .text-body-secondary {
    font-size: .95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
