/* =============================================
   Minecraft Banner Designs — page styles
   ============================================= */

.mc-banner-page {
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 1rem;
}

.mc-banner-page h1 {
  text-align: center;
  font-size: var(--text-3xl);
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-top: 0;
}

.mc-intro {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  margin-top: 1rem;
}

/* Grid */
.mc-banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Tile */
.mc-banner-tile {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-raised);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.mc-banner-tile:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.mc-banner-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Back button */
.mc-back {
  text-align: center;
  margin: 2rem 0;
}

.mc-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--color-primary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.mc-btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
}

/* Lightbox */
.mc-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.mc-lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--radius-md);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s forwards;
}

.mc-lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  font-weight: bold;
  line-height: 1;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.8); }
  to   { transform: scale(1); }
}

@media (max-width: 900px) { .mc-banner-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .mc-banner-grid { grid-template-columns: 1fr; } }
