.buy-page .castle-card {
  min-height: 300px;
}

.buy-page .castle-details {
  min-height: 200px;
  justify-content: space-between;
}

.buy-page .castle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 30px;
}

.buy-page .castle-description {
  padding-left: 20px;
  margin: 10px 0;
  list-style-type: disc;
  font-family: "Fredoka", sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

.castle-image-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}

.castle-thumb {
  width: 200px;
  height: auto;
  cursor: pointer;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.castle-thumb:hover {
  transform: scale(1.05);
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 1001;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
}

.lightbox-nav .prev,
.lightbox-nav .next {
  font-size: 2rem;
  color: white;
  cursor: pointer;
  user-select: none;
}
