* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: rgb(255, 255, 255);
}

.nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: rgb(189, 189, 189);
    padding: 1em;
}

.nav a {
    text-decoration: none;
    border-left: 1px black solid;
    border-right: 1px black solid;
    color: rgb(0, 0, 0);
    font-size: 25px;
    margin: 0 1em;
    padding: 30px;
}

.nav :hover {
    background-color: rgba(255, 0, 0, 0.63);
    transition: 1s;
}

.main-content {
    display: flex;
    padding: 2em;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two equal columns */
    grid-template-rows: auto auto; /* Adjust rows as needed */
    gap: 1px; 
    max-width: 1200px; 
    margin: 30px auto; 
}

.vimage, .himage1, .himage2 {
    background-color: lightgray;
    border: black 4px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease-in-out; /* Smooth transition for scaling */
}

/* Hover effect for growing the images */
.vimage:hover, .himage1:hover, .himage2:hover {
    transform: scale(1.3); /* Increase size by 10% */
    transition:1s;
    cursor:pointer
 
}

.vimage img, .himage1 img, .himage2 img {
    object-fit: cover; 
    width: 100%; 
    height: 100%;
}

/* Specific styling for vimage */
.vimage {
    grid-column: span 1; /* Takes one column */
    grid-row: span 2; /* Takes two rows if needed */
    height: 400px; 
    width: 300px; 
    background-color: rgb(185, 185, 185);
}

/* Specific styling for himage1 */
.himage1 {
    grid-column: span 1; /* Takes one column */
    height: 200px; 
    width: 300px; 
    background-color: lightcoral;
}

/* Specific styling for himage2 */
.himage2 {
    grid-column: span 1; /* Spans across two columns */
    height: 150px; 
    width: 100%; 
    background-color: lightgray;
}


/* Gallery Grid */
#gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Responsive grid */
    gap: 1rem; /* Spacing between images */
    margin: 2rem;
}

/* Styling for the gallery images */
.gallery-image {
    width: 100%; 
    height: auto; 
    border-radius: 8px; 
    transition: transform 0.3s ease-in-out; 
}

/* Hover effect for images */
.gallery-image:hover {
    transform: scale(1.05); /* Slight zoom effect */
}

/* Styling for gallery thumbnails */
.gallery-thumbnail {
    width: 65%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-thumbnail:hover {
    transform: scale(1.05);
}

.gallery-title {
    text-align: center;
    margin-top: 8px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.gallery-item {
    text-align: center;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

#kofi{
    align-self: center;
    height: 45vh;
    width: 45vw;
    margin: 50px;
}

.aboutcont{
    border: #333 2px solid;
    gap: 20px;
    justify-content: space-between;
}

.burger {
    display: none;
    font-size: 30px;
    cursor: pointer;
}

/* Nav links wrapper */
.nav-links {
    display: flex;
    gap: 1em;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
    .burger {
        display: block;
    }

    .nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-links a {
        padding: 1em;
        width: 100%;
        border-top: 1px solid black;
        text-align: left;
    }

    .nav-links.show {
        display: flex;
    }
    .grid-container {
        grid-template-columns: 1fr; /* Single column layout */
        grid-template-rows: auto;
        gap: 10px;
        margin: 20px;
    }

    .vimage,
    .himage1,
    .himage2 {
        width: 100%;
        height: auto;
    }

    #kofi {
        width: 90vw;
        height: auto;
        margin: 20px auto;
    }

    .aboutcont {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
}
