/* ==========================================
   GALLERY PAGE
========================================== */

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

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #263238;
  line-height: 1.7;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ==========================================
   GALLERY HERO
========================================== */

.gallery-hero {
  position: relative;
  height: 400px;

  background: url("/images/pexels-oleksiy-yeshtokyn-2147541276-39012056.jpg") center
    center/cover no-repeat;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
}

.gallery-text {
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  padding: 25px 40px;
}

.gallery-text h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.gallery-text p {
  font-size: 22px;
}

/* ==========================================
   GALLERY GRID
========================================== */

.gallery-section {
  padding: 70px 0;
}

.gallery-section h2 {
  text-align: center;
  font-size: 40px;
  color: #1565A8;
  margin-bottom: 45px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
  transition: 0.3s;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* Show the top portion of the image inside the 2nd card */
.gallery-item:nth-child(2) img {
  object-position: top;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-hero {
    height: 300px;
  }

  .gallery-text h1 {
    font-size: 36px;
  }

  .gallery-text p {
    font-size: 18px;
  }

  .gallery-section h2 {
    font-size: 30px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .gallery-hero {
    height: 250px;
  }

  .gallery-text {
    padding: 20px 25px;
  }

  .gallery-text h1 {
    font-size: 28px;
  }

  .gallery-text p {
    font-size: 16px;
  }

  .gallery-section {
    padding: 50px 0;
  }

  .gallery-section h2 {
    font-size: 24px;
  }

  .gallery-item img {
    height: 200px;
  }
}
