/*
  css/sample-collection.css
  Page-Specific Stylesheet for a Series/Collection Page

  This file styles the page that displays all artworks within a single collection.
*/

/* --- Main Container --- */
.series-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* --- Series Header --- */
/*
  Styles for the header section of the page, containing the title and description.
  'text-align: center' centers the content.
  'margin-bottom' adds space between the header and the artwork grid.
*/
.series-header {
  text-align: center;
  margin-bottom: 3rem;
}

.series-header h1 {
  font-size: 2.8rem;
  color: var(--secondary-accent);
  margin-bottom: 1rem;
}

.series-header p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem auto; /* Center the paragraph and add bottom margin */
}

/*
  Styles for the "Back to Gallery" button.
  This provides a clear navigation path for the user.
*/
.back-to-gallery-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--secondary-accent);
  color: var(--secondary-accent);
  font-family: var(--heading-font);
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.back-to-gallery-btn:hover {
  background-color: var(--secondary-accent);
  color: white;
}


/* --- Artwork Grid --- */
.artwork-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center the items horizontally */
  gap: 2rem;
}

/* --- Artwork Card --- */
.artwork-card {
  flex: 0 0 30%; /* Set a fixed basis of 30% */
  max-width: 30%; /* Ensure it doesn't grow larger */
  text-align: center;
  transition: transform 0.3s ease;
}

/* Media query for tablet-sized screens */
@media (max-width: 768px) {
  .artwork-card {
    flex: 0 0 45%; /* Two cards per row */
    max-width: 45%;
  }
}

/* Media query for mobile-sized screens */
@media (max-width: 480px) {
  .artwork-card {
    flex: 0 0 90%; /* One card per row */
    max-width: 90%;
  }
}

.artwork-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/*
  A subtle lift effect on hover.
*/
.artwork-card:hover {
  transform: translateY(-5px);
}

/*
  The thumbnail image for the artwork.
  'width: 100%' makes it responsive.
  'height: 500px' gives a consistent height.
  'object-fit: cover' prevents distortion.
  'border-radius' and 'box-shadow' add to the visual appeal.
*/
.artwork-thumbnail {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem; /* Space between image and name */
}

/*
  The container for the artwork's name.
*/
.artwork-info {
  padding: 0.5rem;
}

/*
  The name of the artwork.
  'font-family' and 'font-size' are set for consistency.
*/
.artwork-name {
  font-family: var(--heading-font);
  font-size: 1.3rem;
  margin: 0; /* Reset default h2 margin */
}
