/* Section 1: Overlapping Images on Skyblue Background */
.overlapping-images-section .skyblue-bg {
    background-color: skyblue;
    padding: 60px 20px;
    position: relative;
    text-align: center;
}

.overlap-images {
    display: flex;
    justify-content: center;
    gap: 100px;
    position: relative;
    top: 50px;
}

.overlap-image {
    width: 200px;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    top: 50%;
    transform: translateY(50%);
    width: 500px;
}

/* Section 2: Image Grid with Captions */
.image-caption-section {
    padding: 50px 20px;
    text-align: center;
}

.image-caption-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.image-caption-box {
    text-align: center;
    width: calc(33.333% - 20px);
    box-sizing: border-box;
}

.image-caption-box .image {
    width: 100%;
    max-width: 1000px;
    padding-bottom: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.image-caption-box h1 {
    font-size: 1.2rem;
    margin-top: 10px;
}

.image-caption-box p {
    font-size: 1rem;
    color: #666;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .overlap-image {
        width: 150px;
        height: 150px;
    }
    .image-caption-box {
        width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .overlap-image {
        width: 120px;
        height: 120px;
    }
    .image-caption-box {
        width: 100%;
    }
}
