/* Inventory */

.inventory_widget {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.inventory_widget .inventory_item {
  display: flex;
  width: calc(50% - 1em);
  align-items: center;
  min-width: 280px;
  background: #f5f5f5;
  color: #111;
  border-radius: 8px;
  overflow: hidden;
  flex-grow: 1;
}

.inventory_media.inventory_img {
  display: block;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  background: #d8d8d8;
}

.inventory_media.inventory_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inventory_details {
  flex: 1;
  padding: 1rem 1.25rem;
}

.inventory_title {
  display: inline-block;
  color: #1f2937;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.1;
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

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

.inventory_meta {
  margin-bottom: 0.35rem;
}

.inventory_date {
  color: #6b7280;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.inventory_tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.45rem;
}

.inventory_tag {
  background: #e5ecf3;
  color: #1f2937;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.inventory_description p {
  margin: 0;
}

.inventory_read_more {
  display: inline-flex;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  font-weight: 700;
}

.single_inventory .inventory_detail_gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.single_inventory .inventory_detail_photo {
  display: block;
  border-radius: 8px;
  overflow: hidden;
}

.single_inventory .inventory_detail_photo img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

@media (max-width: 900px) {
  .inventory_widget .inventory_item {
    flex-direction: column;
  }

  .inventory_media.inventory_img {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
  }
}
