/* Wrapper title and paragraph */


.wrapper {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
  }
  
  .gallery-links-h2 {
    margin-top: 7%;
    font-size: 4rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
  }
  
  .wrapper p {
    font-size: 1.4rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
  }
  
  /* Gallery grid */
  .gallery-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  /* Gallery image block */
  .gallery-img {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    background-color: #000;
  }
  
  /* Image itself */
  .gallery-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
  }
  
  /* Caption under image */
  .gallery-img h3 {
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem;
    margin: 0;
    font-size: 1.3rem;
    text-align: center;
    margin-top: 2%;
    color: #fff;
    transition: opacity 0.3s ease;
  }
  
  /* Overlay on desktop hover */
  .dark-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .gallery-img:hover .dark-overlay {
    opacity: 1;
  }
  
  /* Hover animation (optional) */
  .gallery-img:hover img {
    transform: scale(1.05);
  }
  
  /* Show caption always on mobile */
  @media (hover: none) and (pointer: coarse) {
    .gallery-img .dark-overlay {
      display: none;
    
    }
  
    .gallery-img h3 {
      position: static;
      opacity: 1;
    }
  }

  @media (max-width: 768px){
    .gallery-links-h2 {
        margin-top: 20%;
      }
  }
  

  /*  button */
  .cta-button-wrapper {
    text-align: center;
    margin-top: 2rem;
  }
  
  .cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #0077b6;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }
  
  .cta-button:hover {
    background-color: #023e8a;
  }
  