/**
 * Artists Archive Styling
 */

.bg-artists-archive-container {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    grid-template-areas: "names preview" !important;
    align-items: start;
    min-height: 80vh;
    gap: 60px;
    margin-top: 40px;
    position: relative;
    background-color: #ffffff;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Left Column: Artists List */
.bg-artists-list-column {
    grid-area: names !important;
    padding: 0 20px;
    min-width: 0;
    /* Allow grid shrinking */
}

.bg-artists-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Specific two-column layout for names */
    gap: 20px 40px;
}

.bg-artist-item {
    margin-bottom: 5px;
}

.bg-artist-link {
    font-family: 'Outfit', sans-serif;
    /* Assuming Outit or similar sans-serif */
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    color: #111;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    letter-spacing: 0.05em;
}

.bg-artist-link:hover {
    color: #555;
    transform: translateX(5px);
}

/* Right Column: Sticky Preview */
.bg-artists-preview-column {
    grid-area: preview !important;
    min-width: 350px;
    /* Prevent collapse */
    position: relative;
    display: block;
}

.bg-artist-preview-sticky {
    position: sticky;
    top: 120px;
    /* Slightly lower for better breathing room */
    height: 60vh;
    /* Use vh for dynamic height but keep it reasonable */
    max-height: 600px;
    /* Don't let it get massive */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 10;
}

.bg-artist-preview-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
}

.bg-artist-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.8s ease;
    transform: scale(1.05);
}

.bg-artist-preview-image.active {
    opacity: 1;
    transform: scale(1);
}

.bg-artist-preview-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.bg-artist-preview-placeholder.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Responsive Implementation */
@media (max-width: 768px) {
    .bg-artists-archive-container {
        flex-direction: column;
    }

    .bg-artists-preview-column {
        display: none;
        /* Hide preview on mobile as per research */
    }

    .bg-artists-grid {
        grid-template-columns: 1fr;
    }

    .bg-artist-link {
        font-size: 20px;
    }
}