.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}
.gallery-tabs a {
  border: 1px solid #000;
  color: #000;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  min-width: 8rem;
  padding: 0.55rem 1.8rem;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.gallery-tabs a:hover, .gallery-tabs a:focus, .gallery-tabs a.active {
  background: #dc4236;
  border-color: #dc4236;
  color: #fff;
}

.gallery-event {
  margin-bottom: 4rem;
}
.gallery-event:last-of-type {
  margin-bottom: 0;
}

.gallery-event-date {
  align-items: center;
  color: #dc4236;
  display: flex;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  gap: 0.6rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}
.gallery-event-date .date-sep {
  background: currentColor;
  display: inline-block;
  height: 1px;
  width: 1.6rem;
}

.gallery-event-title {
  align-items: baseline;
  border-bottom: 2px solid #dc4236;
  column-gap: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.7rem;
}

.gallery-event-zh {
  font-family: "Noto Sans TC Local", sans-serif;
}

.gallery-event-en {
  color: #38854f;
  flex-basis: 100%;
  font-family: "Montserrat", sans-serif;
  font-size: 0.55em;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(6, 1fr);
}

.gallery-item {
  aspect-ratio: 1/1;
  background: #eee;
  display: block;
  overflow: hidden;
}
.gallery-item img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  width: 100%;
}
.gallery-item:hover img, .gallery-item:focus img {
  transform: scale(1.06);
}

@media (max-width: 991.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 767.98px) {
  .gallery-grid {
    gap: 0.6rem;
    grid-template-columns: repeat(2, 1fr);
  }
}
