/* Style for the gallery section */
.gallery-section {
    max-width: 1248px;
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 20px;
  }
  
  /* Center the main title */
  .text-center {
    text-align: center;
    margin-top: 10px; /* Adjust this value to increase/decrease space above the title */
    margin-bottom: 10px; /* Space between title and the grid */
  }
  
  /* Grid layout for 2x2 images */
  .image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    column-gap: 30px; /* Adjust column spacing */
    row-gap: 20px; /* Row spacing can be different if needed */
    max-width: 100%; /* Ensure the grid fits within its container */
    padding-left: 350px;
    padding-right: 350px;
  }
  
  /* Styling for each image item */
  .image-item {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically */
    position: relative;
    text-align: center;
  }
  
  /* Image style */
  .image-item img {
    width: 100%; /* Ensure image takes full width of its container */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Rounded corners */
    transition: transform 0.3s ease-in-out;
  }
  
  /* Title style */
  .image-title {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5em;
    font-weight: bold;
    color: #333; /* Text color */
  }
  
  /* Hover effect: zoom-in */
  .image-item img:hover {
    transform: scale(1.05); /* Slight zoom on hover */
  }
  
  /* Hover text */
  .hover-text {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 1em;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }
  
  /* Show hover text on hover */
  .image-item:hover .hover-text {
    display: block;
    opacity: 1;
  }
  