/* ===== All Photography Page ===== */

#all-photography {
  max-width: 900px;
  margin: 0 auto;
}

#all-photography h1 {
  font-size: 2rem;
  font-weight: bold;
  color: #33ff7a;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #33ff7a;
  display: inline-block;
  padding-bottom: 0.2rem;
  margin-bottom: 1.5rem;
}

/* Two columns. Entries alternate left/right, and each one spans two grid rows
   starting one row after the previous entry (--row is set per entry by
   allPhotography.js), so the right column sits half an entry lower. */
#photo-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
}

#photo-list .photo-entry {
  grid-row: var(--row) / span 2;
  align-self: start;
  background: rgba(31, 31, 31, 0.6);
  border-left: 4px solid #33ff7a;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

#photo-list .photo-entry:nth-child(odd) {
  grid-column: 1;
}

#photo-list .photo-entry:nth-child(even) {
  grid-column: 2;
}

/* Thumbnail */
#photo-list .photo-thumb {
  display: block;
  margin-bottom: 0.75rem;
  line-height: 0;
}

#photo-list .photo-thumb:hover {
  text-decoration: none;
}

#photo-list .photo-thumb img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Summary content pulled from each photoX.html */
#photo-list .photo-entry h3 {
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

#photo-list .photo-entry p {
  margin-bottom: 0.5rem;
}

#photo-list .photo-entry .photo-date {
  font-size: 0.9rem;
  color: #b0b0b0;
}

#photo-list .photo-entry a {
  color: #33ff7a;
}

#photo-list .photo-entry a:hover {
  color: #ffffff;
}

/* Single column on narrow screens (no stagger) */
@media (max-width: 700px) {
  #photo-list {
    grid-template-columns: minmax(0, 1fr);
  }

  #photo-list .photo-entry,
  #photo-list .photo-entry:nth-child(odd),
  #photo-list .photo-entry:nth-child(even) {
    grid-column: 1;
    grid-row: auto;
  }
}

/* ===== Pagination Controls ===== */

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.pagination-controls button {
  background: #ffffff;
  color: #121212;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.pagination-controls button:hover:not(:disabled) {
  background: #33ff7a;
  transform: scale(1.05);
}

.pagination-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

#page-indicator {
  font-size: 1rem;
  color: #f0f0f0;
}