

.gallery-section {
    max-width: 1000px;
    margin: 80px auto 40px;
    padding: 20px;
    text-align: center;
}

.gallery-text h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-family: "Josefin Sans", sans-serif;
}

.gallery-text p {
    font-size: 1rem;
    margin-bottom: 30px;
    color: #555;
    text-align: justify;
}

.image-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    flex-wrap: wrap;
}

.image-gallery img {
    width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    position: relative;
}

.image-gallery img:nth-child(2) {
    top: 20px;
}

.image-gallery img:nth-child(3) {
    top: 40px;
}

.image-gallery img:hover {
    transform: scale(1.05);
    z-index: 2;
}

.image-gallery img {
    width: 200px;
    max-width: 90vw;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.4s ease, z-index 0.4s;
    position: relative;
    cursor: pointer;
}


.image-gallery img:hover {
    transform: scale(1.5);
    z-index: 10;
}

.image-gallery {
    overflow: visible;
    position: relative;
}


.gallery-text h1 {
    font-weight: 800;
    text-transform: capitalize;
    background-color: #48b4df;
    border-radius: 25px 0;
    padding: 1px;
}
.gallery-text p  {
    font-size: 22px;
    font-family: "Josefin Sans", sans-serif;
    margin-bottom: 9%;
    margin-top: 4%;
}

/* Disable hover zoom on small screens */
@media (max-width: 768px) {
    .image-gallery img:hover {
        transform: none !important;
        z-index: auto;
    }
    .gallery-text p {
    font-size: 1rem;
    margin-bottom: 30px;
    color: #292929;
    letter-spacing: normal;
    word-spacing: -2px;
    }
}

@media (max-width: 768px) {
    .image-gallery {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        pointer-events: none;
    }

    .image-gallery img {
        width: 85vw;
        top: 0 !important;
    }

    .gallery-text h1 {
        font-size: 1.6rem;
    }

    .gallery-text p {
        font-size: 1.2rem;
        padding: 0 10px;
    }
}

/*button next, prev*/

.gallery-pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
    
}

.pagination-btn {
    background-color: #333;
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4%;
    transition: background-color 0.3s, transform 0.2s;
}

.pagination-btn:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.pagination-btn svg {
    vertical-align: middle;
}


