﻿/*<div class="card">
  <div class="card-image"></div>
  <p class="card-title">Card title</p>
  <p class="card-body">
    Nullam ac tristique nulla, at convallis quam. Integer consectetur mi nec magna tristique, non lobortis.
  </p>
  <p class="footer">Written by <span class="by-name">John Doe</span> on <span class="date">25/05/23</span></p>
</div>
*/
.neo-image-card {
    position                : relative                  !important;
    width                   : 100%                      !important;
    height                  : calc(100% - 5px)         !important;
    box-sizing              : border-box                !important;

    /* Ensure ALL cards have consistent styling */
    background              : #e8e8e8                   !important;
    box-shadow              : 5px 5px 6px #dadada,-5px -5px 6px #f6f6f6 !important;
    border-radius           : 6px                       !important;
    border                  : 1px solid #d0d0d0         !important; /* Add consistent border */
    overflow                : hidden                   !important; /* ?? */

    /* Remove the flex properties that cause layout issues */
    display                 : block                     !important;
    padding                 : 0                         !important; /* Remove padding that causes gaps */
    min-width               : 150px                     !important;
    min-height              : 100px                     !important;
}

.neo-image-card,
.neo-image-card:hover,
.neo-image-card:focus,
.neo-image-card:active {
    border                  : 1px solid #d0d0d0 !important;
}

.neo-image-card[data-banner-text]::after {
    content                         : attr(data-banner-text) !important;
    position                        : absolute !important;
    top                             : 14px !important;
    right                           : -25px !important;
    background                      : linear-gradient(45deg, #ff4444, #cc0000) !important;
    color                           : white !important;
    padding                         : 5px 25px !important;
    font-size                       : 10px !important;
    font-weight                     : bold !important;
    text-align                      : center !important;
    transform                       : rotate(45deg) !important;
    box-shadow                      : 0 2px 4px rgba(0,0,0,0.3) !important;
    z-index                         : 1000 !important;
    border                          : 1px solid #aa0000 !important;
    text-shadow                     : 1px 1px 1px rgba(0,0,0,0.5) !important;
    white-space                     : nowrap !important;
}

/* Disabled card state */
.neo-image-card.disabled {
    opacity                         : 0.7 !important;
    pointer-events                  : none !important;
    filter                          : grayscale(30%) !important;
}


/*
.neo-image-card :hover {
  translate             : 0 -10px;
}
*/
.neo-image-card-title > * {
  box-sizing                : border-box !important;
}

.neo-image-card-image {

  background-color      : #c9c9c9;
  border-radius         : 4px;
  box-shadow            : inset 8px 8px 10px #c3c3c3,inset -8px -8px 10px #cfcfcf;
}

.neo-image-card-body {
/* margin                : 13px 0 0 10px; */
  color                 : rgb(31, 31, 31);
  font-size             : 12px;
}

.neo-image-card-footer {
  float                 : right;
/*  margin                : 28px 0 0 18px;*/
  font-size             : 12px;
  color                 : #636363;
}

.neo-image-card-by-name {
  font-weight           : 700;
}

/* Fix the images - no gaps, proper positioning */
.neo-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
  /*  object-fit: contain !important; */
    border: none !important;
    border-radius: 0 !important;
    background: white !important; /* White background behind images instead of grey */
}

/* ONLY remove styling from completely empty image containers */
/*.neo-image-card:has(.neo-image[src=""]),
.neo-image-card:has(.neo-image:not([src])) {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}
*/

/* Hide empty images completely */
.neo-image[src=""],
.neo-image:not([src]) {
    display: none !important;
}
.neo-image-card-title {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    font-size: 0.8rem !important;
    padding: 8px !important;
    font-weight: 600 !important;
    color: #2e54a7 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid #d0d0d0 !important; /* Add bottom border */
    margin: 0 !important;
    z-index: 10 !important;
}
