body {
  font-family: Arial, sans-serif;
  background: #f4f7f4;
  margin: 0;
  color: #2a3a2a;
}

/* Add a wrapper for page padding */
.gallery-wrapper {
  padding: 2rem;
}

.gallery-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #2a3a2a;
}

.slideshow-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #d2ebd2;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.slide {
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.show {
  opacity: 1;
}

.caption {
  padding: 1rem;
  background: rgba(255,255,255,0.95);
  text-align: center;
  font-size: 1.1rem;
  color: #2a3a2a;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(42,58,42,0.55);
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 6px;
}

.prev { left: 10px; }
.next { right: 10px; }

.pause {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(42,58,42,0.55);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}

.thumbnail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 1.5rem;
}

.thumbnail-grid img {
  width: 110px;
  height: 75px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thumbnail-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
/* Floating back button in top-right corner */
.back-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999; /* above slideshow + watermark */
}

.back-button a {
    background: #3c5f3c;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: background 0.2s ease, transform 0.1s ease;
}

.back-button a:hover {
    background: #2f4c2f;
    transform: scale(1.03);
}
.gallery-header {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-header h1 {
    font-size: 3rem;      /* increase size here */
    color: #2a3a2a;
    margin: 0;
}
