.item-type {
  width: auto;
  height: auto;
  margin: 0 4px; /* tighter spacing between tiles */
  overflow: visible;
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.item-type-rectangular {
  width: calc(25vw - 20px);
  height: calc(25vw - 20px);
  overflow: visible;
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: start;
  position: relative; /* Ensure absolute positioning inside works */
}
.item-type-nomargin {
  width: calc(25vw - 20px);
  height: calc(39vw - 20px);
  overflow: visible;
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative; /* Ensure absolute positioning inside works */
}
.item-type-rect {
  position: relative;
  height: clamp(48px, 9vw, 80px);
  width: clamp(48px, 9vw, 80px);
  object-fit: cover;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-type-rect:hover {
  background-color: var(--brand-sage-100, #E9F3ED);
  border-color: var(--brand-sage, #6B8F71);
}

.item-type-name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 12px;
  color: #333;
  width: auto;
  text-align: center;
  background-color: transparent;
  position: relative;
  margin-top: 6px; /* keep label spacing constant; avoid jumping */
}

.item-type-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.item-type-image-container {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.item-type-image-input {
  opacity: 0;
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

.item-type-create {
  position: absolute;
  top: 76%; /* Position below the input */
  left: 50%;
  transform: translateX(-50%);
  margin-top: 10px; /* Space between input and button */
  width: 20vw;
  text-align: center; /* Center button text */
}

.border {
  border: 1px solid #000000;
}

.noborder {
  border: 1px solid #ffffff00;
}
