/* Summer Story Gallery Stylesheet */
/* Custom styles for the Studies for Summer Story gallery page */

/* Import Google font (same as main site) */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;700&display=swap');

/* ========================================
   2.2 Gallery Header Styles
   ======================================== */
.gallery-header {
  text-align: center;
  padding: 2rem 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e5e5e5;
}

.gallery-header h1 {
  font-family: 'EB Garamond', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 1rem 0;
  letter-spacing: 0.02em;
}

.gallery-header nav {
  margin-top: 1rem;
}

.gallery-header nav a {
  font-family: 'EB Garamond', serif;
  color: #1465b7;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5em 1em;
  border: 1px solid #1465b7;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.gallery-header nav a:hover {
  background-color: #1465b7;
  color: #fff;
}

/* ========================================
   2.3 Gallery Container Styles
   ======================================== */
main.gallery-container {
  width: 100%;
  max-width: none;
  padding: 1rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  border: none;
  margin: 0;
}

/* ========================================
   2.4 Photo Item Styles
   ======================================== */
.photo-item {
  flex: 0 0 800px;
  width: 800px;
  background: transparent;
}

.photo-item img {
  width: 800px;
  height: auto;
  display: block;
}

/* ========================================
   2.5 Caption Area Styles
   ======================================== */
.caption-area {
  padding: 0.75rem 0;
}

.caption-area p {
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #444;
  margin: 0;
}

/* ========================================
   2.6 Responsive Styles for Mobile Devices
   ======================================== */
@media (max-width: 768px) {
  .gallery-header {
    padding: 1.5rem 1rem;
  }

  .gallery-header h1 {
    font-size: 2rem;
  }

  main.gallery-container {
    padding: 1rem;
    gap: 1.5rem;
  }

  .photo-item {
    flex: 0 0 90vw;
    width: 90vw;
  }

  .photo-item img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .gallery-header {
    padding: 1rem 0.75rem;
  }

  .gallery-header h1 {
    font-size: 1.75rem;
  }

  .gallery-header nav a {
    font-size: 0.9rem;
    padding: 0.4em 0.8em;
  }

  .gallery-container {
    padding: 0.5rem;
    gap: 1rem;
  }
}

/* ========================================
   Footer Styles (consistent with site)
   ======================================== */
.gallery-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 2rem;
  border-top: 1px solid #e5e5e5;
  color: #666;
  font-family: 'EB Garamond', serif;
  font-size: 0.9rem;
}
