/* page.css – cleaned of general rules */

/* Page‐specific body layout */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Page title */
h1 {
  text-align: center;
  margin-top: 20px;
  font-size: 2rem;
}

/* Universal grid styling */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 110px);
  gap: 10px;
  max-width: 100%;
  margin: 10px 0;
  padding: 10px;
  justify-items: start;
  align-items: start;
  grid-auto-rows: auto;
  grid-auto-flow: row;
}

/* Grid items */
.grid-item {
  border-radius: 8px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
  background-color: rgba(148, 148, 148, 0.19);
  box-shadow: 2px 2px 8px rgba(255, 255, 255, 0.10);
  height: 70px;
  width: 70px;
  overflow: hidden;
  transition: background-color 0.3s ease,
              transform 0.3s ease;
}

.grid-item:hover {
  background-color: #444444d8;
  transform: scale(1.05);
}

.grid-item img.set-image {
  filter: drop-shadow(5px 5px 5px #1a1a1a) grayscale(0%);
  transition: filter 1s ease-in;
  max-width: 90%;
  max-height: 90%;
  position: relative;
  z-index: 1;
}

.grid-item span {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #5d5d5d90;
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
}

.grid-container {
  width: 90%;
  max-width: 90%;
  margin-bottom: 15px;
}

.subTitle {
  text-align: left;
  font-size: 1.5rem;
  margin-left: 10px;
  margin-bottom: -10px;
  color: #5d5d5d90;
  font-weight: bold;
}

.gray-out {
  filter: grayscale(100%);
  cursor: not-allowed;
}


/* always on the pedestal */
img[alt="Pedestal"] {
  filter: drop-shadow(5px 5px 5px #1a1a1a)
          grayscale(100%);
  /* inherits the same transition */
}

img.set-image.grayscale {
  filter: drop-shadow(0px 0px 0px #1a1a1a) grayscale(100%);
}