/* gallery.css */
/* Background image for gallery pages */


body.gallery-page::before {
  content: '';
  background-image: url('../images/RJSeaturtle.jpg');
  position: fixed;
  top: 1rem;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* opacity: 0.5; */
  z-index: -1;
}

h2 {
  margin-top: 2.5rem; /* ensures the heading itself isn’t squished */
}

/* Constrain gallery content width and add padding */
.photo-gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
}

/* Grid layout for photos */
.photo-gallery .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

/* Individual photo item */
.photo-gallery figure {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

/* Photo image */
.photo-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Captions under each photo */
.photo-gallery figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  text-align: center;
  background: #f9f9f9;
}

/* Anchor tag spacing */
.photo-gallery a {
  display: inline-block;
  margin: 8px;
}

/* Container for album intro with flexible layout */
.gallery-intro {
  display: flex;
  flex-shrink: 1;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px auto;
  max-width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Text block in intro */
.gallery-text {
  flex: 1;
  min-width: 300px;
}

/* Album cover container */
.album-cover-wrapper {
  position: relative;
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 1rem;
  text-align: center;
}

/* Stacked box look for album covers */
.album-cover-wrapper::before,
.album-cover-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: #fff;
  border: 4px solid #ccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  transition: box-shadow 0.3s ease;
}

/* Offset effect for depth */
.album-cover-wrapper::before {
  transform: translate(8px, -8px);
  z-index: 0;
}

.album-cover-wrapper::after {
  transform: translate(16px, -16px);
  z-index: -1;
}

/* Album image styling */
.album-cover-link img {
  width: 100%;
  height: auto;
  max-height: 400px;
  display: block;
  border-radius: 12px;
  z-index: 1;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* Album caption styling */
.album-caption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.4rem;
  z-index: 2;
  position: relative;
  user-select: none;
}

/* Responsive font bump for ultra-wide screens */
@media (min-width: 1200px) {
  .photo-gallery figcaption,
  .album-caption {
    font-size: 1.05rem;
  }
}


.seo-captions {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
