/* BoothNest v2.9.7 Extra Tall Inventory Images
   Stronger selectors target both image wrappers and the image itself.
*/

body:has([href*="r=items"]) .bn-item-card,
body:has([href*="r=items"]) .inventory-card,
body:has([href*="r=items"]) .item-card {
    overflow: hidden;
}

/* Common image wrapper/header areas */
.bn-item-card .item-photo,
.bn-item-card .photo,
.bn-item-card .image,
.bn-item-card .item-image,
.bn-item-card .card-img-top,
.bn-item-card .inventory-image,
.inventory-card .item-photo,
.inventory-card .photo,
.inventory-card .image,
.inventory-card .item-image,
.inventory-card .card-img-top,
.inventory-card .inventory-image,
.item-card .item-photo,
.item-card .photo,
.item-card .image,
.item-card .item-image,
.item-card .card-img-top,
.item-card .inventory-image,
.card-inventory .item-photo,
.card-inventory .photo,
.card-inventory .image,
.card-inventory .item-image,
.card-inventory .card-img-top,
.card-inventory .inventory-image,
[data-bn-item-card] .item-photo,
[data-bn-item-card] .photo,
[data-bn-item-card] .image,
[data-bn-item-card] .item-image,
[data-bn-item-card] .card-img-top,
[data-bn-item-card] .inventory-image {
    height: 360px !important;
    min-height: 360px !important;
    max-height: 360px !important;
    overflow: hidden !important;
}

/* Direct inventory card images */
.bn-item-card img,
.inventory-card img,
.item-card img,
.card-inventory img,
[data-bn-item-card] img,
.items-grid img,
.inventory-grid img {
    height: 360px !important;
    min-height: 360px !important;
    max-height: 360px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* BoothNest specific cards often use first child image area */
.items-grid > * img:first-child,
.inventory-grid > * img:first-child,
#inventoryGrid img,
#itemsGrid img {
    height: 360px !important;
    min-height: 360px !important;
    max-height: 360px !important;
    width: 100% !important;
    object-fit: cover !important;
}

/* No-photo placeholder should match new image height */
.bn-item-card .no-photo,
.inventory-card .no-photo,
.item-card .no-photo,
.card-inventory .no-photo,
[data-bn-item-card] .no-photo,
.no-photo-placeholder {
    height: 360px !important;
    min-height: 360px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

@media (max-width: 1200px) {
    .bn-item-card img,
    .inventory-card img,
    .item-card img,
    .card-inventory img,
    [data-bn-item-card] img,
    .items-grid img,
    .inventory-grid img,
    .bn-item-card .item-photo,
    .bn-item-card .photo,
    .bn-item-card .image,
    .bn-item-card .item-image,
    .inventory-card .item-photo,
    .inventory-card .photo,
    .inventory-card .image,
    .inventory-card .item-image {
        height: 330px !important;
        min-height: 330px !important;
        max-height: 330px !important;
    }
}

@media (max-width: 768px) {
    .bn-item-card img,
    .inventory-card img,
    .item-card img,
    .card-inventory img,
    [data-bn-item-card] img,
    .items-grid img,
    .inventory-grid img,
    .bn-item-card .item-photo,
    .bn-item-card .photo,
    .bn-item-card .image,
    .bn-item-card .item-image,
    .inventory-card .item-photo,
    .inventory-card .photo,
    .inventory-card .image,
    .inventory-card .item-image {
        height: 285px !important;
        min-height: 285px !important;
        max-height: 285px !important;
    }
}