/* Dark theme base styles */
body {
  background-color: #121212;
  color: #f0f0f0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Optional link styles */
a {
  color: #90caf9;
}
a:hover {
  color: #ffcc80;
}

/* Navbar (already styled by Bootstrap’s bg-dark + navbar-dark) */
.navbar-brand {
  font-weight: bold;
  color: #ffffff !important;
}

.navbar {
  background-color: #333;
  overflow: hidden;
}

.nav-menu {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-menu li {
  flex: 1;
}

.nav-menu a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px;
  text-decoration: none;
}

.nav-menu a:hover {
  background-color: #575757;
}

/* Image styling */
.gallery-img {
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.05);
}
.gallery-img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Modal content (override to prevent black crush) */
.modal-content {
  background-color: #1e1e1e;
  border: none;
}

/* Image inside modal */
.modal-body img {
  max-height: 75%;
  object-fit: contain;
  display: block;
  margin: auto;
  background-color: #000;
}

#prevBtn, #nextBtn {
  width: 3rem;
  height: 3rem;
  font-size: 1.5rem;
  border-radius: 50%;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

#prevBtn:hover, #nextBtn:hover {
  opacity: 1;
}

#modalCaption {
  border-top: 1px solid #bbb;
}

#modalTitle {
  font-size: 1.25rem;
}

#modalText {
  font-size: 0.9rem;
  color: #bbb;
}

#lightboxImage {
  opacity: 1;
  transition: opacity 0.4s ease;
  max-height: 80vh;
  object-fit: contain;
}
#hero {
	padding-left: 0px;
	padding-right: 0px;
	position: relative;
}
#hero h1 {
	position: absolute;
	color: #FFF;
	text-shadow: 2px 3px rgba(71,71,71,0.84);
	bottom: 0%;
	left: 3%;
	font-size: 1.5rem;
}

.jumbotron {
  padding: 2rem 1rem;
  margin-bottom: 2rem;
  background-color: #121212;
  border-radius: 0.3rem; }

  @media (min-width: 576px) {
    .jumbotron {
      padding: 4rem 2rem; } }

.jumbotron-fluid {
  padding-right: 0;
  padding-left: 0;
  border-radius: 0;
 }

/* HERO SLIDE BASE */
.hero-slide {
  height: 80vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2rem;
}

/* SLIDE CAPTION */
.slide-caption {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 2rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  text-align: center;
  width: 90%;
  max-width: 600px;
}

/* OVERLAY CAPTION */
.carousel-caption {
  position: absolute;
  top: 12%;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0 1rem;
  text-align: center;
}

.carousel-caption h1 {
  font-size: 3rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  margin-bottom: 1rem;
}

.carousel-caption a.btn {
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .hero-slide {
    height: 50vh;
    min-height: 300px;
    padding-bottom: 1rem;
  }

  .slide-caption {
    font-size: 1.2rem;
    bottom: 20%;
    padding: 0 1rem;
  }

  .carousel-caption h1 {
    font-size: 1.8rem;
    top: 20%;
  }

  .carousel-caption a.btn {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
}

.display-1 {
  font-size: 6rem;
  font-weight: 300;
  line-height: 1.2; }

.display-2 {
  font-size: 5.5rem;
  font-weight: 300;
  line-height: 1.2; }

.display-3 {
  font-size: 4.5rem;
  font-weight: 300;
  line-height: 1.2; }

.display-4 {
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.2; }


.fade-out {
  opacity: 0;
}

h1 {
      text-align: center;
      font-weight: bold;
}
    
h2 {
      text-align: center;
      font-weight: bold;
}
    
h3 {
      text-align: center;
      font-weight: bold;
}

h4 {
      text-align: right;
      font-weight: bold;
}

.card table {
  background-color: #343a40; /* Slightly lighter than bg-dark */
  color: #ffffff;
}

.card th, .card td {
  text-align: center;
  vertical-align: middle;
}

/* Basic navbar styling */
.navbar {
  background-color: #333;
  overflow: hidden;
}

.nav-menu {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: block;
  color: white;
  padding: 14px 20px;
  text-decoration: none;
}

.nav-menu a:hover {
  background-color: #575757;
}

/* Dropdown styling */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #444;
  min-width: 160px;
  z-index: 1;
  top: 100%;
  left: 0;
}

.dropdown-content li a {
  padding: 12px 16px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Grid of tiles */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

/* Each tile link */
.tile {
  display: block;
  align-items: center;
  text-align: center;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

/* The image area (needs height!) */
.cover {
  /* Pick one of these heights: */
  /* padding-top keeps aspect ratio; 56% ≈ 16:9 */
  /* padding-top: 56%; */
  align-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Text area */
.content {
  padding: 12px 14px 14px 12px;
}
.content .title {
  font-weight: 600;
  text-align: center;
  color: #ffffff;

}
.content .kicker, .content .desc {
  color: #ffffff;
  font-size: .95rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 1rem 0 2rem;
}
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; display: block; border-radius: 10px; }
.gallery figcaption { font-size: 0.95rem; color: #666; margin-top: 6px; }
.gallery .meta { display: block; font-size: 0.85rem; color: #999; }

.photo-page {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}

.photo-header h1 {
  text-align: center;
  margin-bottom: 1rem;
}

.photo-content img {
  display: block;
  max-width: 100%;
  margin: 1rem auto;
  border-radius: 8px;
}
.photo-tile {
  position: relative;
  align-content: center;
  text-align: center;
  display: inline-block;
  margin: 1rem;
}

.photo-tile img {
  display: block;
  align-content: center;
  width: 100%;
  height: auto;
}

.photo-tile .title {
  position: absolute;
  text-align: center;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.5);
  color: white;
  font-weight: 600;
  padding: 0.5rem;
  text-align: center;
  z-index: 2;
}

.text-muted {
  color:#537070
}

.image-meta {
  max-width: 700px;
  margin: 0 auto 1em;
  font-size: 0.9em;
  color: #aaa;
}
.image-meta table {
  background-color: #343a40;
  width: 100%;
  border-collapse: collapse;
}
.image-meta td, .image-meta th {
  padding: 2px 6px;
}
table {
  border-collapse: collapse;
  margin-left: auto;
  margin-right: auto;
  max-width: 700px;
  margin: 1em 0;
}

th, td {
  border: 1px solid #ccc;
  padding: 0.5em 1em;
  text-align: left;
}

th {
  background: #333;
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  th {
    background: #555;
  }
  td {
    background: #222;
    color: #ddd;
  }
}

table.exif-table {
  width: auto !important;
  max-width: 640px;
  margin: 1.25rem auto !important; /* centers the table block */
  display: table;                   /* ensure proper shrink-to-fit */
}
table.exif-table th, 
table.exif-table td { text-align: left; }

.caption {
  display: block;
  text-align: center;
  font-style: italic;
  color: #ccc;
  margin-top: 0.75em;
  margin-bottom: 2em;
}

.caption p {
  text-align: center;
}

/* Center all Markdown tables */
.markdown-body table {
  width:max-content
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  border-collapse: collapse;
}

/* Optional: style tweak to match your dark theme */
.markdown-body th,
.markdown-body td {
  border: 1px solid #555;
  padding: 6px 12px;
}

.markdown-body th {
  background-color: #222;
  color: #eee;
}
/* center markdown tables */
.markdown-body table {
  width: max-content;          /* shrink to content instead of 100% */
  margin-left: auto;
  margin-right: auto;          /* now auto margins can center it */
  border-collapse: collapse;
  text-align: left;
}

/* fallback for older browsers */
@supports not (width: max-content) {
  .markdown-body table { display: inline-table; }
  .markdown-body { text-align: center; }      /* or a wrapper; see B below */
  .markdown-body table { text-align: left; }  /* keep cells left-aligned */
}

.table-center { text-align: center; }     /* center the inline table box */
.table-center table {
  display: inline-table;                  /* shrink to content width */
  border-collapse: collapse;
  text-align: left;                       /* keep cell text left-aligned */
}
