.service-year-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-year-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(/img/about-nysc-2.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    filter: brightness(30%);
}

.service-year-hero-content {
    position: relative;
    color: white;
    text-align: center;
    margin-top: 3rem;
 } 

.service-year-title {
    color: #fff;
    font-size: 6rem;
    justify-content: center;
    align-items: center;
}

.about-the-scheme-article-section-container {
    padding: 2rem;
    width: 90%;
    margin: auto;
}

.about-the-scheme-article-section-container .about-the-scheme-article-section  {
    padding: 2rem;
    border-radius: 5px;
}

.about-the-scheme-article-section-container .about-the-scheme-article-section p {
    font-size: 18px;
    line-height: 3;
}

.article-section ul li a {
    text-decoration: none;
    color: #147119;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 10px;
    margin: 3rem 0;
  }
  
  .gallery-item {
    /* Ensure images stretch to fill their container */
    width: 100%;
    height: 200px;
    overflow: hidden;
  }
  
  .gallery-item img {
    width: 100%; /* Ensures the image fills its container */
    height: auto; /* Maintains image aspect ratio */

  }
  
  .gallery-item:hover {
    transform: scale(1.2);
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    cursor: pointer;
  }
  

  /* Styles for the modal */
.s-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
  }
  
  .s-modal .s-modal-content {
    margin: 8rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-items: center;
    top: 150px;
    max-width: 80%;
    max-height: 80%;
  }
  
  .s-modal .close {
    margin: 1rem;
    color: #fff;
    font-size: 30px;
    position: absolute;
    top: 50px;
    right: 20px;
    cursor: pointer;
  }
  


   /* Medium devices (tablets, 768px and up) */
@media (max-width: 768px) {  
  .s-modal .s-modal-content {
    margin: 10rem auto;
  }
  
  .s-modal .close {
    margin: 1.5rem;
  }
  
}