body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #005f6a;
    color: white;
    padding: 10px 0;
    text-align: center;
    position: relative;
}

.logo img {
    max-width: 150px;
}

nav {
    position: relative; 
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 10px 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

nav ul li a:hover {
    text-decoration: underline;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: #005f6a;
    margin: 2px 0;
    transition: 0.3s;
}

main {
    padding: 20px;
    text-align: left;
    max-width: 1080px;
    margin: 0 auto;
    flex: 1;
}

h1, h2 {
    color: #005f6a;
    margin-top: 20px;
}

section {
    padding-top: 20px;
    margin-bottom: 20px;
}

.welcome, .pagination, .gallery-intro {
    text-align: center;
} 

 /* Full-width section image with desktop responsiveness */
 .section-image {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

.responsive-image {
    width: 100%;
    height: auto;
    max-height: 600px; 
    object-fit: cover; 
    margin: 0 auto; 
    max-width: 100%;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.thumbnail {
    width: 200px;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
}

.pagination button {
    padding: 8px 16px;
    font-size: 14px;
}

#page-info {
    font-size: 16px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;  
    z-index: 999;
  }
  
  .modal-image {
    max-width: 80%;
    max-height: 80%;
  }
  
  .modal-close, .prev-modal-btn, .next-modal-btn {
    position: absolute;
    top: 10px;
    font-size: 24px;
    color: white;
    cursor: pointer;
  }

  .modal-close {
    right: 10px;
  }

/* iFrame responsive styling for Google Form*/
iframe {
    width: 100%;
    height: auto;
    min-height: 500px;
    max-width: 100%;
    border: 0;
    margin: 20px 0;
}

footer {
    background-color: #005f6a;
    color: white;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    font-size: 16px;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    #nav-menu {
        display: none;
    }
    
    #nav-menu.show {
    display: flex;
    }
    
    nav ul {
        display: flex; 
        flex-direction: column; 
        width: 30%; 
        background-color:  #005f6ac4; 
        position: absolute; 
        top: 45px;
        right: 13px;
      }

    nav ul li {
         margin: 0px 0; 
    }

    nav ul li a {
        padding: 10px 0;
        display: block;
        width: 100%;
    }

    .responsive-image {
        max-height: 100vh;
    }

    #page-info {
        font-size: 14px;
    }

    main {
        padding: 15px;
    }

    iframe {
        min-height: 400px;
    }

    footer {
        font-size: 14px;
        padding: 15px 0;
    }
}


/* Media query for smartphones */
@media (max-width: 320px) {

    .logo img {
      max-width: 80px; 
    }

    nav ul {
        width: 35%;
        top: 40px;
        right: 10px;
    }
  
    nav ul li {
      margin: 0px 0;
    }
  
    .responsive-image {
        max-height: 100vh; 
    }

    #page-info {
        font-size: 12px;
    }

    
    .thumbnail {
        width: 100px;
        height: 100px;
    }

    main {
        padding: 10px;
    }

    iframe {
        min-height: 300px;
    }
  
    footer {
      font-size: 8px; 
      padding: 5px 0; 
    }
  } 
