.gallery-section {
  max-width: 900px;
  margin: 40px auto;
  text-align: center;
}

h2 {
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.tabs {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.tab {
  background: #eaeaea;
  border: none;
  outline: none;
  padding: 7px 20px;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.tab.active,
.tab:hover {
  background: #0C4DA2;
  color: #fff;
}

.gallery-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.09);
}

.gallery-image:hover {
  transform: scale(1.05);
}

/* Modal Gallery */
.modal {
  display: none;
  position: fixed;
  z-index: 20;
  padding-top: 70px;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0,0,0,0.9);
}

.close {
  position: absolute;
  top: 28px;
  right: 40px;
  color: #fff;
  font-size: 34px;
  cursor: pointer;
  z-index: 21;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 70vw;
  max-height: 55vh;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.modal-carousel {
  margin: 24px auto 0 auto;
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 70vw;
}

.modal-carousel img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, border 0.2s;
}

.modal-carousel img.active {
  opacity: 1;
  border: 2px solid #0C4DA2;
}
