/* Reset & Base Styling */
/* * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', sans-serif;
        }

        body {
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
            font-size: 16px;
        }

        @media (max-width: 480px) {
            body {
                font-size: 14px;
            }
        } */

/* .heading-services {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    text-align: center;
    color: #2f5190;
    margin: 0 0 35px 0;
}

@media (max-width:1024px) {
    .heading-services {
        font-size: 1.6em;
        margin: 0 0 25px 0;
    }
}

@media (max-width:768px) {
    .heading-services {
        font-size: 1.2rem;
        margin: 0 0 20px 0;
    }
} */

/* Gallery container1 */
/* .container1 {
    font-family: 'Inter', sans-serif;
    background-color:#f9f3f3;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
    padding: 50px 30px;
}

@media (max-width:768px) {
    .container1 {
        padding: 30px 15px;
    }
}

@media (max-width:480px) {
    .container1 {
        padding: 20px 10px;
    }
}
    
*/

/* Container with nice breathing space */
.container1 {
    background-color: #f9f3f3;
    padding: 40px 30px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

@media (max-width: 768px) {
    .container1 {
        /* padding: 30px 20px; */
        padding: 30px 20px 40px 20px;
    }
}

@media (max-width: 480px) {
    .container1 {
        /* padding: 25px 15px; */
        padding: 25px 15px 30px 15px;
    }
}

/* Heading styling */
.heading-services {
    /* font-family: 'Poppins', sans-serif; */
    font-size: 2rem;
    margin-bottom: 15px;
    color: #2f5190;
}

@media (min-width: 1024px) {
    .heading-services {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .heading-services {
        font-size: 1.7rem;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .heading-services {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
}

/* Explore link styled as button */
.explore-link {
    display: inline-block;
    margin-bottom: 30px;
    padding: 8px 16px;
    font-size: 1rem;
    color: #2f5190;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #2f5190;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.explore-link:hover {
    background-color: #2f5190;
    color: white;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 8px;
}

@media (max-width:768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

@media (max-width:480px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
}

.image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    transition: transform 0.3s ease;
    cursor: pointer;
    /* 👈 add this line */
}

.image-wrapper:hover {
    transform: scale(1.03);
}

.skeleton {
    width: 100%;
    height: 100%;
    background: #eee;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        background-color: #f0f0f0;
    }

    50% {
        background-color: #e4e4e4;
    }

    100% {
        background-color: #f0f0f0;
    }
}

.gallery img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.97);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery img.visible {
    opacity: 1;
    transform: scale(1);
}

/* Fullscreen modal */
#imageModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#closeModal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

#modalLoader {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#modalImg {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px #000;
    display: none;
    background: #111;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}