.event-gallery {
  text-align: center;
  padding: 20px;
  background-color: #f2f8f8;
}
.event-gallery h2 {
  font-size: 2rem;
  margin-top: 10px;
  color: #fff;
  background-color: #C22F76;
  margin: 10px auto;
  text-align: center;
  width: 32%;
  padding: 10px;
  border-radius: 0px 10px;
}
@media only screen and (max-width: 991px) {
  .event-gallery h2 {
    width: 40%;
  }
}
.event-gallery h4{
    font-size: 1.3rem;
    margin-bottom: 8px;
    margin-top: 15px;
}
.event-gallery p {
  margin: auto 10%;
  color: #666;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}
@media only screen and (max-width: 991px) {
  .event-gallery p {
    font-size: 0.9rem;
  }
}

.body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f8f8f8;
  margin: 0;
  padding-top: 50px;
  padding-bottom: 50px;
}
@media only screen and (max-width: 575px) {
  .body {
    min-height: 50vh;
  }
}
.body h4 {
  margin-top: -43rem;
}
@media only screen and (max-width: 991px) {
  .body h4 {
    margin-top: -31rem;
    font-size: 1.5rem;
  }
}
.body .grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 10px;
  width: 80vw;
  max-width: 900px;
}
@media only screen and (max-width: 575px) {
  .body .grid-container {
    gap: 5px;
    width: 95vw;
  }
}
.body .grid-container .grid-item {
  width: 100%;
}
.body .grid-container .grid-item img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 5px;
}
.body .grid-container .item1 {
  grid-column: span 2;
  grid-row: span 3;
}
.body .grid-container .item2 {
  grid-column: span 1;
  grid-row: span 1;
}


/* ====== Photo Gallery Section ====== */
.photo-gallery {
    background: linear-gradient(to bottom, #ffffff, #e6f0ff);
    padding: 50px 20px;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
}



/* ====== Gallery Grid ====== */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: auto;
}

/* ====== Gallery Item ====== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background-color: #f0f6ff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
    border: 2px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: fill;
    /* display: block; */
}

/* ====== Overlay (Static Caption Bar) ====== */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px;
    background: #004aad;
    color: white;
    text-align: center;
}

.overlay p {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

/* ====== Hover Effects (Card Lift + Glow) ====== */
.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 74, 173, 0.25);
    border-color: #004aad;
}
