.gallery-section {
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 30px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #d6dde8, #c7d2e3);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  position: relative;
}

.gallery-section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 3px;
  background: linear-gradient(to bottom, #0089ff, #00BFFF);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.gallery-section .page-title {
  font-size: 2rem;
  color: #0089ff;
  margin-bottom: 30px;
  font-weight: 800;
  text-align: center;
  position: relative;
  z-index: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #1a1a1a;
  box-shadow: 0 4px 12px rgba(0,0,0,.5);
  transition: transform .3s ease, box-shadow .3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,.7);
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: pointer;
  border-radius: 14px;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-section .page-title {
    font-size: 1.6rem;
  }
}
