/* VIEW ITEM PAGE STYLES - /css/view-item.css */

/* Breadcrumb styles */
.breadcrumb {
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    list-style: none;
    background: none !important;
    /* Remove gray background */
    border-radius: 0;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: inline-block;
}

.breadcrumb li+li:before {
    content: " / ";
    padding: 0 5px;
    color: #999;
}

.breadcrumb a {
    color: #333333;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* H1 title styling in right column */
.item-title {
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 0 0;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .item-title {
        font-size: 2rem;
    }
}

/* Item metadata styles */
.item-metadata {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.item-metadata dl {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.item-metadata dt {
    font-weight: bold;
    margin-right: 0.5rem;
    color: #495057;
}

.item-metadata dd {
    margin: 0 1rem 0 0;
    color: #6c757d;
}

/* Related items section */
.related-items {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    min-height: 200px;
}

.related-items h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.related-items-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.related-item {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 200px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.related-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.related-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.related-item a:hover {
    color: #007bff;
}

.view-all {
    margin-top: 1.5rem;
    text-align: center;
}

.view-all a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
}

.view-all a:hover {
    text-decoration: underline;
}

/* Responsive related items */
@media (min-width: 768px) {
    .related-item {
        flex: 1 1 calc(33.333% - 0.67rem);
    }
}

@media (min-width: 1200px) {
    .related-item {
        flex: 1 1 calc(25% - 0.75rem);
    }
}

/* Image gallery optimizations */
.superbox-img-holder {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 8px;
}

.thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: block;
    margin: 5px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    background: #f0f0f0;
    transition: border-color 0.2s ease;
}

.thumb:hover,
.thumb.active {
    border-color: #007bff;
}

/* Responsive thumbnail sizes */
@media (min-width: 768px) {
    .thumb {
        width: 120px;
        height: 120px;
    }
}

/* Table optimizations */
.boxTable {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin-bottom: 20px;
    background: #fff;
}

.boxTable td {
    padding: 15px;
    vertical-align: top;
    word-wrap: break-word;
    border-bottom: 1px solid #eee;
}

.boxTable td:first-child {
    font-weight: 600;
    color: #495057;
    width: 30%;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Print styles */
@media print {

    .related-items,
    .breadcrumb,
    nav {
        display: none;
    }

    .superbox-current-img {
        max-height: 400px;
    }
}

/* Two-column layout override - add to end of view-item.css */
@media (min-width: 768px) {
    .superbox-layout {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 2rem !important;
    }

    .superbox-image-column {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .superbox-content-column {
        flex: 1 !important;
        max-width: 50% !important;
    }
}