/* Masonry Gallery Layout */
.pastry-masonry-gallery {
  column-count: 2;
  column-gap: 0.1rem;
  margin-bottom: 2rem;
}
@media (min-width: 600px) {
  .pastry-masonry-gallery {
    column-count: 3;
    column-gap: 0.7rem;
  }
}
@media (min-width: 900px) {
  .pastry-masonry-gallery {
    column-count: 4;
    column-gap: 1rem;
  }
}
@media (min-width: 1200px) {
  .pastry-masonry-gallery {
    column-count: 5;
    column-gap: 1.2rem;
  }
}
@media (max-width: 900px) {
  .pastry-masonry-gallery {
    column-gap: 0.4rem;
  }
  .pastry-gallery-item {
    margin: 0 0 0.4rem;
  }
}
@media (max-width: 600px) {
  .pastry-masonry-gallery {
    column-gap: 0.7rem;
  }
  .pastry-gallery-item {
    margin: 0 0.7rem 0.7rem 0;
  }
}
.pastry-gallery-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 0.1rem;
  position: relative;
  background: none;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(60, 60, 60, 0.1), 0 1.5px 6px rgba(0, 0, 0, 0.04);
  padding: 0;
  vertical-align: top;
  overflow: hidden;
  transition: box-shadow 0.2s,
    transform 0.18s cubic-bezier(0.36, 2.01, 0.3, -0.53);
}
.pastry-gallery-item:hover {
  box-shadow: 0 8px 32px rgba(60, 60, 60, 0.16), 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: rotate(-2deg) scale(1.04);
}
.pastry-gallery-img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: none;
  transition: none;
  background: #f8f8f8;
  min-height: 180px;
}
@media (min-width: 900px) {
  .pastry-gallery-img {
    min-height: 320px;
    max-height: 600px;
  }
  .pastry-gallery-item {
    margin: 0 0 1.2rem;
  }
}
.pastry-gallery-caption,
.pastry-like-btn,
.pastry-like-count {
  display: none !important;
}
/* Lightbox Styles */
.gallery-lightbox {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  animation: fadeIn 0.3s;
}
.gallery-lightbox .lightbox-img {
  max-width: 90vw;
  max-height: 70vh;
  border-radius: 1.2rem;
  box-shadow: 0 8px 32px rgba(234, 166, 54, 0.18);
  margin-bottom: 1.2rem;
}
.gallery-lightbox .lightbox-caption {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  max-width: 80vw;
}
.gallery-lightbox .lightbox-close {
  position: absolute;
  top: 2.5rem;
  right: 3rem;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.2s;
}
.gallery-lightbox .lightbox-close:hover {
  color: var(--primary, #eaa636);
}
.gallery-lightbox .lightbox-prev,
.gallery-lightbox .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #fff;
  background: rgba(234, 166, 54, 0.7);
  border: none;
  border-radius: 50%;
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: background 0.2s;
}
.gallery-lightbox .lightbox-prev {
  left: 2rem;
}
.gallery-lightbox .lightbox-next {
  right: 2rem;
}
.gallery-lightbox .lightbox-prev:hover,
.gallery-lightbox .lightbox-next:hover {
  background: #fff;
  color: var(--primary, #eaa636);
}
.gallery-lightbox .lightbox-like-btn {
  background: transparent !important;
  color: inherit;
  border: none;
  border-radius: 50%;
  padding: 0.5rem;
  font-size: 1.7rem;
  box-shadow: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.gallery-lightbox .lightbox-like-btn.liked {
  background: transparent !important;
  color: inherit;
}
.gallery-lightbox .lightbox-like-btn i {
  color: #eaa636;
  transition: color 0.2s;
}
.gallery-lightbox .lightbox-like-btn.liked i {
  color: #e74c3c !important;
}
.gallery-lightbox .lightbox-like-count {
  color: #eaa636;
  font-weight: 700;
  margin-left: 0.3rem;
  font-size: 1.1rem;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* Surprise Me Button */
#surpriseMeBtn {
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 1.2rem;
  box-shadow: 0 2px 8px rgba(234, 166, 54, 0.08);
  background: var(--primary) !important;
  color: #fff !important;
  border: none;
  transition: background 0.2s, color 0.2s;
}
#surpriseMeBtn:hover,
#surpriseMeBtn:focus {
  background: var(--primary) !important;
  color: #fff !important;
}
/* Sprinkle Animation Overlay */
#sprinkle-animation {
  pointer-events: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  overflow: visible;
}
.sprinkle {
  position: absolute;
  width: 16px;
  height: 8px;
  border-radius: 8px 8px 16px 16px;
  background: linear-gradient(90deg, #eaa636, #fff3cd, #f7b731, #fff, #eaa636);
  opacity: 0.85;
  box-shadow: 0 2px 8px rgba(234, 166, 54, 0.18);
  animation: sprinkleDrop 1.2s cubic-bezier(0.6, 0.2, 0.4, 1) forwards;
}
@keyframes sprinkleDrop {
  0% {
    transform: translateY(-40px) rotate(0deg) scale(0.7);
    opacity: 0.7;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg) scale(1.1);
    opacity: 0;
  }
}
/* Lightbox Action Bar */
.lightbox-actions {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}
.lightbox-action-btn {
  background: #fff3cd;
  color: #eaa636;
  border: none;
  border-radius: 1.2rem;
  padding: 0.7rem 1.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(234, 166, 54, 0.08);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lightbox-action-btn:hover,
.lightbox-action-btn:focus {
  background: #eaa636;
  color: #fff;
}
.lightbox-like-btn i {
  color: #eaa636;
  transition: color 0.2s;
}
.lightbox-like-count {
  color: #eaa636;
  font-weight: 700;
  margin-left: 0.3rem;
  font-size: 1.1rem;
}
