
/* ================================
   A24 Showcase + Archive Styles
   ================================ */

/* wrapper and heading */
.a24-showcase-wrapper {
  max-width: var(--wp--style--global--wide-size);
  margin: 0 auto;
  padding: 4rem 2rem;
  color: #fff;
  font-family: var(--wp--preset--font-family--archivo);
  position: relative;
}

/* ensure bg inserted by JS sits behind content */
.a24-showcase-wrapper .a24-showcase-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.4s ease-in-out;
  filter: brightness(0.6);
}

/* overlay to darken bg for text contrast */
.a24-showcase-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
  pointer-events: none;
  border-radius: 6px;
}

.a24-showcase-header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}

.a24-showcase-title {
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

.a24-showcase-description {
  font-size: 1rem;
  color: #aaa;
  margin-top: 0.5rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* main showcase list (titles) */
.a24-showcase {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  align-items: start;
  position: relative;
  z-index: 2;
}

/* each title item */
.a24-item {
  position: relative;
  padding: 1rem;
  cursor: pointer;
  background: transparent;
  transition: color 0.2s;
}

/* title text */
.a24-title {
  display: inline-block;
  font-size: 1.1rem;
  /*font-weight: 600;*/
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
}

/* hidden img used for preloading */
.a24-hover-image {
  display: none;
}

/* responsive */
@media (max-width: 768px) {
  .a24-showcase-title { font-size: 1.5rem; }
  .a24-title { font-size: 1rem; }
  .a24-showcase { grid-template-columns: 1fr; }
}
