/* a {
    color: inherit;
    text-decoration: none;
}

ul.products {
    list-style-type: none;
    padding: 0;
    margin: auto;
}

ul.products.columns-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

ul.products.columns-3 li.product {
    width: 100%;
    text-align: center;
}

ul.products.columns-3 li.product .price {
    display: block;
}



@media screen and (max-width: 767px) {
    ul.products.columns-3 {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    ul.products.columns-3 li.product {
        width: 100%;
        text-align: center;
    }

    ul.products.columns-3 li.product .price {
        display: block;
    }
}

nav.nav-dark {
    background: #000 !important;
}



@media (min-width: 768px) {
    form .input-group {
        min-width: 195px;
    }
}

#header-search-bar {
    padding-left: 35px;
}

form .input-group:after {
    content: "";
    width: 20px;
    height: 20px;
    background: url(../icons/search-icon.png) no-repeat;
    top: 10px;
    right: auto;
    position: absolute;
    display: inline-block;
    left: 10px;
    z-index: 11;
}

.searchResults.position-absolute {
    top: 110%;
    background: #fff;
    width: 100%;
    display: none;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
}

.searchResults ul.results {
    list-style-type: none;
    padding-left: 0;
    padding: 5px 10px;
    margin-bottom: 0;
}

.searchResults ul li.post-item {
    padding: 5px;
    border-bottom: 1px solid rgba(63, 63, 63, 0.475);
}

.searchResults ul li.post-item:last-child {
    border-bottom: none;

}

.post-item a {
    color: #000;
}

.columns-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.column-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.column-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.card--artwork .card-img {
    text-align: center;
    margin: auto;
    min-height: 1px;
    width: auto !important;
    height: 100%;
}

.card--artwork {
    border: none;
    margin-bottom: 3rem;
}

.card--artwork .card-body {
    padding: 1rem 0;
}

.meta-info {
    display: block;
}

.meta.meta-info {
    font-size: 13px;
}

.artwork-grid {
    margin-bottom: 3rem;
}

.button-primary {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    text-decoration: none;
    text-shadow: none;
    width: max-content;
    box-shadow: none;
    border-radius: 2px;
}

.single-collection .card--artwork .card-img {
    max-height: 400px;
}

.single-collection .card--artwork .card-img img {
    height: 100%;
}


#toolbar button {
    background: #fff;
    border: 1px solid #ccc;
    cursor: pointer;
    padding: 6px 10px;
    font-size: 16px;
}

#toolbar button:hover {
    background: #eee;
}

#image-canvas {
    max-height: 600px;
    width: auto;
    display: block;
    margin: 0 auto;
    background: #fff;
}

body,
.card.card--artwork {
    background: #eae3e3b0;
}

.search-collection-widget input {
    padding-left: 40px;
    border: 1px solid rgba(83, 83, 83, 0.842);
}

.search-collection-widget select {
    padding: 0px 20px;
}

.search-collection-widget input:focus-visible {
    outline: none;
    box-shadow: none;
}

.search-collection-widget select:focus-visible {
    outline: none;
    box-shadow: none;
}

.search-collection-widget .input-group:after {
    background: none;
}

.search-collection-widget .search-collection {
    margin-left: 20px !important;
    border: 1px solid;
    padding: 6px 12px;
}
*/
#menu-primary-menu li a,
#primary-nav li a {
    color: #fff;
}

.input-arrow-wrap {
    position: relative;
    flex: 1;
}

#clear-collection {
    right: 0;
    background-color: #fff;
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    top: 0;
    height: 100%;
    width: 50px
}



.m-modal__content.bg-gray-light {
    padding: 40px;
}

.m-modal__body .m-modal__filter-list {
    max-height: 340px;
    flex-wrap: wrap;
    display: flex;
    padding: 0px;
    margin: 0px -15px;
    overflow: auto;
    width: 100%;
}

ul.m-modal__filter-list li {
    width: 33.33%;
    padding: 0px 15px;
}

.m-modal__content.bg-gray-light {
    position: relative;
}

.m-modal__header.bg-gray-light .close {
    position: absolute;
    top: 3%;
    right: 1%;
}

.m-modal__body {
    padding: 36px 0px;
}

ul.m-modal__filter-list li {
    list-style-type: none;
}

.custom-control {
    width: fit-content;
}

ul.m-modal__filter-list li input {
    z-index: 9999;
    left: 0px;
    width: 100%;
    height: 70%;
    top: 10%;
}

.input-group select {
    height: auto;
    position: relative;
    background: #fff;
    padding: 12px;
}


button#search-collection {
    background: #fff;
    border: none;
    margin-left: 20px;
    width: 80px;
    font-size: 40px;
}


.searchResults.position-absolute {
    top: 110%;
    background: #fff;
    width: 100%;
    display: none;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
}

.searchResults ul.results {
    list-style-type: none;
    padding-left: 0;
    padding: 5px 10px;
    margin-bottom: 0;
}

.searchResults ul li.post-item {
    padding: 5px;
    border-bottom: 1px solid rgba(63, 63, 63, 0.475);
}

.searchResults ul li.post-item:last-child {
    border-bottom: none;

}

span.meta.meta-info.badge-object-date-created {
    display: block;
}

/* Tooltip Styles for Truncated Titles */
[data-toggle="tooltip"] {
    position: relative;
    cursor: help;
}

/* Ensure span inside anchor inherits proper styling */
a [data-toggle="tooltip"] {
    color: inherit;
    text-decoration: inherit;
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Specific styling for card titles */
.card-title[data-toggle="tooltip"] {
    color: inherit;
    text-decoration: inherit;
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Hover states for spans inside anchors */
a:hover [data-toggle="tooltip"],
a:focus [data-toggle="tooltip"] {
    color: inherit;
    text-decoration: inherit;
}

/* Ensure proper display for spans in different contexts */
h1 [data-toggle="tooltip"],
h2 [data-toggle="tooltip"],
h3 [data-toggle="tooltip"],
h4 [data-toggle="tooltip"],
h5 [data-toggle="tooltip"],
h6 [data-toggle="tooltip"] {
    display: inline;
    color: inherit;
    font-weight: inherit;
}

/* Ensure spans don't break link styling */
a [data-toggle="tooltip"] {
    display: inline;
    vertical-align: baseline;
}

/* Fix any potential display issues */
.card-title {
    display: block;
}

.card-title [data-toggle="tooltip"] {
    display: inline;
}

[data-toggle="tooltip"]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    word-wrap: break-word;
    white-space: normal;
    text-align: center;
}

[data-toggle="tooltip"]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    pointer-events: none;
}

/* Remove default browser tooltip */
[data-toggle="tooltip"]:hover {
    position: relative;
}

[data-toggle="tooltip"]:hover::after,
[data-toggle="tooltip"]:hover::before {
    animation: tooltipFadeIn 0.2s ease-in-out;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    [data-toggle="tooltip"]:hover::after {
        max-width: 250px;
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* Custom tooltip for JavaScript enhancement */
.custom-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    word-wrap: break-word;
    white-space: normal;
    text-align: center;
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.custom-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.custom-tooltip.show {
    display: block;
    opacity: 1;
}

/* Mobile responsiveness for custom tooltip */
@media (max-width: 768px) {
    .custom-tooltip {
        max-width: 250px;
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* List View Layout - Flexbox Style (Reference: SLAM Collection) */
.artwork-grid.list-view {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Each card becomes a horizontal flex row */
.artwork-grid.list-view .card--artwork {
    display: flex;
    flex-direction: row;
    width: 100%;
    border-bottom: 1px solid #ddd;
    padding: 1rem 0;
    align-items: center;
    transition: background-color 0.2s;
}

.artwork-grid.list-view .card--artwork:hover {
    background-color: #f9f9f9;
}

/* Card image - order-1 makes it appear first (left) */
.artwork-grid.list-view .card--artwork .card-img {
    flex: 0 0 120px;
    max-width: 120px;
    padding-right: 1.5rem;
    order: 1;  /* Image on left */
}

.artwork-grid.list-view .card--artwork .card-img img {
    width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

/* Card body - order-2 makes it appear second (right) */
.artwork-grid.list-view .card--artwork .card-body {
    flex: 1;
    padding: 0;
    text-align: left;
    order: 2;  /* Content on right */
}

.artwork-grid.list-view .card--artwork .card-body h6 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.artwork-grid.list-view .card--artwork .card-body h6 a {
    color: #333;
    text-decoration: none;
}

.artwork-grid.list-view .card--artwork .card-body h6 a:hover {
    color: #0066cc;
    text-decoration: underline;
}

/* Badges as table columns */
.artwork-grid.list-view .post-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.artwork-grid.list-view .post-badges .meta {
    font-size: 0.875rem;
    color: #666;
    display: inline-block;
}

/* Mobile responsiveness for list view - Switch to stacked cards */
@media (max-width: 992px) {
    .artwork-grid.list-view {
        display: flex;
        flex-direction: column;
    }
    
    .artwork-grid.list-view .card--artwork {
        display: flex;
        flex-direction: row;
        border-bottom: 1px solid #ddd;
        padding: 1rem 0;
    }
    
    .artwork-grid.list-view .card--artwork .card-img {
        display: block;
        flex: 0 0 100px;
        padding: 0;
        margin-right: 1rem;
    }
    
    .artwork-grid.list-view .card--artwork .card-body {
        display: block;
        flex: 1;
        padding: 0;
    }
}

@media (max-width: 576px) {
    .artwork-grid.list-view .card--artwork {
        flex-direction: column;
    }
    
    .artwork-grid.list-view .card--artwork .card-img {
        flex: 0 0 auto;
        margin-right: 0;
        margin-bottom: 1rem;
        max-width: 100%;
    }
    
    .artwork-grid.list-view .card--artwork .card-body {
        text-align: left;
    }
}

/* List View Table Layout - Reference: SLAM Collection */
.collection-list-view {
    width: 100%;
    margin-top: 2rem;
}

.list-view-table {
    width: 100%;
    display: table;
    border-collapse: collapse;
}

/* Table Header */
.list-view-header {
    display: table-row;
    background-color: #f5f5f5;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.list-header-cell {
    display: table-cell;
    padding: 1rem;
    border-bottom: 2px solid #ddd;
    vertical-align: middle;
    color: #333;
}

.list-header-image { width: 220px; }
.list-header-title { width: 25%; }
.list-header-artist { width: 18%; }
.list-header-date { width: 12%; }
.list-header-location { width: 18%; }
.list-header-object { width: 12%; }

/* Table Body */
.list-view-body {
    display: table-row-group;
}

/* Each Row */
.list-view-row {
    display: table-row;
    transition: background-color 0.2s ease;
}

.list-view-row:hover {
    background-color: #f9f9f9;
}

/* Table Cells */
.list-cell {
    display: table-cell;
    padding: 1rem;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: middle;
    font-size: 0.9rem;
    color: #666;
}

.list-cell-image {
    width: 220px;
}

.list-cell-image img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.list-cell-title {
    font-weight: 600;
    color: #333;
}

.list-cell-title a {
    color: #333;
    text-decoration: none;
}

.list-cell-title a:hover {
    color: #0066cc;
    text-decoration: underline;
}

.list-cell-artist,
.list-cell-date,
.list-cell-location,
.list-cell-object {
    color: #666;
}

/* Mobile responsiveness for list view */
@media (max-width: 992px) {
    .list-view-table {
        display: block;
    }
    
    .list-view-header {
        display: none; /* Hide headers on mobile */
    }
    
    .list-view-body {
        display: block;
    }
    
    .list-view-row {
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid #e5e5e5;
        padding: 1rem 0;
    }
    
    .list-cell {
        display: flex;
        padding: 0.5rem 0;
        border: none;
    }
    
    .list-cell::before {
        content: attr(data-label);
        font-weight: 600;
        width: 120px;
        flex-shrink: 0;
        color: #333;
    }
    
    .list-cell-image {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .list-cell-image::before {
        display: none;
    }
    
    .list-cell-image img {
        max-height: 250px;
    }
}