/* Basic gallery grid */
.bunny-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.bunny-photo img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
  display: block;
}

/* FIXED: Stack buttons vertically instead of side-by-side */
.bunny-actions {
  display: flex;
  flex-direction: column; /* Changed from default row */
  gap: 6px; /* Reduced gap for tighter stacking */
  margin-top: 6px;
  align-items: stretch; /* Make buttons same width */
}

/* Unified blue-glass buttons (grid + lightbox) - Made thinner */
.bunny-actions .download-btn,
.bunny-actions .buy-btn,
#lightbox-download.bunny-dl {
  display: inline-block;
  padding: 8px 16px; /* Reduced from 10px to 8px for thinner buttons */
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #4db8ff 0%, #1e90ff 45%, #0b74d0 100%);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 6px 16px rgba(0,0,0,0.25);
  transition: transform .04s ease, box-shadow .12s ease, filter .12s ease;
  text-align: center; /* Center text */
  white-space: nowrap; /* Keep text on one line */
}

/* Order buttons: Download first, Buy second */
.bunny-actions .download-btn {
  order: 1;
}
.bunny-actions .buy-btn {
  order: 2;
}

.bunny-actions .download-btn:hover,
.bunny-actions .buy-btn:hover,
#lightbox-download.bunny-dl:hover {
  filter: brightness(1.07);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 10px 22px rgba(0,0,0,0.28);
}
.bunny-actions .download-btn:active,
.bunny-actions .buy-btn:active,
#lightbox-download.bunny-dl:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,0.15),
    0 6px 16px rgba(0,0,0,0.2);
}

/* Lightbox overlay */
.bunny-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
#lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.bunny-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}
.bunny-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  font-size: 28px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
}
.bunny-nav.prev { left: 20px; }
.bunny-nav.next { right: 20px; }
.bunny-nav:hover { background: rgba(255,255,255,0.2); }

/* Lightbox download position */
#lightbox-download.bunny-dl {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
}

/* Navigation bar container (for your page-level nav links) */
.gallery-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.gallery-nav .racing-button {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #4db8ff 0%, #1e90ff 45%, #0b74d0 100%);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 6px 16px rgba(0,0,0,0.25);
  transition: transform .04s ease, box-shadow .12s ease, filter .12s ease;
}
.gallery-nav .racing-button:hover {
  filter: brightness(1.07);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 10px 22px rgba(0,0,0,0.28);
}
.gallery-nav .racing-button:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,0.15),
    0 6px 16px rgba(0,0,0,0.2);
}