/* Updated to full-page sizing when scrolled to */
.image-navigation {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  width: 100vw;
  /* Reduced height from 100vh to 75vh for better proportions */
  height: 75vh;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.image-navigation__img {
  position: relative;
  display: block;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Removed transition for image zoom - images stay static now */
}

.image-navigation__img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Keeping dark overlay for text contrast */
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
  transition: background 0.3s ease;
}

.image-navigation__img:hover::after {
  /* Slightly darken overlay on hover for subtle effect */
  background: rgba(0, 0, 0, 0.4);
}

.image-navigation__wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 2;
}

.image-navigation__title {
  /* Mimicking reference font: bold, condensed, clean without shadows */
  font-size: 2.4rem;
  font-weight: 900;
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  color: #fff;
  /* Removed text-shadow for clean look */
  text-align: center;
  /* Added transition for label animation on hover */
  transition: transform 0.3s ease, letter-spacing 0.3s ease;
}

.image-navigation__img:hover .image-navigation__title {
  /* Label animates on hover instead of image */
  transform: scale(1.08);
  letter-spacing: 0.12em;
}

/* Mobile layout: 2 columns x 4 rows, full viewport */
@media (max-width: 768px) {
  .image-navigation {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    height: 85vh;
  }

  .image-navigation__title {
    font-size: 1.6rem;
    letter-spacing: 0.06em;
  }

  .image-navigation__img:hover .image-navigation__title {
    letter-spacing: 0.1em;
  }
}

/* Remove any container constraints for full-page display */
.category-main {
  padding: 0;
  margin: 0;
  width: 100%;
}

.category-hero {
  padding: 2rem;
  text-align: center;
  background: var( --accent-color);
  margin-top : 5rem;
  color: #fff;
}

.category-hero__title {
  font-size: 2.5rem;
  margin: 0 0 1rem 0;
  font-weight: 700;
}

.category-hero__subtitle {
  font-size: 1.2rem;
  margin: 0;
  opacity: 0.8;
}

.magazine-name-reveal {
  width: 100%;
  text-align: center;
  padding: var(--space-2xl, 3rem) 0 var(--space-xl, 2rem) 0;
  background: var(--color-background, #fff);
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.magazine-name-reveal.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.magazine-logo {
  font-family: inherit;
  font-size: var(--fs-3xl, 2.5rem);
  font-weight: 900;
  color: var(--color-primary, #000);
  letter-spacing: -0.02em;
  margin: 0;
}

/* Ensure stacking order for reveal effect */
#category-footer-block {
  position: relative;
  z-index: 1;
}

.footer-brand-reveal {
  width: 100%;
  text-align: center;
  padding: 4rem 0 3rem 0;
  background: #000;
  color: #fff;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  position: relative;
  z-index: 2;
}

.footer-brand-reveal.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.footer-brand-reveal .footer-logo {
  font-family: inherit;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.footer-brand-reveal .footer-tagline {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Added responsive adjustments for mobile */
@media (max-width: 768px) {
  .footer-brand-reveal {
    padding: 3rem 1rem 2rem 1rem;
  }

  .footer-brand-reveal .footer-logo {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }
}
