.cpf-related-photos {
    width: 100%;
    margin: 38px 0 0;
    clear: both;
}

.cpf-related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 18px;
}

.cpf-related-header h2 {
    margin: 0;
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.25;
    font-weight: 700;
}

.cpf-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.cpf-related-card {
    min-width: 0;
    margin: 0;
}

.cpf-related-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.cpf-related-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 9px;
    background: #f2f4f7;
    transition: transform .2s ease, box-shadow .2s ease;
}

.cpf-related-link:hover .cpf-related-image,
.cpf-related-link:focus-visible .cpf-related-image {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .10);
}

.cpf-related-card-body {
    padding: 9px 2px 0;
}

.cpf-related-card-body h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
}

@media (max-width: 900px) {
    .cpf-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 650px) {
    .cpf-related-photos {
        margin-top: 30px;
    }

    .cpf-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .cpf-related-card-body h3 {
        font-size: 14px;
    }
}
