/* Artists Detail Page Styles */

/* Layout structure */
body {
    background-color: #505050;
    overflow-x: hidden;
}

/* Header spacing */
.j-main-sec {
    position: initial;
    margin-top: 93px; /* Add margin to account for fixed header height */
    padding: 0;
    background-color: #000;
    width: 100%;
    overflow-x: hidden;
}

/* Container styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    overflow-x: visible;
}

/* Section title styles (for artist name and gallery section) */
.section-title-container {
    padding: 0;
    margin: 0;
    background-color: #505050;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 60px;
    display: flex;
    align-items: flex-end;
}

.seasonal-title {
    width: 100%;
    text-align: left;
    padding: 0 0 15px 0;
    background-color: #505050;
    color: #fff;
    font-size: 19px;
    margin: 0 auto;
    max-width: 1200px;
}

/* Artist row layout */
.artist-container {
    display: flex;
    flex-direction: column;
    background-color: #000;
    padding: 30px 0;
    width: 100%;
}

.artist-row {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    justify-content: flex-start;
}

/* Artist image section (left side) */
.artist-image-container {
    flex: 0 0 720px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    height: 400px;
    width: 720px;
    /* Fixed dimensions */
    max-width: 720px;
    min-width: 720px;
}

.artist-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Image navigation buttons */
.image-nav-btn {
    position: absolute;
    background-color: rgba(0, 0, 0, 0);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 5;
}

.image-nav-btn img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.image-prev {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.image-next {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.image-fullscreen {
    right: 10px;
    bottom: 10px;
}

/* Artist info section (right side) */
.artist-info-container {
    flex: 0 0 35%;
    position: relative;
    z-index: 3;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    text-align: left;
    align-self: flex-end;
    margin-bottom: 20px;
}

.artist-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

.artist-description {
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Artist works display (grid) */
.artist-works-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    margin-top: 10px;
    margin-bottom: 30px;
    height: 200px;
    overflow-x: auto;
    width: 1200px;
    max-width: 1200px;
}

.work-grid-item {
    overflow: hidden;
    flex: 0 0 calc(16.666% - 5px);
    height: 100%;
}

.work-grid-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    display: block !important;
}

/* Section divider */
.section-divider-line {
    height: 50px;
    background-color: #505050;
    margin: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.thin-divider {
    height: 2px;
    background-color: #505050;
    margin: 0;
    width: 100%;
}

/* Fullscreen gallery */
.fullscreen-gallery {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    padding: 40px;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
}

/* Responsive styles */
@media (max-width: 992px) {
    .artist-row {
        flex-direction: column;
        gap: 30px;
    }

    .artist-image-container,
    .artist-info-container {
        flex: 0 0 100%;
        width: 100%;
    }

    .artist-works-grid {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }

    .work-grid-item {
        flex: 0 0 250px;
    }
}

@media (max-width: 768px) {
    .j-main-sec {
        margin-top: 60px;
    }
}

@media (max-width: 576px) {
    .artist-title {
        font-size: 20px;
    }

    .artist-works-grid {
        height: 150px;
    }
    
    .work-grid-item {
        flex: 0 0 200px;
    }
}