/* static/css/gallery.css */

/* --- Page Header (Same as other pages) --- */
.page-header {
  position: relative; padding: 6rem 0; text-align: center; color: var(--white);
  background-size: cover; background-position: center center; display: flex;
  align-items: center; justify-content: center;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.page-header .container { position: relative; z-index: 2; }
.page-header-overlay { position: absolute; top:0; left:0; right:0; bottom:0; background: rgba(44, 62, 80, 0.7); z-index: 1; }
.page-header h1 { color: var(--white); font-size: 2.8rem; }
.page-header p { font-size: 1.1rem; color: #eee; max-width: 600px; margin: 0.5rem auto 0; }

/* --- Main Dashboard --- */
.gallery-dashboard { padding: 4rem 0; background: var(--light-gray); }
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}
.dashboard-header h2 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 0;
}

/* --- Grid of Boards --- */
.boards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}
.gallery-board {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  background: var(--white);
}
.gallery-board:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
  text-decoration: none;
}

/* --- Pinterest-style Preview Collage --- */
.board-preview-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  height: 250px;
}
.board-preview-grid > div {
  background-size: cover;
  background-position: center;
  background-color: #eee; /* Fallback color */
}
.preview-img-1 { grid-column: 1 / 2; grid-row: 1 / 3; }
.preview-img-2 { grid-column: 2 / 3; grid-row: 1 / 2; }
.preview-img-3 { grid-column: 2 / 3; grid-row: 2 / 3; }
/* The 4th image is hidden by default, used as a fallback if others are missing */
.preview-img-4 { display: none; } 

/* --- Board Info Text --- */
.board-info {
  padding: 1.25rem 1.5rem;
}
.board-info h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin: 0 0 0.25rem 0;
}
.board-info span {
  font-size: 0.9rem;
  color: #777;
  font-weight: 500;
}