/* Lot Manager Public Styles - Version 2.0.11 */
/* Based on BHAA template.css */

/* Font Awesome Icons */
.fa, .far, .fas {
    font-family: "Font Awesome 5 Free" !important;
}

.lot-manager-public {
    display: flex;
    flex-wrap: wrap;
    font-family: 'Open Sans', sans-serif;
    color: #EEE;
    background: #404040;
    padding: 12px;
}

.next-auction {
    border-bottom: solid #888 2px;
    padding-bottom: 16px;
    text-align: center;
    font-size: 20px;
}
.lot-manager-highlights {
    border-bottom: solid #888 2px;
    padding-bottom: 16px;
        padding-top: 16px;
        font-size: 20px;
}
.next-auction span, .next-auction h1:nth-child(3) {
    color: #d2d2ff;
    flex-grow: 1;
}

.lot-manager-public a,
.lot-manager-public a:visited {
    color: #ffcc00 !important;
    transition: all .5s ease !important;
    text-decoration: underline !important;
}

.lot-manager-public a:hover {
    color: #3ed8ff !important;
}

/* Style Menu (List/Grid/Print Toggle) */
.style-menu {
    font-weight: normal !important;
    right: 0;
    top: 0;
    background: #ccc;
    padding: 2px 2px 0 2px;
    border-radius: 4px;
    text-align: center;
    margin: 10px auto;
    display: inline-block;
}

.style-menu span {
    color: black;
    display: inline-block;
    padding: 5px 5px 2px 5px;
    line-height: 28px;
    cursor: pointer;
}

.style-menu span.active {
    background: black;
    color: white;
}

.style-menu span.active:first-of-type {
    border-radius: 3px 0 0 3px;
}

.style-menu span.active:last-of-type {
    border-radius: 0 3px 3px 0;
}

/* Event Details Header */
.lot-actions, .event-details, .lot-details > .header {
    flex-grow: 1;
    width: 100%;
}

.event-details .event-header {
    text-align: center;
    border-bottom: 2px solid #888;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.event-details .event-header h1 {
    margin: 0 !important;
    color: white;
}

.event-details .event-header .date {
    color: #d2d2ff;
    font-size: 18px;
}

/* Lot List Styles */
.lots .lot a {
    display: flex;
    flex-grow: 1;
    font-size: 20px;
    text-decoration: none !important;
}

.lots .lot a .run {
    color: black;
    text-transform: uppercase;
}

.lots img {
    border-radius: 5px;
    border: 1px solid #222;
    max-width: 100%;
    height: auto;
}

/* Ordered List View */
.lots.list .lot.lot-header {
    border-bottom: 1px solid #222;
    font-weight: bold;
    background: #333;
}

.lots.list .lot {
    display: flex;
    flex-wrap: wrap;
    padding: 4px;
    margin: 1px;
    transition: all .5s ease;
}

.lots.list .lot a {
    padding: 10px 0;
    transition: all .5s ease !important;
    background: rgba(0,0,0,0) !important;
    border-bottom: 1px solid #222;
}

.lots.list .lot:nth-of-type(2n) a {
    background: rgba(0,0,0,0.1) !important;
}

.lots.list .lot > span,
.lots.list .lot a > span {
    display: flex;
    flex-grow: 1;
    min-width: 25%;
    justify-content: center;
    align-items: center;
}

.lots.list .lot .run {
    max-width: 4em;
    min-width: 4em;
    flex-grow: 0;
}

.lots.list .lot .category {
    max-width: 8em;
    min-width: 8em;
    flex-grow: 0;
}

.lots.list .lot a:hover {
    background: #222 !important;
}

/* Grid List View */
.lots.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.lots.grid .lot.lot-header {
    display: none;
}

.lots.grid .lot {
    display: flex;
    margin: 5px;
    border: 1px solid rgba(0,0,0,0.4);
    border-radius: 4px;
    padding: 1px;
    max-width: 205px;
    width: 100%;
}

.lots.grid .lot > a {
    flex-direction: column-reverse;
    flex-grow: 1;
    background: rgba(0,0,0,0.1);
    padding: 26px 6px 6px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.lots.grid .lot > a:hover {
    background: rgba(0,0,0,0.4);
}

.lots.grid .lot a .run {
    position: absolute;
    top: 5px;
    left: 5px;
}

.lots.grid .lot .category {
    position: absolute;
    top: 5px;
    right: 5px;
}

.lots.grid .lot a:hover .category,
.lots.grid .lot a:hover .run {
    color: red;
}

.lots.grid .lot .image {
    flex-grow: 1;
}

/* Lot Details */
.lot-details .header {
    display: flex;
    justify-content: center;
    text-transform: uppercase;
    color: white;
    text-shadow: 1px 1px 2px black;
    margin: 0px 12px 12px !important;
}

.lot-details .header > * {
    flex-grow: 1;
}

.lot-details .header .title {
    text-align: center;
}

.lot-details .header .category {
    text-align: right;
}

.lot-media {
    vertical-align: top;
    flex-grow: 1;
    width: 50%;
}

.lot-details img {
    width: 100%;
    height: auto;
}

.lot-details .primary {
    max-width: 400px;
}

.lot-details .gallery-wrap {
    max-width: 400px;
    overflow-x: auto;
}

.lot-details .gallery-wrap .gallery {
    display: flex;
    flex-wrap: nowrap;
}

.lot-details .primary a,
.lot-details .gallery a {
    display: flex;
    border: 1px solid #222;
    margin: 0px;
    transition: all .5s ease;
}

.lot-details .primary a:hover,
.lot-details .gallery a:hover {
    border: 1px solid red;
}

.lot-details .gallery a {
    max-width: 98px;
    max-height: 98px;
    width: 100%;
    justify-content: center;
    align-items: center;
    background: #000;
    margin: 2px;
}

.lot-info {
    vertical-align: top;
    font-size: 18px;
    max-width: 100%;
    width: 50%;
    flex-grow: 1;
}

.lot-details .label {
    color: #ffcc00;
    font-weight: bold;
    font-size: 14px;
}

.lot-details .options {
    display: flex;
    flex-wrap: wrap;
}

.lot-details .options > * {
    flex-grow: 1;
    min-width: 33%;
}

.lot-details .options .check {
    color: #3ed8ff;
}

/* Featured & Buy Now Lots */
.featured-lots,
.buy-now-lots {
    margin: 12px;
}

.featured-lots h2,
.buy-now-lots h2 {
    text-align: center;
    color: white;
    border-bottom: 2px solid #888;
    padding-bottom: 10px;
}

/* Upcoming Auctions Widget */
.upcoming-auctions {
    margin: 0px 12px 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #888;
}

.upcoming-auctions > .event {
    text-align: center;
}

.upcoming-auctions > .event:nth-of-type(2n) {
    background: rgba(0,0,0,0.1);
}

.upcoming-auctions > .event > a,
.upcoming-auctions > .event > a:visited {
    font-size: 18px;
    color: #ffcc00;
    text-decoration: underline;
    line-height: 26px;
    display: flex;
    max-width: 85%;
    width: 100%;
    justify-content: center;
    padding: 10px;
    margin: 0 auto;
}

.upcoming-auctions > .event > a > .date {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 0;
    min-width: 250px;
    max-width: 250px;
    text-align: left;
}

.upcoming-auctions > .event > a > .title {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-grow: 1;
}

.upcoming-auctions > .event a:hover {
    color: white;
    background: #222;
}

/* Auction List */
.auction-list > div:nth-child(odd) {
    background-color: #333;
}

.auction-item {
    display: flex;
    width: 100%;
}

.auction-item > a {
    display: flex;
    width: 100%;
    padding: 4px;
    margin: 0;
    text-decoration: none;
    transition: background 0.3s;
}

.auction-item > a > span {
    flex: 1;
    text-align: center;
    font-size: 18px;
}

/* Print Styles */
@media print {
    body,
    .lot-manager-public,
    .lot-manager-public * {
        background: white !important;
        color: black !important;
        text-shadow: none !important;
    }
    
    .style-menu,
    .event-header {
        display: none !important;
    }
    
    .lots.list .lot {
        flex-wrap: nowrap !important;
    }
    
    .lots.list .lot > span,
    .lots.list .lot a > span {
        min-width: 14.29% !important;
        font-size: 14px !important;
    }
    
    .gallery a {
        background: black !important;
    }
}

/* Image Lightbox Overlay */
.lot-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: none;
    overflow: auto;
}

.lot-lightbox-image-container {
    margin: 20px auto;
    max-width: 90%;
    text-align: center;
}

.lot-lightbox-main-image {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 5px;
}

.lot-lightbox-close {
    position: fixed;
    top: 10px;
    right: 20px;
    color: #ff0000;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
}

.lot-lightbox-close:hover {
    background: rgba(255, 0, 0, 0.8);
    color: white;
    transform: scale(1.1);
}

.lot-lightbox-thumbnails {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 10px;
}

.lot-lightbox-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 5px;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.lot-lightbox-thumb:hover {
    opacity: 1;
    border-color: #ffcc00;
}

.lot-lightbox-thumb.active {
    opacity: 1;
    border-color: #3ed8ff;
}

/* Responsive */
@media (max-width: 768px) {
    .lots.list .lot a > span {
        min-width: 50%;
    }
    
    .lot-info {
        min-width: 100%;
    }
    
    .lot-media {
        display: block;
        margin: 0 auto 10px;
    }
}
