/* =========================
   Artist Card Grid Container
   ========================= */
.card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

/* =========================
   Individual Artist Card Styles
   ========================= */
.artist-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    cursor: pointer;
    transition: transform 0.2s;
    aspect-ratio: 1 / 1;
    height: auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.artist-card img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: filter 0.3s;
    border-radius: 12px;
}

/* =========================
   Overlay Fade on Artist Card Hover
   ========================= */
.artist-white-fade {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.45); /* much lighter white overlay */
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.2s;
}
.artist-card:hover .artist-white-fade {
    opacity: 1;
}

/* =========================
   Artist Overlay Image Styles
   ========================= */
.artist-card img.artist-overlay-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.artist-card:hover img.artist-overlay-img {
    opacity: 1;
}

/* =========================
   Card Overlay (Text/Info Overlay)
   ========================= */
.artist-card .card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    font-size: 1.2em;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: opacity 0.3s;
    text-align: center;
    padding: 1.5em;
}
.artist-card:hover img {
    filter: brightness(0.6);
}
.artist-card:hover .card-overlay {
    opacity: 1;
}

/* =========================
   Responsive Grid for Artist Cards
   ========================= */
@media (max-width: 900px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    .artist-card img {
        min-height: 0;
        min-width: 0;
    }
}

/* =========================
   Mobile Styles for Artist Card Tap-to-Reveal
   ========================= */
@media (hover: none) and (pointer: coarse) {
  .artist-card-link {
    position: relative;
    z-index: 1;
  }
  .artist-card .artist-overlay-img {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s;
  }
  .artist-card-link.tap-revealed .artist-card .artist-overlay-img {
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: opacity 0.3s;
  }
  .artist-card-link .artist-card .artist-overlay-img {
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .artist-card-link.tap-revealed .artist-card .artist-white-fade {
    opacity: 1 !important;
  }
  /* Prevent hover from showing overlays on mobile */
  .artist-card:hover .artist-overlay-img,
  .artist-card:hover .artist-white-fade {
    opacity: 0 !important;
  }
}