/* css/gallery-detail-card.css */

/* Gallery Detail Overlay */
#galleryDetailOverlay {
  position: fixed;
  /* Ensures it stays in the center even if you've scrolled down */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  /* Controlled by .active class */
  justify-content: center;
  align-items: center;
  z-index: 10000;
  /* High number to stay above navbar/list */
}

#galleryDetailOverlay.active {
  display: flex;
}

/* 1. Modal Container */
.gallery-detail-card {
  background: var(--feather-white);
  max-width: 500px;
  /* Constrains the overall width on desktop */
  width: 90%;
  max-height: 85vh;
  border-radius: 20px;
  position: relative;
  padding: 30px;
  overflow-y: auto;
  color: var(--feather-black);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* 2. The Big Image Fix */
#galleryDetailImage {
  width: 100%;
  height: 300px;
  /* Fixed height for consistency */
  object-fit: cover;
  /* Prevents stretching */
  border-radius: 12px;
  border: 1px solid var(--downy-grey);
}

/* 3. The Nest Tag (Pillar) */
#galleryDetailPillar {
  align-self: flex-start;
  background-color: var(--tail-green);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 4. Detail Tags (Stitches, Materials) */
#galleryDetailTags {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

#galleryDetailTags li {
  background: var(--downy-grey);
  color: var(--coal-dust);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* 5. Typography */
#galleryDetailTitle {
  margin: 0;
  font-size: 1.5rem;
}

#galleryDetailDescription {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--coal-dust);
}

.close-detail {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--coal-dust);
  z-index: 10;
}
