/* === GALLERY PAGE STYLES (Scoped) === */

body {
  font-family: 'Quicksand', sans-serif;
  margin: 0;
  padding: 0;
  background-image: var(--woodGrain);
  background-size: 100%;
  background-repeat: repeat;
  color: #fff;
}
/* Fix me */
#custom-gallery,
#semi-custom {
  padding-block: 4rem;
}

.page-title {
  text-align: center;
  font-size: 2.5rem;
  margin: 3rem auto 1rem;
  color: white;
  text-shadow: 2px 2px 5px black;
  background-image: var(--nailedFrame);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  max-width: 90%;
  padding: 1rem;
  border-bottom: 3px solid white;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px black;
  background-image: var(--nailedFrame);
  background-repeat: repeat;
  background-size: contain;
  padding: 0.5rem;
  max-width: 90%;
  margin-inline: auto;
  border-bottom: 2px solid var(--metal);
}

.custom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 2rem;
  padding-inline: 2rem;
  max-width: 80rem;
  margin-inline: auto;
  align-items: start;
}

.gallery-card {
  background: #111;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 transparent;
  border: 4px ridge var(--metal, #6c6c6c);
}

.gallery-card:hover {
  box-shadow: 0 0.8rem 2rem rgba(255, 72, 0, 0.3);
}

.gallery-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-width: 100%;
  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-info {
  padding: 1rem;
  background-color: #333;
  border-top: 3px solid var(--accent, #c59d5f);
}

.gallery-info h3 {
  margin-top: 0;
  font-size: 1.4rem;
  color: var(--accent, #c59d5f);
  text-shadow: 1px 1px 2px black;
}

.gallery-info p {
  font-size: 1rem;
  line-height: 1.5;
  color: #eee;
}

/* Semi-Custom Section */ /* Fix me */
#semi-custom {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), var(--plateBox);
  background-size: 50% auto;
  background-repeat: repeat;
}

.semi-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
/* Fix me */
#preview-img {
  width: 300px;
  height: auto;
  object-fit: contain;
  border: 6px ridge var(--metal, #6c6c6c);
  border-radius: 6px;
  background-color: white;
  padding: 0.25rem;
}

.semi-info {
  max-width: 400px;
  background: #222;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 3px ridge var(--wood, #8b5e3c);
}

.color-swatch-container {

  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.color-swatch-container .swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid white;
  transition: transform 0.2s;
}

.color-swatch-container .swatch:hover {
  transform: scale(1.2);
  border-color: var(--accent, #c59d5f);
}

/* Style for the introductory paragraph in the new section */
.section-intro {
  text-align: center;
  max-width: 60ch; /* Limits the line length for readability */
  margin: -1rem auto 2.5rem; /* Pulls it closer to the h2 and adds space below */
  padding-inline: 1rem;
  font-size: 1.1rem;
  color: #ddd;
  text-shadow: 1px 1px 2px black;
}

@media (max-width: 768px) {
  .semi-wrapper {
    flex-direction: column;
    padding: 0 1rem;
  }
/* Fix me */
  #preview-img {
    width: 90%;
    max-width: 300px;
  }

  .semi-info { 
    width: 100%;
    max-width: 90vw;
  }
}
