.screen1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  min-width: 0%;
  max-width: 100%; 
  margin: 0 auto; 
  padding: 10px;
  gap: 10px;
}
@media (min-width: 900px) {
  .screen1 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.screen-wrapper {
  display: flex;
  justify-content: center;
  padding: 10px;
}

.screen2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 10px;
}

@media (min-width: 820px) {
  .screen2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1800px) {
  .screen2 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.special-section {
  display: flex;
  flex-direction: column; 
  align-items: center; 
  max-width: 100%;
  min-width: 0%;
  margin: 0px;
  padding: 5px;
  background-color: #222;
  border-radius: 18px;
}

.big-type {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  max-width: 100%;
  color: #fff;
  background-color: #333;
  margin-bottom: 15px;
  margin-top: 0px auto;
  border: 1px solid #fff;
  border-radius: 50px;
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: 20px;
  margin-right: 20px;
}

.type {
  font-size: 1.2rem;
  text-align: center;
  color: #ddd;
  margin-bottom: 1px;
  margin-top: 15px;
  border-left: 1px solid #fff;
  border-right: 1px solid #fff;
  border-radius: 50px;
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: 20px;
  margin-right: 20px;
}

/* gallery ยังคงเหมือนเดิม แต่เพิ่ม auto margin กึ่งกลางแนวนอน */
.gallery-box {
  display: flex;
  justify-content: center;
  width: 100%;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(65px, auto));
  gap: 1px;
  border: 1px solid #fff;
  background-color: #333;
  border-radius: 8px;
  padding: 5px;
  margin: 0; 
  max-width: 1300px;
  min-width: 0px;
}


/* Container ของทั้งหมด */
.show-box {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
}

/* Container ของการ์ด */
.show-card {
  display: flex;
  justify-content: center;
  gap: 1px;
  flex-wrap: wrap;
  background-color: #1a1a1a;
  border-top: 1px solid #333;
  border-radius: 8px;
  padding: 10px;
  width: 100%;
  max-width: 800px;
}

/* แต่ละการ์ด */
.show-card [cardset] {
  width: 65px;
}
