/* ===================================================
   MR. HOT BUNZ — Gallery page styles (gallery.css)
   Does NOT modify styles.css used by other pages.
   =================================================== */

/* ── Page hero ── */
.gallery-hero {
  padding: 7rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.gallery-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 20%, hsl(43,80%,46%,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 90%, hsl(4,66%,46%,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.gallery-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--fg);
  letter-spacing: -0.03em;
  position: relative;
}
.gallery-hero h1 span {
  color: var(--primary);
  text-shadow: 4px 4px 0 rgba(44,26,20,1);
}
.gallery-hero-intro {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--muted-fg);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.gallery-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 2px solid var(--fg);
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg);
  box-shadow: 3px 3px 0 var(--shadow);
  margin-bottom: 1.5rem;
  transform: rotate(-1.5deg);
}

/* ── Section titles ── */
.gallery-section {
  padding: 4rem 0 2rem;
}
.gallery-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.gallery-section-title h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.gallery-section-subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fg-muted, #888);
  margin: 0.15rem 0 0.5rem;
  letter-spacing: 0.01em;
}
.gallery-section-line {
  flex: 1;
  height: 3px;
  background: linear-gradient(to right, var(--primary), transparent);
  border-radius: 9999px;
  margin-top: 0.2rem;
}
.gallery-section-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--fg);
  box-shadow: 2px 2px 0 var(--shadow);
}
.icon-bg-red  { background: var(--primary); color: #fff; }
.icon-bg-gold { background: var(--secondary); color: #fff; }
.icon-bg-dark { background: var(--fg); color: #fff; }
.icon-bg-accent { background: var(--accent); color: #fff; }

/* ── Grid ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* ── Grid items ── */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 2px solid var(--fg);
  box-shadow: 4px 4px 0 var(--shadow);
  background: var(--fg);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--shadow);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.04);
}

/* Video items: no pointer on hover tweak (browser controls handle it) */
.gallery-item-video {
  cursor: default;
  aspect-ratio: 16 / 9;
}
.gallery-item-video:hover {
  transform: translate(-2px, -2px);
}
.gallery-item-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* Overlay label on images */
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,26,20,0.7) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
  pointer-events: none;
}
.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}
.gallery-item-caption {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Expand icon badge */
.gallery-item-expand {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2rem;
  height: 2rem;
  background: rgba(255,255,255,0.9);
  border: 1.5px solid var(--fg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.gallery-item:hover .gallery-item-expand {
  opacity: 1;
}

/* Video badge */
.gallery-video-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  border: 1.5px solid var(--fg);
  pointer-events: none;
}

/* ── CTA band ── */
.gallery-cta {
  margin: 4rem 0 0;
  background: var(--fg);
  padding: 3.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.gallery-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 120%, var(--primary) 0%, transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}
.gallery-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  position: relative;
}
.gallery-cta h2 span { color: var(--secondary); }
.gallery-cta p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2rem;
  position: relative;
}
.gallery-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  position: relative;
}
.gallery-cta-call {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: 0.5rem;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.gallery-cta-call:hover {
  transform: translate(-2px,-2px);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.3);
}
.gallery-cta-home {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: 0.5rem;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  cursor: pointer;
}
.gallery-cta-home:hover {
  background: rgba(255,255,255,0.18);
  transform: translate(-2px,-2px);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.3);
}

/* ── Lightbox ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#lightbox.open {
  display: flex;
}
#lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 0.5rem;
  border: 3px solid rgba(255,255,255,0.15);
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  display: block;
}
#lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
#lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
#lightbox-close:hover {
  background: rgba(255,255,255,0.22);
}
#lightbox-prev,
#lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}
#lightbox-prev:hover,
#lightbox-next:hover { background: rgba(255,255,255,0.22); }
#lightbox-prev { left: 1rem; }
#lightbox-next { right: 1rem; }
@media (max-width: 560px) {
  #lightbox-prev { left: 0.25rem; }
  #lightbox-next { right: 0.25rem; }
}

/* ── Gallery nav override — active state for "Gallery" link ── */
.nav-link-gallery.active,
.mobile-nav-link-gallery.active {
  color: var(--primary);
}
.nav-link-gallery.active::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 9999px;
}
.nav-link-gallery {
  position: relative;
}
