body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; 
  margin: 0;
}

.page-wrap {
  flex: 1; 
}

a {
    text-decoration: none;
    color: #000;
    transition: color 0.3s ease;
}

a:hover {
    color: #555; 
}

/* Header */
header {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    width: 100%;
    padding: 15px 20px;
    background-color: #000;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#logo-header {
    width: auto; 
    margin: 0 auto 15px auto; 
    display: block;
    margin-bottom: 30px;
}

/* Navigation */
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
}

nav li {
    padding: 5px 10px;
}

nav a {
    font-size: 1.5vw;
    font-weight: bold; 
    padding: 10px 20px; 
    margin: 0 10px; 
    color: #fff;
}

nav a:hover {
    color: #bbb; 
}

main {
    padding: 40px;
}

img {
    max-width: 900px
}

#homeText img {
    display: block;
    margin: 0 auto; 
}

label, input, textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

input[type="submit"] {
    background-color: #000;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #333; 
}

footer {
  background: #000;
  color: #fff;
  padding: 10px 0;
  text-align: center;
}

footer p {
    margin: 0; 
}

#galleryContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin-bottom: 4rem;
}

.half-width {
    width: 48%;
    margin: 1% 1% 15rem 1%; 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
}

.half-width img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.half-width figcaption {
    height: 50px;
    overflow: hidden;
}

.large-image {
    width: calc(60% - 2%);
}

.normal-image {
    width: calc(30% - 2%);
}

/* Text and Image Containers */
.mission-statement {
    text-align: center; 
    margin-top: 6vw; /* Responsive margin */
    margin-bottom: 6vw; /* Responsive margin */
}

.mission-statement h2 {
    font-size: 3vw; /* Scales with screen width */
    font-weight: bold; 
    margin-bottom: 3vw; /* Responsive margin */
}

.mission-statement h3 {
    font-size: 2.5vw; /* Scales with screen width */
    margin-top: 2vw; 
    margin-bottom: 3vw;
    color:#8B0000;
    text-decoration: underline;
    font-weight:bold;
}

.mission-statement p {
    font-size: 1.1rem; /* Fixed font size */
    max-width: 2000px; 
    margin-left: auto; 
    margin-right: auto;
}

.content-section {
    display: none;
    font-size: 1.1rem; /* Fixed font size */
    text-align: justify; 
    max-width: 100%; 
    margin: 0 auto;  
}

.content-section h2 {
    font-size: 2.5vw; /* Scales with screen width */
    margin-bottom: 3vw;
    margin-top: 6vw;
    text-align: center; 
}

.content-section h3 {
    font-size: 2vw; /* Scales with screen width */
    margin-top: 6vw; 
    margin-bottom: 3vw;
    color:#8B0000;
    text-decoration: underline;
    font-weight:bold;
}

.img-container {
    display: flex;
    justify-content: space-between;
    margin-top: 10vw; 
    margin-bottom: 8vw; 
}

.img-container img {
    width: 40%; 
    border: 2px solid #8B0000;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.img-container img:hover {
    transform: scale(1.05); 
}

.description {
    font-size: 1.5rem; /* Fixed font size */
    text-align: justify; 
    max-width: 100%;
    margin: 0 auto; 
}

/* Testimonials */
.testimonial {
  background-color: #f1f1f1;
  border-radius: 5px;
  padding: 20px;
  margin-bottom: 20px;
}

.testimonial p {
  margin-bottom: 10px;
}

.author {
  font-weight: bold;
  text-align: right;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 90vw; 
    max-height: 80vh;
    position: relative;
    overflow: auto;
    display: flex; 
    flex-wrap: wrap; 
    align-items: center;
    justify-content: center;
}

.modal-content img {
    max-width: 25%; 
    max-height: 70%;
    display: block;
    margin: 0 auto;
    margin-bottom: 20px;
}

.modal-caption {
    font-size: 1.2rem; /* Fixed font size */
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    width: 100%; 
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    /* Navigation Menu */
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav a {
        font-size: 5vw; /* Larger on smaller screens */
        padding: 10px;
        margin: 5px 0; 
    }
    
    /* Responsive Scaling Adjustments for Smaller Devices */
    .mission-statement h2, .content-section h2 {
        font-size: 6vw;
        text-align: left !important;
    }
    
    .mission-statement h3, .content-section h3 {
        font-size: 4.5vw;
        text-align: left !important;
    }
    
    .mission-statement p, .content-section p {
        font-size: 4vw;
    }
    
    /* Gallery and Image Containers */
    .img-container {
        flex-direction: column;
    }

    .img-container img, .group .half-width {
        width: 90%;
        margin: 10px 0;
    }

    footer {
        font-size: 0.8em;
    }
}

/* Additional scaling for very small screens */
@media (max-width: 480px) {
    #logo-header {
        max-width: 300px;
    }
}

