.box {
    height: 150px;
    background-color: rgb(218, 171, 0);
    box-shadow: 0 8px 6px -6px black;
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: left;
    text-align: left;
    padding: 20px 0; /* Adjust padding to ensure content centers vertically */
  }
  
  .section-header {
    height: 60px;
    background-color: rgb(218, 171, 0);
    box-shadow: 0 8px 6px -6px black;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1rem;
    margin-bottom: 20px; /* Space below the yellow header */
    margin-top: 40px;
  }
  
  .title {
    color: white;
    font-size: 2.5rem;
    margin: 10px 0 5px 400px; /* Add left margin to move text right */
  }
  
  .subtitle {
    color: white;
    font-size: 1.2rem;
    margin: 0 0 0 400px; /* Add left margin to move text right */
  }
  
  /* Gallery section */
  .gallery45 {
    position: relative;
    background: url('images/Gray Gold Black Elegant Calligraphy Illustration Wedding Wine Label (1).png') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 60px;
  }
  
  /* Green overlay */
  .gallery45::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 0, 0.5); /* Green overlay with 70% opacity */
    z-index: 1;
  }
  
  /* Ensure content stays above the overlay */
  .gallery45 > * {
    position: relative;
    z-index: 2;
  }
  
  
  /* Row style for each image row */
  .row45 {
    display: flex;
    gap: 20px; /* Space between images */
    justify-content: space-between; /* Ensures equal spacing between images */
  }
  
  /* Frame styling for images */
  .frame45 {
    position: relative;
    width: calc(25% - 20px); /* Adjust to keep 4 images per row */
    aspect-ratio: 1 / 1; /* Ensures square frames */
    border: 2px solid rgb(0, 0, 0);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
  }
  
  
  .frame45:hover {
    transform: translateY(-10px); /* Optional pop-out effect */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  }
  
  .frame45 img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Makes sure the image covers the entire frame */
    display: block;
  }
  
  /* Initial caption styling */
  .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    height: 50px; /* Default height */
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    text-align: center;
    transition: height 0.3s ease; /* Smooth height transition */
  }
  
  /* Hidden additional text */
  .caption .extra-info {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    font-size: 0.9rem;
    margin-top: 5px;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  /* On hover, increase height and reveal extra text */
  .frame45:hover .caption {
    height: 70px; /* Increase height to accommodate extra text */
    flex-direction: column; /* Stack the original and extra text */
    justify-content: flex-start; /* Align text at the top of the caption box */
  }
  
  /* Smooth in and out animation for extra info */
  .frame45:hover .caption .extra-info {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
  