/**
 * Layout: Regeling (Child Theme)
 * Image always on the left, square format
 * 
 * @package hca-ict
 */

#theme-child-regulation {
    position: relative;
}

#theme-child-regulation .text-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start
}

#theme-child-regulation .text-content {
    line-height: 1.6;
}

#theme-child-regulation .text-content p {
    margin-bottom: 1rem;
}

#theme-child-regulation .text-content p:last-child {
    margin-bottom: 0;
}

#theme-child-regulation .image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
}

#theme-child-regulation .image-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
}

#theme-child-regulation .image-wrapper.has-object-fit {
    padding: 1rem;
}

@media (min-width: 768px) {
    #theme-child-regulation .image-wrapper.has-object-fit {
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    #theme-child-regulation .image-wrapper.has-object-fit {
        padding: 2rem;
    }
}

#theme-child-regulation .button-wrapper {
    margin-top: 1rem;
}

#theme-child-regulation .related-posts-wrapper {
    margin-top: 2rem;
}

#theme-child-regulation .related-posts-list {
    position: relative;
}

#theme-child-regulation .related-post {
    transition: all 0.3s ease;
}

#theme-child-regulation .related-post:hover {
    transform: translateX(4px);
}

#theme-child-regulation .related-post .related-info h3 {
    transition: color 0.3s ease;
}

#theme-child-regulation .related-post:hover .related-info h3 {
    color: var(--blue-light);
}

#theme-child-regulation .related-post .related-link svg {
    transition: fill 0.3s ease;
}

#theme-child-regulation .related-post:hover .related-link svg {
    fill: var(--blue-light);
}

@media (max-width: 768px) {
    #theme-child-regulation .button-wrapper {
        flex-direction: column;
        width: 100%;
    }
    
    #theme-child-regulation .button-wrapper .button {
        width: 100%;
        text-align: center;
    }
}

