/* 
 * Three Images Block CSS
 * File: /dist/styles/blocks/block-three-images.css
 * This file is automatically loaded when the three-images block is used
 */

/* Three Images Block */
.three-images-block {
    background: var(--green);
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.three-images-block__container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.three-images-block__images-wrapper {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
}

.three-images-block__image-item {
    flex: 1;
    max-width: 400px;
}

.three-images-block__image {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.three-images-block__image:hover {
    transform: scale(1.02);
}

.three-images-block__image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.three-images-block__image:hover img {
    transform: scale(1.02);
}

.image-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: bold;
}

/* Background color variations */
.three-images-block.bg-dark {
    background-color: var(--dark-green);
    color: var(--white);
}

.three-images-block.bg-dark .three-images-block__subheading {
    color: var(--white);
}

/* Responsive */
@media (max-width: 992px) {
    .three-images-block__images-wrapper {
        gap: 20px;
    }
    
    .three-images-block__image-item {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .three-images-block {
        padding: 60px 20px;
    }
    
    .three-images-block__images-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .three-images-block__image-item {
        max-width: 100%;
        width: 100%;
    }
    
    .three-images-block__heading {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 15px;
    }
    
    .three-images-block__subheading {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .three-images-block {
        padding: 40px 15px;
    }
    
    .image-caption {
        bottom: 15px;
        left: 15px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}