.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.content-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.toc-sidebar {
    display: block;
}

.toc-sticky {
    position: sticky;
    top: 2rem;
}

.toc-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-teal);
}

.toc-nav {
    margin-bottom: 2rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 0.5rem;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    color: var(--neutral-dark);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.toc-link:hover,
.toc-link.active {
    background-color: var(--neutral-medium);
    color: var(--primary-copper);
}

.toc-link i {
    font-size: 0.8rem;
    color: var(--primary-copper);
}

.metadata {
    margin-bottom: 20px;
    font-size: 0.9em;
    color: var(--neutral-dim);
}

.metadata span {
    display: inline-block;
    margin-right: 1rem;
}

.breed-standard-section {
    margin-bottom: 40px;
}

.breed-standard-section h2 {
    color: var(--primary-teal);
    font-size: 1.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-copper);
}

.section-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.section-images figure {
    margin: 0;
    text-align: center;
    flex: 0 0 calc(50% - 5px);
}

.section-images img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.section-images figcaption {
    font-size: 0.8em;
    color: var(--neutral-dim);
    margin-top: 5px;
}

.gallery-controls {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    margin-top: 1rem;
}

.gallery-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-nav:hover {
    background-color: var(--primary-copper);
    color: white;
    transform: scale(1.1);
}

.gallery-thumbnails {
    display: flex;
    padding: 1rem;
    gap: 0.5rem;
    background-color: var(--neutral-light);
    overflow-x: auto;
    justify-content: center;
}

.thumbnail-item {
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail-item.active,
.thumbnail-item:hover {
    opacity: 1;
    border-color: var(--primary-copper);
}

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

.item-share {
    margin: 2.5rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--neutral-medium);
}

.item-share h3 {
    margin-bottom: 1rem;
    color: var(--primary-teal);
    font-size: 1.3rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.share-button.facebook {
    background-color: #3b5998;
    color: white;
}

.share-button.twitter {
    background-color: #1da1f2;
    color: white;
}

.share-button.linkedin {
    background-color: #0077b5;
    color: white;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .detail-container {
        padding: 1.5rem 1rem;
    }

    .content-container {
        grid-template-columns: 1fr;
    }

    .toc-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .toc-sticky {
        position: static;
    }

    .breed-standard-section h2 {
        font-size: 1.4rem;
    }

    .section-images figure {
        flex: 0 0 100%;
    }
}

@media (max-width: 576px) {
    .detail-container {
        padding: 1rem 0.75rem;
    }
}