
h1 {
  text-align: center;
}

h3 {
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, max-content));
  justify-content: center;
  gap: 15px;
  padding: 20px;
  margin-left: 5%;
  margin-right: 5%;
}

.gallery-item {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  border: 0;
}

.TagButtons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-left: 5%;
  margin-right: 5%;
}

.tag-item {
  cursor: pointer;
  border: 1px solid #ccc;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 0px;
}

.tag-item:hover {
  background-color: #f0f0f0;
}

.TagButtons button {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  outline: none;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
}

.close {
  position: absolute;
  top: 20px; right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

.center-wrap {
  text-align: center;
}