/* ========================================
   SINGLE ARTWORK PAGE STYLES
   ======================================== */

.artwork-details-page {
    background-color: #F0EBE5;
    /* Beige background */
    min-height: 100vh;
    padding-top: 2rem;
}

.artwork-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 3rem 0 5rem;
}

/* Left: Gallery */
.artwork-gallery-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image-wrapper {
    background-color: #EBE5DE;
    /* Card bg color */
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

.thumbnail-row {
    display: flex;
    gap: 1rem;
}

.thumb-item {
    width: 100px;
    height: 100px;
    background-color: #EBE5DE;
    padding: 0.5rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.thumb-item.active,
.thumb-item:hover {
    opacity: 1;
    border: 1px solid #000;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right: Info */
.single-art-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    color: var(--color-black);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.single-art-artist {
    font-family: var(--font-body);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--color-black);
    margin-bottom: 1.5rem;
}

.single-art-meta {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.single-art-status {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #000;
    margin-bottom: 2rem;
}

.btn-single-enquire {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Tabs */
.artwork-tabs {
    margin-top: 2rem;
}

.tab-header {
    display: flex;
    gap: 3rem;
    border-bottom: 2px solid #000;
    margin-bottom: 1.5rem;
}

.tab-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: #555;
    padding-bottom: 0.5rem;
    cursor: pointer;
    position: relative;
    top: 2px;
    /* To overlap border */
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #000;
    font-weight: 600;
    border-bottom: 2px solid #000;
}

.tab-content {
    display: none;
    font-family: var(--font-body);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-black);
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Related Section */
.related-artworks-section {
    padding-bottom: 5rem;
}

.related-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin: 2rem 0;
    color: var(--color-black);
}

.related-grid {
    grid-template-columns: repeat(4, 1fr);
    /* 4 items if needed, but design shows 3? Design shows 4 slots maybe? Let's stick to 3 or 4 based on preference. Design image shows 'You May Also Like' with 4 items in row usually, but let's use the same grid class which is 3. We can override.*/
    /* Actually, let's just use the existing .artwork-grid which is 3 columns. */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .artwork-container {
        grid-template-columns: 1fr;
        /* Stack columns */
        gap: 3rem;
    }

    .artwork-gallery {
        position: static;
        /* Remove sticky on mobile */
    }

    .artwork-main-image {
        height: auto;
        aspect-ratio: 1;
    }
}

@media (max-width: 768px) {
    .artwork-details-page {
        padding: 2rem 0;
    }

    .artwork-title {
        font-size: 2.5rem;
    }

    .artwork-artist {
        font-size: 1.5rem;
    }

    .artwork-info-side {
        padding: 0 1.5rem;
    }

    /* Related Artworks Slider for Mobile */
    .related-grid {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.5rem;
        padding-bottom: 1rem;
        /* Space for scrollbar */
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll on iOS */
        grid-template-columns: none !important;
    }

    .related-grid .artwork-card {
        min-width: 280px;
        width: 280px !important;
        /* Fixed width for slider items */
        scroll-snap-align: start;
        flex-shrink: 0;
        margin-bottom: 0 !important;
        height: auto !important;
    }

    /* Hide scrollbar but keep functionality */
    .related-grid::-webkit-scrollbar {
        height: 4px;
    }

    .related-grid::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .related-grid::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 2px;
    }
}