* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #eee;
  padding: 40px 20px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 2.5rem;
}

.subtitle {
  text-align: center;
  color: #aaa;
  margin-bottom: 40px;
}

.section {
  background-color: #0f3460;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 30px;
}

.section-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #4a90e2;
  border-left: 4px solid #4a90e2;
  padding-left: 15px;
}

.section-description {
  color: #aaa;
  margin-bottom: 25px;
  font-size: 14px;
  padding-left: 19px;
}

.code {
  background-color: #0a0a1a;
  padding: 15px;
  border-radius: 8px;
  font-family: "Courier New", monospace;
  font-size: 13px;
  color: #82b1ff;
  overflow-x: auto;
  margin-top: 15px;
}

.note {
  background-color: #1a1a2e;
  border-left: 4px solid #f39c12;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
}

/* ===================================
           PHOTO MASONRY GRID
           =================================== */
.masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  background-color: #1a1a2e;
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.gallery-img {
  background: linear-gradient(135deg, #4a90e2, #e94560);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

.gallery-caption {
  padding: 15px;
  text-align: center;
}

.gallery-caption h3 {
  margin-bottom: 5px;
  color: #4a90e2;
}

.gallery-caption p {
  color: #aaa;
  font-size: 12px;
}

/* Different heights for visual interest */
.img-tall {
  height: 280px;
}

.img-small {
  height: 150px;
}

/* Color variations */
.color-1 .gallery-img {
  background: linear-gradient(135deg, #667eea, #764ba2);
}
.color-2 .gallery-img {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}
.color-3 .gallery-img {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}
.color-4 .gallery-img {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
}
.color-5 .gallery-img {
  background: linear-gradient(135deg, #fa709a, #fee140);
}
.color-6 .gallery-img {
  background: linear-gradient(135deg, #a18cd1, #fbc2eb);
}
.color-7 .gallery-img {
  background: linear-gradient(135deg, #ff9a9e, #fecfef);
}
.color-8 .gallery-img {
  background: linear-gradient(135deg, #ffecd2, #fcb69f);
}

footer {
  text-align: center;
  padding: 40px;
  color: #666;
}
