section.archive,
section.available {
  padding: 0.75rem 0.75rem 0.75rem;
  margin: 0 0.5rem;
}

h2 {
    font-size: var(--base-size);
}

.email {
  color: #000;
  border-bottom: 1px dashed var(--link);
}

.view-other {
    margin: 0.75rem 0;
}

/* Arena container */
#arena-grid {
  max-width: 1400px;
  margin: 1rem 0 0;
}

/* Year headers */
.year-header {
  font-size: var(--base-size);
  margin: 3rem 0 0.5rem 0;
  font-style: italic;
}

.year-header:first-child {
  margin-top: 0;
}

/* Year grid */
.year-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Arena items */
.arena-item {
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.arena-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.arena-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.arena-item.revealed::before {
  opacity: 1;
}

.arena-item.revealed img {
  opacity: 0.2;
}

.arena-title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  font-size: var(--base-size);
  margin: 0;
  padding: 0.75rem;
  color: var(--link);
  opacity: 0;
  transition: opacity 0.3s ease;
  font-style: italic;
  min-height: 1em;
}

.arena-item.revealed .arena-title {
  opacity: 1;
}

.arena-description {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.75rem;
  color: var(--link);
  white-space: pre-wrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-style: italic;
}

.arena-item.revealed .arena-description {
  opacity: 1;
}

/* Load more button */
.load-more-btn {
  display: block;
  margin: 2rem auto;
  padding: 0.5rem 1.75rem;
  font-size: var(--base-size);
  background: #fff;
  color: var(--link);
  border: 1px dashed var(--link);
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 1rem;
}

.load-more-btn:hover {
  background-color: rgb(232, 232, 255);
}

/* Image modal */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: pointer;
  padding: 2rem;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
  .year-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .year-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  /* Mobile: stack text below image */
  .arena-item {
    display: block;
    position: relative;
    cursor: default;
  }
  
  .arena-item::before {
    display: none;
  }
  
  .arena-item img {
    opacity: 1 !important;
  }
  
  .arena-title {
    position: static;
    opacity: 1;
    padding: 0.5rem 0 0 0;
  }
  
  .arena-description {
    position: static;
    opacity: 1;
    padding: 0.25rem 0 0 0;
  }
}

@media (max-width: 480px) {
  .year-grid {
    grid-template-columns: 1fr;
  }
}