/* === Mike's Page - Main Stylesheet === */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #1a2a3a;
  --deep-blue: #2c3e50;
  --sea-blue: #34627c;
  --sky: #5a9ab5;
  --hover-color: #ff6b35;
  --cream: #faf8f4;
  --text: #2c2c2c;
  --text-light: #6b6b6b;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lucida Console', Monaco, monospace;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
}

/* --- Header --- */
.site-header {
  background-color: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 2rem 1rem 0.5rem;
}

.site-header h1 {
  font-size: 2.2rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  color: var(--white);
}

.site-header p {
  color: var(--white);
  font-size: 0.9rem;
}

/* --- Navigation --- */
nav {
  background-color: var(--navy);
  text-align: center;
  padding: 0.5rem 1rem 1rem;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--hover-color);
  text-decoration: underline;
}

/* --- Main Content --- */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.intro {
  text-align: center;
  margin-bottom: 2rem;
}

.intro img {
  max-width: 460px;
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
}

.intro p {
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto 1rem;
  line-height: 1.7;
}

/* --- Links --- */
a {
  color: var(--sea-blue);
}

a:visited {
  color: var(--deep-blue);
}

a:hover {
  color: var(--hover-color);
}

/* --- Photo Gallery Sections --- */
.gallery-section {
  margin-bottom: 3rem;
}

.gallery-section h2 {
  font-size: 1.3rem;
  color: var(--navy);
  border-bottom: 1px solid var(--sea-blue);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: flex-start;
}

/* --- Photo Card with Caption --- */
.photo-card {
  text-align: center;
  max-width: 420px;
}

.photo-card img {
  max-width: 420px;
  width: auto;
  max-height: 380px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.photo-card img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* --- Lightbox --- */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  cursor: default;
}

.lightbox-caption {
  color: var(--white);
  font-size: 0.95rem;
  margin-top: 12px;
  text-align: center;
  max-width: 90vw;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: var(--hover-color);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  padding: 0 20px;
  user-select: none;
  transition: color 0.2s;
}

.lightbox-nav:hover {
  color: var(--hover-color);
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

.photo-card .caption {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 4px;
  line-height: 1.4;
  text-align: center;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--navy);
  color: var(--sky);
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 2rem;
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--sky);
}

.site-footer a:hover {
  color: var(--hover-color);
}

.site-footer .last-updated {
  font-style: italic;
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .site-header h1 {
    font-size: 1.6rem;
  }

  .photo-card {
    max-width: 100%;
  }

  .photo-card img {
    max-width: 100%;
    max-height: none;
  }

  .content {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .site-header h1 {
    font-size: 1.3rem;
  }

  nav a {
    display: block;
    padding: 0.3rem;
  }
}
