/* Hero section */
.gallery-hero {
  position: relative;
  height: 480px;

  background-size: cover;        
  background-repeat: no-repeat;
  background-position: center;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-top: 72px;
  border-radius: 24px;
  overflow: hidden;
  margin: 110px 30px 0 30px;
}


.gallery-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-hero__overlay h1 {
  font-family: "SF Pro Expanded", "SF Pro Display", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 3px;
  color: #fff;
  font-size: 60px;
}

/* Description */
.gallery-intro {
  background: #fff;
  padding: 60px 24px 40px;
}

.gallery-intro__inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.gallery-intro__inner p {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  font-weight: 350;
  line-height: 1.7;
  color: #555;
  margin-bottom: 18px;
  letter-spacing: 0.2px;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-intro__inner p {
    font-size: 16px;
  }
}



/* Main grid area */
.gallery-main {
  padding: 60px 24px 80px;
  background: #fff;
}

/* Masonry-style layout */
.gallery-grid {
  -moz-column-count: 3;
       column-count: 3;
  -moz-column-gap: 18px;
       column-gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
}

.gallery-item {
  margin-bottom: 18px;
  -moz-column-break-inside: avoid;
       break-inside: avoid;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  -o-object-fit: cover;
     object-fit: cover;
}

/* Image count text */
.gallery-count {
  text-align: right;
  margin: 24px 60px 20px 8px;
  font-family: "SF Pro Expanded", "SF Pro Display", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 300;
  font-size: 18px;
  color: #555;
  letter-spacing: 0.4px;
}

.gallery-count strong {
  font-weight: 600;
  color: #111;
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery-grid {
    -moz-column-count: 2;
         column-count: 2;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    -moz-column-count: 1;
         column-count: 1;
  }

  .gallery-hero {
    height: 260px;
  }

  .gallery-hero__overlay h1 {
    font-size: 28px;
  }
}

