/* Festival Greetings Gallery */

.gallery-set {
  margin: 1.6rem 0 0;
  /* Land anchor jumps (e.g. /gallery/#jamai-sasthi from a Gallery capsule)
     clear of the sticky site header. */
  scroll-margin-top: 4rem;
}

.gallery-set__title {
  margin: 0 0 0.7rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  scroll-margin-top: 4rem;
}

/* Cards sit centred in the column — a lone image doesn't hug the left edge
   on desktop, and fuller sets wrap into a centred row. */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.gallery-card {
  flex: 0 1 21rem;
  max-width: 100%;
}

.gallery-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--color-beige-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gallery-card__img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-card__actions {
  display: flex;
  gap: 0.45rem;
  padding: 0.6rem;
}

.gallery-btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.gallery-btn--download {
  background: #fff;
  color: var(--color-primary);
}

.gallery-btn:hover {
  filter: brightness(1.1);
}

.gallery-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.gallery-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 1100;
  max-width: min(90vw, 22rem);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: rgba(40, 24, 28, 0.92);
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.gallery-empty {
  margin: 2rem 0;
  padding: 1.2rem;
  background: var(--color-beige);
  border: 1px solid var(--color-beige-border);
  border-radius: var(--radius);
  color: var(--color-muted);
  text-align: center;
}
