* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
  color: #222;
  background: #f5f5f2;

  padding-bottom: 5rem;
}

/* Header */

.site-header {
  background: #263238;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

.site-header h1 {
  margin: 0;
  font-size: 2.4rem;
}

.site-header p {
  margin: 0.5rem 0 0;
  font-size: 1.1rem;
}

/* Navigation menu */

.site-nav {
  background: #37474f;
  text-align: center;
  padding: 0.75rem;
}

.site-nav a {
  color: white;
  text-decoration: none;
  margin: 0 0.75rem;
  font-weight: bold;
}

.site-nav a:hover {
  color: #9edcff;
  text-decoration: none;
}

.site-nav a.active {
  color: #9edcff;
  text-decoration: none;
}

/* Main content */

.content {
  max-width: 850px;
  margin: 2rem auto;
  padding: 1.5rem 1.25rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.content h2 {
  margin-top: 0;
  color: #263238;
}

.content p,
.content ul {
  font-size: 1.05rem;
}

.content a {
  color: #005b8f;
}

.content a:hover {
  color: #003f63;
}

/* Footer */

.site-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 0.45rem 1rem;
  background: #f5f5f2;
  color: #555;
  font-size: 0.78rem;
  border-top: 1px solid #ddd;
}

/* Small-screen adjustments */

@media screen and (max-width: 600px) {
  .site-header h1 {
    font-size: 2rem;
  }

  .site-nav a {
    display: block;
    margin: 0.35rem 0;
  }

  .content {
    margin: 1rem;
    padding: 1.25rem;
  }
}
.about-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.about-text {
  flex: 2;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-left: auto;
}

/* On smaller screens, place the image below the text */

@media screen and (max-width: 700px) {
  .about-layout {
    flex-direction: column;
  }

  .about-image img {
    max-width: 100%;
    margin-left: 0;
  }
}

/* Gallery grid */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.gallery-item {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: #e8e8e8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
  opacity: 0.9;
}

/* Lightbox overlay */

.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  padding: 2rem;
}

/* 
  When JavaScript adds the class "open", the lightbox becomes visible.
*/

.lightbox.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 78vh;
  height: auto;
  border-radius: 8px;
  background: white;
}

.lightbox-close {
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.9rem;
  border: none;
  border-radius: 4px;
  background: white;
  color: #222;
  font-weight: bold;
  cursor: pointer;
}

.lightbox-close:hover {
  background: #9edcff;
}

.lightbox-caption {
  color: white;
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

/* Tablet layout */

@media screen and (max-width: 850px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Phone layout */

@media screen and (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item img {
    height: 130px;
  }

  .lightbox {
    padding: 1rem;
  }
}