/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


/* GALLERY */ 

.gallery-section {
  padding: 100px 20px;
  background: #f8fafc;
}

/* HEADER */
.gallery-header {
  text-align: center;
  margin-bottom: 60px;
}

.gallery-header .tag {
  background: #dbeafe;
  color: #2563eb;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 12px;
}

.gallery-header h2 {
  font-size: 42px;
  margin-top: 20px;
  font-weight: 900;
}

/* GRID */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
  gap: 25px;
}

/* CARD */
.gallery-card {
  position: relative;
  height: 300px;
  border-radius: 30px;
  overflow: hidden;
  cursor: pointer;
  background: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.7s;
}

.gallery-card:hover img {
  transform: scale(1.1);
}

/* OVERLAY */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transition: 0.4s;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  color: white;
}

.gallery-overlay button {
  margin-top: 10px;
  padding: 8px;
  background: white;
  border: none;
  border-radius: 10px;
  font-weight: bold;
}

