@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
body{
  font-family: 'poppins', sans-serif;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    width: 100%;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 100px;
}

.heading {
    width: 100%;
    margin-bottom: 40px;
    font-size: 25px;
}

/* .content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 400px;
} */

.text {
    flex: 1;
    width: 75%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
}

.text h1 {
    font-size: 2.5em;
    color: white;
    padding-bottom: 40px;
    padding-top: 30px;
}

.text p {
    margin: 20px 0;
    color: white;
    font-size: 1.2em;
}

.text a {
    color: white;
    text-decoration: none;
    text-align: justify;
}

.main-image img {
    border-radius: 15px;
    max-width: 200px;
    margin-right: 30px;
    height: 150px;
    width: 500px;
    margin-top: 30px;
    margin-left: 20px;
    /* display: flex;
    flex-direction: column;
    flex-wrap: wrap; */
    /* height: auto; */
}

.img-text {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    height: auto;
}

.image-gallery-wrapper {
    overflow: hidden;
    /* To hide the overflowing images during scroll */
    margin-top: 20px;
    min-height: 160px;
    height: auto;
}

.image-gallery {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    transition: transform 0.3s ease;
    position: relative;
}

/* Zoom in effect on click */
.image-gallery img.zoomed {
    transform: scale(2);
    z-index: 10;
    transition: transform 0.5s ease;
}



.image-gallery img {
    width: auto;
    height: 150px;
    /* All images will adjust their height */
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    margin: 0 10px;
    transition: transform 0.3s ease, z-index 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.1);
    /* Slight zoom on hover */
}

/* Zoom in effect on click*/
.image-gallery img.zoomed {
    transform: scale(2);
    z-index: 10;
    transition: transform 0.5s ease;
}


/* To prevent overlapping during zoom */
.image-gallery {
    position: relative;
}

.image-gallery img.zoomed {
    position: relative;
    z-index: 10;
}





/* Lightbox styling */
.lightbox {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1000;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* Black background with opacity */
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 80%;
    /* Adjust the max size of the image */
    max-height: 80%;
    /* Ensure it fits within the screen */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.lightbox .close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox .close:hover,
.lightbox .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Adjust the scrolling image gallery to stay in place */
.image-gallery-wrapper {
    overflow: hidden;
    margin-top: 20px;
    height: 160px;
    position: relative;
    z-index: 1;
}

.image-gallery img {
    cursor: pointer;
    transition: transform 0.3s ease, z-index 0.3s ease;
}

/* Grid-based gallery layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.gallery-grid-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-grid-item:hover img {
    transform: scale(1.05);
}

/* Always keep a 2 x n layout, even on small screens */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}